From 4147ec0e3c303363c66ad4ffa543d9f71893e6dd Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 13:16:55 +0000 Subject: [PATCH 1/4] Advance the pin to DuckDB v2.0.1: grammar, lexer, matcher and transformer Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LuRZ4HRrRLBPqxCRMFCvAX --- ast/ddl.go | 13 +- ast/misc.go | 27 +- internal/duckdbsrc/duckdbsrc.go | 8 +- internal/grammar/README.md | 30 +-- internal/grammar/duckdb/statements/alter.gram | 2 +- .../grammar/duckdb/statements/common.gram | 1 + .../duckdb/statements/create_index.gram | 3 +- .../grammar/duckdb/statements/describe.gram | 11 +- internal/grammar/duckdb/statements/drop.gram | 2 +- .../grammar/duckdb/statements/explain.gram | 3 + .../grammar/duckdb/statements/export.gram | 3 +- .../grammar/duckdb/statements/expression.gram | 26 +- .../duckdb/statements/external_resource.gram | 21 +- .../statements/external_resource_source.gram | 2 +- internal/grammar/duckdb/statements/load.gram | 22 +- .../grammar/duckdb/statements/select.gram | 11 +- internal/grammar/duckdb/statements/set.gram | 9 +- internal/matcher/factory.go | 7 +- internal/matcher/special.go | 98 +++++++ lexer/lexer.go | 9 +- lexer/lexer_test.go | 20 +- parser/expr_v2_test.go | 2 +- parser/misc_test.go | 59 +++- parser/stmt_v2_test.go | 1 - parser/transform_copy.go | 18 +- parser/transform_ddl.go | 61 ++--- parser/transform_depth.go | 4 +- parser/transform_expr.go | 254 ++++++++++++------ parser/transform_func.go | 7 + parser/transform_misc.go | 207 +++++++++----- parser/transform_select.go | 100 +++++-- parser/transform_single.go | 7 +- parser/transform_tableref.go | 138 ++++++---- 33 files changed, 851 insertions(+), 335 deletions(-) diff --git a/ast/ddl.go b/ast/ddl.go index e3ca9029..bb17ddeb 100644 --- a/ast/ddl.go +++ b/ast/ddl.go @@ -4,7 +4,11 @@ package ast type QualifiedName struct { Catalog string `json:"catalog,omitempty"` Schema string `json:"schema,omitempty"` - Name string `json:"name"` + // Qualification is the full qualification path when it is deeper + // than catalog.schema (a nested schema chain); Catalog and Schema + // then hold QualifiedName::Catalog()/Schema() of it. + Qualification []string `json:"qualification,omitempty"` + Name string `json:"name"` } // OnCreateConflict mirrors DuckDB's OnCreateConflict: what CREATE does @@ -230,8 +234,11 @@ type IndexElement struct { // CreateIndexInfo is CREATE INDEX. Port of CreateIndexInfo. type CreateIndexInfo struct { CreateInfoBase - Unique bool `json:"unique,omitempty"` - Table QualifiedName `json:"table"` + Unique bool `json:"unique,omitempty"` + // Concurrently records CREATE INDEX CONCURRENTLY; DuckDB accepts the + // keyword and ignores it. + Concurrently bool `json:"concurrently,omitempty"` + Table QualifiedName `json:"table"` // IndexType is the USING method (ART by default upstream; recorded // verbatim here). IndexType string `json:"index_type,omitempty"` diff --git a/ast/misc.go b/ast/misc.go index 047eff18..cd6a792b 100644 --- a/ast/misc.go +++ b/ast/misc.go @@ -105,6 +105,10 @@ type UseStatement struct { stmtBase Catalog string `json:"catalog,omitempty"` Name string `json:"name"` + // Path is the full target when it is deeper than catalog.schema + // (USE db.parent.child, a nested schema); Catalog and Name then hold + // its first and last components. + Path []string `json:"path,omitempty"` } func (s *UseStatement) Children() []Node { return nil } @@ -389,23 +393,22 @@ const ( ExternalResourceCreate ExternalResourceOperation = "CREATE" ExternalResourceRegister ExternalResourceOperation = "REGISTER" ExternalResourceDestroy ExternalResourceOperation = "DESTROY" - ExternalResourceShow ExternalResourceOperation = "SHOW" ) -// ExternalResourceStatement is CREATE/REGISTER/DESTROY EXTERNAL RESOURCE -// and SHOW [ALL] EXTERNAL RESOURCES. Port of ExternalResourceStatement. +// ExternalResourceStatement is CREATE/REGISTER/DESTROY EXTERNAL RESOURCE. +// Port of ExternalResourceStatement. (SHOW [ALL] EXTERNAL RESOURCES is a +// query over duckdb_external_resources() since v2.0.1.) type ExternalResourceStatement struct { stmtBase Operation ExternalResourceOperation `json:"operation"` - // Type is the resource type string literal of CREATE/REGISTER. + // Type is the resource type of CREATE/REGISTER: a string literal as + // written, or a bare (dotted) name folded to lowercase. Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` // Handle is the REGISTER ... FROM expression. - Handle Expr `json:"handle,omitempty"` - Options []GenericOption `json:"options,omitempty"` - // All is SHOW ALL EXTERNAL RESOURCES. - All bool `json:"all,omitempty"` - NamedParams []NamedParam `json:"named_param_map,omitempty"` + Handle Expr `json:"handle,omitempty"` + Options []GenericOption `json:"options,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` } func (s *ExternalResourceStatement) Children() []Node { @@ -438,7 +441,11 @@ type CommentOnStatement struct { Catalog string `json:"catalog,omitempty"` Schema string `json:"schema,omitempty"` Name string `json:"name"` - Column string `json:"column,omitempty"` + // Qualification is the full path when it is deeper than + // catalog.schema.name (nested schemas); Catalog and Schema then hold + // QualifiedName::Catalog()/Schema() of it. + Qualification []string `json:"qualification,omitempty"` + Column string `json:"column,omitempty"` // Value is the comment constant: a string or NULL. Value Expr `json:"value"` } diff --git a/internal/duckdbsrc/duckdbsrc.go b/internal/duckdbsrc/duckdbsrc.go index 04cc9740..67f2fc2c 100644 --- a/internal/duckdbsrc/duckdbsrc.go +++ b/internal/duckdbsrc/duckdbsrc.go @@ -19,13 +19,13 @@ import ( // Pinned build identity. Advancing the pin means updating these alongside // the vendored grammar and regenerated corpus. const ( - // PinnedCommit is the DuckDB source commit of the pin (the v2.0.0 tag). - PinnedCommit = "d54cbbe3df17e8e5ce68312f483b4155836112aa" + // PinnedCommit is the DuckDB source commit of the pin (the v2.0.1 tag). + PinnedCommit = "8d78114e90a53823803660bf821f6073ac87da8c" // PinnedVersion is the CLI version string of the pinned release. - PinnedVersion = "v2.0.0" + PinnedVersion = "v2.0.1" // ReleaseURL is where DuckDB serves the pinned release's CLI. Unlike // the nightly bundle a tagged release never moves. - ReleaseURL = "https://github.com/duckdb/duckdb/releases/download/v2.0.0/duckdb_cli-linux-amd64.zip" + ReleaseURL = "https://github.com/duckdb/duckdb/releases/download/v2.0.1/duckdb_cli-linux-amd64.zip" ) // EnvBinary is the environment variable naming the pinned CLI binary. diff --git a/internal/grammar/README.md b/internal/grammar/README.md index 7d020e82..f324a25a 100644 --- a/internal/grammar/README.md +++ b/internal/grammar/README.md @@ -7,8 +7,8 @@ edit them by hand — changes happen only by advancing the pin (see PLAN.md, - Upstream: https://github.com/duckdb/duckdb - Source tree: `src/parser/peg/grammar/` -- Pinned commit: `d54cbbe3df17e8e5ce68312f483b4155836112aa` (tag `v2.0.0`, 2026-10-20) -- Matching oracle binary: DuckDB CLI `v2.0.0 d54cbbe3df` (the v2.0.0 release +- Pinned commit: `8d78114e90a53823803660bf821f6073ac87da8c` (tag `v2.0.1`, 2026-11-19) +- Matching oracle binary: DuckDB CLI `v2.0.1 8d78114e90` (the v2.0.1 release CLI; see `internal/duckdbsrc`) The pin follows the oracle binary: grammar, corpus expectations, and the @@ -19,16 +19,16 @@ DuckDB is MIT-licensed; see `LICENSE.DUCKDB` at the repository root. ## File checksums (SHA-256) ``` -d6a4de42cffd26db45a76460102ab4be7efeced1c401613f9604ed76e5ad55e7 statements/alter.gram +740e9b43dde5af17cd1e793cd1b0193578df7d1939fbe441ec85744d8e7a5207 statements/alter.gram 4bd5c409bb84e7b0fa189de1cf73c145ace1498138d2bc0d7c5fdea470815fd0 statements/analyze.gram fb98930e1a251fec3a44a5443ab98ea02d9426fc96477aeb356654f2c55075fa statements/attach.gram cf752ee0bae6b4f2940d63d701b18a533549a6a5f623f3f68f9d3c2e08637e33 statements/call.gram 0758036168b998cd2020a3fa2b358a978cc40de4d6706e84c04793dbca0e78e2 statements/checkpoint.gram 6408b038796b3fd125e8bf205b508997b17fabb1542f2e4d11af54c2e2270ad6 statements/comment.gram -098c3b3262e6e7ea5a2a337f2ba9608cbb76c02b915e1a3f23ad89f6560101b9 statements/common.gram +2aad2a422fa514f39eeab210f7ef3c1b1bb798fe15c620b963dea647e4a88296 statements/common.gram 19b1c24e05dd0fd5795e2ae5c5495583a10f0f6c1f4afcbfe5e4abfb360c7aba statements/connect.gram be323c6f6b9ed544dcf0564bba7f14b56fa8158dce9bc0c5c1ca246a703ee4d4 statements/copy.gram -bbf148a4bd1f2b3d338966d97281f9c5e8ca581164972f11f2b92dd7f59c13a6 statements/create_index.gram +bc6ecbca6221011d0b51472eb0e85c9b69557eacaaa3c79154fa9978563447f7 statements/create_index.gram 831dbbe5fd612ddbd4aa448560acc290015080887917d8b2d2c1a38c9dffb3d7 statements/create_macro.gram 6f52aa63c7ea606817f8ed32b925f952fb38084de235161ebfc0601d75557494 statements/create_schema.gram d145c7659cbda441cd380b7cbdda88adf84307c18148aeed46dbefbc41c72ec5 statements/create_secret.gram @@ -39,23 +39,23 @@ b5bc5170347d26bff09e5b644ddd69b1f75d58611cf0de91161d1f9ec02be29c statements/cre 9ede97c886fa89f1c617914f88e3657192d34ae72bcf4803dee01e57cc2300c4 statements/create_view.gram c1aa087a0af8cd88dc8e7d638e8e1a08a8348cad98d8c58e859b27bcf247ab30 statements/deallocate.gram d82d170411ad444e768405279e56a50219e22dca69df846b8b7a021b49351bbd statements/delete.gram -c1242ea8a05cf628e152e189df9c94d866494e1b092553fcbb45142d0b3b92e7 statements/describe.gram +376176482397b9ae292f2de10e94127bbafd48cbbce1e76f30f73a4c7c8b4faf statements/describe.gram ec5f4bd0ba34ecfefbf09f2d637bfaec2f7b84311a639aeee589b997d72abba9 statements/detach.gram -b9e071a89874e169a80bc7a6b547841c7a868b189af773204a0d60644e08ad96 statements/drop.gram +ebf785af485915028c38ce0acb70d1a4351181e8885f174e8867f5b37db378a9 statements/drop.gram c39dbaed5de68045913b78bc15205885b2c36e3e9f37d9f37e1ac71aeb89b5b9 statements/execute.gram -306c0603ae5e1a72975f3739a238570038b8d5487a89997afde7101eafccc8e7 statements/explain.gram -507cca9d8af7c3a061e04a654ccda1671784c81a115418b3aff57f9157382b53 statements/export.gram -8105e1537dd51d3123b8dbb47c590751ccb1282ed160dff59d8c7848c16b48d0 statements/expression.gram -06592b807fbdfcd88c52abda051ea9ef44171f71e1f9b4a4c225aa03b0f4aa1f statements/external_resource.gram -5f0420aac8bd5e9b8fc8f62faf5d41ffdba52e1f17de916163bfe86214108956 statements/external_resource_source.gram +4b1870483c99e17d1afb3c3cfb31997f27cc0972dff0e40e89c610f799e430ff statements/explain.gram +4c34e6330647e87cf8ba4187c119caea286abf437ada18eb29add41b448a3a1a statements/export.gram +8c70a2123b67c0e1a482ae650a1c6f50417b54c7ff41c374c9a03590cf0e5e42 statements/expression.gram +d4fda1655faa814af2d7fdeb2fc02569be05b983b117717a41e3b9d6a0b65b56 statements/external_resource.gram +1c51760c06ceba0e2aba70516b4d9d2d12d1d0e290acd5f394cf2c22ec00d243 statements/external_resource_source.gram d40b438c674ba10792691b16ea370a81d28dea3b7fe330d6a4b6273bf635330d statements/insert.gram -70b7794dac3294c87fc01049e26a8d486824db959bfc689af63a1edf58ac9ade statements/load.gram +fc79b1c72cf44db3457ab4b5b2b857d41deac54aeb39d71cc34d2a143a15dc16 statements/load.gram de64fb79521407b537d4ab4f240b7bc5280e8bfb76d1cbfd56924d7a1e9d9601 statements/merge_into.gram ca8a8d1e4d6e5911b83037c2aaf234a2f2680fec08f67825b20fed35375b86d6 statements/pivot.gram 68ba82f61baed8fd57bb29043d025b2aaff86da0bfde49bee711f67e1f0ff8c3 statements/pragma.gram 4bc9403d48ba71b584648a42b5bb2d5ca7294a7f2be862fc7bbcfd48df6c0d59 statements/prepare.gram -894bae17476ec7811bc21a3f085d51ae17cb2dc17e4e3b66f5e3e4f743b9266d statements/select.gram -1d500aeb6bdd88fc8e434bb116dde8192c13c9e7354017e596dc2ef46424288a statements/set.gram +a46d50c92ddfd88883905f459adc9ce768db665c60d90b59414e7b04e6a4ad50 statements/select.gram +76ed134814f18bbcd2408e5b8ae2db6cda004852f00096491322630f0ea754d6 statements/set.gram 2de0cc72aeb00b6b6247348bd06db8e9a088cecb2c20516e678fe4261c909877 statements/transaction.gram eab0c287f27d034d33f81ddc8dfe92762c262369d6d1efe0d7ed6d94cee5da2e statements/update.gram 9c9f82bead64307f2c798bb6e812d2ae37434856e0ec7f0454ff21208f45aad9 statements/use.gram diff --git a/internal/grammar/duckdb/statements/alter.gram b/internal/grammar/duckdb/statements/alter.gram index e68a83dc..d9678782 100644 --- a/internal/grammar/duckdb/statements/alter.gram +++ b/internal/grammar/duckdb/statements/alter.gram @@ -45,7 +45,7 @@ AlterViewStmt <- 'VIEW' IfExists? BaseTableName RenameAlter AlterSequenceStmt <- 'SEQUENCE' IfExists? QualifiedSequenceName AlterSequenceOptions -QualifiedSequenceName <- CatalogQualification? SchemaQualification? SequenceName +QualifiedSequenceName <- CatalogQualification? SchemaQualification* SequenceName AlterSequenceOptions <- RenameAlterSequenceOptions / SetSequenceOption RenameAlterSequenceOptions <- RenameAlter diff --git a/internal/grammar/duckdb/statements/common.gram b/internal/grammar/duckdb/statements/common.gram index 2b8dae83..9d1af79c 100644 --- a/internal/grammar/duckdb/statements/common.gram +++ b/internal/grammar/duckdb/statements/common.gram @@ -57,6 +57,7 @@ FunctionName <- Identifier ReservedFunctionName <- Identifier ReservedTypeName <- Identifier TableFunctionName <- Identifier +ReservedTableFunctionName <- Identifier ConstraintName <- ColIdOrString SequenceName <- Identifier CollationName <- Identifier diff --git a/internal/grammar/duckdb/statements/create_index.gram b/internal/grammar/duckdb/statements/create_index.gram index 879b807d..6cb6ac15 100644 --- a/internal/grammar/duckdb/statements/create_index.gram +++ b/internal/grammar/duckdb/statements/create_index.gram @@ -1,4 +1,4 @@ -CreateIndexStmt <- UniqueIndex? 'INDEX' IfNotExists? IndexName? 'ON' BaseTableName IndexType? Parens(List(IndexElement)) WithList? WhereClause? +CreateIndexStmt <- UniqueIndex? 'INDEX' IndexConcurrently? IfNotExists? IndexName? 'ON' BaseTableName IndexType? Parens(List(IndexElement)) WithList? WhereClause? WithList <- 'WITH' RelOptionOrOids RelOptionOrOids <- RelOptionList / Oids @@ -9,6 +9,7 @@ WithOids <- 'WITH' WithoutOids <- 'WITHOUT' IndexElement <- Expression DescOrAsc? NullsFirstOrLast? UniqueIndex <- 'UNIQUE' +IndexConcurrently <- 'CONCURRENTLY' IndexType <- 'USING' Identifier RelOption <- RelOptionName RelOptionArgumentOpt? RelOptionName <- DottedColLabel / StringLiteral diff --git a/internal/grammar/duckdb/statements/describe.gram b/internal/grammar/duckdb/statements/describe.gram index fbf71f34..cc102731 100644 --- a/internal/grammar/duckdb/statements/describe.gram +++ b/internal/grammar/duckdb/statements/describe.gram @@ -1,4 +1,13 @@ -DescribeStatement <- ShowTables / ShowDeprecatedSelect / DescribeSelect / ShowAllTables / ShowByName / DescribeByName +DescribeStatement <- ShowExternalResourceTypes / ShowExternalResources / ShowTables / ShowDeprecatedSelect / DescribeSelect / ShowAllTables / ShowByName / DescribeByName + +# "SHOW [ALL] EXTERNAL RESOURCES" is a query over duckdb_external_resources, so it works as a subquery too. It and +# ShowExternalResourceTypes come first: "SHOW ALL" alone is ShowAllTables, and "SHOW " is ShowByName, and +# neither can be retried once matched. +ShowExternalResources <- ShowRule 'ALL'? 'EXTERNAL' 'RESOURCES' ShowExternalResourcesType? +# "WITH TYPE aws.s3tables.bucket" (or the type in quotes) restricts the listing (and the discovery) to one type. +ShowExternalResourcesType <- 'WITH' 'TYPE' ExternalResourceType +# "SHOW EXTERNAL RESOURCE TYPES" is a query over duckdb_external_resource_types, so it works as a subquery too. +ShowExternalResourceTypes <- ShowRule 'EXTERNAL' 'RESOURCE' 'TYPES' # "DESCRIBE (query)" and "SUMMARIZE (query)" describe the query's columns. "SHOW (query)" does too but is deprecated, # so ShowDeprecatedSelect is parsed yet suppressed from autocomplete (matcher_factory.cpp) - SHOW won't offer to complete a query. diff --git a/internal/grammar/duckdb/statements/drop.gram b/internal/grammar/duckdb/statements/drop.gram index 4445d439..52f92d97 100644 --- a/internal/grammar/duckdb/statements/drop.gram +++ b/internal/grammar/duckdb/statements/drop.gram @@ -22,7 +22,7 @@ DropIndex <- 'INDEX' IfExists? List(QualifiedIndexName) QualifiedIndexName <- CatalogReservedSchemaIndex / SchemaReservedIndex / QualifiedIndexNameString QualifiedIndexNameString <- IndexName SchemaReservedIndex <- SchemaQualification ReservedIndexName -CatalogReservedSchemaIndex <- CatalogQualification ReservedSchemaQualification ReservedIndexName +CatalogReservedSchemaIndex <- CatalogQualification ReservedSchemaQualification+ ReservedIndexName DropSequence <- 'SEQUENCE' IfExists? List(QualifiedSequenceName) DropCollation <- 'COLLATION' IfExists? List(CollationName) DropType <- 'TYPE' IfExists? List(QualifiedTypeName) diff --git a/internal/grammar/duckdb/statements/explain.gram b/internal/grammar/duckdb/statements/explain.gram index 72f232e4..3b5025b1 100644 --- a/internal/grammar/duckdb/statements/explain.gram +++ b/internal/grammar/duckdb/statements/explain.gram @@ -17,12 +17,15 @@ ExplainableStatements <- DropStatement / ExecuteStatement / InsertStatement / + InstallStatement / LoadStatement / MergeIntoStatement / PragmaStatement / PrepareStatement / ExplainSelectStatement / TransactionStatement / + TruncateStatement / + UpdateExtensionsStatement / UpdateStatement / VacuumStatement / SetStatement / diff --git a/internal/grammar/duckdb/statements/export.gram b/internal/grammar/duckdb/statements/export.gram index d6d5640b..e421c481 100644 --- a/internal/grammar/duckdb/statements/export.gram +++ b/internal/grammar/duckdb/statements/export.gram @@ -1,3 +1,4 @@ -ExportStatement <- 'EXPORT' 'DATABASE' ExportSource? StringLiteral GenericCopyOptionList? +ExportStatement <- 'EXPORT' 'DATABASE' ExportSource? StringLiteral ExportOptions? ExportSource <- CatalogName 'TO' +ExportOptions <- GenericCopyOptionList / SpecializedOptionList ImportStatement <- 'IMPORT' 'DATABASE' StringLiteral diff --git a/internal/grammar/duckdb/statements/expression.gram b/internal/grammar/duckdb/statements/expression.gram index abab034c..220efe60 100644 --- a/internal/grammar/duckdb/statements/expression.gram +++ b/internal/grammar/duckdb/statements/expression.gram @@ -151,11 +151,8 @@ SingleExpression <- DefaultExpression # LEVEL 1 (Lowest) -Expression <- LambdaArrowExpression +Expression <- LogicalOrExpression ColumnDefaultExpr <- ColDefOrExpr -# LEVEL 1.5 -LambdaArrowExpression <- LogicalOrExpression SingleArrowPair* -SingleArrowPair <- '->' LogicalOrExpression LogicalOrExpression <- LogicalAndExpression LogicalOrExpressionTail* LogicalOrExpressionTail <- 'OR' LogicalAndExpression ColDefOrExpr <- ColDefAndExpr ColDefOrExpressionTail* @@ -239,10 +236,19 @@ InSelectStatement <- Parens(SelectStatementInternal) BetweenClause <- 'BETWEEN' Asymmetric? OtherOperatorExpression 'AND' OtherOperatorExpression Asymmetric <- 'ASYMMETRIC' # LEVEL 8 -OtherOperatorExpression <- InfixOtherOperatorExpression / CustomPrefixExpression +OtherOperatorExpression <- InfixOtherOperatorExpression InfixOtherOperatorExpression <- BitwiseExpression OtherOperatorTail* -CustomPrefixExpression <- OperatorLiteral OtherOperatorExpression -OtherOperatorTail <- OtherOperator BitwiseExpression +OtherOperatorTail <- AnyAllSubqueryTail / OtherOperatorExpressionTail / SingleArrowTail +AnyAllSubqueryTail <- AnyAllParsedOperator SubqueryReference +OtherOperatorExpressionTail <- OtherOperator BitwiseExpression +# '->' is the lambda arrow or the JSON extract operator. Its operand extends as far as possible (the lambda body), +# unless another arrow follows directly: then the arrows chain to the left, like in PostgreSQL. +SingleArrowTail <- '->' SingleArrowBody +SingleArrowBody <- ArrowChainBody / ArrowFullBody +ArrowChainBody <- BitwiseExpression ArrowChainTail+ +ArrowChainTail <- DoubleArrowTail / SingleArrowTail +DoubleArrowTail <- '->>' BitwiseExpression +ArrowFullBody <- LogicalOrExpression OtherOperator <- AnyAllParsedOperator / NamedOtherOperator AnyAllParsedOperator <- AnyAllOperator @@ -279,11 +285,13 @@ CollateExpression <- AtTimeZoneExpression CollateExpressionTail* CollateExpressionTail <- CollateOperator AtTimeZoneExpression CollateOperator <- 'COLLATE' # LEVEL 14 -AtTimeZoneExpression <- PrefixExpression AtTimeZoneExpressionTail* -AtTimeZoneExpressionTail <- AtTimeZoneOperator PrefixExpression +AtTimeZoneExpression <- UnaryExpression AtTimeZoneExpressionTail* +AtTimeZoneExpressionTail <- AtTimeZoneOperator UnaryExpression AtTimeZoneOperator <- 'AT' 'TIME' 'ZONE' # LEVEL 15 +UnaryExpression <- PrefixExpression / CustomPrefixExpression PrefixExpression <- PrefixOperator* BaseExpression +CustomPrefixExpression <- OperatorLiteral TildeExpression PrefixOperator <- QualifiedOperator / MinusPrefixOperator / PlusPrefixOperator MinusPrefixOperator <- '-' PlusPrefixOperator <- '+' diff --git a/internal/grammar/duckdb/statements/external_resource.gram b/internal/grammar/duckdb/statements/external_resource.gram index e1359d04..16f2d830 100644 --- a/internal/grammar/duckdb/statements/external_resource.gram +++ b/internal/grammar/duckdb/statements/external_resource.gram @@ -1,16 +1,23 @@ # Every statement about external resources, so the top-level Statement choice carries one entry -# rather than one per form. -ExternalResourceStatement <- CreateExternalResourceStmt / RegisterExternalResourceStmt / DestroyExternalResourceStmt / ShowExternalResourcesStmt / AttachToExternalResource / ConnectToExternalResource +# rather than one per form. SHOW [ALL] EXTERNAL RESOURCES is a query (describe.gram), so it can be a subquery. +ExternalResourceStatement <- CreateExternalResourceStmt / RegisterExternalResourceStmt / DestroyExternalResourceStmt / AttachToExternalResource / ConnectToExternalResource -CreateExternalResourceStmt <- 'CREATE' ExternalResourceKeyword StringLiteral AttachAlias? ExternalResourceCreationOptions? -RegisterExternalResourceStmt <- 'REGISTER' ExternalResourceKeyword StringLiteral AttachAlias? 'FROM' Expression +CreateExternalResourceStmt <- 'CREATE' ExternalResourceKeyword ExternalResourceType AttachAlias? ExternalResourceCreationOptions? +RegisterExternalResourceStmt <- 'REGISTER' ExternalResourceKeyword ExternalResourceType AttachAlias? 'FROM' Expression DestroyExternalResourceStmt <- 'DESTROY' ExternalResourceKeyword ColId -ShowExternalResourcesStmt <- 'SHOW' ShowAllModifier? 'EXTERNAL' 'RESOURCES' -ShowAllModifier <- 'ALL' -# Syntax only: the keyword pair every singular form repeats. The plural in SHOW cannot share it. +# Syntax only: the keyword pair every singular form repeats. ExternalResourceKeyword <- 'EXTERNAL' 'RESOURCE' +# The type of a resource, as the provider registered it: aws.s3tables.bucket. In quotes it is taken as written; spelled +# bare it is folded to lowercase (TransformExternalResourceTypeName). A type with other characters in it, or one +# spelled with spaces around the dots, goes in quotes. +ExternalResourceType <- StringLiteral / ExternalResourceTypeName +ExternalResourceTypeName <- BareName +# A name spelled without quotes: a dotted name (DottedName, load.gram: labels separated by single dots, nothing in +# between) or a plain word +BareName <- DottedName / ColId + # The recipe's create params. Its own rule rather than AttachOptions: the two option bags are # distinct, and a statement can carry both. ExternalResourceCreationOptions <- GenericCopyOptionList diff --git a/internal/grammar/duckdb/statements/external_resource_source.gram b/internal/grammar/duckdb/statements/external_resource_source.gram index 529e40b0..1a426387 100644 --- a/internal/grammar/duckdb/statements/external_resource_source.gram +++ b/internal/grammar/duckdb/statements/external_resource_source.gram @@ -6,5 +6,5 @@ AttachToExternalResource <- 'ATTACH' 'TO' ExternalResourceSource AttachAlias AttachOptions? ConnectToExternalResource <- 'CONNECT' 'TO' ExternalResourceSource AttachOptions? ExternalResourceSource <- ExternalResourceCreateClause / ExternalResourceReferenceClause -ExternalResourceCreateClause <- 'NEW' 'TEMPORARY' ExternalResourceKeyword StringLiteral ExternalResourceCreationOptions? +ExternalResourceCreateClause <- 'NEW' 'TEMPORARY' ExternalResourceKeyword ExternalResourceType ExternalResourceCreationOptions? ExternalResourceReferenceClause <- ExternalResourceKeyword ColId diff --git a/internal/grammar/duckdb/statements/load.gram b/internal/grammar/duckdb/statements/load.gram index b91565e8..2a285164 100644 --- a/internal/grammar/duckdb/statements/load.gram +++ b/internal/grammar/duckdb/statements/load.gram @@ -4,12 +4,26 @@ InstallStatement <- 'FORCE'? 'INSTALL' InstallAndLoad? IdentifierOrStringLiteral InstallAndLoad <- 'AND' 'LOAD' UpdateExtensionsStatement <- 'UPDATE' 'EXTENSIONS' Parens(List(Identifier))? FromSource <- FromSourceIdentifier / FromSourceString -FromSourceIdentifier <- 'FROM' Identifier +FromSourceIdentifier <- 'FROM' FromSourceName FromSourceString <- 'FROM' StringLiteral +# a repository may be named by a dotted name: INSTALL x FROM carlopi.github.io +FromSourceName <- DottedName / Identifier VersionNumber <- 'VERSION' IdentifierOrStringLiteral -ExtensionRepositoryStatement <- CreateExtensionRepositoryStmt / DropExtensionRepositoryStmt -CreateExtensionRepositoryStmt <- 'CREATE' OrReplace? 'EXTENSION' 'REPOSITORY' IfNotExists? ColIdOrString RepositoryPrefix RepositoryPublicKey? +ExtensionRepositoryStatement <- CreateExtensionRepositoryStmt / CreateExtensionRepositoryFromHostStmt / DropExtensionRepositoryStmt +CreateExtensionRepositoryStmt <- 'CREATE' OrReplace? 'EXTENSION' 'REPOSITORY' IfNotExists? ExtensionRepositoryName RepositoryPrefix RepositoryPublicKey? RepositoryPrefix <- 'WITH'? 'PREFIX' StringLiteral RepositoryPublicKey <- 'USING'? 'PUBLIC' ('KEYS' / 'KEY') List(StringLiteral) -DropExtensionRepositoryStmt <- 'DROP' 'EXTENSION' 'REPOSITORY' IfExists? ColIdOrString +# "CREATE EXTENSION REPOSITORY carlopi.github.io": without a prefix the name is the host of the publisher, and the host +# says where its repository is: https:///.well-known/duckdb-extension-repo.json names the prefix (and may carry +# the signing keys). The rest is CREATE EXTENSION REPOSITORY WITH PREFIX . +CreateExtensionRepositoryFromHostStmt <- 'CREATE' OrReplace? 'EXTENSION' 'REPOSITORY' IfNotExists? ExtensionRepositoryName +DropExtensionRepositoryStmt <- 'DROP' 'EXTENSION' 'REPOSITORY' IfExists? ExtensionRepositoryName +# A repository name: an identifier or a string, or a dotted name spelled without quotes +ExtensionRepositoryName <- DottedName / ColIdOrString +# A dotted name spelled without quotes: carlopi.github.io, my-website.com. Matched by DottedNameMatcher, which glues the +# words, dots and dashes the tokenizer cut it into, as long as nothing separates them (no whitespace or comment in +# between): labels of words joined by single dashes, separated by single dots. Two dashes in a row start a comment for +# the tokenizer, so 'xn--bcher-kva.example' cannot be spelled unquoted (it reads as 'xn'); quoted parts ("my-site".com) +# are not a dotted name either: a name with such parts goes in quotes as a whole +DottedName <- <[a-z0-9_]i+('-'[a-z0-9_]i+)*('.'[a-z0-9_]i+('-'[a-z0-9_]i+)*)+> diff --git a/internal/grammar/duckdb/statements/select.gram b/internal/grammar/duckdb/statements/select.gram index ce19e3f4..146ad226 100644 --- a/internal/grammar/duckdb/statements/select.gram +++ b/internal/grammar/duckdb/statements/select.gram @@ -55,7 +55,9 @@ TableSubquery <- TableAliasColon? Lateral? SubqueryReference TableAlias? SampleC BaseTableRef <- TableAliasColon? BaseTableName TableAlias? AtClause? SampleClause? TableAliasColon <- ColIdOrString ':' ValuesRef <- TableAliasColon? ValuesClause TableAlias? SampleClause? -ParensTableRef <- TableAliasColon? Parens(TableRef) TableAlias? SampleClause? +ParensTableRef <- TableAliasColon? Parens(JoinedTableRef) TableAlias? SampleClause? +JoinedTableRef <- JoinedTableRefChain / ParensTableRef +JoinedTableRefChain <- InnerTableRef JoinOrPivot+ JoinOrPivot <- JoinClause / TablePivotClause / TableUnpivotClause @@ -86,7 +88,10 @@ TableFunction <- TableFunctionLateralOpt / TableFunctionAliasColon TableFunctionLateralOpt <- Lateral? QualifiedTableFunction TableFunctionArguments WithOrdinality? TableAlias? SampleClause? TableFunctionAliasColon <- TableAliasColon QualifiedTableFunction TableFunctionArguments WithOrdinality? SampleClause? WithOrdinality <- 'WITH' 'ORDINALITY' -QualifiedTableFunction <- CatalogQualification? SchemaQualification* TableFunctionName +QualifiedTableFunction <- CatalogReservedSchemaTableFunctionName / TableFunctionNameAsQualifiedName +# after a qualification a reserved keyword can name a table function, as in g.describe('a') +CatalogReservedSchemaTableFunctionName <- CatalogQualification SchemaQualification* ReservedTableFunctionName +TableFunctionNameAsQualifiedName <- TableFunctionName TableFunctionArguments <- Parens(List(FunctionArgument)?) FunctionArgument <- NamedFunctionArgument / PositionalFunctionArgument NamedFunctionArgument <- TypeFuncName NamedParameterAssignment Expression @@ -116,7 +121,7 @@ NearestValuesRef <- ValuesClause NearestTableFunction <- Lateral? QualifiedTableFunction TableFunctionArguments WithOrdinality? NearestTableSubquery <- Lateral? SubqueryReference NearestBaseTableRef <- BaseTableName AtClause? SampleClause? -NearestParensTableRef <- Parens(TableRef) SampleClause? +NearestParensTableRef <- Parens(JoinedTableRef) SampleClause? ApproxOrExact <- NearestApprox / NearestExact NearestApprox <- 'APPROX' NearestExact <- 'EXACT' diff --git a/internal/grammar/duckdb/statements/set.gram b/internal/grammar/duckdb/statements/set.gram index a5d302a8..c067bede 100644 --- a/internal/grammar/duckdb/statements/set.gram +++ b/internal/grammar/duckdb/statements/set.gram @@ -1,11 +1,14 @@ SetStatement <- 'SET' SetAssignmentOrTimeZone SetAssignmentOrTimeZone <- SetSchema / StandardAssignment / SetTimeZone -ResetStatement <- 'RESET' SetVariableOrSetting -SetSchema <- 'SCHEMA' StringLiteral +ResetStatement <- 'RESET' ResetTarget +ResetTarget <- ResetTimeZone / ResetVariableOrSetting +ResetTimeZone <- SettingScope? 'TIME' 'ZONE' +ResetVariableOrSetting <- SetVariableOrSetting +SetSchema <- SettingScope? 'SCHEMA' StringLiteral StandardAssignment <- SetVariableOrSetting SetAssignment SetVariableOrSetting <- SetVariable / SetSetting -SetTimeZone <- 'TIME' 'ZONE' ZoneValue +SetTimeZone <- SettingScope? 'TIME' 'ZONE' ZoneValue ZoneValue <- ZoneIntervalWithPrecision / ZoneIntervalWithInterval / ZoneLocal / ZoneDefault / ZoneStringLiteral / ZoneIdentifier / NumberLiteral ZoneLocal <- 'LOCAL' diff --git a/internal/matcher/factory.go b/internal/matcher/factory.go index 3618daad..a8ab7342 100644 --- a/internal/matcher/factory.go +++ b/internal/matcher/factory.go @@ -216,6 +216,7 @@ func (f *factory) createExpression(ruleName string, expr *grammar.Expression, pa var packratMemoizedRules = []string{ "Expression", "TableRef", + "ParensTableRef", "Identifier", "ColId", "CatalogQualification", @@ -251,12 +252,14 @@ func (f *factory) installOverrides() { f.addRuleOverride("ReservedFunctionName", reserved(false, "SCALAR_FUNCTION_NAME")) f.addRuleOverride("ReservedKeyword", reserved(false, "VARIABLE")) f.addRuleOverride("TableFunctionName", ident(classTypeFunc, false, "TABLE_FUNCTION_NAME")) + f.addRuleOverride("ReservedTableFunctionName", reserved(false, "TABLE_FUNCTION_NAME")) f.addRuleOverride("TypeName", ident(classTypeName, false, "TYPE_NAME")) f.addRuleOverride("ReservedTypeName", reserved(false, "TYPE_NAME")) f.addRuleOverride("PragmaName", ident(classColumnName, false, "PRAGMA_NAME")) f.addRuleOverride("SettingName", ident(classColumnName, false, "SETTING_NAME")) f.addRuleOverride("CopyOptionName", reserved(false, "VARIABLE")) f.addRuleOverride("NumberLiteral", &numberLiteralMatcher{matcherMeta: matcherMeta{name: "NumberLiteral"}}) + f.addRuleOverride("DottedName", &dottedNameMatcher{matcherMeta: matcherMeta{name: "DottedName"}}) f.addRuleOverride("StringLiteral", &stringLiteralMatcher{matcherMeta: matcherMeta{name: "StringLiteral"}}) f.addRuleOverride("OperatorLiteral", &operatorMatcher{}) f.addRuleOverride("AnyOperatorLiteral", &operatorMatcher{allOperators: true}) @@ -274,8 +277,8 @@ func OverrideRuleNames() []string { "ReservedSchemaName", "TableName", "ReservedTableName", "ColumnName", "ReservedColumnName", "IndexName", "ReservedIndexName", "SequenceName", "FunctionName", "ReservedFunctionName", "ReservedKeyword", - "TableFunctionName", "TypeName", "ReservedTypeName", "PragmaName", - "SettingName", "CopyOptionName", "NumberLiteral", "StringLiteral", + "TableFunctionName", "ReservedTableFunctionName", "TypeName", "ReservedTypeName", "PragmaName", + "SettingName", "CopyOptionName", "NumberLiteral", "DottedName", "StringLiteral", "OperatorLiteral", "AnyOperatorLiteral", "EndOfInput", } } diff --git a/internal/matcher/special.go b/internal/matcher/special.go index f2a668b1..9552a621 100644 --- a/internal/matcher/special.go +++ b/internal/matcher/special.go @@ -423,3 +423,101 @@ func (m *operatorMatcher) matchInternal(s *state) ParseResult { func (m *operatorMatcher) String() string { return "OPERATOR" } + +// dottedNameMatcher matches a dotted name spelled without quotes +// ('carlopi.github.io', 'my-website.com'). The lexer cuts such a name into +// words, '.' and '-' tokens; this matcher glues them back together as long +// as they touch (no whitespace or comment in between) and the result is a +// dotted name (isDottedName). Port of DottedNameMatcher. +type dottedNameMatcher struct { + matcherMeta +} + +// isDottedNamePart reports whether a token can be part of an unquoted +// dotted name: a plain word or number, or a lone '.' or '-' +// (DottedNameMatcher::IsNamePart). +func isDottedNamePart(tok *token.Token) bool { + if tok.Text == "" { + return false + } + switch tok.Kind { + case token.Keyword, token.Identifier, token.Number: + return true + case token.Operator: + return tok.Text == "." || tok.Text == "-" + default: + return false + } +} + +// isDottedName is DottedNameMatcher::IsDottedName: two or more labels +// separated by single dots, each label one or more words joined by single +// dashes, each word one or more letters, digits or '_' (bytes outside ASCII +// count as letters). +func isDottedName(text string) bool { + labels := 0 + wordLen := 0 + for i := 0; i <= len(text); i++ { + c := byte('.') + if i < len(text) { + c = text[i] + } + if c == '.' || c == '-' { + // a separator ends a word, which must not be empty + if wordLen == 0 { + return false + } + wordLen = 0 + if c == '.' { + labels++ + } + continue + } + isAlpha := (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') + isDigit := c >= '0' && c <= '9' + if !isAlpha && !isDigit && c != '_' && c < 0x80 { + return false + } + wordLen++ + } + return labels >= 2 +} + +func (m *dottedNameMatcher) matchInternal(s *state) ParseResult { + tok := s.current() + if tok == nil { + return nil + } + start := tok.Span.Start + end := start + count := 0 + var sb strings.Builder + for { + next := s.current() + if next == nil || next.Span.Start != end || !isDottedNamePart(next) { + break + } + sb.WriteString(next.Text) + end = next.Span.Start + len(next.Text) + s.pos++ + count++ + } + text := sb.String() + if count == 0 || !isDottedName(text) { + s.pos -= count + return nil + } + if s.pos > s.max { + s.max = s.pos + } + // identifier case folding is not ported (see identifierMatcher) + ir := &IdentifierResult{Identifier: text} + ir.name = m.name + ir.offset, ir.hasOffset = start, true + ir.length, ir.hasLength = end-start, true + return ir +} + +func (m *dottedNameMatcher) String() string { + return "DOTTED_NAME" +} diff --git a/lexer/lexer.go b/lexer/lexer.go index 22d4fd58..ac7671a1 100644 --- a/lexer/lexer.go +++ b/lexer/lexer.go @@ -464,11 +464,18 @@ func (l *lexer) run() error { lastPos = i + 1 break } - if charIsInitialNumber(c) { + // '.' starts a number only as a leading decimal (.5); otherwise + // it is the qualifier (t.a, t.*) and is its own token + if charIsInitialNumber(c) && (c != '.' || (i+1 < n && charIsDigit(sql[i+1]))) { state = stateNumeric lastPos = i break } + if c == '.' { + l.push(token.Operator, ".", lastPos) + lastPos = i + 1 + break + } if charIsSpecialStringPrefix(c) { // look ahead to see if a quote follows if i+1 < n && sql[i+1] == '\'' { diff --git a/lexer/lexer_test.go b/lexer/lexer_test.go index a316a623..4dbfd7dc 100644 --- a/lexer/lexer_test.go +++ b/lexer/lexer_test.go @@ -217,11 +217,27 @@ func TestNumbers(t *testing.T) { {token.Operator, "+", 1}, {token.Number, "5", 2}, }) - // ".e100" is not a number: no digit before the marker + // ".e100" is not a number: '.' starts a number only before a digit + // (since v2.0.1; it is otherwise its own operator token) check(t, ".e100", []tok{ - {token.Number, ".", 0}, + {token.Operator, ".", 0}, {token.Identifier, "e100", 1}, }) + // the qualifier dot is an operator token, not a number + check(t, "t.a", []tok{ + {token.Identifier, "t", 0}, + {token.Operator, ".", 1}, + {token.Identifier, "a", 2}, + }) + check(t, "t.*", []tok{ + {token.Identifier, "t", 0}, + {token.Operator, ".", 1}, + {token.Operator, "*", 2}, + }) + check(t, "x.5", []tok{ + {token.Identifier, "x", 0}, + {token.Number, ".5", 1}, + }) } func TestOperators(t *testing.T) { diff --git a/parser/expr_v2_test.go b/parser/expr_v2_test.go index d65107f9..56f8b23c 100644 --- a/parser/expr_v2_test.go +++ b/parser/expr_v2_test.go @@ -44,7 +44,7 @@ func TestV2QueryErrors(t *testing.T) { {"SELECT * FROM LATERAL range(3) TABLESAMPLE 10%", "TABLESAMPLE cannot be applied to a LATERAL table function"}, {"PIVOT t", "PIVOT requires an ON, USING or GROUP BY clause"}, {"PIVOT t ON a IN (x.y)", "PIVOT IN list cannot contain qualified column references"}, - {"SELECT * EXCLUDE (i) REPLACE (i+100 AS i) FROM integers", `Column ""i"" cannot occur in both EXCLUDE and REPLACE list`}, + {"SELECT * EXCLUDE (i) REPLACE (i+100 AS i) FROM integers", `Column "i" cannot occur in both EXCLUDE and REPLACE list`}, {"SELECT * EXCLUDE (a.b.c.d.e) FROM t", "Expected at most 4 entries (catalog.schema.table.column), but found 5 entries (input: a.b.c.d.e)"}, {"SUMMARIZE", "Expected table name with SUMMARIZE"}, {"SHOW ''", "Expected a table name, but got an empty string"}, diff --git a/parser/misc_test.go b/parser/misc_test.go index 9b737cca..a0c91ebc 100644 --- a/parser/misc_test.go +++ b/parser/misc_test.go @@ -106,8 +106,10 @@ func TestCallUseCheckpointShapes(t *testing.T) { if use.Catalog != "db" || use.Name != "main" { t.Errorf("qualified use = %+v", use) } - if msg := parseErr(t, "USE a.b.c"); !strings.Contains(msg, "USE database") { - t.Errorf("three-part USE error = %q", msg) + // since v2.0.1 a deeper target names a nested schema + use = parseAs[*ast.UseStatement](t, "USE a.b.c") + if use.Catalog != "a" || use.Name != "c" || !reflect.DeepEqual(use.Path, []string{"a", "b", "c"}) { + t.Errorf("nested use = %+v", use) } cp := parseAs[*ast.CheckpointStatement](t, "FORCE CHECKPOINT db") if !cp.Force || cp.Catalog != "db" { @@ -291,9 +293,56 @@ func TestExtensionStatementShapes(t *testing.T) { if er.Operation != ast.ExternalResourceCreate || er.Type != "gpu" || er.Name != "g" || len(er.Options) != 1 { t.Errorf("create external resource = %+v", er) } - er = parseAs[*ast.ExternalResourceStatement](t, "SHOW ALL EXTERNAL RESOURCES") - if er.Operation != ast.ExternalResourceShow || !er.All { - t.Errorf("show external resources = %+v", er) + er = parseAs[*ast.ExternalResourceStatement](t, "CREATE EXTERNAL RESOURCE AWS.S3Tables.Bucket AS b") + if er.Type != "aws.s3tables.bucket" || er.Name != "b" { + t.Errorf("create external resource with a bare dotted type = %+v", er) + } + l = parseAs[*ast.LoadStatement](t, "INSTALL x FROM carlopi.github.io") + if l.Kind != ast.LoadTypeInstall || !l.RepoIsAlias || l.Repository != "carlopi.github.io" { + t.Errorf("install from a dotted repository name = %+v", l) + } + l = parseAs[*ast.LoadStatement](t, "CREATE EXTENSION REPOSITORY my-site.example.com") + if l.Kind != ast.LoadTypeCreateRepository || l.Repository != "my-site.example.com" || l.RepositoryURL != "" { + t.Errorf("create extension repository from host = %+v", l) + } +} + +// TestShowExternalResources pins v2.0.1's desugaring of SHOW [ALL] +// EXTERNAL RESOURCES [WITH TYPE t] and SHOW EXTERNAL RESOURCE TYPES into +// queries over the duckdb_external_resources table functions. +func TestShowExternalResources(t *testing.T) { + cases := []struct { + sql, fn string + args []string + }{ + {"SHOW EXTERNAL RESOURCES", "duckdb_external_resources", nil}, + {"SHOW ALL EXTERNAL RESOURCES WITH TYPE Aws.Bucket", "duckdb_external_resources", []string{"discover", "type"}}, + {"SHOW EXTERNAL RESOURCES WITH TYPE 'Quack@Local'", "duckdb_external_resources", []string{"type"}}, + {"SHOW EXTERNAL RESOURCE TYPES", "duckdb_external_resource_types", nil}, + } + for _, c := range cases { + sel := parseAs[*ast.SelectStatement](t, c.sql) + node, ok := sel.Node.(*ast.SelectNode) + if !ok { + t.Fatalf("%s: node = %T", c.sql, sel.Node) + } + ref, ok := node.FromTable.(*ast.TableFunctionRef) + if !ok { + t.Fatalf("%s: from = %T", c.sql, node.FromTable) + } + fn := ref.Function.(*ast.FunctionExpression) + var names []string + for _, a := range fn.Arguments { + names = append(names, a.Name) + } + if fn.FunctionName != c.fn || !reflect.DeepEqual(names, c.args) { + t.Errorf("%s: %s(%v)", c.sql, fn.FunctionName, names) + } + } + sel := parseAs[*ast.SelectStatement](t, "SHOW EXTERNAL RESOURCES WITH TYPE Aws.Bucket") + fn := sel.Node.(*ast.SelectNode).FromTable.(*ast.TableFunctionRef).Function.(*ast.FunctionExpression) + if v := fn.Arguments[0].Expr.(*ast.ConstantExpression).Value; v.Str != "aws.bucket" { + t.Errorf("bare type is folded to lowercase: %+v", v) } } diff --git a/parser/stmt_v2_test.go b/parser/stmt_v2_test.go index a8d345ea..219c7dc5 100644 --- a/parser/stmt_v2_test.go +++ b/parser/stmt_v2_test.go @@ -86,7 +86,6 @@ func TestStatementErrorsV2(t *testing.T) { // transform_describe.cpp {"SUMMARIZE", "Expected table name with SUMMARIZE"}, {"SHOW ''", "Expected a table name, but got an empty string"}, - {"SHOW TABLES FROM a.b.c", `Expected "SHOW TABLES FROM database", "SHOW TABLES FROM schema", or "SHOW TABLES FROM database.schema"`}, // TransformMacroDefinition (Identifier formatting is quoted) {"CREATE MACRO m(a, A) AS a", `Duplicate parameter "A" in macro definition`}, } diff --git a/parser/transform_copy.go b/parser/transform_copy.go index fde9ba7a..fe3c4042 100644 --- a/parser/transform_copy.go +++ b/parser/transform_copy.go @@ -184,18 +184,22 @@ func (tc *transformContext) transformCopyOptions(n tnode) []ast.GenericOption { } return out case "SpecializedOptionList": - // SpecializedOption SpecializedOptionTail* - out := []ast.GenericOption{tc.transformSpecializedOption(alt.child(0))} - for _, tail := range alt.child(1).repeat() { - // SpecializedOptionTail <- ','? SpecializedOption - out = append(out, tc.transformSpecializedOption(tail.child(1))) - } - return out + return tc.transformSpecializedOptionList(alt) } shapeError(alt, "unknown copy option list") return nil } +// SpecializedOptionList <- SpecializedOption SpecializedOptionTail* +func (tc *transformContext) transformSpecializedOptionList(n tnode) []ast.GenericOption { + out := []ast.GenericOption{tc.transformSpecializedOption(n.child(0))} + for _, tail := range n.child(1).repeat() { + // SpecializedOptionTail <- ','? SpecializedOption + out = append(out, tc.transformSpecializedOption(tail.child(1))) + } + return out +} + // CopyGenericOption <- OrderByCopyOption / PartitionedByCopyOption / GenericCopyOption func (tc *transformContext) transformCopyGenericOption(n tnode) ast.GenericOption { _, alt := n.sole().choice() diff --git a/parser/transform_ddl.go b/parser/transform_ddl.go index 84844354..28bf6a9c 100644 --- a/parser/transform_ddl.go +++ b/parser/transform_ddl.go @@ -467,7 +467,8 @@ func (tc *transformContext) transformForeignKey(n tnode, columns []string) *ast. c.SetSpan(n.span()) ref := &ast.BaseTableRef{} tc.fillBaseTableName(ref, n.child(1)) - c.Table = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName} + // the full (possibly nested) path is kept (referenced_table upstream) + c.Table = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Qualification: ref.Qualification, Name: ref.TableName} if cols, ok := n.child(2).opt(); ok { c.ReferencedColumns = identifierList(cols.parens().sole()) } @@ -643,8 +644,8 @@ func (tc *transformContext) transformCreateView(n tnode) ast.CreateInfo { return info } -// CreateIndexStmt <- UniqueIndex? 'INDEX' IfNotExists? IndexName? 'ON' -// BaseTableName IndexType? Parens(List(IndexElement)) WithList? +// CreateIndexStmt <- UniqueIndex? 'INDEX' IndexConcurrently? IfNotExists? +// IndexName? 'ON' BaseTableName IndexType? Parens(List(IndexElement)) WithList? // WhereClause? // Without a USING clause, unqualified column elements are qualified with // the table name (TransformCreateIndexStmt). @@ -654,18 +655,20 @@ func (tc *transformContext) transformCreateIndex(n tnode) ast.CreateInfo { if _, ok := n.child(0).opt(); ok { info.Unique = true } - applyIfNotExists(&info.CreateInfoBase, n.child(2)) - if name, ok := n.child(3).opt(); ok { + // IndexConcurrently <- 'CONCURRENTLY': accepted and ignored upstream + info.Concurrently = optMatched(n.child(2)) + applyIfNotExists(&info.CreateInfoBase, n.child(3)) + if name, ok := n.child(4).opt(); ok { info.Name = identifierText(name) } ref := &ast.BaseTableRef{} - tc.fillBaseTableName(ref, n.child(5)) + tc.fillBaseTableName(ref, n.child(6)) info.Table = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName} - idxType, hasIndexType := n.child(6).opt() + idxType, hasIndexType := n.child(7).opt() if hasIndexType { info.IndexType = identifierText(idxType.child(1)) } - for _, e := range n.child(7).parens().listElems() { + for _, e := range n.child(8).parens().listElems() { // IndexElement <- Expression DescOrAsc? NullsFirstOrLast? expr := tc.transformExpression(e.child(0)) if col, ok := expr.(*ast.ColumnRefExpression); ok && !hasIndexType && len(col.ColumnNames) == 1 { @@ -679,10 +682,10 @@ func (tc *transformContext) transformCreateIndex(n tnode) ast.CreateInfo { NullOrder: nullOrderOf(e.child(2)), }) } - if wl, ok := n.child(8).opt(); ok { + if wl, ok := n.child(9).opt(); ok { info.Options = tc.transformWithList(wl) } - if wc, ok := n.child(9).opt(); ok { + if wc, ok := n.child(10).opt(); ok { info.Where = tc.transformExpression(wc.child(1)) } return info @@ -1104,19 +1107,18 @@ func optMatched(n tnode) bool { } func (tc *transformContext) qualifiedSequenceName(n tnode) ast.QualifiedName { - // QualifiedSequenceName <- CatalogQualification? SchemaQualification? SequenceName - q := ast.QualifiedName{} + // QualifiedSequenceName <- CatalogQualification? SchemaQualification* SequenceName + // The grammar greedily fills the catalog qualifier first; upstream + // stores the qualifiers as a plain schema path, so a lone qualifier + // is the schema. + var quals []string if cq, ok := n.child(0).opt(); ok { - q.Catalog = identifierText(cq.child(0)) - } - if sq, ok := n.child(1).opt(); ok { - q.Schema = identifierText(sq.child(0)) + quals = append(quals, identifierText(cq.child(0))) } - if q.Catalog != "" && q.Schema == "" { - q.Catalog, q.Schema = "", q.Catalog + for _, sq := range n.child(1).repeat() { + quals = append(quals, identifierText(sq.child(0))) } - q.Name = identifierText(n.child(2)) - return q + return qualifiedNameOf(quals, identifierText(n.child(2))) } // transformRenameAlter maps RenameAlter ('RENAME' 'TO' ColIdOrString). @@ -1494,14 +1496,8 @@ func (tc *transformContext) transformDrop(n tnode) ast.Stmt { // three-part name: like QualifiedName, the schema is the component // before the name and the catalog leads a path of three or more. func qualifiedTableFunctionName(n tnode) ast.QualifiedName { - var path []string - if cq, ok := n.child(0).opt(); ok { - path = append(path, identifierText(cq.child(0))) - } - for _, sq := range n.child(1).repeat() { - path = append(path, identifierText(sq.child(0))) - } - q := ast.QualifiedName{Name: identifierText(n.child(2))} + path, name := qualifiedTableFunctionParts(n) + q := ast.QualifiedName{Name: identifierText(name)} if len(path) >= 1 { q.Schema = path[len(path)-1] } @@ -1516,11 +1512,12 @@ func (tc *transformContext) qualifiedIndexName(n tnode) ast.QualifiedName { _, alt := n.sole().choice() switch alt.name() { case "CatalogReservedSchemaIndex": - return ast.QualifiedName{ - Catalog: identifierText(alt.child(0).child(0)), - Schema: identifierText(alt.child(1).child(0)), - Name: identifierText(alt.child(2)), + // CatalogQualification ReservedSchemaQualification+ ReservedIndexName + quals := []string{identifierText(alt.child(0).child(0))} + for _, sq := range alt.child(1).repeat() { + quals = append(quals, identifierText(sq.child(0))) } + return qualifiedNameOf(quals, identifierText(alt.child(2))) case "SchemaReservedIndex": return ast.QualifiedName{ Schema: identifierText(alt.child(0).child(0)), diff --git a/parser/transform_depth.go b/parser/transform_depth.go index a7e928a7..f286e3dd 100644 --- a/parser/transform_depth.go +++ b/parser/transform_depth.go @@ -25,13 +25,15 @@ var expressionDepthRules = map[string]depthKind{ "SingleExpression": depthNesting, "Type": depthNesting, "NestedType": depthNesting, - "LambdaArrowExpression": depthChain, + "SubqueryReference": depthNesting, + "CustomPrefixExpression": depthNesting, "NotExpression": depthChain, "IsExpressionContinuation": depthChain, "IsDistinctFromExpression": depthChain, "ComparisonExpression": depthChain, "BetweenInLikeExpression": depthChain, "InfixOtherOperatorExpression": depthChain, + "ArrowChainBody": depthChain, "BitwiseExpression": depthChain, "TildeExpression": depthChain, "AdditiveExpression": depthChain, diff --git a/parser/transform_expr.go b/parser/transform_expr.go index 5123c77b..c657bc62 100644 --- a/parser/transform_expr.go +++ b/parser/transform_expr.go @@ -133,7 +133,7 @@ func point(sp ast.Span) ast.Span { return ast.Span{Start: sp.Start, End: sp.Star // transformExpression transforms an Expression node (or any node whose // sole child chain reaches the ladder). func (tc *transformContext) transformExpression(n tnode) ast.Expr { - return tc.transformLambdaArrow(n.sole()) + return tc.transformLogicalOr(n.sole()) } // transformExpressionList unwraps List(Expression). @@ -148,25 +148,6 @@ func (tc *transformContext) transformExpressionList(n tnode) []ast.Expr { // ---- the precedence ladder -------------------------------------------- -// LambdaArrowExpression <- LogicalOrExpression SingleArrowPair* -// Left-associative like upstream: x -> y -> z is LAMBDA(LAMBDA(x, y), z); -// only the outermost node carries a location. -func (tc *transformContext) transformLambdaArrow(n tnode) ast.Expr { - result := tc.transformLogicalOr(n.child(0)) - tails := n.child(1).repeat() - for i, t := range tails { - rhs := tc.transformLogicalOr(t.child(1)) - l := &ast.LambdaExpression{LHS: result, Expr: rhs, SyntaxType: ast.LambdaSingleArrow} - if i == len(tails)-1 { - l.SetSpan(ast.Span{Start: n.span().Start, End: t.span().End}) - } else { - l.SetSpan(invalidSpan) - } - result = l - } - return result -} - // LogicalOrExpression / LogicalAndExpression fold into one flattened // conjunction (upstream's TransformConjunction). func (tc *transformContext) transformLogicalOr(n tnode) ast.Expr { @@ -281,7 +262,10 @@ func (tc *transformContext) transformIs(n tnode) ast.Expr { }} case "IsOtherOperatorTail": fold := tc.otherOperatorTail(t.node) - folds[i] = folded{t.kind, func(e ast.Expr) ast.Expr { return fold(e, -1, false) }} + folds[i] = folded{t.kind, func(e ast.Expr) ast.Expr { + result, _ := fold(e, invalidSpan, false) + return result + }} case "IsCastTail": typ := tc.transformType(t.node.child(1)) sp := t.node.span() @@ -577,6 +561,9 @@ func (tc *transformContext) transformLikeClause(input ast.Expr, n tnode, negated if caseInsensitive { raise("ESCAPE clause is not supported with case-insensitive regular expression match operators") } + if isRegex { + raise("ESCAPE clause is not supported with SIMILAR TO and regular expression match operators") + } switch name { case "~~": name = "like_escape" @@ -645,67 +632,149 @@ func comparisonFromOpText(op string) (ast.ExpressionType, bool) { return "", false } -// OtherOperatorExpression <- InfixOtherOperatorExpression / CustomPrefixExpression +// OtherOperatorExpression <- InfixOtherOperatorExpression func (tc *transformContext) transformOtherOperator(n tnode) ast.Expr { - _, alt := n.sole().choice() - switch alt.name() { - case "InfixOtherOperatorExpression": - return tc.transformInfixOtherOperator(alt) - case "CustomPrefixExpression": - // CustomPrefixExpression <- OperatorLiteral OtherOperatorExpression - operand := tc.transformOtherOperator(alt.child(1)) - return operatorFunction(alt.span(), keywordOfOp(alt.child(0)), operand) - } - shapeError(alt, "unknown OtherOperatorExpression alternative") - return nil + return tc.transformInfixOtherOperator(n.sole()) } // InfixOtherOperatorExpression <- BitwiseExpression OtherOperatorTail* +// OtherOperatorTail <- AnyAllSubqueryTail / OtherOperatorExpressionTail / SingleArrowTail +// +// Port of TransformInfixOtherOperatorExpression. Only the final result +// carries a location, the whole expression's. Like upstream, an ALL +// comparison and an ANY over a list end the fold: the tails after it are +// dropped. func (tc *transformContext) transformInfixOtherOperator(n tnode) ast.Expr { expr := tc.transformBitwise(n.child(0)) tails := n.child(1).repeat() - folds := make([]func(ast.Expr, int, bool) ast.Expr, len(tails)) + // upstream transforms every tail before folding them + folds := make([]otherOperatorFold, len(tails)) for i, tail := range tails { folds[i] = tc.otherOperatorTail(tail) } + whole := n.span() for i, fold := range folds { - expr = fold(expr, n.span().Start, i == len(tails)-1) + result, done := fold(expr, whole, i == len(folds)-1) + if done { + return result + } + expr = result } return expr } -// otherOperatorTail transforms OtherOperatorTail <- OtherOperator -// BitwiseExpression and returns the fold applying it to a left operand. -// exprStart < 0 means the fold's result gets no location of its own. -func (tc *transformContext) otherOperatorTail(tail tnode) func(ast.Expr, int, bool) ast.Expr { - _, opAlt := tail.child(0).sole().choice() - rhsNode := tail.child(1) - rhs := tc.transformBitwise(rhsNode) - end := rhsNode.span().End - span := func(exprStart int, outermost bool) ast.Span { - if exprStart < 0 || !outermost { - return invalidSpan - } - return ast.Span{Start: exprStart, End: end} - } - switch opAlt.name() { - case "AnyAllParsedOperator": - return func(input ast.Expr, exprStart int, outermost bool) ast.Expr { - whole := ast.Span{Start: exprStart, End: end} - if exprStart < 0 { - whole = invalidSpan +// otherOperatorFold applies one OtherOperatorTail to its left operand. +// whole is the enclosing expression's extent, set on the result when +// outermost (a fold that ends the chain early sets it too); done reports +// that upstream returns the result at once. +type otherOperatorFold func(input ast.Expr, whole ast.Span, outermost bool) (ast.Expr, bool) + +// otherOperatorTail transforms OtherOperatorTail <- AnyAllSubqueryTail / +// OtherOperatorExpressionTail / SingleArrowTail and returns the fold +// applying it. +func (tc *transformContext) otherOperatorTail(tail tnode) otherOperatorFold { + _, alt := tail.sole().choice() + switch alt.name() { + case "SingleArrowTail": + body, chain := tc.singleArrowTail(alt) + return func(input ast.Expr, whole ast.Span, outermost bool) (ast.Expr, bool) { + var result ast.Expr = singleArrowLambda(input, body) + for _, link := range chain { + if link.double { + result = operatorFunction(invalidSpan, "->>", result, link.expr) + } else { + result = singleArrowLambda(result, link.expr) + } + } + if outermost { + setSpan(result, whole) } - return tc.transformAnyAll(input, opAlt.sole(), rhs, whole) + return result, false + } + case "AnyAllSubqueryTail": + // AnyAllSubqueryTail <- AnyAllParsedOperator SubqueryReference + stmt := tc.transformSelectInternalStatement(alt.child(1).sole().parens()) + rhs := &ast.SubqueryExpression{Subquery: stmt, SubqueryType: ast.SubqueryScalar, + ComparisonType: ast.InvalidExpressionType} + op := alt.child(0).sole() + return func(input ast.Expr, whole ast.Span, outermost bool) (ast.Expr, bool) { + return tc.transformAnyAll(input, op, rhs, true, whole, outermost) } - case "NamedOtherOperator": - return func(input ast.Expr, exprStart int, outermost bool) ast.Expr { - return tc.transformNamedOperator(input, opAlt.sole(), rhs, span(exprStart, outermost)) + case "OtherOperatorExpressionTail": + // OtherOperatorExpressionTail <- OtherOperator BitwiseExpression + _, opAlt := alt.child(0).sole().choice() + rhs := tc.transformBitwise(alt.child(1)) + switch opAlt.name() { + case "AnyAllParsedOperator": + return func(input ast.Expr, whole ast.Span, outermost bool) (ast.Expr, bool) { + return tc.transformAnyAll(input, opAlt.sole(), rhs, false, whole, outermost) + } + case "NamedOtherOperator": + return func(input ast.Expr, whole ast.Span, outermost bool) (ast.Expr, bool) { + sp := invalidSpan + if outermost { + sp = whole + } + return tc.transformNamedOperator(input, opAlt.sole(), rhs, sp), false + } } + shapeError(opAlt, "unknown other-operator") } - shapeError(opAlt, "unknown other-operator") + shapeError(alt, "unknown OtherOperatorTail alternative") return nil } +func singleArrowLambda(lhs, body ast.Expr) *ast.LambdaExpression { + l := &ast.LambdaExpression{LHS: lhs, Expr: body, SyntaxType: ast.LambdaSingleArrow} + l.SetSpan(invalidSpan) + return l +} + +// arrowLink is one ArrowChainLink: a '->' (lambda) or '->>' (JSON +// extract) applied to the expression built so far. +type arrowLink struct { + double bool + expr ast.Expr +} + +// singleArrowTail transforms SingleArrowTail <- '->' SingleArrowBody into +// the arrow's operand and the arrows that chain after it +// (TransformSingleArrowTail + TransformArrowChainBody/ArrowFullBody): +// +// SingleArrowBody <- ArrowChainBody / ArrowFullBody +// ArrowChainBody <- BitwiseExpression ArrowChainTail+ +// ArrowChainTail <- DoubleArrowTail / SingleArrowTail +// DoubleArrowTail <- '->>' BitwiseExpression +// ArrowFullBody <- LogicalOrExpression +func (tc *transformContext) singleArrowTail(n tnode) (ast.Expr, []arrowLink) { + _, body := n.child(1).sole().choice() + switch body.name() { + case "ArrowFullBody": + return tc.transformLogicalOr(body.sole()), nil + case "ArrowChainBody": + operand := tc.transformBitwise(body.child(0)) + var chain []arrowLink + // flatten the chain: a nested '->' carries the arrows that follow + // its own operand + for _, t := range body.child(1).repeat() { + _, alt := t.sole().choice() + switch alt.name() { + case "DoubleArrowTail": + chain = append(chain, arrowLink{double: true, expr: tc.transformBitwise(alt.child(1))}) + case "SingleArrowTail": + e, nested := tc.singleArrowTail(alt) + chain = append(chain, arrowLink{expr: e}) + chain = append(chain, nested...) + default: + shapeError(alt, "unknown ArrowChainTail alternative") + } + } + return operand, chain + } + shapeError(body, "unknown SingleArrowBody alternative") + return nil, nil +} + // operatorFunction ports TransformOperatorFunction: an operator call, // "schema.op" splitting into a schema-qualified call. func operatorFunction(sp ast.Span, name string, args ...ast.Expr) *ast.FunctionExpression { @@ -721,42 +790,58 @@ func operatorFunction(sp ast.Span, name string, args ...ast.Expr) *ast.FunctionE } // AnyAllOperator <- AnyOperatorLiteral AnyOrAll -func (tc *transformContext) transformAnyAll(input ast.Expr, n tnode, rhs ast.Expr, whole ast.Span) ast.Expr { +func (tc *transformContext) transformAnyAll(input ast.Expr, n tnode, rhs ast.Expr, isSubquery bool, whole ast.Span, outermost bool) (ast.Expr, bool) { opText := keywordOfOp(n.child(0)) _, anyOrAll := n.child(1).sole().choice() isAll := anyOrAll.name() == "SubqueryAll" cmp, ok := comparisonFromOpText(opText) if !ok { - if sub, isSub := rhs.(*ast.SubqueryExpression); isSub && sub.SubqueryType == ast.SubqueryScalar { + if isSubquery { raise("ANY and ALL operators require one of =,<>,>,<,>=,<= comparisons!") } switch opText { case "~", "~*", "!~", "!~*": - return regexAnyAll(input, rhs, opText, isAll, whole) + // the fold continues past a regex ANY/ALL: only the final + // result takes the expression's location + sp := invalidSpan + if outermost { + sp = whole + } + return regexAnyAll(input, rhs, opText, isAll, sp), false } raise("Unsupported comparison \"%s\" for ANY/ALL subquery", opText) } if isAll { cmp = negatedComparison[cmp] } - sub := tc.anySubquery(input, rhs, cmp) + sub := tc.anySubquery(input, rhs, isSubquery, cmp) if isAll { // x > ALL(...) becomes NOT(x <= ANY(...)); the synthesized - // subquery node carries no location, the NOT the full extent + // subquery node carries no location, the NOT the full extent. + // Upstream returns it at once, dropping any later tails. sub.SetSpan(invalidSpan) - return notExpr(whole, sub) + return notExpr(whole, sub), true } - sub.SetSpan(whole) - return sub + if !isSubquery { + // ANY over a list: also returned at once + sub.SetSpan(whole) + return sub, true + } + if outermost { + sub.SetSpan(whole) + } else { + sub.SetSpan(invalidSpan) + } + return sub, false } -// anySubquery builds SUBQUERY(ANY): a subquery rhs is used directly, any -// other expression is wrapped in SELECT unnest(rhs) — upstream's -// TransformAnyAll. -func (tc *transformContext) anySubquery(input, rhs ast.Expr, cmp ast.ExpressionType) *ast.SubqueryExpression { +// anySubquery builds SUBQUERY(ANY): a subquery rhs (AnyAllSubqueryTail) +// is used directly, any other expression is wrapped in SELECT unnest(rhs) +// — upstream's TransformInfixOtherOperatorExpression. +func (tc *transformContext) anySubquery(input, rhs ast.Expr, isSubquery bool, cmp ast.ExpressionType) *ast.SubqueryExpression { var stmt *ast.SelectStatement - if sub, ok := rhs.(*ast.SubqueryExpression); ok && sub.SubqueryType == ast.SubqueryScalar { - stmt = sub.Subquery + if isSubquery { + stmt = rhs.(*ast.SubqueryExpression).Subquery } else { sel := &ast.SelectNode{ SelectList: []ast.Expr{fnCall(invalidSpan, "unnest", rhs)}, @@ -1063,17 +1148,32 @@ func decimalValueString(digits string, scale int) string { return sign + digits[:cut] + "." + digits[cut:] } -// AtTimeZoneExpression <- PrefixExpression AtTimeZoneExpressionTail* +// AtTimeZoneExpression <- UnaryExpression AtTimeZoneExpressionTail* // x AT TIME ZONE tz -> timezone(tz, x) func (tc *transformContext) transformAtTimeZone(n tnode) ast.Expr { - expr := tc.transformPrefix(n.child(0)) + expr := tc.transformUnary(n.child(0)) for _, tail := range n.child(1).repeat() { - rhs := tc.transformPrefix(tail.child(1)) + rhs := tc.transformUnary(tail.child(1)) expr = fnCall(ast.Span{Start: n.span().Start, End: tail.span().End}, "timezone", rhs, expr) } return expr } +// UnaryExpression <- PrefixExpression / CustomPrefixExpression +func (tc *transformContext) transformUnary(n tnode) ast.Expr { + _, alt := n.sole().choice() + switch alt.name() { + case "PrefixExpression": + return tc.transformPrefix(alt) + case "CustomPrefixExpression": + // CustomPrefixExpression <- OperatorLiteral TildeExpression + operand := tc.transformTilde(alt.child(1)) + return operatorFunction(alt.span(), keywordOfOp(alt.child(0)), operand) + } + shapeError(alt, "unknown UnaryExpression alternative") + return nil +} + // PrefixExpression <- PrefixOperator* BaseExpression func (tc *transformContext) transformPrefix(n tnode) ast.Expr { expr := tc.transformBase(n.child(1)) diff --git a/parser/transform_func.go b/parser/transform_func.go index e3b8d26a..1cfe4da5 100644 --- a/parser/transform_func.go +++ b/parser/transform_func.go @@ -215,6 +215,13 @@ type qualifiedName struct { // qualification, name) constructor's accessors: with one qualifier it is // the schema; with two or more the first is the catalog and the last the // schema. +// qualifiedNameOf builds the AST QualifiedName for qualifiers plus a name +// (the QualifiedName(vector, name) constructor). +func qualifiedNameOf(quals []string, name string) ast.QualifiedName { + qn := newQualifiedName(quals) + return ast.QualifiedName{Catalog: qn.catalog, Schema: qn.schema, Qualification: qn.path, Name: name} +} + func newQualifiedName(quals []string) qualifiedName { switch len(quals) { case 0: diff --git a/parser/transform_misc.go b/parser/transform_misc.go index 3da4cc4b..62f3e8a3 100644 --- a/parser/transform_misc.go +++ b/parser/transform_misc.go @@ -131,33 +131,43 @@ func (tc *transformContext) transformSettingTarget(n tnode) (string, ast.SetScop return identifierText(alt.child(1)), ast.SetScopeVariable case "SetSetting": // SettingScope? SettingName - scope := ast.SetScopeAutomatic - if sc, ok := alt.child(0).opt(); ok { - _, kind := sc.sole().choice() - switch kind.name() { - case "LocalScope": - scope = ast.SetScopeLocal - case "SessionScope": - scope = ast.SetScopeSession - case "GlobalScope": - scope = ast.SetScopeGlobal - } - } - return identifierText(alt.child(1)), scope + return identifierText(alt.child(1)), settingScope(alt.child(0)) } shapeError(alt, "unknown setting target") return "", ast.SetScopeAutomatic } +// settingScope maps an optional SettingScope <- LocalScope / SessionScope +// / GlobalScope; absent is AUTOMATIC. SET/RESET LOCAL raise +// NotImplemented upstream (post-parse for the corpus); darkwing keeps the +// scope and accepts. +func settingScope(n tnode) ast.SetScope { + sc, ok := n.opt() + if !ok { + return ast.SetScopeAutomatic + } + _, kind := sc.sole().choice() + switch kind.name() { + case "LocalScope": + return ast.SetScopeLocal + case "SessionScope": + return ast.SetScopeSession + case "GlobalScope": + return ast.SetScopeGlobal + } + shapeError(kind, "unknown setting scope") + return ast.SetScopeAutomatic +} + // SetStatement <- 'SET' SetAssignmentOrTimeZone func (tc *transformContext) transformSet(n tnode) ast.Stmt { sp := n.span() _, alt := n.child(1).sole().choice() switch alt.name() { case "SetSchema": - // 'SCHEMA' StringLiteral - stmt := &ast.SetStatement{Name: "schema", Scope: ast.SetScopeAutomatic} - stmt.Value = constExpr(invalidSpan, varcharValue(identifierText(alt.child(1)))) + // SettingScope? 'SCHEMA' StringLiteral + stmt := &ast.SetStatement{Name: "schema", Scope: settingScope(alt.child(0))} + stmt.Value = constExpr(invalidSpan, varcharValue(identifierText(alt.child(2)))) stmt.SetSpan(sp) return stmt case "StandardAssignment": @@ -173,8 +183,17 @@ func (tc *transformContext) transformSet(n tnode) ast.Stmt { value := values[0] switch v := value.(type) { case *ast.ColumnRefExpression: - // a bare identifier value is its name as a string - value = constExpr(invalidSpan, varcharValue(v.ColumnNames[len(v.ColumnNames)-1])) + // a bare identifier value is its name as a string; a + // qualified one is kept whole (ColumnRefExpression::ToString) + text := v.ColumnNames[len(v.ColumnNames)-1] + if len(v.ColumnNames) > 1 { + parts := make([]string, len(v.ColumnNames)) + for i, c := range v.ColumnNames { + parts[i] = sqlIdentifier(c) + } + text = strings.Join(parts, ".") + } + value = constExpr(invalidSpan, varcharValue(text)) case *ast.DefaultExpression: stmt := &ast.ResetStatement{Name: name, Scope: scope} stmt.SetSpan(sp) @@ -184,14 +203,15 @@ func (tc *transformContext) transformSet(n tnode) ast.Stmt { stmt.SetSpan(sp) return stmt case "SetTimeZone": - // 'TIME' 'ZONE' ZoneValue - value := tc.transformZoneValue(alt.child(2)) + // SettingScope? 'TIME' 'ZONE' ZoneValue + scope := settingScope(alt.child(0)) + value := tc.transformZoneValue(alt.child(3)) if _, isDefault := value.(*ast.DefaultExpression); isDefault { - stmt := &ast.ResetStatement{Name: "timezone", Scope: ast.SetScopeAutomatic} + stmt := &ast.ResetStatement{Name: "timezone", Scope: scope} stmt.SetSpan(sp) return stmt } - stmt := &ast.SetStatement{Name: "timezone", Scope: ast.SetScopeAutomatic, Value: value} + stmt := &ast.SetStatement{Name: "timezone", Scope: scope, Value: value} stmt.SetSpan(sp) return stmt } @@ -240,10 +260,24 @@ func intervalCast(s string) ast.Expr { return cast } -// ResetStatement <- 'RESET' SetVariableOrSetting. RESET LOCAL raises -// NotImplemented upstream (post-parse); darkwing keeps the scope. +// ResetStatement <- 'RESET' ResetTarget +// ResetTarget <- ResetTimeZone / ResetVariableOrSetting +// ResetTimeZone <- SettingScope? 'TIME' 'ZONE' +// ResetVariableOrSetting <- SetVariableOrSetting +// RESET LOCAL raises NotImplemented upstream (post-parse); darkwing keeps +// the scope. func (tc *transformContext) transformReset(n tnode) ast.Stmt { - name, scope := tc.transformSettingTarget(n.child(1)) + var name string + var scope ast.SetScope + _, alt := n.child(1).sole().choice() + switch alt.name() { + case "ResetTimeZone": + name, scope = "timezone", settingScope(alt.child(0)) + case "ResetVariableOrSetting": + name, scope = tc.transformSettingTarget(alt.sole()) + default: + shapeError(alt, "unknown RESET target") + } stmt := &ast.ResetStatement{Name: name, Scope: scope} stmt.SetSpan(n.span()) return stmt @@ -334,11 +368,17 @@ func (tc *transformContext) transformUse(n tnode) ast.Stmt { stmt.Name = identifierText(alt) case "UseTargetCatalogSchema": // CatalogName '.' ReservedSchemaName DotIdentifier* - if len(alt.child(3).repeat()) > 0 { - raise("Expected \"USE database\" or \"USE database.schema\"") - } + // DotIdentifier <- '.' Identifier extends the path into nested + // schemas (QualifiedName::FromPath) stmt.Catalog = identifierText(alt.child(0)) stmt.Name = identifierText(alt.child(2)) + if dots := alt.child(3).repeat(); len(dots) > 0 { + stmt.Path = []string{stmt.Catalog, stmt.Name} + for _, d := range dots { + stmt.Path = append(stmt.Path, identifierText(d.child(1))) + } + stmt.Name = stmt.Path[len(stmt.Path)-1] + } default: shapeError(alt, "unknown USE target") } @@ -476,7 +516,8 @@ func (tc *transformContext) transformAnalyze(n tnode) ast.Stmt { // ---- EXPORT ------------------------------------------------------------ -// ExportStatement <- 'EXPORT' 'DATABASE' ExportSource? StringLiteral GenericCopyOptionList? +// ExportStatement <- 'EXPORT' 'DATABASE' ExportSource? StringLiteral ExportOptions? +// ExportOptions <- GenericCopyOptionList / SpecializedOptionList func (tc *transformContext) transformExport(n tnode) ast.Stmt { stmt := &ast.ExportStatement{Format: "csv"} stmt.SetSpan(n.span()) @@ -486,7 +527,17 @@ func (tc *transformContext) transformExport(n tnode) ast.Stmt { } stmt.Path = identifierText(n.child(3)) if opts, ok := n.child(4).opt(); ok { - for _, option := range tc.transformGenericOptionList(opts) { + var options []ast.GenericOption + _, alt := opts.sole().choice() + switch alt.name() { + case "GenericCopyOptionList": + options = tc.transformGenericOptionList(alt) + case "SpecializedOptionList": + options = tc.transformSpecializedOptionList(alt) + default: + shapeError(alt, "unknown EXPORT option list") + } + for _, option := range options { if strings.EqualFold(option.Name, "format") { if option.Expr != nil { raise("Unsupported parameter type for FORMAT: expected e.g. FORMAT 'csv', 'parquet'") @@ -781,7 +832,7 @@ func (tc *transformContext) transformComment(n tnode) ast.Stmt { raise("Invalid column reference: %s", sqlIdentifier(stmt.Column)) } } - stmt.Catalog, stmt.Schema, stmt.Name = qualifiedNameFromParts(parts) + stmt.Catalog, stmt.Schema, stmt.Name, stmt.Qualification = qualifiedNameFromParts(parts) // CommentValue <- NullLiteral / StringLiteralValue _, value := n.child(5).sole().choice() if value.name() == "NullLiteral" { @@ -793,18 +844,22 @@ func (tc *transformContext) transformComment(n tnode) ast.Stmt { } // qualifiedNameFromParts splits a dotted path into catalog/schema/name, -// mirroring upstream's QualifiedName::StringToQualifiedName. -func qualifiedNameFromParts(parts []string) (catalog, schema, name string) { - switch len(parts) { - case 1: - return "", "", parts[0] - case 2: - return "", parts[0], parts[1] - case 3: - return parts[0], parts[1], parts[2] +// mirroring upstream's StringToQualifiedName (QualifiedName::FromPath): +// the catalog leads a path of three or more, the schema is the component +// before the name, and a path deeper than catalog.schema.name (nested +// schemas) is also returned whole. +func qualifiedNameFromParts(parts []string) (catalog, schema, name string, path []string) { + name = parts[len(parts)-1] + if len(parts) >= 2 { + schema = parts[len(parts)-2] + } + if len(parts) >= 3 { + catalog = parts[0] } - raise("Too many qualifications found - expected [catalog.schema.name] or [schema.name]") - return "", "", "" + if len(parts) > 3 { + path = append([]string{}, parts...) + } + return catalog, schema, name, path } // ---- extensions -------------------------------------------------------- @@ -825,6 +880,8 @@ func (tc *transformContext) transformLoad(n tnode) ast.Stmt { } // fromSource maps FromSource <- FromSourceIdentifier / FromSourceString. +// FromSourceIdentifier <- 'FROM' FromSourceName, FromSourceName <- +// DottedName / Identifier (INSTALL x FROM carlopi.github.io). func fromSource(n tnode) (string, bool) { _, alt := n.sole().choice() return identifierText(alt.child(1)), alt.name() == "FromSourceIdentifier" @@ -852,24 +909,34 @@ func (tc *transformContext) transformInstall(n tnode) ast.Stmt { } // ExtensionRepositoryStatement <- CreateExtensionRepositoryStmt / -// DropExtensionRepositoryStmt. Port of -// TransformCreateExtensionRepositoryStmt / TransformDropExtensionRepositoryStmt -// (both produce a LoadStatement upstream). +// CreateExtensionRepositoryFromHostStmt / DropExtensionRepositoryStmt. +// Port of TransformCreateExtensionRepositoryStmt / +// TransformCreateExtensionRepositoryFromHostStmt / +// TransformDropExtensionRepositoryStmt (all produce a LoadStatement +// upstream). ExtensionRepositoryName <- DottedName / ColIdOrString. func (tc *transformContext) transformExtensionRepository(n tnode) ast.Stmt { stmt := &ast.LoadStatement{} stmt.SetSpan(n.span()) _, alt := n.sole().choice() switch alt.name() { - case "CreateExtensionRepositoryStmt": + case "CreateExtensionRepositoryStmt", "CreateExtensionRepositoryFromHostStmt": // 'CREATE' OrReplace? 'EXTENSION' 'REPOSITORY' IfNotExists? - // ColIdOrString RepositoryPrefix RepositoryPublicKey? + // ExtensionRepositoryName RepositoryPrefix RepositoryPublicKey? + // Without a prefix (FromHost) the name is the host of the + // publisher, which names the prefix when the statement runs. stmt.Kind = ast.LoadTypeCreateRepository stmt.Repository = identifierText(alt.child(5)) - // RepositoryPrefix <- 'WITH'? 'PREFIX' StringLiteral - stmt.RepositoryURL = identifierText(alt.child(6).child(2)) - if keys, ok := alt.child(7).opt(); ok { - // RepositoryPublicKey <- 'USING'? 'PUBLIC' ('KEYS' / 'KEY') List(StringLiteral) - stmt.PublicKeys = identifierList(keys.child(3)) + if alt.name() == "CreateExtensionRepositoryStmt" { + // RepositoryPrefix <- 'WITH'? 'PREFIX' StringLiteral + stmt.RepositoryURL = identifierText(alt.child(6).child(2)) + if stmt.RepositoryURL == "" { + raise("CREATE EXTENSION REPOSITORY: the prefix cannot be empty. Leave WITH PREFIX out to " + + "resolve the repository from its host") + } + if keys, ok := alt.child(7).opt(); ok { + // RepositoryPublicKey <- 'USING'? 'PUBLIC' ('KEYS' / 'KEY') List(StringLiteral) + stmt.PublicKeys = identifierList(keys.child(3)) + } } orReplace, ifNotExists := optMatched(alt.child(1)), optMatched(alt.child(4)) if orReplace && ifNotExists { @@ -882,7 +949,7 @@ func (tc *transformContext) transformExtensionRepository(n tnode) ast.Stmt { stmt.OnConflict = ast.CreateIgnore } case "DropExtensionRepositoryStmt": - // 'DROP' 'EXTENSION' 'REPOSITORY' IfExists? ColIdOrString + // 'DROP' 'EXTENSION' 'REPOSITORY' IfExists? ExtensionRepositoryName stmt.Kind = ast.LoadTypeDropRepository stmt.MissingOK = optMatched(alt.child(3)) stmt.Repository = identifierText(alt.child(4)) @@ -894,8 +961,9 @@ func (tc *transformContext) transformExtensionRepository(n tnode) ast.Stmt { // ExternalResourceStatement <- CreateExternalResourceStmt / // RegisterExternalResourceStmt / DestroyExternalResourceStmt / -// ShowExternalResourcesStmt / AttachToExternalResource / -// ConnectToExternalResource +// AttachToExternalResource / ConnectToExternalResource +// (SHOW [ALL] EXTERNAL RESOURCES is a query since v2.0.1: see +// transformShowExternalResources) // (ExternalResourceKeyword <- 'EXTERNAL' 'RESOURCE') func (tc *transformContext) transformExternalResource(n tnode) ast.Stmt { _, alt := n.sole().choice() @@ -909,9 +977,9 @@ func (tc *transformContext) transformExternalResource(n tnode) ast.Stmt { stmt.SetSpan(n.span()) switch alt.name() { case "CreateExternalResourceStmt": - // 'CREATE' ExternalResourceKeyword StringLiteral AttachAlias? ExternalResourceCreationOptions? + // 'CREATE' ExternalResourceKeyword ExternalResourceType AttachAlias? ExternalResourceCreationOptions? stmt.Operation = ast.ExternalResourceCreate - stmt.Type = identifierText(alt.child(2)) + stmt.Type = externalResourceType(alt.child(2)) if alias, ok := alt.child(3).opt(); ok { stmt.Name = identifierText(alias.child(1)) } @@ -919,9 +987,9 @@ func (tc *transformContext) transformExternalResource(n tnode) ast.Stmt { stmt.Options = tc.collectGenericOptions(opts) } case "RegisterExternalResourceStmt": - // 'REGISTER' ExternalResourceKeyword StringLiteral AttachAlias? 'FROM' Expression + // 'REGISTER' ExternalResourceKeyword ExternalResourceType AttachAlias? 'FROM' Expression stmt.Operation = ast.ExternalResourceRegister - stmt.Type = identifierText(alt.child(2)) + stmt.Type = externalResourceType(alt.child(2)) if alias, ok := alt.child(3).opt(); ok { stmt.Name = identifierText(alias.child(1)) } @@ -930,16 +998,25 @@ func (tc *transformContext) transformExternalResource(n tnode) ast.Stmt { // 'DESTROY' ExternalResourceKeyword ColId stmt.Operation = ast.ExternalResourceDestroy stmt.Name = identifierText(alt.child(2)) - case "ShowExternalResourcesStmt": - // 'SHOW' ShowAllModifier? 'EXTERNAL' 'RESOURCES' - stmt.Operation = ast.ExternalResourceShow - _, stmt.All = alt.child(1).opt() default: shapeError(alt, "unknown external resource statement") } return stmt } +// externalResourceType maps ExternalResourceType <- StringLiteral / +// ExternalResourceTypeName. A quoted type is taken as written; a bare +// one (ExternalResourceTypeName <- BareName, BareName <- DottedName / +// ColId: aws.s3tables.bucket) is folded to lowercase +// (TransformExternalResourceTypeName). +func externalResourceType(n tnode) string { + _, alt := n.sole().choice() + if alt.name() == "ExternalResourceTypeName" { + return strings.ToLower(identifierText(alt.sole())) + } + return identifierText(alt) +} + // collectGenericOptions ports CollectGenericOptions over // ExternalResourceCreationOptions (GenericCopyOptionList): a bare flag // binds to boolean true, an option carries at most one argument (a NULL @@ -967,8 +1044,8 @@ func (tc *transformContext) transformExternalResourceSource(n tnode) *ast.Extern _, alt := n.sole().choice() switch alt.name() { case "ExternalResourceCreateClause": - // 'NEW' 'TEMPORARY' ExternalResourceKeyword StringLiteral ExternalResourceCreationOptions? - src.Provider = identifierText(alt.child(3)) + // 'NEW' 'TEMPORARY' ExternalResourceKeyword ExternalResourceType ExternalResourceCreationOptions? + src.Provider = externalResourceType(alt.child(3)) if opts, ok := alt.child(4).opt(); ok { src.Params = tc.collectGenericOptions(opts) } diff --git a/parser/transform_select.go b/parser/transform_select.go index 1d1ed6be..96042dcd 100644 --- a/parser/transform_select.go +++ b/parser/transform_select.go @@ -5,6 +5,7 @@ package parser import ( + "math" "sort" "strconv" "strings" @@ -195,17 +196,23 @@ func dmlQueryNode(stmt ast.Stmt) ast.QueryNode { // SelectSetOpChain <- IntersectChain SelectSetOpChainTail* func (tc *transformContext) transformSetOpChain(n tnode) ast.QueryNode { node := tc.transformIntersectChain(n.child(0)) + // the chain only extends the n-ary nodes it builds itself: an operand + // that already is a set operation was written in parentheses and + // resolves its own result type first (TransformSelectSetOpChain) + chainNode := false for _, tail := range n.child(1).repeat() { // SelectSetOpChainTail <- SetopClause IntersectChain clause := tail.child(0) right := tc.transformIntersectChain(tail.child(1)) - node = tc.buildSetOp(node, right, clause) + node = tc.buildSetOp(node, right, clause, chainNode) + chainNode = true } return node } // SetopClause <- SetopType DistinctOrAll? ByName? -func (tc *transformContext) buildSetOp(left, right ast.QueryNode, clause tnode) ast.QueryNode { +// extend allows folding into left, a set operation this chain built. +func (tc *transformContext) buildSetOp(left, right ast.QueryNode, clause tnode, extend bool) ast.QueryNode { _, kind := clause.child(0).sole().choice() setopType := ast.SetOpUnion if kind.name() == "SetopExcept" { @@ -223,10 +230,9 @@ func (tc *transformContext) buildSetOp(left, right ast.QueryNode, clause tnode) setopType = ast.SetOpUnionByName } // same-kind UNION chains flatten into one n-ary node (never EXCEPT - // or INTERSECT, and never across modifiers) - if setopType == ast.SetOpUnion || setopType == ast.SetOpUnionByName { - if ls, ok := left.(*ast.SetOperationNode); ok && ls.SetOpType == setopType && - ls.SetOpAll == all && len(ls.Modifiers) == 0 && len(ls.CTEs.Entries) == 0 { + // or INTERSECT, and never into a parenthesized operand) + if extend && (setopType == ast.SetOpUnion || setopType == ast.SetOpUnionByName) { + if ls, ok := left.(*ast.SetOperationNode); ok && ls.SetOpType == setopType && ls.SetOpAll == all { ls.Inputs = append(ls.Inputs, right) ls.SetSpan(ast.Span{Start: ls.Pos(), End: right.End()}) return ls @@ -775,12 +781,20 @@ var specialShowNames = map[string]bool{ "variables": true, } -// DescribeStatement <- ShowTables / ShowDeprecatedSelect / DescribeSelect / -// ShowAllTables / ShowByName / DescribeByName +// DescribeStatement <- ShowExternalResourceTypes / ShowExternalResources / +// ShowTables / ShowDeprecatedSelect / DescribeSelect / ShowAllTables / +// ShowByName / DescribeByName // Port of transformer/transform_describe.cpp. All SHOW/DESCRIBE // desugaring uses synthesized (location-free) nodes, mirroring upstream. func (tc *transformContext) transformDescribe(n tnode) ast.QueryNode { _, alt := n.sole().choice() + switch alt.name() { + case "ShowExternalResources": + return tc.transformShowExternalResources(alt) + case "ShowExternalResourceTypes": + // ShowRule 'EXTERNAL' 'RESOURCE' 'TYPES' + return tableFunctionSelect("duckdb_external_resource_types", nil) + } ref := &ast.ShowRef{} ref.SetSpan(invalidSpan) switch alt.name() { @@ -804,23 +818,48 @@ func (tc *transformContext) transformDescribe(n tnode) ast.QueryNode { tc.buildDescribeByName(ref, alt.child(1)) case "ShowTables": // ShowOrDescribe 'TABLES' 'FROM' QualifiedName + // The whole (possibly nested) name is the qualification of an + // empty table name: QualifiedName(qualified_name.Path(), ""). ref.ShowType = ast.ShowTypeShowFrom - cat, schema, name := tc.transformQualifiedNameParts(alt.child(3)) - if cat != "" { - raise("Expected \"SHOW TABLES FROM database\", \"SHOW TABLES FROM schema\", or " + - "\"SHOW TABLES FROM database.schema\"") - } - if schema == "" { - ref.SchemaName = name - } else { - ref.CatalogName, ref.SchemaName = schema, name - } + quals, name := tc.transformQualifiedNamePath(alt.child(3)) + qn := newQualifiedName(append(quals, name)) + ref.CatalogName, ref.SchemaName, ref.Qualification = qn.catalog, qn.schema, qn.path default: shapeError(alt, "unknown describe statement") } return starSelect(ref, invalidSpan) } +// ShowExternalResources <- ShowRule 'ALL'? 'EXTERNAL' 'RESOURCES' ShowExternalResourcesType? +// ShowExternalResourcesType <- 'WITH' 'TYPE' ExternalResourceType +// SHOW [ALL] EXTERNAL RESOURCES [WITH TYPE t] is the query +// SELECT * FROM duckdb_external_resources(discover := true, type := t) +// (TransformShowExternalResources), so it works as a subquery too. +func (tc *transformContext) transformShowExternalResources(n tnode) ast.QueryNode { + var args []ast.FunctionArgument + named := func(name string, value ast.Expr) { + value.SetAlias(name) + args = append(args, ast.FunctionArgument{Name: name, Expr: value}) + } + if _, ok := n.child(1).opt(); ok { + named("discover", boolConst(invalidSpan, true)) + } + if typ, ok := n.child(4).opt(); ok { + named("type", stringConst(invalidSpan, externalResourceType(typ.child(2)))) + } + return tableFunctionSelect("duckdb_external_resources", args) +} + +// tableFunctionSelect builds SELECT * FROM name(args), every node +// location-free. +func tableFunctionSelect(name string, args []ast.FunctionArgument) ast.QueryNode { + fn := &ast.FunctionExpression{FunctionName: name, Arguments: args} + fn.SetSpan(invalidSpan) + ref := &ast.TableFunctionRef{Function: fn} + ref.SetSpan(invalidSpan) + return starSelect(ref, invalidSpan) +} + // describeOrSummarize maps DescribeOrSummarize <- DescribeRule / Summarize. func describeOrSummarize(n tnode) ast.ShowType { if _, alt := n.sole().choice(); alt.name() == "Summarize" { @@ -987,12 +1026,29 @@ func (tc *transformContext) transformSampleClause(n tnode) *ast.SampleOptions { return s } +// parseSeed ports TransformSampleSeed: the literal is cast to idx_t +// (Value::GetValue), and since v2.0.1 a seed that does not fit a +// signed 64-bit integer is a ParserException (it would otherwise read as +// "no seed"). A literal the cast rejects fails post-parse upstream (a +// conversion error), so darkwing accepts it with no seed. func parseSeed(text string) int64 { - v, err := strconv.ParseInt(text, 10, 64) - if err != nil { - raise("invalid sample seed") + digits := strings.ReplaceAll(text, "_", "") + if u, err := strconv.ParseUint(digits, 10, 64); err == nil { + if u > math.MaxInt64 { + raise("REPEATABLE seed %d is out of range, the maximum is %d", u, int64(math.MaxInt64)) + } + return int64(u) + } + if f, err := strconv.ParseFloat(digits, 64); err == nil { + r := math.Round(f) + if r >= 0 && r <= math.MaxInt64 { + return int64(r) + } + if r > math.MaxInt64 && r <= math.MaxUint64 { + raise("REPEATABLE seed %d is out of range, the maximum is %d", uint64(r), int64(math.MaxInt64)) + } } - return v + return -1 } // applySampleCount fills size/percentage/method from a SampleCount node. diff --git a/parser/transform_single.go b/parser/transform_single.go index 12d0ec81..10c09625 100644 --- a/parser/transform_single.go +++ b/parser/transform_single.go @@ -289,9 +289,10 @@ func hexToBlob(s string) (string, bool) { } // integerTypeFor picks the narrowest DuckDB integer class upstream uses -// for integer literals. +// for integer literals. Since v2.0.1 the magnitude of INT32_MIN does not +// fit an INTEGER, so -2147483648 is typed BIGINT (NumberToValue). func integerTypeFor(v int64) string { - if v >= math.MinInt32 && v <= math.MaxInt32 { + if v > math.MinInt32 && v <= math.MaxInt32 { return "INTEGER" } return "BIGINT" @@ -645,7 +646,7 @@ func (tc *transformContext) transformStar(n tnode) ast.Expr { } for _, r := range star.ReplaceList { if inExclude([]string{r.Key}) { - raise("Column \"%s\" cannot occur in both EXCLUDE and REPLACE list", quoteIdent(r.Key)) + raise("Column %s cannot occur in both EXCLUDE and REPLACE list", quoteIdent(r.Key)) } } } diff --git a/parser/transform_tableref.go b/parser/transform_tableref.go index b66687fc..6d5d21db 100644 --- a/parser/transform_tableref.go +++ b/parser/transform_tableref.go @@ -57,6 +57,22 @@ func (tc *transformContext) transformTableRef(n tnode) ast.TableRef { return ref } +// JoinedTableRef <- JoinedTableRefChain / ParensTableRef +// JoinedTableRefChain <- InnerTableRef JoinOrPivot+ +// Only a join (or pivot), or another parenthesized one, can stand in +// parentheses. +func (tc *transformContext) transformJoinedTableRef(n tnode) ast.TableRef { + _, alt := n.sole().choice() + switch alt.name() { + case "JoinedTableRefChain": + return tc.transformTableRef(alt) + case "ParensTableRef": + return tc.transformParensTableRef(alt) + } + shapeError(alt, "unknown JoinedTableRef alternative") + return nil +} + // InnerTableRef <- ValuesRef / TableFunction / TableSubquery / BaseTableRef / ParensTableRef func (tc *transformContext) transformInnerTableRef(n tnode) ast.TableRef { _, alt := n.sole().choice() @@ -126,45 +142,50 @@ func (tc *transformContext) transformInnerTableRef(n tnode) ast.TableRef { case "BaseTableRef": return tc.transformBaseTableRef(alt) case "ParensTableRef": - // TableAliasColon? Parens(TableRef) TableAlias? SampleClause? - inner := tc.transformTableRef(alt.child(1).parens()) - alias := "" - var colAliases []string - if colon, ok := alt.child(0).opt(); ok { - alias = identifierText(colon.child(0)) - } - if aliasNode, ok := alt.child(2).opt(); ok { - alias, colAliases = tc.transformTableAlias(aliasNode) - } - if alias != "" || len(colAliases) > 0 { - // aliasing a parenthesized join, VALUES list or subquery wraps - // it in a fresh subquery carrying the alias - switch inner.(type) { - case *ast.ExpressionListRef, *ast.JoinRef, *ast.SubqueryRef: - sub := &ast.SubqueryRef{Subquery: &ast.SelectStatement{Node: starSelect(inner, invalidSpan)}} - sub.SetSpan(alt.span()) - inner = sub - } - } - if alias != "" { - setRefAlias(inner, alias) - // an aliased parenthesized ref takes the whole ref's span - if sp, ok := inner.(interface{ SetSpan(ast.Span) }); ok { - sp.SetSpan(alt.span()) - } - } - if len(colAliases) > 0 { - setRefColumnAliases(inner, colAliases) - } - if sc, ok := alt.child(3).opt(); ok { - setRefSample(inner, tc.transformSampleClause(sc)) - } - return inner + return tc.transformParensTableRef(alt) } shapeError(alt, "unknown inner table ref") return nil } +// ParensTableRef <- TableAliasColon? Parens(JoinedTableRef) TableAlias? SampleClause? +func (tc *transformContext) transformParensTableRef(alt tnode) ast.TableRef { + // TableAliasColon? Parens(JoinedTableRef) TableAlias? SampleClause? + inner := tc.transformJoinedTableRef(alt.child(1).parens()) + alias := "" + var colAliases []string + if colon, ok := alt.child(0).opt(); ok { + alias = identifierText(colon.child(0)) + } + if aliasNode, ok := alt.child(2).opt(); ok { + alias, colAliases = tc.transformTableAlias(aliasNode) + } + if alias != "" || len(colAliases) > 0 { + // aliasing a parenthesized join, VALUES list or subquery wraps + // it in a fresh subquery carrying the alias + switch inner.(type) { + case *ast.ExpressionListRef, *ast.JoinRef, *ast.SubqueryRef: + sub := &ast.SubqueryRef{Subquery: &ast.SelectStatement{Node: starSelect(inner, invalidSpan)}} + sub.SetSpan(alt.span()) + inner = sub + } + } + if alias != "" { + setRefAlias(inner, alias) + // an aliased parenthesized ref takes the whole ref's span + if sp, ok := inner.(interface{ SetSpan(ast.Span) }); ok { + sp.SetSpan(alt.span()) + } + } + if len(colAliases) > 0 { + setRefColumnAliases(inner, colAliases) + } + if sc, ok := alt.child(3).opt(); ok { + setRefSample(inner, tc.transformSampleClause(sc)) + } + return inner +} + // setRefAlias assigns the alias on any table ref type. func setRefAlias(ref ast.TableRef, alias string) { switch r := ref.(type) { @@ -421,14 +442,14 @@ func (tc *transformContext) transformTableFunction(n tnode) ast.TableRef { // qualifiedFunctionExpr builds the call expression for a qualified table // function plus its argument list (shared by table functions and CALL). -// QualifiedTableFunction <- CatalogQualification? SchemaQualification* TableFunctionName // TableFunctionArguments <- Parens(List(FunctionArgument)?) func (tc *transformContext) qualifiedFunctionExpr(qualified, args tnode) *ast.FunctionExpression { fn := &ast.FunctionExpression{} fn.SetSpan(invalidSpan) - qn := qualifiedTableFunction(qualified) + quals, name := qualifiedTableFunctionParts(qualified) + qn := newQualifiedName(quals) fn.Catalog, fn.Schema, fn.Qualification = qn.catalog, qn.schema, qn.path - fn.FunctionName = strings.ToLower(identifierText(qualified.child(2))) + fn.FunctionName = strings.ToLower(identifierText(name)) if list, ok := args.sole().parens().opt(); ok { for _, a := range list.listElems() { fn.Arguments = append(fn.Arguments, tc.transformFunctionArgument(a)) @@ -437,18 +458,29 @@ func (tc *transformContext) qualifiedFunctionExpr(qualified, args tnode) *ast.Fu return fn } -// qualifiedTableFunction ports TransformQualifiedTableFunction: -// CatalogQualification? SchemaQualification* TableFunctionName, the -// qualifiers forming one QualifiedName path. -func qualifiedTableFunction(qualified tnode) qualifiedName { - var quals []string - if cq, ok := qualified.child(0).opt(); ok { - quals = append(quals, identifierText(cq.child(0))) - } - for _, sq := range qualified.child(1).repeat() { - quals = append(quals, identifierText(sq.child(0))) - } - return newQualifiedName(quals) +// qualifiedTableFunctionParts splits QualifiedTableFunction into its +// qualifiers and the function name node: +// +// QualifiedTableFunction <- CatalogReservedSchemaTableFunctionName / TableFunctionNameAsQualifiedName +// CatalogReservedSchemaTableFunctionName <- CatalogQualification SchemaQualification* ReservedTableFunctionName +// TableFunctionNameAsQualifiedName <- TableFunctionName +// +// After a qualification a reserved keyword can name the function +// (g.describe('a')). +func qualifiedTableFunctionParts(qualified tnode) ([]string, tnode) { + _, alt := qualified.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaTableFunctionName": + quals := []string{identifierText(alt.child(0).child(0))} + for _, sq := range alt.child(1).repeat() { + quals = append(quals, identifierText(sq.child(0))) + } + return quals, alt.child(2) + case "TableFunctionNameAsQualifiedName": + return nil, alt.sole() + } + shapeError(alt, "unknown QualifiedTableFunction alternative") + return nil, tnode{} } // ---- joins ------------------------------------------------------------- @@ -618,8 +650,9 @@ func (tc *transformContext) transformNearestBareRef(n tnode) ast.TableRef { ref := &ast.TableFunctionRef{} ref.SetSpan(alt.span()) qualified := alt.child(1) - fn := &ast.FunctionExpression{FunctionName: strings.ToLower(identifierText(qualified.child(2)))} - qn := qualifiedTableFunction(qualified) + quals, name := qualifiedTableFunctionParts(qualified) + fn := &ast.FunctionExpression{FunctionName: strings.ToLower(identifierText(name))} + qn := newQualifiedName(quals) fn.Catalog, fn.Schema, fn.Qualification = qn.catalog, qn.schema, qn.path if list, ok := alt.child(2).sole().parens().opt(); ok { for _, a := range list.listElems() { @@ -647,7 +680,8 @@ func (tc *transformContext) transformNearestBareRef(n tnode) ast.TableRef { } return ref case "NearestParensTableRef": - inner := tc.transformTableRef(alt.child(0).parens()) + // Parens(JoinedTableRef) SampleClause? + inner := tc.transformJoinedTableRef(alt.child(0).parens()) if sc, ok := alt.child(1).opt(); ok { setRefSample(inner, tc.transformSampleClause(sc)) } From 5eda7982fe529fef71229bfee8edfa6448c9f0e8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 13:16:57 +0000 Subject: [PATCH 2/4] gofmt --- parser/misc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/misc_test.go b/parser/misc_test.go index a0c91ebc..345ab99f 100644 --- a/parser/misc_test.go +++ b/parser/misc_test.go @@ -313,7 +313,7 @@ func TestExtensionStatementShapes(t *testing.T) { func TestShowExternalResources(t *testing.T) { cases := []struct { sql, fn string - args []string + args []string }{ {"SHOW EXTERNAL RESOURCES", "duckdb_external_resources", nil}, {"SHOW ALL EXTERNAL RESOURCES WITH TYPE Aws.Bucket", "duckdb_external_resources", []string{"discover", "type"}}, From 8563470ad9ad0e41c428fd6a4c08149581aa7680 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 13:49:37 +0000 Subject: [PATCH 3/4] Regenerate the corpus against DuckDB v2.0.1 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LuRZ4HRrRLBPqxCRMFCvAX --- parser/testdata/README.md | 8 +- .../corpus/fuzzer/afl/alter_if_exists.test | 4 +- .../fuzzer/afl/analyze_empty_table.test | 4 +- .../corpus/fuzzer/afl/case_map_cast.test | 4 +- .../fuzzer/afl/decimal_string_roundtrip.test | 4 +- .../fuzzer/afl/generate_series_null.test | 4 +- .../fuzzer/afl/grouping_empty_table.test | 4 +- .../fuzzer/afl/invalid_foreign_key.test | 4 +- .../corpus/fuzzer/afl/issue_7551.test | 4 +- .../corpus/fuzzer/afl/issue_8185.test | 4 +- .../corpus/fuzzer/afl/limit_out_of_range.test | 4 +- .../fuzzer/afl/non_foldable_parameter.test | 4 +- .../corpus/fuzzer/afl/random_join.test | 4 +- .../fuzzer/afl/self_referential_alias.test | 4 +- .../afl/window_function_binder_error.test | 4 +- .../fuzzer/afl/window_type_mismatch.test | 4 +- .../duckfuzz/arg_minmax_by_decimal.test | 4 +- .../duckfuzz/array_const_columndatacopy.test | 4 +- .../duckfuzz/array_const_null_cast.test | 4 +- .../fuzzer/duckfuzz/array_distance.test | 4 +- .../duckfuzz/array_group_by_sample.test | 4 +- .../corpus/fuzzer/duckfuzz/array_hash.test | 4 +- .../duckfuzz/array_list_gather_cast.test | 4 +- .../array_serialization_flattening.test | 4 +- .../fuzzer/duckfuzz/array_slice_nullness.test | 4 +- .../duckfuzz/array_slice_underflow.test | 4 +- .../duckfuzz/array_slice_vector_type.test | 4 +- .../duckfuzz/arrow_scan_subquery_nullptr.test | 4 +- .../fuzzer/duckfuzz/bitstring_agg_minmax.test | 4 +- .../duckfuzz/bitstring_agg_uhugeint.test | 4 +- .../duckfuzz/bitstring_agg_unfoldable.test | 4 +- .../fuzzer/duckfuzz/column_alias_exist.test | 4 +- .../complex_join_cardinality_assert.test | 4 +- .../compressed_materialization_hugeint.test | 4 +- .../compressed_materialization_json.test | 4 +- .../duckfuzz/correlated_subqueries.test | 4 +- .../fuzzer/duckfuzz/corrupted_parquet.test | 4 +- .../duckfuzz/create_sort_key_strings.test | 4 +- .../duck_fuzz_column_binding_tests.test | 4 +- .../fuzzer/duckfuzz/duckdb_fuzzer_4430.test | 24 +- .../empty_result_pullup_delim_joins.test | 4 +- .../fuzzer/duckfuzz/enum_const_cast.test | 4 +- .../duckfuzz/filter_combiner_assert.test | 4 +- .../fuzzer/duckfuzz/fuzzer_issue_2698.test | 4 +- .../fuzzer/duckfuzz/fuzzer_issue_2980.test | 4 +- .../fuzzer/duckfuzz/fuzzer_issue_4325.test | 4 +- .../duckfuzz/generate_null_timestamp.test | 4 +- .../duckfuzz/group_by_all_positional_ref.test | 4 +- .../corpus/fuzzer/duckfuzz/hash_constant.test | 4 +- .../fuzzer/duckfuzz/having_window_bind.test | 4 +- .../duckfuzz/hugeint_negate_underflow.test | 4 +- .../fuzzer/duckfuzz/invalid_make_time.test | 4 +- .../json_execute_serialized_null.test | 4 +- .../fuzzer/duckfuzz/json_extract_null.test | 4 +- .../duckfuzz/json_extract_string_null.test | 4 +- .../duckfuzz/json_functions_null_params.test | 4 +- .../fuzzer/duckfuzz/julian_overflow.test | 4 +- .../duckfuzz/late_materialization_filter.test | 4 +- .../duckfuzz/limit_offset_macro_subquery.test | 4 +- .../duckfuzz/limit_percent_subquery.test | 4 +- .../corpus/fuzzer/duckfuzz/list_try_cast.test | 4 +- .../fuzzer/duckfuzz/list_zip_no_args.test | 4 +- .../corpus/fuzzer/duckfuzz/logger_null.test | 4 +- .../duckfuzz/map_concat_type_mismatch.test | 4 +- .../fuzzer/duckfuzz/null_arguments.test | 4 +- .../fuzzer/duckfuzz/null_checkpoint.test | 4 +- .../corpus/fuzzer/duckfuzz/ordagg_nargs.test | 4 +- .../order_by_positional_reference.test | 4 +- .../duckfuzz/pivot_aggregate_mismatch.test | 4 +- .../duckfuzz/qualify_column_reference.test | 4 +- .../read_ndjson_non_varchar_input.test | 4 +- .../fuzzer/duckfuzz/regex_syntax_2889.test | 4 +- .../duckfuzz/regexp_replace_constant.test | 4 +- .../fuzzer/duckfuzz/repeat_row_null.test | 4 +- .../fuzzer/duckfuzz/repeat_wrong_number.test | 4 +- ...join_has_correct_left_right_relations.test | 4 +- .../string_to_nested_cast_sample.test | 4 +- .../fuzzer/duckfuzz/strptime_const_arg.test | 4 +- .../corpus/fuzzer/duckfuzz/temporal_avg.test | 4 +- .../duckfuzz/test_vector_types_double_3.test | 4 +- .../fuzzer/duckfuzz/to_weeks_overflow.test | 4 +- .../duckfuzz/tuple_data_empty_heap.test | 4 +- .../fuzzer/duckfuzz/union_dict_tag.test | 4 +- .../fuzzer/duckfuzz/unpivot_multiple_in.test | 4 +- .../duckfuzz/vector_size_out_of_range.test | 4 +- .../corpus/fuzzer/duckfuzz/vector_type.test | 4 +- ...pressions_in_column_lifetime_analyzer.test | 4 +- .../duckfuzz/window_expression_equality.test | 4 +- .../fuzzer/duckfuzz/window_negate_stats.test | 4 +- .../fuzzer/duckfuzz/window_null_range.test | 4 +- .../duckfuzz/window_order_bind_failure.test | 4 +- .../corpus/fuzzer/fuzz_not_operator.test | 4 +- .../fuzzer/fuzz_not_unpacked_columns.test | 4 +- parser/testdata/corpus/fuzzer/issue4298.test | 4 +- .../corpus/fuzzer/nthvalue_indexing.test | 4 +- .../pedro/C_C++_API_query_verification.test | 4 +- .../pedro/aggregate_assertion_errors.test | 4 +- .../fuzzer/pedro/alter_column_generated.test | 4 +- .../fuzzer/pedro/alter_dependencies.test | 4 +- .../pedro/alter_dependency_conflict.test | 4 +- .../fuzzer/pedro/alter_table_rowid.test | 4 +- .../fuzzer/pedro/alter_type_null_mix.test | 4 +- .../pedro/alter_virtual_column_segfault.test | 4 +- .../fuzzer/pedro/analyze_nonexistant.test | 4 +- .../fuzzer/pedro/another_binder_error.test | 4 +- .../fuzzer/pedro/art_concatenate_prefix.test | 4 +- .../corpus/fuzzer/pedro/art_prefix_error.test | 4 +- .../fuzzer/pedro/between_mark_reference.test | 4 +- .../fuzzer/pedro/between_type_mismatch.test | 4 +- .../fuzzer/pedro/binder_assertion_error.test | 4 +- .../binder_error_with_having_statement.test | 4 +- .../fuzzer/pedro/blob_wrong_optimization.test | 4 +- .../pedro/buffer_manager_out_of_memory.test | 4 +- .../pedro/buffer_manager_resize_issue.test | 4 +- ...cardinality_estimator_assertion_error.test | 4 +- .../cardinality_estimator_runtime_issue.test | 4 +- .../fuzzer/pedro/comparison_to_string.test | 4 +- .../pedro/complex_offset_clause_crash.test | 4 +- .../pedro/complex_type_all_subquery.test | 4 +- .../pedro/concurrent_catalog_usage.test | 4 +- .../fuzzer/pedro/concurrent_set_threads.test | 4 +- .../fuzzer/pedro/constraints_temp_table.test | 4 +- .../fuzzer/pedro/correlated_in_segv.test | 4 +- .../fuzzer/pedro/correlated_limit_rowid.test | 4 +- .../pedro/correlated_offset_subquery.test | 4 +- .../correlated_subquery_downcast_error.test | 4 +- .../fuzzer/pedro/create_index_error.test | 4 +- .../pedro/create_replace_table_union.test | 4 +- .../pedro/currval_sequence_dependency.test | 4 +- .../pedro/date_int_optimizer_error.test | 4 +- .../pedro/decimal_with_invalid_scale.test | 4 +- .../fuzzer/pedro/delete_add_column.test | 4 +- .../fuzzer/pedro/delete_using_bindings.test | 4 +- .../corpus/fuzzer/pedro/drop_gcol.test | 4 +- .../corpus/fuzzer/pedro/duplicate_cte.test | 4 +- .../fuzzer/pedro/duplicate_using_clause.test | 4 +- .../pedro/escaped_trim_function_call.test | 4 +- .../pedro/export_parquet_generated.test | 4 +- .../pedro/first_value_window_crash.test | 4 +- .../floating_point_conversion_overflow.test | 8 +- .../pedro/floating_point_inequality.test | 4 +- .../fuzzer/pedro/force_external_blob.test | 4 +- .../fuzzer/pedro/force_no_cross_product.test | 4 +- .../forced_parallelism_empty_select.test | 4 +- .../pedro/foreign_key_binding_issue.test | 6 +- .../pedro/foreign_key_type_mismatch.test | 4 +- .../fuzzer/pedro/gcol_stack_overflow.test | 4 +- .../fuzzer/pedro/group_by_all_row_alias.test | 4 +- .../fuzzer/pedro/hash_finalize_race.test | 4 +- .../pedro/having_query_wrong_result.test | 4 +- .../pedro/having_subquery_failed_to_bind.test | 4 +- .../pedro/in_clause_optimization_error.test | 4 +- .../fuzzer/pedro/in_clause_setop_rewrite.test | 4 +- .../fuzzer/pedro/incomplete_checkpoint.test | 4 +- .../fuzzer/pedro/incorrect_offset_result.test | 4 +- .../fuzzer/pedro/index_current_timestamp.test | 4 +- .../fuzzer/pedro/index_generated_column.test | 4 +- .../fuzzer/pedro/index_insert_from_union.test | 8 +- .../pedro/index_not_updated_returning.test | 4 +- .../fuzzer/pedro/index_on_altered_table.test | 4 +- .../pedro/insert_or_replace_only_pk.test | 4 +- .../pedro/intersect_correlated_subquery.test | 4 +- .../fuzzer/pedro/intersect_empty_array.test | 4 +- .../pedro/is_distinct_from_validation.test | 4 +- .../fuzzer/pedro/lag_window_function.test | 4 +- .../corpus/fuzzer/pedro/last_memory_leak.test | 4 +- .../corpus/fuzzer/pedro/lateral_join.test | 4 +- .../corpus/fuzzer/pedro/like_empty_list.test | 4 +- .../fuzzer/pedro/limit_on_any_subquery.test | 4 +- .../local_transaction_delete_empty_tree.test | 4 +- .../logical_column_index_out_of_range.test | 4 +- .../fuzzer/pedro/missing_subquery_error.test | 4 +- .../pedro/multiplication_verification.test | 4 +- .../corpus/fuzzer/pedro/nan_as_seed.test | 4 +- .../natural_join_generated_heap_overflow.test | 4 +- .../fuzzer/pedro/nested_limit_subquery.test | 4 +- .../pedro/nested_subquery_table_function.test | 4 +- .../pedro/non_boolean_aggregate_filter.test | 4 +- .../offset_query_allocator_assertion.test | 4 +- .../fuzzer/pedro/order_by_all_with_union.test | 4 +- .../pedro/overflow_parsing_interval.test | 4 +- .../pedro/overflow_varchar_decimal_cast.test | 4 +- .../corpus/fuzzer/pedro/parser_roundtrip.test | 4 +- .../prepared_statement_recursive_cte.test | 4 +- .../pedro/pushdown_assertion_error.test | 4 +- .../corpus/fuzzer/pedro/pushdown_error.test | 4 +- .../pushdown_simplification_overflow.test | 4 +- .../fuzzer/pedro/qualify_binder_error.test | 4 +- .../pedro/random_engine_use_after_free.test | 4 +- .../pedro/recursive_cte_dependent_join.test | 4 +- .../pedro/recursive_cte_limit_percent.test | 4 +- .../fuzzer/pedro/regr_count_validity.test | 4 +- .../fuzzer/pedro/rename_column_assertion.test | 4 +- .../corpus/fuzzer/pedro/rename_restart.test | 4 +- .../pedro/rename_table_index_rollback.test | 4 +- .../pedro/rename_table_index_storage.test | 4 +- .../fuzzer/pedro/restart_current_time.test | 4 +- .../corpus/fuzzer/pedro/restart_random.test | 4 +- .../returning_clause_sizes_not_match.test | 4 +- .../pedro/returning_clause_with_rowid.test | 4 +- .../fuzzer/pedro/rollup_wrong_result.test | 4 +- .../fuzzer/pedro/sample_limit_overflow.test | 4 +- .../pedro/segment_tree_index_issue.test | 4 +- .../fuzzer/pedro/setop_type_mismatch.test | 4 +- .../pedro/signed_and_unsigned_comparison.test | 4 +- .../pedro/statistics_propagation_set_op.test | 4 +- .../fuzzer/pedro/strftime_constant_null.test | 4 +- .../fuzzer/pedro/strptime_null_argument.test | 4 +- .../pedro/subquery_assertion_error.test | 4 +- .../pedro/temp_sequence_durability.test | 4 +- .../fuzzer/pedro/temp_sequence_reconnect.test | 4 +- .../fuzzer/pedro/temp_table_cleanup.test | 4 +- .../corpus/fuzzer/pedro/test_segv_argmax.test | 4 +- .../test_truncate_heap_use_after_free.test | 4 +- .../pedro/test_window_function_nullptr.test | 4 +- .../fuzzer/pedro/update_default_segv.test | 4 +- .../fuzzer/pedro/update_join_bind_error.test | 4 +- .../fuzzer/pedro/update_join_statistics.test | 4 +- .../fuzzer/pedro/utf8_invalid_unicode.test | 4 +- .../vacuum_table_with_generated_column.test | 4 +- .../fuzzer/pedro/vacuum_unsupported_type.test | 4 +- .../pedro/verify_parallelism_batch_index.test | 4 +- .../fuzzer/pedro/view_not_rebound_error.test | 4 +- .../corpus/fuzzer/pedro/wal_rename_table.test | 4 +- .../fuzzer/pedro/window_function_timeout.test | 4 +- .../fuzzer/pedro/window_self_reference.test | 4 +- .../fuzzer/public/cast_index_expression.test | 4 +- .../corpus/fuzzer/public/columns_using.test | 4 +- .../distinct_on_non_integer_literal.test | 4 +- .../fuzzer/public/duplicate_alias_using.test | 4 +- .../corpus/fuzzer/public/enum_empty_type.test | 4 +- .../fuzzer/public/insert_by_name_default.test | 4 +- .../insert_or_replace_default_values.test | 4 +- .../fuzzer/public/insert_returning.test | 4 +- .../public/lateral_in_right_side_of_join.test | 4 +- .../fuzzer/public/lateral_join_subquery.test | 4 +- .../fuzzer/public/lateral_right_join.test | 4 +- .../fuzzer/public/pivot_empty_enum.test | 4 +- .../fuzzer/public/pivot_full_join_using.test | 4 +- .../positional_join_correlated_subquery.test | 4 +- .../public/pragma_named_parameters.test | 4 +- .../public/regex_range_filter_mismatch.test | 4 +- .../fuzzer/public/semi_anti_join_using.test | 4 +- .../corpus/fuzzer/public/semi_join_using.test | 4 +- .../fuzzer/public/unpivot_partial_values.test | 4 +- .../public/unsatisfiable_filter_prune.test | 4 +- .../fuzzer/public/window_subquery_error.test | 4 +- .../window_subquery_with_functions_error.test | 4 +- .../sqlsmith/bitstring_agg_executor.test | 4 +- .../sqlsmith/bitstring_agg_overflow.test | 4 +- .../fuzzer/sqlsmith/current_schemas_null.test | 4 +- .../fuzzer/sqlsmith/dayofweek_overflow.test | 4 +- .../sqlsmith/fuzzer_window_varchar.test | 4 +- .../sqlsmith/generate_series_overflow.test | 4 +- .../sqlsmith/interval_diff_overflow.test | 4 +- .../sqlsmith/interval_multiply_overflow.test | 4 +- .../fuzzer/sqlsmith/json_contains_null.test | 4 +- .../fuzzer/sqlsmith/like_null_pattern.test | 4 +- .../corpus/fuzzer/sqlsmith/mad_overflow.test | 4 +- .../fuzzer/sqlsmith/makedate_overflow.test | 4 +- .../sqlsmith/nested_correlated_subquery.test | 4 +- .../corpus/fuzzer/sqlsmith/nullif_map.test | 4 +- .../sqlsmith/nullif_map_with_config.test | 4 +- .../statistics_assertion_trigger.test | 4 +- .../fuzzer/sqlsmith/strptime_nullpointer.test | 4 +- .../sqlsmith/struct_null_coalesce_assert.test | 4 +- .../fuzzer/sqlsmith/struct_verify_crash.test | 4 +- .../sqlsmith/subquery_binding_error.test | 4 +- .../fuzzer/sqlsmith/test_abs_overflow.test | 4 +- .../sqlsmith/timestamp_diff_overflow.test | 8 +- .../fuzzer/sqlsmith/timestamp_overflow.test | 4 +- .../sqlsmith/timestamptz_double_cast.test | 4 +- .../sqlsmith/timestamptz_null_range.test | 4 +- .../sqlsmith/validity_mask_out_of_bounds.test | 4 +- .../sqlsmith/window-leadlag-overflow.test | 4 +- .../fuzzer/sqlsmith/window-list-value.test | 4 +- .../fuzzer/sqlsmith/window-rows-overflow.test | 4 +- .../sqlsmith/window_function_error.test | 4 +- .../fuzzer/sqlsmith/window_scalar_range.test | 4 +- .../aggregate_state_union.test | 21 + .../approx_count_distinct_export_state.test | 4 +- .../approx_quantile_export_state.test | 4 +- .../approx_top_k_export_state.test | 27 +- .../arg_min_max_export_state.test | 4 +- .../avg_time_export_state.test | 4 +- .../avg_timestamp_export_state.test | 111 +++++ .../bool_and_export_state.test | 4 +- .../combine_aggr_count_overflow.test | 4 +- .../count_export_state.test | 4 +- .../finalize_null_fields.test | 4 +- .../first_last_export_state.test | 4 +- .../kahan_avg_export_state.test | 4 +- .../legacy_aggregate_state.test | 4 +- .../list_export_state.test | 4 +- .../minmax_export_state.test | 4 +- .../ordered_aggregate_export_state.test | 4 +- .../ordered_export_empty_state.test | 21 + .../ordered_export_state_layout.test | 4 +- .../product_export_state.test | 4 +- .../state_export_parquet.test | 4 +- .../sum_export_state.test | 4 +- .../test_aggregate_state_type.test | 4 +- .../test_combine_aggr.test | 4 +- .../test_corr_state_export.test | 4 +- .../test_covar_export_state.test | 4 +- .../test_export_state_distinct.test | 69 ++++ .../test_export_state_finalize_limits.test | 4 +- .../test_sorted_aggregate_state_bounds.test | 4 +- .../test_sorted_aggregate_state_types.test | 4 +- .../test_state_export_opaque.test | 4 +- .../test_state_export_quantile.test | 4 +- .../test_state_export_string_agg.test | 4 +- .../test_state_export_struct.test | 4 +- .../test_stddev_export_state.test | 4 +- .../to_aggregate_state_argument_types.test | 4 +- .../to_aggregate_state_errors.test | 4 +- .../vector_minmax_export_state.test | 4 +- .../approx_quantile_decimal_scalar.test | 4 +- .../approx_quantile_parallel_finalize.test | 11 +- .../aggregate/aggregates/approx_top_k.test | 16 +- .../aggregate/aggregates/arg_min_max_n.test | 4 +- .../aggregates/arg_min_max_n_tpch.test | 4 +- .../aggregates/arg_min_max_nulls_last.test | 4 +- .../aggregates/avg_interval_large_count.test | 4 +- .../sql/aggregate/aggregates/binning.test | 4 +- .../aggregates/bitagg_memory_limit.test | 13 +- .../aggregates/bitstring_agg_empty.test | 4 +- .../bitstring_agg_memory_limit.test | 4 +- .../aggregates/duckdb_fuzzer_4313.test | 4 +- .../aggregates/first_last_alloc_reuse.test | 4 +- .../aggregate/aggregates/histogram_exact.test | 28 +- .../aggregates/histogram_table_function.test | 16 +- .../corpus/sql/aggregate/aggregates/lttb.test | 4 +- .../aggregates/max_n_all_types_grouped.test | 4 +- .../aggregate/aggregates/mode_rewrite.test | 4 +- .../aggregates/mode_rewrite_memory.test | 4 +- .../aggregates/quantile_memory_limit.test | 4 +- .../aggregates/string_agg_union.test | 4 +- .../summarize_nanosecond_types.test | 17 + .../aggregates/test_aggr_string.test | 4 +- .../aggregates/test_aggregate_types.test | 4 +- .../test_aggregate_types_scalar.test | 4 +- .../aggregate/aggregates/test_any_value.test | 4 +- .../aggregates/test_any_value_noninlined.test | 4 +- .../aggregates/test_approx_quantile.test | 16 +- .../test_approx_quantile_decimal.test | 4 +- ...st_approx_quantile_timestamp_infinity.test | 4 +- .../test_approx_quantile_timetz.test | 37 ++ .../test_approximate_distinct_count.test | 4 +- .../aggregates/test_arg_min_max.test | 4 +- .../aggregates/test_arg_min_max_null.test | 4 +- .../sql/aggregate/aggregates/test_avg.test | 4 +- .../test_avg_timestamp_infinity.test | 101 +++++ .../aggregate/aggregates/test_bigint_avg.test | 4 +- .../aggregates/test_binned_histogram.test | 190 ++++++++- .../aggregate/aggregates/test_bit_and.test | 4 +- .../sql/aggregate/aggregates/test_bit_or.test | 4 +- .../aggregate/aggregates/test_bit_xor.test | 4 +- .../aggregates/test_bitstring_agg.test | 4 +- .../test_bitstring_agg_small_types.test | 4 +- .../sql/aggregate/aggregates/test_bool.test | 4 +- .../sql/aggregate/aggregates/test_corr.test | 4 +- .../sql/aggregate/aggregates/test_count.test | 4 +- .../aggregates/test_count_all_types.test | 4 +- .../aggregates/test_count_qualified_star.test | 4 +- .../aggregate/aggregates/test_count_star.test | 4 +- .../sql/aggregate/aggregates/test_covar.test | 4 +- ...test_decimal_aggregate_named_argument.test | 21 + .../aggregates/test_empty_aggregate.test | 4 +- .../aggregate/aggregates/test_entropy.test | 4 +- .../test_first_last_any_ordered.test | 4 +- .../aggregates/test_first_noninlined.test | 4 +- .../aggregates/test_group_on_expression.test | 4 +- .../aggregate/aggregates/test_histogram.test | 4 +- .../aggregates/test_histogram_3529.test | 4 +- .../aggregates/test_incorrect_aggregate.test | 4 +- .../aggregate/aggregates/test_kahan_avg.test | 4 +- .../aggregates/test_kahan_combine.test | 4 +- .../aggregates/test_kahan_precision.test | 76 ++++ .../aggregate/aggregates/test_kahan_sum.test | 4 +- .../aggregate/aggregates/test_kurtosis.test | 4 +- .../sql/aggregate/aggregates/test_last.test | 4 +- .../aggregates/test_last_noninlined.test | 4 +- .../sql/aggregate/aggregates/test_mad.test | 4 +- .../aggregates/test_mad_hugeint_range.test | 4 +- .../sql/aggregate/aggregates/test_median.test | 4 +- .../sql/aggregate/aggregates/test_minmax.test | 4 +- .../aggregates/test_minmax_14145.test | 4 +- .../sql/aggregate/aggregates/test_mode.test | 4 +- .../aggregates/test_null_aggregates.test | 4 +- .../aggregates/test_order_by_aggregate.test | 4 +- .../test_ordered_aggregate_inner_error.test | 4 +- .../aggregates/test_ordered_aggregates.test | 8 +- .../aggregate/aggregates/test_perfect_ht.test | 4 +- .../aggregate/aggregates/test_product.test | 4 +- .../aggregates/test_quantile_cont.test | 4 +- .../aggregates/test_quantile_cont_list.test | 4 +- .../aggregates/test_quantile_disc.test | 4 +- .../aggregates/test_quantile_disc_double.test | 63 +++ .../aggregates/test_quantile_disc_list.test | 4 +- .../test_quantile_timestamp_exact.test | 21 + .../aggregates/test_quantile_timetz.test | 4 +- .../aggregate/aggregates/test_regression.test | 4 +- .../test_reservoir_quantile_decimal.test | 4 +- .../test_reservoir_quantile_sampling.test | 22 + .../aggregates/test_scalar_aggr.test | 4 +- .../sql/aggregate/aggregates/test_sem.test | 4 +- .../aggregates/test_simple_filter.test | 4 +- .../aggregate/aggregates/test_skewness.test | 4 +- .../sql/aggregate/aggregates/test_stddev.test | 4 +- .../aggregate/aggregates/test_string_agg.test | 4 +- .../aggregates/test_string_agg_big.test | 4 +- .../sql/aggregate/aggregates/test_sum.test | 4 +- .../aggregates/test_sum_decimal_overflow.test | 4 +- .../aggregates/test_sum_fastpath.test | 4 +- .../aggregates/test_weighted_avg.test | 4 +- .../sql/aggregate/count_execution_paths.test | 4 +- .../aggregate/distinct/distinct_limit.test | 20 +- .../aggregate/distinct/distinct_on_nulls.test | 4 +- .../distinct/distinct_on_order_by.test | 4 +- .../grouped/combined_with_grouping.test | 4 +- .../distinct/grouped/identical_inputs.test | 4 +- .../distinct/grouped/issue_5070.test | 4 +- .../grouped/multiple_grouping_sets.test | 4 +- .../distinct/grouped/string_agg.test | 4 +- .../sql/aggregate/distinct/issue19616.test | 4 +- .../sql/aggregate/distinct/issue2656.test | 4 +- .../sql/aggregate/distinct/issue8505.test | 4 +- .../sql/aggregate/distinct/issue9241.test | 4 +- .../rewrite/distinct_aggregate_rewrite.test | 4 +- ...distinct_aggregate_rewrite_join_order.test | 4 +- ...tinct_aggregate_rewrite_order_by_keys.test | 78 ++++ .../sql/aggregate/distinct/test_distinct.test | 4 +- .../aggregate/distinct/test_distinct_on.test | 4 +- .../distinct/test_distinct_on_columns.test | 4 +- .../distinct/test_distinct_order_by.test | 4 +- .../ungrouped/test_distinct_ungrouped.test | 4 +- .../test_distinct_ungrouped_shared_input.test | 4 +- .../aggregate/first_last_nested_vectors.test | 4 +- .../sql/aggregate/group/group_by_all.test | 4 +- .../group/group_by_all_collation.test | 33 ++ .../aggregate/group/group_by_all_having.test | 4 +- .../group/group_by_all_having_groups.test | 65 +++ .../aggregate/group/group_by_all_order.test | 4 +- .../aggregate/group/group_by_all_window.test | 4 +- .../sql/aggregate/group/group_by_limits.test | 4 +- .../perfect_hash_corrupt_stats_range.test | 17 + ...perfect_hash_corrupt_stats_wrapped_id.test | 13 + .../group/perfect_hash_max_values.test | 4 +- .../group/perfect_ht_memory_limit.test | 4 +- .../sql/aggregate/group/test_group_by.test | 4 +- .../aggregate/group/test_group_by_alias.test | 4 +- .../aggregate/group/test_group_by_error.test | 4 +- .../group/test_group_by_large_string.test | 4 +- .../group/test_group_by_multi_column.test | 4 +- .../aggregate/group/test_group_by_nested.test | 4 +- .../group/test_group_by_null_length.test | 4 +- .../group/test_group_by_skip_lookups.test | 4 +- .../sql/aggregate/group/test_group_null.test | 4 +- .../sql/aggregate/grouping_sets/cube.test | 4 +- .../sql/aggregate/grouping_sets/grouping.test | 4 +- .../grouping_sets/grouping_sets.test | 4 +- .../grouping_sets/grouping_sets_filter.test | 4 +- .../grouping_sets_many_sets.test | 4 +- .../grouping_sets_sum_having.test | 4 +- .../aggregate/grouping_sets/issue_3730.test | 4 +- .../many_duplicate_grouping_sets.test | 13 + .../multiple_empty_grouping_sets.test | 4 +- .../sql/aggregate/grouping_sets/rollup.test | 4 +- .../sql/aggregate/having/having_alias.test | 4 +- .../having/having_without_groupby.test | 4 +- .../sql/aggregate/having/test_having.test | 24 +- .../aggregate/having/test_scalar_having.test | 4 +- .../sql/aggregate/qualify/test_qualify.test | 4 +- .../aggregate/qualify/test_qualify_macro.test | 4 +- .../aggregate/qualify/test_qualify_view.test | 4 +- .../corpus/sql/aggregate/quantile_fun.test | 4 +- .../sparse_clustered_aggregation.test | 4 +- .../variant/variant_group_object.test | 4 +- .../variant_group_object_shredded.test | 4 +- .../sql/alter/add_col/test_add_col.test | 4 +- .../sql/alter/add_col/test_add_col_chain.test | 4 +- .../add_col/test_add_col_compression.test | 4 +- .../add_col/test_add_col_constraints.test | 4 +- .../alter/add_col/test_add_col_default.test | 4 +- .../add_col/test_add_col_default_seq.test | 4 +- .../add_col/test_add_col_distinct_stats.test | 4 +- .../test_add_col_if_not_exists_default.test | 4 +- .../alter/add_col/test_add_col_incorrect.test | 4 +- .../sql/alter/add_col/test_add_col_index.test | 4 +- .../alter/add_col/test_add_col_not_null.test | 4 +- .../sql/alter/add_col/test_add_col_stats.test | 4 +- .../add_col/test_add_col_transactions.test | 4 +- .../alter/add_col/test_add_col_unique.test | 4 +- .../alter/add_col/test_add_col_user_type.test | 4 +- .../add_pk/test_add_multi_column_pk.test | 4 +- .../corpus/sql/alter/add_pk/test_add_pk.test | 4 +- .../alter/add_pk/test_add_pk_alter_in_tx.test | 4 +- .../sql/alter/add_pk/test_add_pk_attach.test | 4 +- .../add_pk/test_add_pk_catalog_error.test | 4 +- .../test_add_pk_concurrent_create_index.test | 33 ++ .../add_pk/test_add_pk_concurrent_null.test | 22 + .../add_pk/test_add_pk_gaps_in_rowids.test | 4 +- .../add_pk/test_add_pk_invalid_data.test | 4 +- .../add_pk/test_add_pk_invalid_type.test | 4 +- .../alter/add_pk/test_add_pk_local_null.test | 8 +- .../add_pk/test_add_pk_naming_conflict.test | 4 +- .../alter/add_pk/test_add_pk_rollback.test | 4 +- .../sql/alter/add_pk/test_add_pk_wal.test | 4 +- .../add_pk/test_add_pk_wal_generated.test | 4 +- .../test_add_pk_with_generated_column.test | 4 +- .../test_add_same_pk_simultaneously.test | 4 +- .../alter/add_pk/test_add_same_pk_twice.test | 4 +- .../sql/alter/add_unique/test_add_unique.test | 4 +- .../alter/add_unique/test_add_unique_wal.test | 4 +- .../alter/alter_col/test_drop_not_null.test | 4 +- .../test_drop_not_null_primary_key.test | 4 +- .../alter_col/test_not_null_in_tran.test | 4 +- .../alter_col/test_not_null_multi_tran.test | 4 +- .../sql/alter/alter_col/test_set_collate.test | 4 +- .../alter/alter_col/test_set_not_null.test | 4 +- .../test_set_not_null_after_delete.test | 4 +- .../alter_schema_set_schema_options.test | 4 +- .../alter/alter_table_if_exists_tostring.test | 41 ++ ...ter_table_nullability_requires_column.test | 4 +- .../alter/alter_table_set_partitioned_by.test | 4 +- .../sql/alter/alter_table_set_sorted_by.test | 4 +- .../alter/alter_table_set_table_options.test | 4 +- ...lter_type_concurrent_committed_update.test | 4 +- .../alter_type/alter_type_distinct_stats.test | 4 +- ...r_type_failed_cast_keeps_table_usable.test | 4 +- .../alter/alter_type/alter_type_struct.test | 4 +- .../sql/alter/alter_type/test_alter_type.test | 4 +- ...er_type_active_transaction_visibility.test | 4 +- .../alter_type/test_alter_type_check.test | 4 +- .../test_alter_type_dependencies.test | 4 +- .../test_alter_type_expression.test | 4 +- .../alter_type/test_alter_type_incorrect.test | 4 +- .../alter_type/test_alter_type_index.test | 4 +- .../alter_type/test_alter_type_local.test | 4 +- .../test_alter_type_multi_column.test | 4 +- .../alter_type/test_alter_type_not_null.test | 4 +- .../alter_type/test_alter_type_rollback.test | 4 +- .../test_alter_type_transactions.test | 4 +- .../alter_type/test_alter_type_unique.test | 4 +- .../test_alter_type_using_not_null.test | 4 +- ...test_alter_type_with_generated_column.test | 4 +- .../sql/alter/default/drop_default.test | 4 +- .../sql/alter/default/test_set_default.test | 4 +- .../sql/alter/drop_col/test_drop_col.test | 4 +- .../alter/drop_col/test_drop_col_check.test | 4 +- .../drop_col/test_drop_col_check_next.test | 4 +- ...test_drop_col_concurrent_dml_conflict.test | 4 +- .../drop_col/test_drop_col_dotted_name.test | 4 +- .../alter/drop_col/test_drop_col_failure.test | 4 +- .../drop_col/test_drop_col_not_null_next.test | 4 +- .../drop_col/test_drop_col_operations.test | 4 +- .../sql/alter/drop_col/test_drop_col_pk.test | 4 +- .../test_drop_col_with_generated_cols.test | 4 +- .../corpus/sql/alter/drop_constraint.test | 4 +- .../sql/alter/list/add_column_in_struct.test | 4 +- .../sql/alter/list/drop_column_in_struct.test | 4 +- .../alter/list/rename_column_in_struct.test | 4 +- .../sql/alter/map/add_column_in_struct.test | 4 +- .../sql/alter/map/drop_column_in_struct.test | 4 +- .../alter/map/rename_column_in_struct.test | 4 +- .../sql/alter/rename_col/test_rename_col.test | 4 +- .../rename_col/test_rename_col_check.test | 4 +- .../test_rename_col_dependencies.test | 4 +- .../rename_col/test_rename_col_failure.test | 4 +- .../rename_col/test_rename_col_not_null.test | 4 +- .../rename_col/test_rename_col_rollback.test | 4 +- .../test_rename_col_transactions.test | 4 +- .../rename_col/test_rename_col_unique.test | 4 +- .../alter/rename_schema/rename_schema.test | 4 +- .../test_rename_bug4455_schema.test | 4 +- .../alter/rename_table/test_rename_table.test | 4 +- .../rename_table/test_rename_table_case.test | 4 +- .../test_rename_table_chain_commit.test | 4 +- .../test_rename_table_collision.test | 4 +- ...st_rename_table_conflict_storage_name.test | 4 +- .../test_rename_table_constraints.test | 4 +- .../test_rename_table_incorrect.test | 4 +- .../test_rename_table_many_transactions.test | 4 +- .../test_rename_table_transactions.test | 4 +- .../rename_table/test_rename_table_view.test | 4 +- ...st_rename_table_with_dependency_check.test | 4 +- ..._rename_table_with_insert_transaction.test | 4 +- .../alter/rename_view/test_rename_view.test | 4 +- .../test_rename_view_incorrect.test | 4 +- .../test_rename_view_many_transactions.test | 4 +- .../rename_view/test_rename_view_table.test | 4 +- .../alter/struct/add_col_nested_struct.test | 4 +- .../sql/alter/struct/add_col_struct.test | 4 +- .../struct/add_col_struct_column_default.test | 166 ++++++++ ...r_nested_struct_field_not_implemented.test | 4 +- .../alter/struct/drop_col_nested_struct.test | 4 +- .../sql/alter/struct/drop_col_struct.test | 4 +- .../struct/rename_col_nested_struct.test | 4 +- .../sql/alter/struct/rename_col_struct.test | 4 +- .../rename_col_struct_case_insensitive.test | 4 +- .../sql/alter/test_alter_database_rename.test | 4 +- .../sql/alter/test_alter_if_exists.test | 4 +- .../corpus/sql/attach/attach_all_types.test | 4 +- .../attach_catalog_error_early_out.test | 4 +- .../attach/attach_checkpoint_on_detach.test | 4 +- .../sql/attach/attach_checkpoint_vacuum.test | 4 +- .../attach/attach_conflicting_options.test | 4 +- .../corpus/sql/attach/attach_copy.test | 4 +- .../sql/attach/attach_create_index.test | 4 +- .../sql/attach/attach_cross_catalog.test | 4 +- .../sql/attach/attach_custom_block_size.test | 4 +- .../sql/attach/attach_database_options.test | 4 +- .../sql/attach/attach_database_size.test | 4 +- .../sql/attach/attach_dbname_quotes.test | 4 +- .../attach/attach_default_database_case.test | 4 +- .../sql/attach/attach_default_table.test | 4 +- .../corpus/sql/attach/attach_defaults.test | 4 +- .../sql/attach/attach_dependencies.test | 4 +- .../attach/attach_detach_in_transaction.test | 73 ++++ .../attach_detach_reattach_transaction.test | 4 +- .../attach_detach_same_name_transaction.test | 73 ++++ .../sql/attach/attach_did_you_mean.test | 4 +- .../sql/attach/attach_different_alias.test | 4 +- .../corpus/sql/attach/attach_duckdb_type.test | 4 +- .../attach_ducklake_metadata_warning.test | 117 ++++++ .../attach/attach_enable_external_access.test | 4 +- .../attach/attach_encrypted_db_key_test.test | 4 +- .../attach_encrypted_storage_version.test | 143 +++++++ .../attach/attach_encrypted_v1_4_file.test | 30 ++ .../attach_encryption_block_header.test | 4 +- ...ttach_encryption_downgrade_prevention.test | 4 +- .../attach_encryption_fallback_readonly.test | 8 +- .../corpus/sql/attach/attach_enums.test | 4 +- .../sql/attach/attach_export_import.test | 4 +- .../corpus/sql/attach/attach_expr.test | 4 +- .../sql/attach/attach_external_access.test | 4 +- .../sql/attach/attach_filepath_roundtrip.test | 4 +- .../corpus/sql/attach/attach_foreign_key.test | 4 +- .../attach_foreign_key_external_catalog.test | 4 +- .../corpus/sql/attach/attach_fsspec.test | 4 +- .../corpus/sql/attach/attach_hidden.test | 4 +- .../sql/attach/attach_home_directory.test | 4 +- .../sql/attach/attach_huggingface_index.test | 4 +- .../sql/attach/attach_icu_collation.test | 4 +- .../sql/attach/attach_if_not_exists.test | 4 +- .../attach/attach_if_not_exists_detach.test | 4 +- .../corpus/sql/attach/attach_index.test | 4 +- .../corpus/sql/attach/attach_issue16122.test | 4 +- .../corpus/sql/attach/attach_issue7567.test | 4 +- .../corpus/sql/attach/attach_issue7711.test | 4 +- .../corpus/sql/attach/attach_issue_21491.test | 4 +- .../corpus/sql/attach/attach_issue_7660.test | 4 +- .../corpus/sql/attach/attach_lambda_view.test | 4 +- .../corpus/sql/attach/attach_macros.test | 4 +- .../attach_mmap_reserve_size_range.test | 13 + .../attach_modify_multiple_databases.test | 4 +- .../sql/attach/attach_multi_identifiers.test | 4 +- .../sql/attach/attach_nested_types.test | 4 +- .../sql/attach/attach_new_compression.test | 4 +- .../sql/attach/attach_no_wal_writes_mode.test | 4 +- .../corpus/sql/attach/attach_null.test | 4 +- .../corpus/sql/attach/attach_or_replace.test | 4 +- .../corpus/sql/attach/attach_persistent.test | 4 +- .../attach/attach_pragma_storage_info.test | 4 +- .../sql/attach/attach_prefetch_header.test | 4 +- .../corpus/sql/attach/attach_read_only.test | 4 +- .../attach/attach_read_only_transaction.test | 4 +- .../attach/attach_remote_http_logging.test | 4 +- .../attach_replay_with_no_wal_writes.test | 4 +- .../corpus/sql/attach/attach_reserved.test | 4 +- .../sql/attach/attach_row_group_size.test | 4 +- .../attach_row_group_size_decreasing.test | 4 +- .../corpus/sql/attach/attach_same_db.test | 4 +- .../corpus/sql/attach/attach_schema.test | 4 +- .../corpus/sql/attach/attach_sequence.test | 4 +- .../attach/attach_serialize_dependency.test | 4 +- .../sql/attach/attach_show_all_tables.test | 4 +- .../corpus/sql/attach/attach_show_table.test | 4 +- .../sql/attach/attach_storage_version.test | 4 +- .../sql/attach/attach_table_constraints.test | 4 +- .../corpus/sql/attach/attach_table_ddl.test | 4 +- .../corpus/sql/attach/attach_table_info.test | 4 +- .../attach/attach_to_external_resource.test | 4 +- .../sql/attach/attach_transactionality.test | 8 +- .../sql/attach/attach_use_rollback.test | 4 +- .../sql/attach/attach_use_string_literal.test | 4 +- .../sql/attach/attach_view_search_path.test | 4 +- .../corpus/sql/attach/attach_views.test | 4 +- .../attach/attach_volatile_expression.test | 4 +- .../corpus/sql/attach/attach_wal_alter.test | 4 +- .../sql/attach/attach_wal_alter_sequence.test | 4 +- .../corpus/sql/attach/detach_keyword.test | 4 +- .../detach_manager_default_database.test | 4 +- .../external_resource_attach_failure.test | 4 +- .../attach/external_resource_discovery.test | 10 +- .../external_resource_external_access.test | 67 +++ .../attach/external_resource_lifecycle.test | 4 +- .../sql/attach/external_resource_logging.test | 4 +- .../attach/external_resource_null_handle.test | 4 +- .../external_resource_option_collision.test | 4 +- .../external_resource_show_subquery.test | 87 ++++ .../attach/external_resource_show_types.test | 72 ++++ .../external_resource_show_with_type.test | 119 ++++++ .../attach/external_resource_statements.test | 12 +- .../external_resource_type_autoload.test | 41 ++ .../attach/external_resource_type_dotted.test | 106 +++++ .../corpus/sql/attach/in_memory_attach.test | 4 +- .../corpus/sql/attach/reattach_schema.test | 6 +- .../sql/attach/remote_file_concurrently.test | 4 +- .../sql/attach/searchpath_fallback.test | 4 +- .../corpus/sql/attach/show_databases.test | 4 +- .../corpus/sql/attach/show_schemas.test | 4 +- .../corpus/sql/attach/system_catalog.test | 4 +- .../corpus/sql/binder/alias_error_10057.test | 4 +- .../binder/alias_qualification_errors.test | 4 +- .../binder/alias_qualification_group_by.test | 4 +- .../binder/alias_qualification_having.test | 4 +- .../binder/alias_qualification_order_by.test | 4 +- .../binder/alias_qualification_qualify.test | 4 +- ...alias_qualification_select_projection.test | 4 +- .../sql/binder/alias_qualification_where.test | 4 +- .../sql/binder/alias_where_side_effects.test | 4 +- .../sql/binder/column_ref_as_alias.test | 4 +- .../sql/binder/column_value_alias_group.test | 4 +- .../sql/binder/default_expression_errors.test | 4 +- .../corpus/sql/binder/duplicate_alias.test | 4 +- .../corpus/sql/binder/empty_column_alias.test | 4 +- .../binder/expression_binder_coverage.test | 4 +- .../sql/binder/function_chaining_19035.test | 4 +- .../binder/group_by_incremental_alias.test | 4 +- .../sql/binder/group_by_qualification.test | 4 +- .../sql/binder/integer_literal_binding.test | 4 +- .../corpus/sql/binder/legacy_null_type.test | 12 +- .../sql/binder/missing_column_error.test | 4 +- .../sql/binder/named_parameter_cast.test | 4 +- .../corpus/sql/binder/not_similar_to.test | 4 +- .../corpus/sql/binder/old_implicit_cast.test | 4 +- .../binder/old_implicit_cast_template.test | 4 +- .../corpus/sql/binder/order_by_view.test | 4 +- .../binder/qualified_alias_method_call.test | 4 +- .../sql/binder/separate_schema_tables.test | 4 +- .../corpus/sql/binder/similar_to.test | 4 +- .../sql/binder/string_literal_binding.test | 4 +- .../sql/binder/table_alias_single_quotes.test | 4 +- .../corpus/sql/binder/table_view_alias.test | 4 +- .../corpus/sql/binder/test_alias.test | 4 +- .../binder/test_alias_map_in_subquery.test | 4 +- .../binder/test_case_insensitive_binding.test | 4 +- .../test_duplicate_in_set_operation.test | 4 +- .../binder/test_function_chaining_alias.test | 4 +- .../corpus/sql/binder/test_having_alias.test | 4 +- .../sql/binder/test_implicit_struct_pack.test | 4 +- .../sql/binder/test_in_with_collate.test | 4 +- .../binder/test_null_type_propagation.test | 4 +- .../test_postitional_ref_order_binding.test | 4 +- .../sql/binder/test_select_clause_alias.test | 4 +- .../corpus/sql/binder/test_string_alias.test | 4 +- .../sql/cast/array_to_varchar_quoting.test | 4 +- .../corpus/sql/cast/boolean_autocast.test | 4 +- .../sql/cast/boolean_to_decimal_cast.test | 59 +++ .../corpus/sql/cast/cast_error_location.test | 4 +- .../sql/cast/cast_error_logical_types.test | 4 +- .../sql/cast/cast_sign_only_whitespace.test | 4 +- .../sql/cast/common_operator_coverage.test | 4 +- .../corpus/sql/cast/decimal_cast.test | 4 +- .../sql/cast/decimal_constexpr_limits.test | 4 +- .../corpus/sql/cast/decimal_float_cast.test | 4 +- .../cast/decimal_hugeint_zero_to_double.test | 25 ++ .../corpus/sql/cast/decimal_integer_cast.test | 4 +- .../sql/cast/dot_function_missing_error.test | 4 +- .../corpus/sql/cast/double_float_cast.test | 4 +- .../sql/cast/double_to_varchar_shortest.test | 61 +++ .../corpus/sql/cast/float_decimal_cast.test | 4 +- .../corpus/sql/cast/float_integer_cast.test | 4 +- ...sted_union_variant_to_varchar_quoting.test | 41 ++ .../corpus/sql/cast/signed_cast_repro.test | 4 +- .../cast/string_to_integer_decimal_cast.test | 4 +- .../cast/string_to_integer_exponent_cast.test | 4 +- .../cast/string_to_integer_many_decimals.test | 4 +- .../corpus/sql/cast/string_to_list_cast.test | 4 +- .../sql/cast/string_to_list_escapes.test | 4 +- .../sql/cast/string_to_list_roundtrip.test | 4 +- .../sql/cast/string_to_map_escapes.test | 4 +- .../cast/string_to_map_invalid_entries.test | 4 +- .../sql/cast/string_to_map_null_keys.test | 4 +- .../sql/cast/string_to_struct_cast.test | 4 +- .../sql/cast/string_to_struct_escapes.test | 4 +- .../cast/string_to_struct_variant_child.test | 4 +- .../sql/cast/string_to_unnamed_struct.test | 4 +- .../sql/cast/struct_cast_can_throw.test | 165 ++++++++ .../struct_from_string_duplicate_keys.test | 25 ++ .../corpus/sql/cast/struct_to_map.test | 4 +- .../sql/cast/struct_to_map_null_cast.test | 37 ++ .../corpus/sql/cast/test_bit_cast.test | 4 +- .../corpus/sql/cast/test_boolean_cast.test | 4 +- .../test_copy_constant_vector_offset.test | 4 +- .../sql/cast/test_exponent_in_cast.test | 4 +- .../sql/cast/test_string_binary_cast.test | 4 +- .../corpus/sql/cast/test_string_cast.test | 4 +- .../corpus/sql/cast/test_try_cast.test | 4 +- .../corpus/sql/cast/timestamp_casts.test | 4 +- .../corpus/sql/cast/timestamp_casts_icu.test | 4 +- .../corpus/sql/cast/timestamp_date_cast.test | 4 +- .../corpus/sql/cast/try_cast_blob_to_bit.test | 4 +- .../sql/cast/try_cast_union_impossible.test | 29 ++ .../testdata/corpus/sql/cast/union_cast.test | 4 +- .../sql/cast/union_member_variant_cast.test | 4 +- .../sql/catalog/case_insensitive_alter.test | 4 +- .../sql/catalog/case_insensitive_binder.test | 4 +- .../sql/catalog/case_insensitive_caps.test | 4 +- .../sql/catalog/case_insensitive_cte.test | 4 +- .../catalog/case_insensitive_operations.test | 4 +- .../sql/catalog/case_insensitive_using.test | 4 +- .../corpus/sql/catalog/comment_on.test | 4 +- .../corpus/sql/catalog/comment_on_column.test | 4 +- .../comment_on_column_remote_catalog.test | 4 +- .../sql/catalog/comment_on_dependencies.test | 4 +- .../sql/catalog/comment_on_extended.test | 6 +- .../catalog/comment_on_pg_description.test | 4 +- .../catalog/comment_on_sequence_counter.test | 25 ++ .../corpus/sql/catalog/comment_on_wal.test | 4 +- .../add_column_to_table_referenced_by_fk.test | 4 +- ...d_column_to_table_referenced_by_macro.test | 4 +- ...dd_column_to_table_referenced_by_view.test | 4 +- .../alter_table_keeps_schema_dependency.test | 4 +- ...e_of_table_column_referenced_by_index.test | 4 +- .../drop_recreate_schema_dependency.test | 4 +- ...move_table_column_referenced_by_index.test | 4 +- ...name_table_column_referenced_by_index.test | 4 +- ...rename_view_referenced_by_table_macro.test | 4 +- ...t_of_table_column_referenced_by_index.test | 4 +- .../test_alter_dependency_ownership.test | 4 +- .../dependencies/test_alter_owned_by.test | 4 +- .../dependencies/test_alter_owning_table.test | 4 +- .../dependencies/test_concurrent_alter.test | 4 +- .../dependencies/test_concurrent_drop.test | 4 +- .../test_concurrent_index_creation.test | 4 +- .../test_concurrent_schema_creation.test | 4 +- .../test_default_value_dependency.test | 4 +- .../test_drop_column_sequence_dependency.test | 4 +- ...est_drop_default_referencing_sequence.test | 4 +- .../test_drop_type_table_dependency.test | 45 ++ ...est_prepare_dependencies_transactions.test | 4 +- .../test_prepared_dependency.test | 4 +- .../dependencies/test_schema_dependency.test | 4 +- .../test_set_default_sequence_dependency.test | 4 +- .../dependencies/test_write_after_rename.test | 4 +- .../corpus/sql/catalog/did_you_mean.test | 4 +- .../sql/catalog/drop_create_rollback.test | 4 +- .../sql/catalog/function/attached_macro.test | 4 +- .../builtin_macro_parser_settings.test | 4 +- .../function/information_schema_macro.test | 4 +- .../catalog/function/macro_query_table.test | 4 +- .../python_style_macro_parameters.test | 4 +- .../sql/catalog/function/query_function.test | 8 +- .../query_function.test.metadata.json | 1 - .../function/query_table_file_paths.test | 4 +- .../function/struct_extract_macro.test | 4 +- .../catalog/function/test_complex_macro.test | 4 +- .../function/test_cross_catalog_macros.test | 4 +- .../sql/catalog/function/test_cte_macro.test | 4 +- .../sql/catalog/function/test_drop_macro.test | 4 +- .../function/test_macro_correlated_cte.test | 4 +- .../function/test_macro_default_arg.test | 4 +- ...t_macro_default_arg_with_dependencies.test | 4 +- .../function/test_macro_issue_13104.test | 4 +- .../function/test_macro_issue_14276.test | 4 +- .../function/test_macro_issue_18927.test | 4 +- .../function/test_macro_issue_19119.test | 4 +- .../function/test_macro_overloads.test | 4 +- .../test_macro_parameter_named_argument.test | 21 + .../test_macro_positional_reference.test | 4 +- .../test_macro_relpersistence_conflict.test | 4 +- .../function/test_macro_type_overloads.test | 4 +- .../test_macro_with_unknown_types.test | 4 +- .../function/test_recursive_macro.test | 4 +- .../function/test_recursive_table_macro.test | 4 +- .../catalog/function/test_sequence_macro.test | 4 +- .../catalog/function/test_simple_macro.test | 4 +- .../catalog/function/test_subquery_macro.test | 4 +- .../catalog/function/test_table_macro.test | 4 +- .../function/test_table_macro_args.test | 4 +- .../function/test_table_macro_complex.test | 4 +- .../function/test_table_macro_copy.test | 4 +- .../function/test_table_macro_groups.test | 4 +- .../catalog/function/test_window_macro.test | 4 +- .../sql/catalog/identifier_embedded_nul.test | 4 +- .../catalog/information_schema_read_only.test | 4 +- .../corpus/sql/catalog/issue_9459.test | 4 +- .../nested_schema/create_nested_schema.test | 4 +- .../nested_schema/deeply_nested_entries.test | 4 +- .../nested_schema/drop_nested_schema.test | 4 +- .../drop_nested_schema_persist.test | 4 +- .../catalog/nested_schema/nested_alter.test | 64 ++- .../nested_schema/nested_constraints.test | 4 +- .../nested_schema/nested_drop_index.test | 77 ++++ .../nested_schema/nested_drop_sequence.test | 45 ++ .../catalog/nested_schema/nested_entries.test | 4 +- .../nested_schema/nested_entries_persist.test | 4 +- .../catalog/nested_schema/nested_export.test | 4 +- .../nested_foreign_key_paths.test | 122 ++++++ .../nested_schema/nested_main_schema.test | 57 +++ .../nested_schema/nested_missing_entries.test | 53 +++ .../nested_schema/nested_schema_limits.test | 4 +- .../nested_schema_search_path.test | 229 ++++++++++ .../nested_schema_storage_version.test | 4 +- .../nested_schema/nested_search_path.test | 253 ++++++++++++ .../nested_search_path_catalog.test | 69 ++++ .../nested_schema/nested_show_all_tables.test | 33 ++ .../nested_schema/nested_show_tables.test | 97 +++++ .../catalog/nested_schema/nested_table.test | 4 +- .../nested_schema/nested_table_columnref.test | 4 +- .../nested_schema/nested_table_dml.test | 4 +- .../nested_table_dml_persist.test | 4 +- .../nested_schema/nested_table_persist.test | 4 +- .../nested_schema/nested_view_attached.test | 4 +- .../nested_view_function_attached.test | 93 +++++ .../nested_view_function_catalog.test | 45 ++ .../nested_schema/nested_wal_replay.test | 4 +- .../nested_wal_replay_index.test | 4 +- .../sql/catalog/nested_schema/persist.test | 4 +- .../sql/catalog/nested_schema_ctas.test | 129 ++++++ .../nested_schema_ctas_persistence.test | 45 ++ .../sql/catalog/nested_schema_ctas_temp.test | 25 ++ .../sql/catalog/quoted_search_path.test | 8 +- .../prepared_currval_dropped_sequence.test | 8 +- ...ence_currval_before_nextval_supported.test | 4 +- ...e_currval_before_nextval_v1_5_storage.test | 4 +- .../sql/catalog/sequence/sequence_cycle.test | 4 +- ...quence_derive_last_value_v1_5_storage.test | 4 +- .../catalog/sequence/sequence_empty_name.test | 4 +- .../sequence/sequence_int64_limit.test | 153 +++++++ .../sequence/sequence_offset_increment.test | 4 +- .../catalog/sequence/sequence_overflow.test | 4 +- .../sequence_wal_last_value_concurrent.test | 13 + .../corpus/sql/catalog/sequence/setval.test | 4 +- .../sequence/test_duckdb_sequences.test | 4 +- .../sql/catalog/sequence/test_sequence.test | 4 +- .../sequence/test_sequence_dependency.test | 4 +- .../sequence/test_sequence_google_fuzz.test | 4 +- .../system_catalog_entry_pushdown.test | 198 +++++++++ .../system_catalog_scanner.test | 187 +++++++++ ...stem_catalog_scanner_fallible_filters.test | 61 +++ .../table/create_table_parameters.test | 4 +- .../sql/catalog/table/long_identifier.test | 4 +- .../table/test_create_table_parallelism.test | 4 +- .../sql/catalog/table/test_default.test | 4 +- .../catalog/table/test_default_not_null.test | 4 +- .../catalog/table/test_default_values.test | 4 +- .../sql/catalog/table/test_many_columns.test | 4 +- .../sql/catalog/test_alter_oid_stability.test | 4 +- .../sql/catalog/test_catalog_errors.test | 4 +- .../sql/catalog/test_create_from_select.test | 4 +- .../catalog/test_extension_suggestion.test | 4 +- .../sql/catalog/test_if_not_exists.test | 4 +- .../test_incorrect_table_creation.test | 6 +- .../test_querying_from_detached_catalog.test | 8 +- .../sql/catalog/test_quoted_column_name.test | 4 +- .../corpus/sql/catalog/test_schema.test | 4 +- .../corpus/sql/catalog/test_set_schema.test | 4 +- .../sql/catalog/test_set_search_path.test | 4 +- .../sql/catalog/test_standard_schema.test | 4 +- .../corpus/sql/catalog/test_temporary.test | 4 +- .../sql/catalog/test_temporary_index.test | 4 +- .../sql/catalog/test_temporary_schema.test | 4 +- .../sql/catalog/test_unicode_schema.test | 4 +- .../sql/catalog/view/deferred_binding.test | 4 +- .../catalog/view/nested_view_search_path.test | 4 +- .../sql/catalog/view/recursive_view.test | 4 +- .../recursive_view_with_dependencies.test | 4 +- .../corpus/sql/catalog/view/secure_view.test | 4 +- .../catalog/view/secure_view_persistence.test | 4 +- .../view/test_loosely_qualified_view_sql.test | 4 +- .../sql/catalog/view/test_stacked_view.test | 4 +- .../corpus/sql/catalog/view/test_view.test | 4 +- .../sql/catalog/view/test_view_alias.test | 4 +- .../catalog/view/test_view_delete_update.test | 4 +- .../view/test_view_drop_concurrent.test | 4 +- .../view/test_view_duplicate_columns.test | 4 +- .../catalog/view/test_view_schema_change.test | 4 +- ..._view_schema_change_with_dependencies.test | 4 +- .../sql/catalog/view/test_view_sql.test | 4 +- .../view/test_view_sql_with_dependencies.test | 4 +- .../sql/catalog/view/view_catalog_alias.test | 4 +- .../sql/catalog/view/view_if_not_exists.test | 4 +- .../collate/collate_distinct_aggregate.test | 8 +- .../collate_distinct_aggregate_icu.test | 4 +- .../sql/collate/collate_filter_pushdown.test | 4 +- .../sql/collate/collate_group_by_all.test | 97 +++++ .../sql/collate/collate_group_subquery.test | 103 +++++ .../sql/collate/collate_in_subquery.test | 4 +- .../collate_json_ordered_aggregate.test | 37 ++ .../corpus/sql/collate/collate_like.test | 4 +- .../corpus/sql/collate/collate_nested.test | 4 +- .../sql/collate/collate_non_varchar.test | 4 +- .../sql/collate/collate_order_by_alias.test | 4 +- .../collate/collate_ordered_aggregate.test | 4 +- .../sql/collate/collate_string_col.test | 4 +- .../sql/collate/collate_struct_minmax.test | 4 +- .../corpus/sql/collate/collate_subquery.test | 4 +- .../sql/collate/collation_invalid_utf8.test | 12 +- .../sql/collate/collation_sort_keys.test | 4 +- .../sql/collate/count_distinct_collation.test | 4 +- .../collate/icu_collation_propagation.test | 4 +- .../collate/icu_sort_key_language_tags.test | 26 ++ .../nop_collation_join_filter_pushdown.test | 4 +- .../test_collate_accent_insensitive.test | 4 +- .../test_collate_and_grouping_sets.test | 4 +- .../sql/collate/test_collate_between.test | 4 +- .../test_collate_case_insensitive.test | 4 +- .../sql/collate/test_collate_expression.test | 4 +- .../corpus/sql/collate/test_collate_list.test | 4 +- .../collate/test_collate_list_contains.test | 4 +- .../test_collate_list_has_any_all.test | 58 +++ .../collate/test_collate_null_constant.test | 4 +- .../test_collate_orderby_column_number.test | 4 +- .../sql/collate/test_collate_pivot.test | 4 +- .../collate/test_collation_propagation.test | 4 +- .../sql/collate/test_combined_collation.test | 4 +- .../test_default_collation_functions.test | 56 +++ .../sql/collate/test_default_collations.test | 4 +- .../corpus/sql/collate/test_icu_collate.test | 4 +- .../sql/collate/test_pragma_collations.test | 4 +- .../sql/collate/test_strpos_collate.test | 4 +- .../collate/test_unsupported_collations.test | 4 +- .../corpus/sql/conjunction/or_between.test | 4 +- .../corpus/sql/conjunction/or_comparison.test | 4 +- .../sql/conjunction/or_select_order.test | 86 ++++ .../connect/concurrent_connect_detach.test | 12 +- ...nnect_failure_keeps_local_transaction.test | 57 +++ .../connect/connect_passthrough_quack.test | 8 +- .../corpus/sql/connect/connect_quack.test | 12 +- .../sql/connect/connect_string_ephemeral.test | 8 +- .../corpus/sql/connect/connect_syntax.test | 4 +- .../disconnect_aborted_transaction.test | 33 ++ .../check/check_qualified_names.test | 4 +- .../sql/constraints/check/check_struct.test | 4 +- .../sql/constraints/check/test_check.test | 4 +- ...test_update_check_non_updated_columns.test | 4 +- .../sql/constraints/foreignkey/fk_19469.test | 4 +- .../sql/constraints/foreignkey/fk_20530.test | 4 +- .../sql/constraints/foreignkey/fk_4309.test | 4 +- .../sql/constraints/foreignkey/fk_4365.test | 4 +- .../fk_alter_preserves_parent_dependency.test | 113 +++++ .../foreignkey/fk_case_insensitivity.test | 4 +- .../foreignkey/fk_implicit_primary_key.test | 4 +- .../fk_self_reference_tostring.test | 4 +- .../foreign_key_matching_columns.test | 4 +- .../constraints/foreignkey/test_action.test | 4 +- .../constraints/foreignkey/test_fk_alter.test | 4 +- .../constraints/foreignkey/test_fk_chain.test | 4 +- .../test_fk_concurrency_conflicts.test | 4 +- .../foreignkey/test_fk_create_or_replace.test | 4 +- .../foreignkey/test_fk_create_type.test | 4 +- .../foreignkey/test_fk_cross_schema.test | 4 +- .../test_fk_eager_constraint_checking.test | 4 +- .../foreignkey/test_fk_export.test | 4 +- .../test_fk_key_multiple_key_actions.test | 4 +- .../foreignkey/test_fk_multiple.test | 4 +- .../foreignkey/test_fk_on_view_error.test | 4 +- .../test_fk_pk_multi_transaction_delete.test | 4 +- .../foreignkey/test_fk_rollback.test | 4 +- .../test_fk_self_reference_export.test | 4 +- .../foreignkey/test_fk_self_referencing.test | 4 +- .../foreignkey/test_fk_temporary.test | 4 +- .../foreignkey/test_fk_transaction.test | 4 +- .../foreignkey/test_fk_with_attached_db.test | 4 +- .../foreignkey/test_foreignkey.test | 4 +- .../constraints/primarykey/test_pk_bool.test | 4 +- .../primarykey/test_pk_col_subset.test | 4 +- .../test_pk_concurrency_conflicts.test | 4 +- .../primarykey/test_pk_many_columns.test | 4 +- .../primarykey/test_pk_multi_column.test | 4 +- .../primarykey/test_pk_multi_string.test | 4 +- .../primarykey/test_pk_rollback.test | 4 +- .../primarykey/test_pk_string.test | 4 +- .../primarykey/test_pk_update_delete.test | 4 +- .../primarykey/test_pk_updel_local.test | 4 +- .../test_pk_updel_multi_column.test | 4 +- .../primarykey/test_primary_key.test | 4 +- .../test_constraint_with_updates.test | 4 +- .../test_named_column_constraints.test | 4 +- .../corpus/sql/constraints/test_not_null.test | 4 +- .../sql/constraints/unique/test_unique.test | 4 +- .../constraints/unique/test_unique_error.test | 4 +- .../unique/test_unique_multi_column.test | 4 +- .../unique/test_unique_multi_constraint.test | 4 +- .../unique/test_unique_string.test | 4 +- .../constraints/unique/test_unique_temp.test | 4 +- .../sql/copy/async_file_character_device.test | 4 +- .../corpus/sql/copy/async_file_lifecycle.test | 4 +- .../testdata/corpus/sql/copy/copy_blob.test | 4 +- .../corpus/sql/copy/copy_blob_options.test | 4 +- .../copy_column_identifier_conversion.test | 4 +- parser/testdata/corpus/sql/copy/copy_cte.test | 4 +- .../corpus/sql/copy/copy_legacy_options.test | 4 +- .../sql/copy/copy_order_by_collation.test | 4 +- .../sql/copy/copy_order_by_subquery.test | 4 +- .../copy/copy_to_attached_database_path.test | 41 ++ .../sql/copy/copy_to_parameter_filename.test | 4 +- .../testdata/corpus/sql/copy/csv/14512.test | 4 +- .../testdata/corpus/sql/copy/csv/14874.test | 4 +- .../testdata/corpus/sql/copy/csv/17738.test | 4 +- .../testdata/corpus/sql/copy/csv/17744.test | 4 +- .../testdata/corpus/sql/copy/csv/18579.test | 4 +- .../testdata/corpus/sql/copy/csv/19578.test | 4 +- .../testdata/corpus/sql/copy/csv/21248.test | 4 +- .../testdata/corpus/sql/copy/csv/25268.test | 4 +- .../testdata/corpus/sql/copy/csv/26049.test | 4 +- parser/testdata/corpus/sql/copy/csv/7702.test | 4 +- .../sql/copy/csv/afl/fuzz_20250211_crash.test | 4 +- .../sql/copy/csv/afl/fuzz_20250226.test | 4 +- .../copy/csv/afl/test_afl_ignore_errors.test | 4 +- .../copy/csv/afl/test_afl_no_parameter.test | 4 +- .../copy/csv/afl/test_afl_null_padding.test | 4 +- .../sql/copy/csv/afl/test_afl_skip.test | 4 +- .../sql/copy/csv/afl/test_fuzz_3977.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4086.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4172.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4234.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4329.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4379.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4496.test | 4 +- .../sql/copy/csv/afl/test_fuzz_4793.test | 4 +- .../sql/copy/csv/afl/test_fuzz_5194.test | 4 +- .../corpus/sql/copy/csv/allow_empty.test | 4 +- .../corpus/sql/copy/csv/auto/test_14177.test | 4 +- .../sql/copy/csv/auto/test_auto_5250.test | 4 +- .../sql/copy/csv/auto/test_auto_5378.test | 4 +- .../sql/copy/csv/auto/test_auto_8231.test | 4 +- .../sql/copy/csv/auto/test_auto_8573.test | 4 +- .../sql/copy/csv/auto/test_auto_8649.test | 4 +- .../sql/copy/csv/auto/test_auto_8860.test | 4 +- .../csv/auto/test_auto_column_type_opt.test | 4 +- .../sql/copy/csv/auto/test_auto_cranlogs.test | 4 +- .../csv/auto/test_auto_greek_ncvoter.test | 4 +- .../copy/csv/auto/test_auto_greek_utf8.test | 4 +- .../sql/copy/csv/auto/test_auto_imdb.test | 4 +- .../sql/copy/csv/auto/test_auto_lineitem.test | 4 +- .../sql/copy/csv/auto/test_auto_ontime.test | 4 +- .../sql/copy/csv/auto/test_auto_web_page.test | 4 +- .../sql/copy/csv/auto/test_csv_auto.test | 4 +- .../csv/auto/test_date_format_bug_linux.test | 4 +- .../copy/csv/auto/test_describe_order.test | 4 +- .../csv/auto/test_double_quoted_header.test | 4 +- .../sql/copy/csv/auto/test_early_out.test | 4 +- .../copy/csv/auto/test_header_completion.test | 4 +- .../copy/csv/auto/test_header_detection.test | 4 +- .../auto/test_large_integer_detection.test | 4 +- .../copy/csv/auto/test_normalize_names.test | 4 +- .../sql/copy/csv/auto/test_sample_size.test | 4 +- .../sql/copy/csv/auto/test_sniffer_blob.test | 4 +- .../auto/test_sniffer_empty_start_value.test | 4 +- .../sql/copy/csv/auto/test_timings_csv.test | 4 +- .../copy/csv/auto/test_type_candidates.test | 4 +- .../copy/csv/auto/test_type_detection.test | 4 +- .../sql/copy/csv/auto_glob_directory.test | 4 +- .../csv/code_cov/buffer_manager_finalize.test | 4 +- .../copy/csv/code_cov/csv_core_encodings.test | 4 +- .../csv/code_cov/csv_dialect_detection.test | 4 +- .../csv/code_cov/csv_exact_buffer_size.test | 4 +- .../csv/code_cov/csv_scanner_conversion.test | 4 +- .../copy/csv/code_cov/csv_sniffer_header.test | 4 +- .../csv_state_machine_invalid_utf.test | 4 +- .../copy/csv/code_cov/csv_type_detection.test | 4 +- .../csv/code_cov/csv_type_refinement.test | 4 +- .../corpus/sql/copy/csv/column_names.test | 4 +- .../corpus/sql/copy/csv/comment_quoting.test | 4 +- .../sql/copy/csv/compressed_read_size.test | 4 +- .../copy/csv/copy_disable_parallelism.test | 4 +- .../corpus/sql/copy/csv/copy_expression.test | 4 +- .../sql/copy/csv/copy_to_overwrite.test | 4 +- .../copy/csv/csv_comment_quoted_sniff.test | 29 ++ .../corpus/sql/copy/csv/csv_copy_sniffer.test | 4 +- .../sql/copy/csv/csv_decimal_separator.test | 4 +- .../corpus/sql/copy/csv/csv_dtypes.test | 4 +- .../copy/csv/csv_dtypes_union_by_name.test | 4 +- .../corpus/sql/copy/csv/csv_duck_fuzz.test | 4 +- .../corpus/sql/copy/csv/csv_enum.test | 4 +- .../sql/copy/csv/csv_error_message.test | 4 +- .../sql/copy/csv/csv_external_access.test | 4 +- .../sql/copy/csv/csv_glob_fallback.test | 4 +- .../corpus/sql/copy/csv/csv_hive.test | 4 +- .../sql/copy/csv/csv_hive_filename_union.test | 4 +- .../sql/copy/csv/csv_home_directory.test | 4 +- .../csv/csv_last_value_error_no_newline.test | 29 ++ .../corpus/sql/copy/csv/csv_limit_copy.test | 4 +- .../sql/copy/csv/csv_line_too_long.test | 4 +- .../csv/csv_multibyte_delimiter_escapes.test | 4 +- .../corpus/sql/copy/csv/csv_names.test | 4 +- .../corpus/sql/copy/csv/csv_null_byte.test | 4 +- .../corpus/sql/copy/csv/csv_null_padding.test | 4 +- .../corpus/sql/copy/csv/csv_nullstr_list.test | 4 +- .../sql/copy/csv/csv_projection_pushdown.test | 4 +- .../copy/csv/csv_quoted_buffer_boundary.test | 13 + .../csv_quoted_newline_after_boundary.test | 4 +- .../csv/csv_quoted_newline_incorrect.test | 4 +- .../copy/csv/csv_roundtrip_single_null.test | 4 +- ...csv_unterminated_quote_cast_error_eof.test | 21 + .../csv/csv_windows_mixed_separators.test | 4 +- .../csv/duck_fuzz/test_internal_4048.test | 4 +- .../corpus/sql/copy/csv/empty_first_line.test | 4 +- .../sql/copy/csv/empty_string_quote.test | 4 +- .../testdata/corpus/sql/copy/csv/except.test | 4 +- .../sql/copy/csv/glob/copy_csv_glob.test | 4 +- .../sql/copy/csv/glob/read_csv_glob.test | 4 +- .../sql/copy/csv/glob/test_unmatch_globs.test | 4 +- .../copy/csv/inconsistent_cells_error.test | 4 +- .../corpus/sql/copy/csv/integer_exponent.test | 4 +- .../corpus/sql/copy/csv/issue_22153.test | 4 +- .../corpus/sql/copy/csv/issue_6690.test | 4 +- .../corpus/sql/copy/csv/issue_6764.test | 4 +- .../copy/csv/leading_zeros_autodetect.test | 4 +- .../multidelimiter/test_2_byte_delimiter.test | 4 +- .../test_3_4_byte_delimiter.test | 4 +- .../copy/csv/multidelimiter/test_abac.test | 4 +- .../test_options_inconsistencies.test | 4 +- .../corpus/sql/copy/csv/null_padding_big.test | 4 +- .../corpus/sql/copy/csv/null_terminator.test | 4 +- .../sql/copy/csv/null_value_wrong_type.test | 4 +- .../csv/overwrite/test_copy_overwrite.test | 4 +- .../test_overwrite_pipe_windows.test | 4 +- .../parallel/csv_parallel_buffer_size.test | 4 +- .../parallel/csv_parallel_null_option.test | 4 +- .../parallel_csv_hive_partitioning.test | 4 +- .../parallel/parallel_csv_union_by_name.test | 4 +- .../sql/copy/csv/parallel/test_5438.test | 4 +- .../sql/copy/csv/parallel/test_5566.test | 4 +- .../sql/copy/csv/parallel/test_7578.test | 4 +- .../csv/parallel/test_multiple_files.test | 4 +- .../copy/csv/parallel/test_parallel_csv.test | 4 +- .../test_parallel_error_messages.test | 8 +- .../copy/csv/parallel/test_rrrn_parallel.test | 4 +- .../corpus/sql/copy/csv/plus_autodetect.test | 4 +- .../csv/pollock/test_field_delimiter.test | 4 +- .../copy/csv/pollock/test_quotation_char.test | 4 +- .../csv/read_ahead/csv_readahead_gzip.test | 8 +- .../read_ahead/csv_readahead_multi_file.test | 4 +- .../csv/read_ahead/csv_readahead_rejects.test | 4 +- .../read_ahead/csv_readahead_single_file.test | 4 +- .../sql/copy/csv/read_csv_subquery.test | 4 +- .../sql/copy/csv/read_csv_variable.test | 4 +- .../sql/copy/csv/read_single_csv_file.test | 4 +- .../copy/csv/recursive_csv_union_by_name.test | 4 +- .../sql/copy/csv/recursive_read_csv.test | 4 +- .../csv_incorrect_columns_amount_rejects.test | 12 +- .../copy/csv/rejects/csv_rejects_auto.test | 4 +- .../csv_rejects_cache_key_collision.test | 4 +- .../csv/rejects/csv_rejects_flush_cast.test | 4 +- .../rejects/csv_rejects_flush_message.test | 4 +- .../csv_rejects_invalid_utf8_nested.test | 14 + .../csv/rejects/csv_rejects_maximum_line.test | 4 +- .../copy/csv/rejects/csv_rejects_read.test | 8 +- ...sv_rejects_truncate_line_invalid_utf8.test | 4 +- .../csv/rejects/csv_rejects_two_tables.test | 4 +- .../csv/rejects/csv_unquoted_rejects.test | 4 +- .../csv/rejects/test_invalid_parameters.test | 4 +- .../csv/rejects/test_invalid_utf_rejects.test | 4 +- .../sql/copy/csv/rejects/test_mixed.test | 4 +- .../test_multiple_errors_same_line.test | 4 +- .../corpus/sql/copy/csv/relaxed_quotes.test | 4 +- .../sql/copy/csv/sniff_csv_skip_overflow.test | 17 + .../testdata/corpus/sql/copy/csv/struct.test | 4 +- .../corpus/sql/copy/csv/struct_padding.test | 4 +- .../corpus/sql/copy/csv/test_11403.test | 4 +- .../corpus/sql/copy/csv/test_11840.test | 4 +- .../corpus/sql/copy/csv/test_12596.test | 4 +- .../corpus/sql/copy/csv/test_15473.test | 4 +- .../corpus/sql/copy/csv/test_8890.test | 4 +- .../corpus/sql/copy/csv/test_9005.test | 4 +- .../corpus/sql/copy/csv/test_afl.test | 4 +- .../corpus/sql/copy/csv/test_all_quotes.test | 4 +- .../csv/test_allow_quoted_nulls_option.test | 4 +- .../corpus/sql/copy/csv/test_auto_date.test | 4 +- .../copy/csv/test_auto_detection_headers.test | 4 +- .../corpus/sql/copy/csv/test_bgzf_read.test | 4 +- .../corpus/sql/copy/csv/test_big_header.test | 4 +- .../corpus/sql/copy/csv/test_blob.test | 4 +- .../corpus/sql/copy/csv/test_bug_10273.test | 4 +- .../copy/csv/test_column_inconsistencies.test | 4 +- .../sql/copy/csv/test_comment_midline.test | 4 +- .../sql/copy/csv/test_comment_option.test | 4 +- .../sql/copy/csv/test_compression_flag.test | 4 +- .../corpus/sql/copy/csv/test_copy.test | 4 +- .../test_copy_csv_multibyte_delimiter.test | 4 +- .../sql/copy/csv/test_copy_default.test | 4 +- .../corpus/sql/copy/csv/test_copy_gzip.test | 4 +- .../copy/csv/test_copy_many_empty_lines.test | 4 +- .../corpus/sql/copy/csv/test_copy_null.test | 4 +- .../copy/csv/test_csv_duplicate_columns.test | 4 +- .../copy/csv/test_csv_error_message_type.test | 4 +- .../copy/csv/test_csv_error_projection.test | 4 +- .../corpus/sql/copy/csv/test_csv_json.test | 4 +- .../sql/copy/csv/test_csv_mixed_casts.test | 4 +- .../csv/test_csv_no_trailing_newline.test | 4 +- .../copy/csv/test_csv_options_typed_null.test | 4 +- .../csv/test_csv_projection_pushdown.test | 4 +- .../test_csv_projection_pushdown_glob.test | 4 +- .../sql/copy/csv/test_csv_timestamp_tz.test | 4 +- .../copy/csv/test_csv_timestamp_tz_icu.test | 4 +- .../corpus/sql/copy/csv/test_date.test | 4 +- .../sql/copy/csv/test_date_sniffer.test | 4 +- .../corpus/sql/copy/csv/test_dateformat.test | 4 +- .../corpus/sql/copy/csv/test_decimal.test | 4 +- .../sql/copy/csv/test_double_sniffer.test | 4 +- .../sql/copy/csv/test_empty_header.test | 4 +- .../corpus/sql/copy/csv/test_empty_quote.test | 4 +- .../test_encoding_straddle_compressed.test | 4 +- .../corpus/sql/copy/csv/test_enum_csv.test | 4 +- .../sql/copy/csv/test_escape_long_value.test | 4 +- .../copy/csv/test_export_force_quotes.test | 4 +- .../sql/copy/csv/test_export_not_null.test | 4 +- .../copy/csv/test_extra_delimiters_rfc.test | 4 +- .../sql/copy/csv/test_filename_filter.test | 4 +- .../sql/copy/csv/test_force_not_null.test | 4 +- .../corpus/sql/copy/csv/test_force_quote.test | 4 +- .../copy/csv/test_glob_reorder_lineitem.test | 4 +- .../sql/copy/csv/test_glob_reorder_null.test | 4 +- .../corpus/sql/copy/csv/test_glob_type.test | 4 +- .../corpus/sql/copy/csv/test_greek_utf8.test | 4 +- .../csv/test_gzip_large_member_header.test | 4 +- .../corpus/sql/copy/csv/test_header_only.test | 4 +- .../sql/copy/csv/test_headers_12089.test | 4 +- .../sql/copy/csv/test_hits_problematic.test | 4 +- .../sql/copy/csv/test_ignore_errors.test | 4 +- .../csv/test_ignore_errors_end_of_chunk.test | 4 +- .../copy/csv/test_ignore_mid_null_line.test | 4 +- .../corpus/sql/copy/csv/test_imdb.test | 4 +- .../copy/csv/test_infinite_loop_escape.test | 4 +- .../sql/copy/csv/test_insert_into_types.test | 4 +- .../copy/csv/test_issue3562_assertion.test | 4 +- .../corpus/sql/copy/csv/test_issue5077.test | 4 +- .../corpus/sql/copy/csv/test_lineitem.test | 4 +- .../corpus/sql/copy/csv/test_lineitem_gz.test | 4 +- .../corpus/sql/copy/csv/test_linesize.test | 4 +- .../corpus/sql/copy/csv/test_long_line.test | 4 +- .../sql/copy/csv/test_many_columns.test | 4 +- .../sql/copy/csv/test_mismatch_schemas.test | 4 +- .../corpus/sql/copy/csv/test_missing_row.test | 4 +- .../sql/copy/csv/test_mixed_line_endings.test | 4 +- .../sql/copy/csv/test_mixed_new_line.test | 4 +- .../corpus/sql/copy/csv/test_ncvoter.test | 4 +- .../corpus/sql/copy/csv/test_nfc.test | 4 +- .../corpus/sql/copy/csv/test_nfc_suite.test | 4 +- .../sql/copy/csv/test_non_unicode_header.test | 4 +- .../csv/test_null_padding_projection.test | 4 +- .../sql/copy/csv/test_null_padding_union.test | 4 +- .../corpus/sql/copy/csv/test_ontime.test | 4 +- .../copy/csv/test_parallel_nullpadding.test | 4 +- .../copy/csv/test_partition_compression.test | 4 +- .../sql/copy/csv/test_prefix_suffix.test | 4 +- .../sql/copy/csv/test_quote_default.test | 4 +- .../copy/csv/test_quoted_later_escaped.test | 4 +- .../sql/copy/csv/test_quoted_newline.test | 4 +- .../corpus/sql/copy/csv/test_read_csv.test | 4 +- .../copy/csv/test_replacement_scan_alias.test | 4 +- .../corpus/sql/copy/csv/test_segfault.test | 4 +- .../corpus/sql/copy/csv/test_skip_bom.test | 4 +- .../corpus/sql/copy/csv/test_skip_header.test | 4 +- .../corpus/sql/copy/csv/test_sniff_csv.test | 4 +- .../sql/copy/csv/test_sniff_csv_options.test | 4 +- .../sql/copy/csv/test_sniffer_hang.test | 4 +- .../copy/csv/test_sniffer_tab_delimiter.test | 4 +- .../sql/copy/csv/test_soccer_kaggle.test | 4 +- .../copy/csv/test_thijs_unquoted_file.test | 4 +- .../copy/csv/test_thousands_separator.test | 4 +- .../corpus/sql/copy/csv/test_time.test | 4 +- .../sql/copy/csv/test_timestamp_offset.test | 4 +- .../sql/copy/csv/test_timestamptz_12926.test | 4 +- .../sql/copy/csv/test_union_by_name.test | 4 +- .../copy/csv/test_union_by_name_types.test | 4 +- .../csv/test_unregistered_compression.test | 57 +++ .../sql/copy/csv/test_utf16_odd_length.test | 4 +- .../copy/csv/test_utf16_surrogate_pairs.test | 49 +++ .../corpus/sql/copy/csv/test_validator.test | 4 +- .../corpus/sql/copy/csv/test_web_page.test | 4 +- .../sql/copy/csv/test_windows_newline.test | 4 +- .../csv/test_wrong_newline_delimiter.test | 4 +- .../sql/copy/csv/timestamp_with_tz.test | 4 +- .../corpus/sql/copy/csv/tsv_copy.test | 4 +- .../corpus/sql/copy/csv/unicode_filename.test | 4 +- .../sql/copy/csv/unquoted_escape/basic.test | 4 +- .../copy/csv/unquoted_escape/human_eval.test | 4 +- .../copy/csv/unquoted_escape/identical.test | 4 +- .../sql/copy/csv/unquoted_escape/mixed.test | 4 +- .../sql/copy/csv/write_header_default.test | 4 +- .../corpus/sql/copy/csv/zstd_crash.test | 4 +- .../testdata/corpus/sql/copy/csv/zstd_fs.test | 4 +- .../concurrent_encrypted_attach.test | 4 +- .../encryption/different_aes_ciphers.test | 4 +- ...erent_encryption_versions_and_ciphers.test | 4 +- .../encryption_storage_versions.test | 4 +- .../sql/copy/encryption/force_mbedtls.test | 4 +- .../test_different_encryption_versions.test | 4 +- .../encryption/unencrypted_to_encrypted.test | 4 +- ...unencrypted_to_encrypted_direct_query.test | 4 +- .../encryption/write_encrypted_database.test | 4 +- .../copy/file_rotation_preserve_order.test | 268 ++++++++++++ .../corpus/sql/copy/file_size_bytes.test | 4 +- .../copy/file_size_bytes_csv_compression.test | 4 +- .../copy/file_size_bytes_existing_target.test | 4 +- .../sql/copy/file_size_bytes_tiny_limit.test | 4 +- .../copy/filename_pattern_serialization.test | 49 +++ .../testdata/corpus/sql/copy/format_uuid.test | 4 +- .../copy/hive_partition_null_overwrite.test | 4 +- .../testdata/corpus/sql/copy/parquet/afl.test | 4 +- .../corpus/sql/copy/parquet/allow_empty.test | 4 +- .../copy/parquet/alltypes-dictionaries.test | 4 +- .../sql/copy/parquet/attach_parquet.test | 4 +- .../sql/copy/parquet/auto_glob_directory.test | 4 +- .../corpus/sql/copy/parquet/aws2.test | 4 +- .../corpus/sql/copy/parquet/aws_kinesis.test | 4 +- .../corpus/sql/copy/parquet/bigdecimal.test | 4 +- .../copy/parquet/bloom_filter_decimal.test | 4 +- .../copy/parquet/bloom_filter_interval.test | 4 +- .../bloom_filter_interval_saturated.test | 66 +++ .../bloom_filter_pruned_row_groups.test | 49 +++ .../sql/copy/parquet/bloom_filters.test | 4 +- .../sql/copy/parquet/broken_parquet.test | 4 +- .../sql/copy/parquet/byte_stream_split.test | 4 +- .../parquet/case_insensitive_replacement.test | 4 +- .../parquet/concurrent_add_parquet_key.test | 9 + .../sql/copy/parquet/copy_ninf_stats.test | 4 +- .../parquet/copy_option_non_foldable.test | 4 +- .../copy/parquet/copy_option_prepared.test | 4 +- .../copy/parquet/copy_option_suggestion.test | 4 +- .../copy/parquet/copy_option_validation.test | 4 +- .../sql/copy/parquet/corrupt_stats.test | 4 +- .../crafted_rowgroup_huge_columns.test | 13 + .../sql/copy/parquet/cte_batch_exchange.test | 4 +- .../sql/copy/parquet/decimal_filter.test | 4 +- .../sql/copy/parquet/delta_byte_array.test | 4 +- .../sql/copy/parquet/describe_parquet.test | 4 +- ...ictionary_compression_ratio_threshold.test | 4 +- .../encryption/arrow_compatibility.test | 32 +- .../plaintext_footer_encryption.test | 4 +- .../sql/copy/parquet/enum_converted_type.test | 4 +- .../sql/copy/parquet/file_metadata.test | 4 +- .../corpus/sql/copy/parquet/fixed.test | 4 +- .../corpus/sql/copy/parquet/float16.test | 4 +- .../parquet/hive_partitioning_struct.test | 4 +- .../sql/copy/parquet/hive_timestamps.test | 4 +- .../parquet/incorrect_converted_type.test | 4 +- .../sql/copy/parquet/infer_copy_format.test | 4 +- .../corpus/sql/copy/parquet/int96_as.test | 4 +- .../sql/copy/parquet/int96_invalid_stats.test | 67 +++ .../sql/copy/parquet/invalid_utf8_stats.test | 4 +- .../corpus/sql/copy/parquet/issue_21508.test | 4 +- .../parquet/issue_27456_constant_stats.test | 29 ++ .../corpus/sql/copy/parquet/json_parquet.test | 4 +- .../corpus/sql/copy/parquet/kv_metadata.test | 4 +- .../sql/copy/parquet/kv_metadata_null.test | 4 +- .../sql/copy/parquet/lineitem_arrow.test | 4 +- .../list_contains_row_group_pruning.test | 4 +- .../map_extract_row_group_pruning.test | 4 +- .../sql/copy/parquet/metadata_full.test | 4 +- .../multi_file/adaptive_filter_carryover.test | 8 +- .../multi_file_filter_integer_types.test | 4 +- .../multi_file/multi_file_filter_mixed.test | 4 +- .../multi_file/multi_file_filter_struct.test | 4 +- .../parquet/multi_file_conversion_error.test | 4 +- .../multi_file_max_files_for_stats.test | 81 ++++ .../parquet/page_index/page_index_cache.test | 108 +++++ .../page_index/page_index_cache_disabled.test | 95 +++++ .../page_index/page_index_prefetch.test | 82 ++++ .../parquet/page_index/page_index_read.test | 326 +++++++++++++++ .../page_index/page_index_reference.test | 212 ++++++++++ .../page_index/page_index_robustness.test | 89 ++++ .../parquet/page_index/page_index_write.test | 259 ++++++++++++ .../copy/parquet/parallel_parquet_glob.test | 4 +- .../corpus/sql/copy/parquet/parquet2.test | 4 +- .../sql/copy/parquet/parquet2strings.test | 4 +- .../sql/copy/parquet/parquet_10148.test | 4 +- .../sql/copy/parquet/parquet_10279.test | 4 +- .../sql/copy/parquet/parquet_12621.test | 4 +- .../parquet_13053_duplicate_column_names.test | 4 +- .../corpus/sql/copy/parquet/parquet_1554.test | 4 +- .../corpus/sql/copy/parquet/parquet_1588.test | 4 +- .../corpus/sql/copy/parquet/parquet_1589.test | 4 +- .../parquet/parquet_1618_struct_strings.test | 4 +- .../corpus/sql/copy/parquet/parquet_1619.test | 4 +- ...parquet_22147_union_by_name_nonnested.test | 4 +- .../corpus/sql/copy/parquet/parquet_2267.test | 4 +- .../corpus/sql/copy/parquet/parquet_3896.test | 4 +- .../corpus/sql/copy/parquet/parquet_3989.test | 4 +- .../corpus/sql/copy/parquet/parquet_4442.test | 4 +- .../corpus/sql/copy/parquet/parquet_4859.test | 4 +- .../corpus/sql/copy/parquet/parquet_4903.test | 4 +- .../corpus/sql/copy/parquet/parquet_5209.test | 4 +- .../corpus/sql/copy/parquet/parquet_6044.test | 4 +- .../corpus/sql/copy/parquet/parquet_6580.test | 4 +- .../parquet/parquet_6630_union_by_name.test | 4 +- .../corpus/sql/copy/parquet/parquet_6933.test | 4 +- .../copy/parquet/parquet_all_null_column.test | 4 +- .../copy/parquet/parquet_arrow_timestamp.test | 4 +- .../corpus/sql/copy/parquet/parquet_blob.test | 4 +- .../sql/copy/parquet/parquet_blob_string.test | 4 +- .../parquet_bloom_filter_corruption.test | 4 +- .../parquet_column_metadata_corruption.test | 4 +- .../parquet_column_statistics_option.test | 34 +- .../parquet_copy_failure_cleans_up.test | 4 +- .../parquet/parquet_copy_type_mismatch.test | 4 +- .../parquet/parquet_corrupt_metadata.test | 29 ++ .../copy/parquet/parquet_corrupt_stats.test | 4 +- .../sql/copy/parquet/parquet_count_star.test | 4 +- .../parquet/parquet_dbp_empty_miniblock.test | 4 +- .../parquet/parquet_debug_use_openssl.test | 4 +- .../sql/copy/parquet/parquet_deep_schema.test | 4 +- .../parquet/parquet_deeply_nested_list.test | 17 + ...quet_delta_byte_array_length_overflow.test | 9 + ...parquet_dictionary_zero_sum_aggregate.test | 4 +- .../sql/copy/parquet/parquet_empty_enum.test | 25 ++ .../copy/parquet/parquet_encoding_skip.test | 4 +- .../sql/copy/parquet/parquet_encryption.test | 4 +- .../parquet/parquet_encryption_null_key.test | 21 + .../sql/copy/parquet/parquet_enum_test.test | 4 +- .../parquet/parquet_expression_filter.test | 4 +- .../parquet_expression_filter_pruning.test | 4 +- .../copy/parquet/parquet_external_access.test | 4 +- .../parquet/parquet_field_ids_invalid.test | 29 ++ .../sql/copy/parquet/parquet_filename.test | 4 +- .../copy/parquet/parquet_filename_filter.test | 4 +- .../copy/parquet/parquet_filter_bug1391.test | 4 +- ...parquet_filter_dictionary_materialize.test | 4 +- .../parquet_filter_narrowing_cast.test | 4 +- .../parquet_fixed_length_blob_dict.test | 4 +- .../parquet/parquet_footer_size_option.test | 21 + .../parquet_given_schema_cardinality.test | 49 +++ .../sql/copy/parquet/parquet_glob_cache.test | 4 +- .../copy/parquet/parquet_glob_cache_list.test | 45 ++ .../corpus/sql/copy/parquet/parquet_go.test | 4 +- .../corpus/sql/copy/parquet/parquet_hive.test | 4 +- .../sql/copy/parquet/parquet_hive2.test | 4 +- .../parquet/parquet_hive_column_alias.test | 4 +- .../sql/copy/parquet/parquet_hive_empty.test | 4 +- .../sql/copy/parquet/parquet_hive_null.test | 4 +- .../parquet/parquet_hive_override_stats.test | 4 +- .../parquet/parquet_int96_out_of_range.test | 13 + .../parquet_interval_converted_type.test | 4 +- .../parquet/parquet_interval_dictionary.test | 47 +++ .../parquet_json_varchar_mismatch.test | 4 +- .../parquet/parquet_late_materialization.test | 4 +- .../corpus/sql/copy/parquet/parquet_list.test | 4 +- .../sql/copy/parquet/parquet_metadata.test | 4 +- .../copy/parquet/parquet_metadata_blob.test | 4 +- .../copy/parquet/parquet_metadata_cache.test | 4 +- .../parquet/parquet_metadata_prepared.test | 33 ++ .../corpus/sql/copy/parquet/parquet_nan.test | 4 +- .../sql/copy/parquet/parquet_nan_count.test | 4 +- .../sql/copy/parquet/parquet_nan_setting.test | 177 ++++++++ .../parquet/parquet_negative_chunk_size.test | 13 + .../sql/copy/parquet/parquet_no_stats.test | 4 +- .../sql/copy/parquet/parquet_nullbyte.test | 4 +- .../sql/copy/parquet/parquet_pandas_date.test | 4 +- .../parquet/parquet_prefetch_cost_model.test | 4 +- .../parquet_prefetch_cost_model_remote.test | 4 +- .../parquet_prefetch_first_group_cost.test | 4 +- .../parquet/parquet_prefetch_footer_once.test | 4 +- .../parquet_prefetch_metrics_multifile.test | 4 +- .../parquet_prefetch_overlapping_ranges.test | 4 +- .../parquet/parquet_prefetch_projection.test | 4 +- .../parquet_prefetch_row_group_outcome.test | 4 +- ...parquet_prefetch_shared_column_chunks.test | 4 +- .../parquet_prefetch_strategy_option.test | 4 +- .../parquet_prefetch_tracked_memory.test | 4 +- ...parquet_pruned_first_file_cardinality.test | 34 ++ .../parquet_pushdown_extract_nested_cast.test | 21 + .../copy/parquet/parquet_read_options.test | 4 +- .../parquet/parquet_row_group_row_count.test | 4 +- .../sql/copy/parquet/parquet_row_number.test | 4 +- .../parquet_schema_default_only_struct.test | 62 +++ .../parquet/parquet_schema_duckdb_type.test | 4 +- .../parquet/parquet_schema_evolution.test | 4 +- .../parquet_schema_hive_partitioning.test | 107 +++++ .../parquet_schema_lossy_filter_pushdown.test | 4 +- .../parquet_schema_num_children_fix.test | 4 +- ...et_schema_pushdown_extract_cast_chain.test | 42 ++ ...rquet_schema_pushdown_extract_missing.test | 99 +++++ ...chema_pushdown_extract_nested_default.test | 87 ++++ ...parquet_schema_pushdown_extract_types.test | 127 ++++++ .../parquet_serialize_pruned_file_list.test | 4 +- .../parquet/parquet_short_decompress.test | 13 + .../parquet_shredding_unsupported_types.test | 4 +- .../sql/copy/parquet/parquet_signed_zero.test | 4 +- .../sql/copy/parquet/parquet_silly.test | 4 +- .../copy/parquet/parquet_sqlnull_write.test | 4 +- .../sql/copy/parquet/parquet_stats.test | 4 +- .../copy/parquet/parquet_string_stats.test | 4 +- .../parquet_timestamptz_ns_as_timestamp.test | 29 ++ .../copy/parquet/parquet_union_by_name.test | 4 +- .../parquet/parquet_variant_leaf_types.test | 4 +- .../copy/parquet/parquet_virtual_columns.test | 4 +- ...parquet_virtual_file_row_group_number.test | 4 +- .../parquet_virtual_file_row_number.test | 4 +- .../copy/parquet/parquet_write_codecs.test | 4 +- .../parquet/parquet_write_repeated_lists.test | 4 +- .../parquet/parquet_wrong_geometry_types.test | 21 + .../corpus/sql/copy/parquet/parquet_zstd.test | 4 +- .../parquet/partition_by_bind_issues.test | 4 +- .../readahead_active_jobs_hang.test | 4 +- .../read_ahead/readahead_budget_growth.test | 41 ++ .../read_ahead/readahead_depth_learning.test | 4 +- .../read_ahead/readahead_depth_setting.test | 4 +- .../read_ahead/readahead_dynamic_pruning.test | 4 +- ...readahead_dynamic_pruning_nulls_first.test | 18 + .../readahead_file_descriptor_limit.test | 39 ++ ...adahead_file_descriptor_limit_threads.test | 48 +++ .../read_ahead/readahead_io_errors.test | 4 +- .../readahead_limit_slot_leak_hang.test | 4 +- .../read_ahead/readahead_memory_limit.test | 14 +- .../read_ahead/readahead_open_error.test | 8 +- .../readahead_order_preservation.test | 4 +- .../readahead_parked_job_progress.test | 4 +- .../readahead_starved_consumers.test | 4 +- .../readahead_waiting_consumers.test | 4 +- .../read_ahead/recheck_prefetch_log.test | 35 ++ .../copy/parquet/read_parquet_parameter.test | 4 +- .../parquet/read_single_parquet_file.test | 4 +- ...gle_parquet_file_late_materialization.test | 4 +- .../recursive_parquet_union_by_name.test | 4 +- .../replacement_scan_custom_extension.test | 4 +- .../corpus/sql/copy/parquet/rle_bool.test | 4 +- .../copy/parquet/shredded_variant_stats.test | 4 +- .../corpus/sql/copy/parquet/spark_v2.test | 4 +- .../parquet/struct_column_reader_skip.test | 4 +- .../parquet/struct_skip_pushdown_null.test | 4 +- .../sql/copy/parquet/test_aws_files.test | 4 +- .../test_parallel_many_row_groups.test | 4 +- .../copy/parquet/test_parquet_decimal.test | 4 +- .../parquet/test_parquet_decimal_gt38.test | 4 +- .../test_parquet_duplicate_columns.test | 4 +- .../parquet/test_parquet_filter_pushdown.test | 4 +- .../sql/copy/parquet/test_parquet_gzip.test | 4 +- .../sql/copy/parquet/test_parquet_nested.test | 4 +- .../sql/copy/parquet/test_parquet_null.test | 4 +- .../sql/copy/parquet/test_parquet_scan.test | 4 +- .../sql/copy/parquet/test_parquet_stats.test | 12 +- .../sql/copy/parquet/timestamp_ms_stats.test | 4 +- .../corpus/sql/copy/parquet/timestamp_s.test | 4 +- .../sql/copy/parquet/timetz_parquet.test | 4 +- .../corpus/sql/copy/parquet/timezone.test | 4 +- .../union_by_name_hive_partitioning.test | 4 +- .../parquet/union_by_name_null_nested.test | 4 +- .../copy/parquet/union_by_name_pushdown.test | 4 +- .../union_by_name_statistics_lookup.test | 45 ++ .../union_by_name_struct_extract_stats.test | 4 +- .../parquet/union_by_name_struct_filter.test | 4 +- .../union_by_name_struct_projection.test | 4 +- .../parquet/union_by_name_varchar_blob.test | 53 +++ .../variant_array_row_group_pruning.test | 4 +- .../variant_binary_as_string_stats.test | 21 + .../copy/parquet/variant_deep_nesting.test | 119 ++++++ .../variant_shredded_decimal_scale.test | 4 +- .../parquet_dictionary_index_width.test | 4 +- .../parquet/writer/parquet_empty_struct.test | 4 +- .../writer/parquet_encoding_stats.test | 4 +- .../writer/parquet_test_all_types.test | 4 +- .../writer/parquet_timetz_metadata.test | 4 +- .../writer/parquet_timetz_roundtrip.test | 4 +- .../parquet/writer/parquet_union_list.test | 4 +- .../writer/parquet_write_booleans.test | 4 +- .../parquet_write_compression_level.test | 4 +- .../writer/parquet_write_data_page_size.test | 4 +- .../parquet/writer/parquet_write_date.test | 4 +- .../writer/parquet_write_decimals.test | 4 +- .../parquet/writer/parquet_write_enums.test | 31 +- .../writer/parquet_write_field_id.test | 4 +- .../writer/parquet_write_home_directory.test | 4 +- .../parquet/writer/parquet_write_hugeint.test | 4 +- .../writer/parquet_write_interval.test | 62 ++- .../writer/parquet_write_issue_5779.test | 4 +- .../writer/parquet_write_memory_usage.test | 4 +- .../writer/parquet_write_shredding.test | 4 +- .../parquet/writer/parquet_write_signed.test | 4 +- .../writer/parquet_write_string_distinct.test | 4 +- .../parquet/writer/parquet_write_strings.test | 4 +- .../writer/parquet_write_strings_v1.test | 4 +- .../writer/parquet_write_timestamp.test | 4 +- .../writer/parquet_write_uhugeint.test | 4 +- .../writer/parquet_write_unsigned.test | 4 +- .../parquet/writer/parquet_write_uuid.test | 4 +- .../writer/partition_without_hive.test | 4 +- .../parquet/writer/row_group_size_bytes.test | 4 +- .../writer/row_group_size_bytes_wide.test | 4 +- .../copy/parquet/writer/skip_empty_write.test | 4 +- .../writer/test_copy_overwrite_parquet.test | 4 +- .../parquet/writer/test_parquet_write.test | 4 +- .../writer/test_parquet_write_complex.test | 4 +- .../parquet/writer/write_complex_nested.test | 4 +- .../sql/copy/parquet/writer/write_list.test | 4 +- .../sql/copy/parquet/writer/write_map.test | 4 +- .../writer/write_stats_big_string.test | 4 +- .../writer/write_stats_null_count.test | 4 +- .../sql/copy/parquet/writer/write_struct.test | 4 +- .../partitioned/hive_filter_pushdown.test | 4 +- .../partitioned/hive_partition_append.test | 4 +- ...ive_partition_case_insensitive_column.test | 4 +- .../hive_partition_compression.test | 4 +- .../hive_partition_duplicate_name.test | 4 +- .../partitioned/hive_partition_escape.test | 4 +- .../hive_partition_join_pushdown.test | 4 +- .../hive_partition_recursive_cte.test | 4 +- .../hive_partitioned_delayed_flush.test | 4 +- .../partitioned/hive_partitioned_write.test | 4 +- .../hive_partitioning_overwrite.test | 4 +- .../integer_partitioned_write.test | 256 ++++++++++++ .../order_by_without_partition.test | 4 +- .../copy/partitioned/partition_by_syntax.test | 4 +- .../partitioned/partition_issue_6304.test | 4 +- .../partition_null_row_group_size_bytes.test | 4 +- .../sql/copy/partitioned/partition_path.test | 8 +- .../copy/partitioned/partition_path_json.test | 4 +- .../partitioned/partitioned_asof_join.test | 4 +- .../partitioned_early_finalize.test | 4 +- .../partitioned_file_rotation.test | 4 +- .../partitioned_flush_join_race.test | 4 +- .../partitioned_full_outer_hash_join.test | 29 ++ .../partitioned/partitioned_group_by.test | 4 +- .../copy/partitioned/partitioned_iejoin.test | 66 +++ .../partitioned/partitioned_order_by.test | 4 +- .../partitioned_order_by_flush_race.test | 4 +- .../partitioned_outer_asof_join.test | 59 +++ ...itioned_row_group_size_bytes_boundary.test | 4 +- .../copy/partitioned/partitioned_window.test | 4 +- .../partitioned_write_backpressure.test | 4 +- .../partitioned_write_batch_limits.test | 111 +++++ .../partitioned_written_batch_bytes.test | 167 ++++++++ .../partitioned_written_key_edges.test | 41 ++ .../skip_partition_column_writes.test | 4 +- .../corpus/sql/copy/per_thread_output.test | 4 +- .../corpus/sql/copy/return_column_types.test | 250 +++++++++++ .../corpus/sql/copy/return_files.test | 8 +- .../corpus/sql/copy/return_stats.test | 16 +- .../copy/return_stats_all_null_row_group.test | 20 + .../sql/copy/return_stats_extra_info.test | 4 +- .../corpus/sql/copy/return_stats_nested.test | 4 +- .../sql/copy/return_stats_truncate.test | 4 +- .../corpus/sql/copy/return_stats_variant.test | 4 +- .../corpus/sql/copy/row_groups_per_file.test | 16 +- parser/testdata/corpus/sql/copy/tmp_file.test | 4 +- .../copy_database_different_types.test | 4 +- .../copy_database/copy_database_errors.test | 4 +- .../sql/copy_database/copy_database_fk.test | 4 +- .../copy_database/copy_database_fk_order.test | 4 +- .../copy_database/copy_database_gen_col.test | 4 +- .../copy_database/copy_database_index.test | 4 +- .../copy_database/copy_database_multiple.test | 4 +- .../copy_database/copy_database_simple.test | 4 +- .../copy_database_system_catalog.test | 17 + .../copy_database_with_index.test | 4 +- .../copy_database_with_unique_index.test | 4 +- .../copy_table_with_sequence.test | 4 +- .../testdata/corpus/sql/create/create_as.test | 4 +- .../sql/create/create_as_issue_11968.test | 4 +- .../create_as_partition_sorted_options.test | 4 +- .../corpus/sql/create/create_database.test | 4 +- .../create/create_index_on_issue_13643.test | 4 +- .../sql/create/create_objects_readonly.test | 4 +- .../corpus/sql/create/create_or_replace.test | 4 +- .../sql/create/create_schema_options.test | 4 +- .../create_table_as_duplicate_names.test | 4 +- .../sql/create/create_table_as_error.test | 4 +- .../create/create_table_as_no_data_limit.test | 37 ++ .../sql/create/create_table_compression.test | 4 +- .../sql/create/create_table_empty_name.test | 4 +- .../create/create_table_extra_options.test | 4 +- .../create/create_table_with_arraybounds.test | 4 +- .../corpus/sql/create/create_using_index.test | 4 +- parser/testdata/corpus/sql/cte/cte_bc.test | 4 +- .../sql/cte/cte_colname_issue_10074.test | 4 +- .../testdata/corpus/sql/cte/cte_describe.test | 4 +- .../cte/cte_filter_pushdown_predicates.test | 4 +- .../sql/cte/cte_inlining_empty_result.test | 4 +- .../corpus/sql/cte/cte_issue_17311.test | 4 +- .../corpus/sql/cte/cte_null_values.test | 4 +- .../corpus/sql/cte/cte_on_conflict_issue.test | 4 +- .../testdata/corpus/sql/cte/cte_schema.test | 4 +- .../sql/cte/cte_with_replacement_scan.test | 4 +- parser/testdata/corpus/sql/cte/dml_cte.test | 8 +- .../sql/cte/incorrect_recursive_cte.test | 4 +- .../corpus/sql/cte/insert_cte_bug_3417.test | 4 +- .../corpus/sql/cte/lazy_cte_bind.test | 4 +- .../sql/cte/lazy_cte_bind_correlated.test | 4 +- .../annotated_and_auto_materialized.test | 4 +- .../cte_buffered_consumer_cycle.test | 29 ++ .../cte_buffered_consumer_cycle_demotion.test | 107 +++++ .../cte/materialized/cte_filter_pusher.test | 4 +- .../cte_gated_buffered_consumer.test | 133 ++++++ .../cte_gated_buffered_consumer_27925.test | 52 +++ ...ated_buffered_consumer_runtime_filter.test | 53 +++ .../cte_nested_buffered_consumer_cycle.test | 19 + .../cte_runtime_filter_effects.test | 115 ++++++ .../cte_runtime_filter_modes.test | 100 +++++ .../cte_runtime_filter_selection.test | 27 ++ ...e_runtime_filter_sibling_dependencies.test | 98 +++++ .../cte/materialized/cte_runtime_filters.test | 189 +++++++++ .../cte_streaming_over_materialization.test | 9 + .../materialized/dml_materialized_cte.test | 4 +- .../incorrect_recursive_cte_materialized.test | 4 +- .../sql/cte/materialized/internal_3004.test | 4 +- .../materialized_cte_modifiers.test | 4 +- .../materialized_cte_order_preservation.test | 4 +- .../materialized_cte_parallel_buffered.test | 4 +- .../materialized_cte_parallel_scan.test | 4 +- .../materialized_cte_prepared.test | 4 +- .../recursive_array_slice_materialized.test | 4 +- .../recursive_cte_complex_pipelines.test | 4 +- .../recursive_cte_error_materialized.test | 4 +- .../recursive_hang_2745_materialized.test | 4 +- .../test_bug_922_materialized.test | 4 +- ...correlated_recursive_cte_materialized.test | 4 +- .../test_cte_hash_join_exchange.test | 16 +- .../test_cte_in_cte_materialized.test | 4 +- .../materialized/test_cte_materialized.test | 4 +- .../test_cte_overflow_materialized.test | 4 +- .../cte/materialized/test_issue_10260.test | 4 +- .../materialized/test_materialized_cte.test | 4 +- ...est_nested_recursive_cte_materialized.test | 4 +- ...uter_joins_recursive_cte_materialized.test | 4 +- ...t_recursive_cte_tutorial_materialized.test | 4 +- ..._recursive_cte_union_all_materialized.test | 4 +- ...test_recursive_cte_union_materialized.test | 4 +- .../corpus/sql/cte/recursive_array_slice.test | 4 +- .../sql/cte/recursive_cte_batch_index.test | 4 +- .../sql/cte/recursive_cte_column_pruning.test | 4 +- .../cte/recursive_cte_complex_pipelines.test | 4 +- .../recursive_cte_correlated_bindings.test | 4 +- .../cte/recursive_cte_correlated_complex.test | 4 +- .../corpus/sql/cte/recursive_cte_error.test | 4 +- .../cte/recursive_cte_invariant_build.test | 4 +- ...recursive_cte_invariant_build_logging.test | 12 +- .../recursive_cte_key_aggregate_subquery.test | 85 ++++ .../cte/recursive_cte_key_aggregation.test | 4 +- .../cte/recursive_cte_key_final_drain.test | 4 +- .../recursive_cte_key_hll_aggregation.test | 4 +- .../sql/cte/recursive_cte_key_probe.test | 4 +- .../sql/cte/recursive_cte_key_snapshot.test | 4 +- .../sql/cte/recursive_cte_key_union.test | 4 +- .../sql/cte/recursive_cte_key_union_plan.test | 4 +- .../corpus/sql/cte/recursive_cte_limit.test | 4 +- .../corpus/sql/cte/recursive_cte_logging.test | 4 +- .../cte/recursive_cte_ordered_aggregate.test | 4 +- .../sql/cte/recursive_cte_ordered_member.test | 4 +- ...rsive_cte_parallel_output_publication.test | 4 +- ...recursive_cte_parallel_union_all_sink.test | 8 +- ...sive_cte_parallel_union_distinct_sink.test | 4 +- .../corpus/sql/cte/recursive_hang_2745.test | 4 +- .../testdata/corpus/sql/cte/test_bug_922.test | 4 +- parser/testdata/corpus/sql/cte/test_cte.test | 4 +- .../corpus/sql/cte/test_cte_in_cte.test | 4 +- .../corpus/sql/cte/test_cte_overflow.test | 4 +- .../corpus/sql/cte/test_issue_5673.test | 4 +- .../sql/cte/test_moderate_union_all.test | 4 +- .../sql/cte/test_nested_recursive_cte.test | 4 +- .../cte/test_outer_joins_recursive_cte.test | 4 +- .../sql/cte/test_recursive_cte_recurring.test | 4 +- .../sql/cte/test_recursive_cte_tutorial.test | 4 +- .../sql/cte/test_recursive_cte_union.test | 4 +- .../sql/cte/test_recursive_cte_union_all.test | 4 +- .../using_key_aggregate_qualification.test | 4 +- .../bulk_delete_version_info_memory.test | 4 +- .../delete/cleanup_delete_on_conflict.test | 4 +- .../delete_compression_after_restart.test | 4 +- ...e_compression_blocked_by_old_snapshot.test | 4 +- .../corpus/sql/delete/delete_query_node.test | 4 +- .../delete_using_duplicate_local_rows.test | 73 ++++ .../delete/full_vector_delete_conflict.test | 4 +- .../delete/full_vector_delete_rollback.test | 4 +- .../delete/large_deletes_transactions.test | 4 +- .../corpus/sql/delete/list_delete.test | 4 +- .../delete/masked_vector_further_delete.test | 4 +- .../sql/delete/masked_vector_rollback.test | 4 +- .../partial_delete_version_info_memory.test | 4 +- .../corpus/sql/delete/test_delete.test | 4 +- .../sql/delete/test_delete_indexed.test | 4 +- .../corpus/sql/delete/test_large_delete.test | 4 +- ...est_parallel_delete_transaction_local.test | 4 +- .../sql/delete/test_segment_deletes.test | 4 +- .../corpus/sql/delete/test_truncate.test | 4 +- .../corpus/sql/delete/test_using_delete.test | 4 +- .../delete/test_using_delete_duplicates.test | 4 +- .../test_detailed_profiler.test | 4 +- .../corpus/sql/error/aggregate_order_by.test | 4 +- .../sql/error/correlated_at_clause.test | 4 +- .../error/error_location_copied_query.test | 63 +++ .../sql/error/error_location_multicaret.test | 4 +- .../error/error_location_not_duplicated.test | 4 +- .../corpus/sql/error/error_position.test | 4 +- .../error/error_position_json_execute.test | 4 +- .../corpus/sql/error/escape_percent_sign.test | 4 +- .../sql/error/extension_function_error.test | 4 +- .../error/identifier_quoting_in_messages.test | 45 ++ .../corpus/sql/error/incorrect_sql.test | 4 +- .../corpus/sql/error/lineitem_errors.test | 4 +- .../corpus/sql/error/missing_type.test | 4 +- .../mix_aggregate_and_non_aggregate.test | 4 +- .../sql/error/qualified_column_error.test | 4 +- .../sql/error/subquery_single_column.test | 4 +- .../table_function_as_scalar_function.test | 4 +- .../error/test_try_common_subexpression.test | 41 ++ .../sql/error/test_try_constant_regex.test | 62 +++ .../corpus/sql/error/test_try_in_clause.test | 65 +++ .../error/test_try_nested_conditional.test | 4 +- .../sql/error/unknown_window_function.test | 4 +- .../execution/column_binding_resolver.test | 4 +- .../execution/function_null_verification.test | 4 +- .../sql/execution/limit_percent_runtime.test | 4 +- .../sql/execution/physical_verify_vector.test | 4 +- .../sql/execution/positional_scan_nested.test | 4 +- .../sql/explain/explain_all_statements.test | 24 +- .../corpus/sql/explain/explain_execute.test | 4 +- .../corpus/sql/explain/explain_formats.test | 4 +- .../explain/order_by_topn_explain_fqn.test | 4 +- .../corpus/sql/explain/test_explain.test | 4 +- .../sql/explain/test_explain_analyze.test | 4 +- .../sql/explain/test_explain_limit.test | 4 +- .../sql/explain/tree_renderer_branches.test | 4 +- .../corpus/sql/export/empty_export.test | 4 +- .../sql/export/export_compression_level.test | 4 +- .../sql/export/export_csv_empty_strings.test | 28 +- .../corpus/sql/export/export_database.test | 4 +- .../sql/export/export_external_access.test | 4 +- .../corpus/sql/export/export_functions.test | 4 +- .../sql/export/export_generated_columns.test | 4 +- .../corpus/sql/export/export_hive_path.test | 4 +- .../corpus/sql/export/export_indexes.test | 4 +- .../sql/export/export_legacy_options.test | 85 ++++ .../corpus/sql/export/export_macros.test | 4 +- .../corpus/sql/export/export_quoted_enum.test | 4 +- .../sql/export/export_quoted_structs.test | 4 +- .../sql/export/export_quoted_union.test | 4 +- .../corpus/sql/export/export_temp_tables.test | 4 +- .../corpus/sql/export/export_typed_null.test | 4 +- .../corpus/sql/export/export_types.test | 4 +- .../export/import_database_non_copy_load.test | 21 + .../export/parquet/export_parquet_bit.test | 4 +- .../export/parquet/export_parquet_enum.test | 4 +- .../parquet/export_parquet_hugeint.test | 4 +- .../export/parquet/export_parquet_json.test | 4 +- .../export/parquet/export_parquet_list.test | 4 +- .../export/parquet/export_parquet_map.test | 4 +- .../export/parquet/export_parquet_struct.test | 4 +- .../export/parquet/export_parquet_union.test | 4 +- .../corpus/sql/export/parquet_export.test | 4 +- .../corpus/sql/extensions/aliasing.test | 36 +- .../allowed_directories_install.test | 12 +- .../attach_type_alias_conflict.test | 4 +- .../corpus/sql/extensions/checked_load.test | 4 +- .../concurrent_failed_aliased_load.test | 4 +- .../extensions/extension_repositories.test | 14 +- .../extension_repositories_lock.test | 4 +- .../extension_repository_from_host.test | 193 +++++++++ ...extension_repository_from_host_httpfs.test | 21 + ...ension_repository_from_host_no_httpfs.test | 17 + .../extension_repository_not_autoloaded.test | 4 +- .../sql/extensions/load_arbitrary_path.test | 4 +- .../load_use_extension_one_query.test | 4 +- .../permissions_duckdb_extension.test | 16 +- .../corpus/sql/extensions/quack_peeling.test | 4 +- .../sql/extensions/require_direct_load.test | 4 +- .../extensions/sqlite_alter_table_add_pk.test | 4 +- .../extensions/version_is_valid_sqlite.test | 4 +- .../filter/between_nested_exponential.test | 17 + .../filter/disjunctive_compressed_filter.test | 36 ++ .../corpus/sql/filter/filter_cache.test | 4 +- .../sql/filter/filter_cache_dictionary.test | 4 +- .../corpus/sql/filter/null_selection.test | 8 +- .../corpus/sql/filter/test_alias_filter.test | 4 +- .../sql/filter/test_columns_filter.test | 4 +- .../sql/filter/test_constant_comparisons.test | 4 +- .../filter/test_dynamic_filter_nullable.test | 4 +- .../test_expression_executor_select.test | 4 +- .../sql/filter/test_illegal_filters.test | 4 +- .../filter/test_last_option_corruption.test | 4 +- .../corpus/sql/filter/test_like_null.test | 4 +- .../sql/filter/test_obsolete_filters.test | 4 +- .../corpus/sql/filter/test_or_pushdown.test | 4 +- .../sql/filter/test_struct_pushdown.test | 4 +- .../filter/test_throwing_filter_pushdown.test | 4 +- .../sql/filter/test_transitive_filters.test | 4 +- ...test_try_filter_doesnt_mutate_columns.test | 4 +- .../sql/filter/test_variant_filter.test | 4 +- .../sql/filter/test_zonemap_disjunctions.test | 4 +- .../sql/filter/test_zonemap_segment.test | 4 +- .../sql/filter/transitive_filter_bounds.test | 4 +- .../sql/function/array/array_and_map.test | 4 +- .../function/array/array_cosine_distance.test | 4 +- .../array/array_cosine_similarity.test | 4 +- .../array_cosine_similarity_extreme.test | 4 +- .../function/array/array_cross_product.test | 4 +- .../sql/function/array/array_distance.test | 4 +- .../sql/function/array/array_flatten.test | 4 +- .../function/array/array_inner_product.test | 4 +- .../sql/function/array/array_length.test | 4 +- .../function/array/array_list_functions.test | 4 +- .../array/array_size_mismatch_argument.test | 29 ++ .../array/array_value_size_mismatch.test | 4 +- .../function/autocomplete/alter_table.test | 4 +- .../sql/function/autocomplete/copy.test | 4 +- .../autocomplete/create_function.test | 4 +- .../function/autocomplete/create_schema.test | 4 +- .../autocomplete/create_sequence.test | 4 +- .../function/autocomplete/create_table.test | 4 +- .../function/autocomplete/create_type.test | 4 +- .../sql/function/autocomplete/drop.test | 4 +- .../function/autocomplete/explain_sql.test | 4 +- .../function/autocomplete/expressions.test | 4 +- .../autocomplete/hidden_database.test | 4 +- .../autocomplete/identical_schema_table.test | 4 +- .../function/autocomplete/insert_into.test | 4 +- .../autocomplete/nested_parentheses.test | 13 + .../sql/function/autocomplete/pragma.test | 4 +- .../autocomplete/scalar_functions.test | 4 +- .../sql/function/autocomplete/select.test | 4 +- .../sql/function/autocomplete/setting.test | 4 +- .../sql/function/autocomplete/show.test | 4 +- .../sql/function/autocomplete/sql_format.test | 61 ++- .../autocomplete/sql_format_literals.test | 4 +- .../function/autocomplete/suggest_file.test | 4 +- .../autocomplete/table_functions.test | 4 +- .../sql/function/autocomplete/tpch.test | 4 +- .../sql/function/autocomplete/views.test | 4 +- .../sql/function/autocomplete/window.test | 4 +- .../corpus/sql/function/blob/base64.test | 4 +- .../sql/function/blob/create_sort_key.test | 4 +- .../blob/create_sort_key_blob_escapes.test | 4 +- .../corpus/sql/function/blob/encode.test | 4 +- .../function/blob/from_base64_padding.test | 21 + .../blob/from_base64_padding_order.test | 13 + .../function/blob/test_blob_array_slice.test | 4 +- .../sql/function/blob/test_concat_blob.test | 4 +- .../comparison/between_nested_types.test | 129 ++++++ .../comparison/between_physical_types.test | 4 +- .../corpus/sql/function/date/date_add.test | 4 +- .../date/date_diff_extreme_dates.test | 4 +- .../sql/function/date/date_part_stats.test | 4 +- .../sql/function/date/date_trunc_4202.test | 4 +- .../function/date/date_trunc_min_date.test | 4 +- .../sql/function/date/date_trunc_stats.test | 4 +- .../date/date_trunc_stats_out_of_range.test | 4 +- .../date/strftime_iso_year_range.test | 4 +- .../sql/function/date/test_date_part.test | 4 +- .../sql/function/date/test_date_trunc.test | 4 +- .../sql/function/date/test_epoch_ns_try.test | 49 +++ .../sql/function/date/test_extract.test | 4 +- .../date/test_extract_edge_cases.test | 4 +- .../sql/function/date/test_extract_month.test | 4 +- .../sql/function/date/test_extract_year.test | 4 +- .../sql/function/date/test_strftime.test | 4 +- .../date/test_strftime_exhaustive.test | 4 +- .../function/date/test_time_bucket_date.test | 4 +- .../date/week_parts_minimum_date.test | 24 ++ .../function/date/yearweek_bc_statistics.test | 4 +- .../sql/function/enum/enum_range_large.test | 4 +- .../sql/function/enum/test_enum_code.test | 4 +- .../sql/function/enum/test_enum_first.test | 4 +- .../sql/function/enum/test_enum_last.test | 4 +- .../sql/function/enum/test_enum_range.test | 4 +- .../sql/function/generic/assert_true.test | 4 +- .../function/generic/can_cast_implicitly.test | 4 +- .../sql/function/generic/case_condition.test | 4 +- .../sql/function/generic/case_null_fill.test | 4 +- .../function/generic/case_short_circuit.test | 4 +- .../sql/function/generic/case_varchar.test | 4 +- .../sql/function/generic/cast_to_type.test | 4 +- .../generic/cast_to_type_collation.test | 4 +- .../generic/constant_argument_errors.test | 53 +++ .../function/generic/constant_or_null.test | 4 +- .../corpus/sql/function/generic/error.test | 4 +- .../generic/fold_constant_arguments.test | 4 +- .../generic/hash_comparison_keys.test | 145 +++++++ .../sql/function/generic/hash_func.test | 4 +- .../corpus/sql/function/generic/invoke.test | 4 +- .../function/generic/least_greatest_enum.test | 4 +- .../generic/least_greatest_types.test | 4 +- .../generic/make_type_empty_name.test | 4 +- .../generic/null_constant_collation.test | 4 +- .../generic/null_constant_return_type.test | 30 +- .../sql/function/generic/replace_type.test | 4 +- .../function/generic/table_func_varargs.test | 4 +- .../generic/test_approx_database_count.test | 4 +- .../sql/function/generic/test_barrier.test | 4 +- .../sql/function/generic/test_between.test | 4 +- .../generic/test_between_sideeffects.test | 4 +- .../function/generic/test_boolean_test.test | 4 +- .../generic/test_connection_count.test | 4 +- .../corpus/sql/function/generic/test_if.test | 4 +- .../sql/function/generic/test_if_null.test | 4 +- .../corpus/sql/function/generic/test_in.test | 4 +- .../function/generic/test_least_greatest.test | 4 +- .../sql/function/generic/test_null_if.test | 4 +- .../function/generic/test_resolve_types.test | 4 +- .../corpus/sql/function/generic/test_set.test | 4 +- .../sql/function/generic/test_sleep.test | 4 +- .../sql/function/generic/test_stats.test | 4 +- .../function/generic/test_table_param.test | 4 +- .../corpus/sql/function/index/index_key.test | 4 +- .../interval/date_part_monotonicity.test | 4 +- .../sql/function/interval/test_date_part.test | 4 +- .../sql/function/interval/test_extract.test | 4 +- .../interval/test_interval_muldiv.test | 4 +- .../interval/test_interval_trunc.test | 4 +- .../function/list/aggregates/any_value.test | 4 +- .../aggregates/approx_count_distinct.test | 4 +- .../sql/function/list/aggregates/avg.test | 4 +- .../list/aggregates/bigints_sum_avg.test | 4 +- .../sql/function/list/aggregates/bit_and.test | 4 +- .../sql/function/list/aggregates/bit_or.test | 4 +- .../sql/function/list/aggregates/bit_xor.test | 4 +- .../function/list/aggregates/bool_and_or.test | 4 +- .../sql/function/list/aggregates/count.test | 4 +- .../sql/function/list/aggregates/entropy.test | 4 +- .../sql/function/list/aggregates/first.test | 4 +- .../function/list/aggregates/histogram.test | 4 +- .../list/aggregates/histogram_decimal.test | 4 +- .../sql/function/list/aggregates/hugeint.test | 4 +- .../function/list/aggregates/incorrect.test | 4 +- .../function/list/aggregates/kurtosis.test | 4 +- .../sql/function/list/aggregates/last.test | 4 +- .../sql/function/list/aggregates/mad.test | 4 +- .../sql/function/list/aggregates/max.test | 4 +- .../sql/function/list/aggregates/median.test | 4 +- .../sql/function/list/aggregates/min.test | 4 +- .../list/aggregates/minmax_nested.test | 4 +- .../sql/function/list/aggregates/mode.test | 4 +- .../sql/function/list/aggregates/nested.test | 4 +- .../list/aggregates/null_or_empty.test | 4 +- .../sql/function/list/aggregates/product.test | 4 +- .../sql/function/list/aggregates/sem.test | 4 +- .../function/list/aggregates/skewness.test | 4 +- .../function/list/aggregates/string_agg.test | 4 +- .../sql/function/list/aggregates/sum.test | 4 +- .../function/list/aggregates/sum_bool.test | 4 +- .../list/aggregates/sum_no_overflow.test | 4 +- .../function/list/aggregates/uhugeint.test | 4 +- .../function/list/aggregates/var_stddev.test | 4 +- .../sql/function/list/array_length.test | 4 +- .../sql/function/list/array_to_string.test | 4 +- .../list/array_to_string_comma_default.test | 4 +- .../sql/function/list/cardinality_list.test | 4 +- .../corpus/sql/function/list/flatten.test | 4 +- .../sql/function/list/generate_series.test | 4 +- .../list/generate_series_timestamp.test | 4 +- .../generate_series_timestamp_range_end.test | 43 ++ .../function/list/generate_subscripts.test | 4 +- .../list/icu_generate_series_timestamptz.test | 4 +- .../function/list/lambda_constant_null.test | 4 +- .../arrow/arrow_storage_before_v2.test | 101 +++++ .../expression_iterator_cases_deprecated.test | 4 +- .../list/lambdas/arrow/filter_deprecated.test | 4 +- .../arrow/lambda_scope_deprecated.test | 4 +- .../lambdas_and_functions_deprecated.test | 4 +- .../lambdas_and_group_by_deprecated.test | 4 +- .../arrow/lambdas_and_macros_deprecated.test | 4 +- .../arrow/list_comprehension_deprecated.test | 4 +- .../list/lambdas/arrow/reduce_deprecated.test | 4 +- .../arrow/reduce_initial_deprecated.test | 4 +- .../arrow/rhs_parameters_deprecated.test | 4 +- .../lambdas/arrow/storage_deprecated.test | 4 +- .../arrow/table_functions_deprecated.test | 4 +- .../lambdas/arrow/test_deprecated_lambda.test | 4 +- .../test_lambda_arrow_storage_deprecated.test | 4 +- .../lambdas/arrow/transform_deprecated.test | 4 +- .../transform_with_index_deprecated.test | 4 +- .../lambdas/arrow/warn_deprecated_arrow.test | 4 +- .../lambdas/expression_iterator_cases.test | 4 +- .../sql/function/list/lambdas/filter.test | 4 +- .../sql/function/list/lambdas/incorrect.test | 4 +- .../lambdas/lambda_aggregate_reference.test | 4 +- .../list/lambdas/lambda_dot_calls.test | 213 ++++++++++ .../list/lambdas/lambda_dot_calls_json.test | 37 ++ .../lambda_dot_calls_nested_schema.test | 29 ++ .../lambda_parameter_named_argument.test | 85 ++++ .../function/list/lambdas/lambda_scope.test | 4 +- .../list/lambdas/lambdas_and_functions.test | 4 +- .../list/lambdas/lambdas_and_group_by.test | 4 +- .../list/lambdas/lambdas_and_macros.test | 4 +- .../list/lambdas/list_comprehension.test | 4 +- .../sql/function/list/lambdas/reduce.test | 4 +- .../reduce_alias_initial_value_type.test | 4 +- .../list/lambdas/reduce_captured_columns.test | 4 +- .../function/list/lambdas/reduce_initial.test | 4 +- .../list/lambdas/reduce_try_empty.test | 33 ++ .../list/lambdas/reduce_volatile.test | 21 + .../function/list/lambdas/rhs_parameters.test | 4 +- .../sql/function/list/lambdas/storage.test | 4 +- .../list/lambdas/table_functions.test | 4 +- .../list/lambdas/test_lambda_storage.test | 4 +- .../sql/function/list/lambdas/transform.test | 4 +- .../list/lambdas/transform_with_index.test | 4 +- .../function/list/lambdas/vector_types.test | 4 +- .../corpus/sql/function/list/list_concat.test | 4 +- .../list/list_concat_prepared_list_sort.test | 37 ++ .../sql/function/list/list_contains.test | 56 ++- .../function/list/list_contains_variant.test | 54 +++ .../function/list/list_cosine_similarity.test | 4 +- .../sql/function/list/list_distance.test | 4 +- .../sql/function/list/list_distinct.test | 4 +- .../list/list_functions_constant_child.test | 4 +- .../sql/function/list/list_grade_up_ties.test | 25 ++ .../function/list/list_grade_up_variant.test | 4 +- .../list/list_has_any_and_has_all.test | 4 +- .../sql/function/list/list_inner_product.test | 4 +- .../sql/function/list/list_intersect.test | 4 +- .../sql/function/list/list_position.test | 4 +- .../sql/function/list/list_position_nan.test | 4 +- .../list/list_position_null_needle.test | 4 +- .../corpus/sql/function/list/list_resize.test | 4 +- .../sql/function/list/list_resize_error.test | 4 +- .../function/list/list_resize_non_list.test | 21 + .../function/list/list_resize_variant.test | 21 + .../list/list_resize_vector_types.test | 4 +- .../sql/function/list/list_reverse.test | 4 +- .../corpus/sql/function/list/list_select.test | 4 +- .../list/list_select_empty_child.test | 42 ++ .../function/list/list_slice_min_step.test | 4 +- .../sql/function/list/list_sort_having.test | 4 +- .../sql/function/list/list_sort_interval.test | 4 +- .../function/list/list_sort_typed_null.test | 8 +- .../function/list/list_sort_vector_types.test | 4 +- .../corpus/sql/function/list/list_unique.test | 4 +- .../sql/function/list/list_value_arrays.test | 4 +- .../list/list_value_nested_lists.test | 4 +- .../sql/function/list/list_value_structs.test | 4 +- .../corpus/sql/function/list/list_where.test | 4 +- .../corpus/sql/function/list/list_zip.test | 4 +- .../corpus/sql/function/list/repeat_list.test | 4 +- .../list/test_lambda_with_struct_aliases.test | 4 +- .../nested/array_extract_unnamed_struct.test | 4 +- .../sql/function/nested/test_issue_5437.test | 4 +- .../function/nested/test_struct_insert.test | 4 +- .../function/nested/test_struct_update.test | 4 +- .../corpus/sql/function/numeric/abs.test | 4 +- .../function/numeric/bit_count_hugeint.test | 25 ++ .../sql/function/numeric/decimal_mod.test | 4 +- .../numeric/round_null_beyond_width.test | 81 ++++ .../function/numeric/set_seed_for_sample.test | 4 +- .../numeric/setseed_pinned_values.test | 25 ++ .../numeric/test_arithmetic_aliases.test | 4 +- .../sql/function/numeric/test_binom.test | 4 +- .../sql/function/numeric/test_bit_count.test | 4 +- .../sql/function/numeric/test_even.test | 4 +- .../sql/function/numeric/test_factorial.test | 4 +- .../sql/function/numeric/test_fdiv_fmod.test | 4 +- .../sql/function/numeric/test_floor_ceil.test | 4 +- .../sql/function/numeric/test_gamma.test | 4 +- .../sql/function/numeric/test_gcd_lcm.test | 4 +- .../sql/function/numeric/test_geomean.test | 4 +- .../function/numeric/test_invalid_math.test | 4 +- .../sql/function/numeric/test_is_nan.test | 4 +- .../corpus/sql/function/numeric/test_mod.test | 4 +- .../numeric/test_mod_min_negative_one.test | 26 ++ .../numeric/test_modulo_min_by_minus_one.test | 18 + .../sql/function/numeric/test_nextafter.test | 4 +- .../sql/function/numeric/test_pg_math.test | 4 +- .../corpus/sql/function/numeric/test_pow.test | 4 +- .../sql/function/numeric/test_random.test | 4 +- .../sql/function/numeric/test_round.test | 4 +- .../test_round_double_exact_midpoint.test | 45 ++ .../sql/function/numeric/test_round_even.test | 4 +- .../function/numeric/test_round_integers.test | 4 +- .../sql/function/numeric/test_sign_bit.test | 4 +- .../sql/function/numeric/test_trigo.test | 4 +- .../sql/function/numeric/test_trunc.test | 4 +- .../numeric/test_trunc_precision.test | 4 +- .../numeric/test_type_resolution.test | 4 +- .../sql/function/numeric/test_unary.test | 4 +- .../function/operator/test_arithmetic.test | 4 +- .../operator/test_arithmetic_sqllogic.test | 4 +- .../function/operator/test_bitwise_ops.test | 4 +- .../operator/test_bitwise_ops_types.test | 4 +- .../function/operator/test_comparison.test | 4 +- .../test_comparison_function_call_types.test | 49 +++ .../function/operator/test_conjunction.test | 4 +- .../operator/test_conjunction_nulls.test | 55 +++ .../operator/test_date_arithmetic.test | 4 +- .../operator/test_division_by_zero.test | 4 +- .../operator/test_division_overflow.test | 4 +- .../operator/test_in_empty_table.test | 4 +- .../sql/function/string/format_bytes.test | 4 +- .../string/format_large_precision.test | 4 +- .../corpus/sql/function/string/hex.test | 8 +- .../sql/function/string/hex_bignum.test | 65 +++ .../string/hive_partition_component.test | 4 +- .../sql/function/string/like_unicode.test | 4 +- .../corpus/sql/function/string/md5.test | 4 +- .../sql/function/string/nfc_normalize.test | 75 ++++ .../corpus/sql/function/string/null_byte.test | 4 +- .../corpus/sql/function/string/overlay.test | 4 +- .../string/parse_formatted_bytes.test | 4 +- .../string/parse_formatted_bytes_exact.test | 25 ++ .../sql/function/string/parse_path.test | 4 +- .../function/string/parse_path_separator.test | 4 +- .../function/string/parse_path_windows.test | 4 +- .../corpus/sql/function/string/path_join.test | 4 +- .../sql/function/string/regex_capture.test | 4 +- .../sql/function/string/regex_escape.test | 4 +- .../sql/function/string/regex_extract.test | 4 +- .../function/string/regex_extract_all.test | 4 +- .../string/regex_extract_all_struct.test | 4 +- .../string/regex_extract_dictionary.test | 4 +- .../regex_extract_empty_group_name.test | 4 +- .../string/regex_filter_pushdown.test | 4 +- .../sql/function/string/regex_operators.test | 4 +- .../string/regex_operators_v1_5_view.test | 4 +- .../sql/function/string/regex_replace.test | 4 +- .../string/regex_replace_dictionary.test | 41 ++ .../sql/function/string/regex_search.test | 4 +- .../function/string/regex_single_byte.test | 4 +- .../string/regexp_split_to_table.test | 4 +- .../string/regexp_unicode_literal.test | 4 +- .../corpus/sql/function/string/sha1.test | 4 +- .../corpus/sql/function/string/sha256.test | 4 +- .../sql/function/string/strip_accents.test | 4 +- .../function/string/test_array_extract.test | 4 +- .../sql/function/string/test_ascii.test | 4 +- .../corpus/sql/function/string/test_bar.test | 4 +- .../sql/function/string/test_bit_length.test | 4 +- .../sql/function/string/test_caseconvert.test | 4 +- .../function/string/test_complex_unicode.test | 4 +- .../sql/function/string/test_concat.test | 4 +- .../function/string/test_concat_binding.test | 4 +- .../function/string/test_concat_function.test | 4 +- .../sql/function/string/test_concat_ws.test | 4 +- .../sql/function/string/test_contains.test | 4 +- ..._contains_long_almost_matching_needle.test | 4 +- .../function/string/test_contains_utf8.test | 4 +- .../string/test_damerau_levenshtein.test | 4 +- .../sql/function/string/test_format.test | 4 +- .../string/test_format_extensions.test | 4 +- .../corpus/sql/function/string/test_glob.test | 4 +- .../sql/function/string/test_glob_utf8.test | 21 + .../sql/function/string/test_ilike.test | 4 +- .../string/test_ilike_constant_pattern.test | 4 +- .../string/test_ilike_embedded_null.test | 4 +- .../function/string/test_ilike_escape.test | 4 +- .../test_ilike_escape_constant_pattern.test | 4 +- .../sql/function/string/test_instr.test | 4 +- .../sql/function/string/test_instr_utf8.test | 4 +- .../sql/function/string/test_issue_1812.test | 4 +- .../sql/function/string/test_jaccard.test | 4 +- .../function/string/test_jaro_winkler.test | 4 +- .../corpus/sql/function/string/test_left.test | 4 +- .../sql/function/string/test_length.test | 4 +- .../sql/function/string/test_levenshtein.test | 4 +- .../string/test_levenshtein_interrupt.test | 17 + .../corpus/sql/function/string/test_like.test | 4 +- .../sql/function/string/test_like_escape.test | 4 +- .../string/test_like_many_wildcards.test | 4 +- .../sql/function/string/test_mismatches.test | 4 +- .../corpus/sql/function/string/test_pad.test | 4 +- .../sql/function/string/test_prefix.test | 4 +- .../sql/function/string/test_printf.test | 4 +- .../string/test_regex_match_positions.test | 4 +- .../sql/function/string/test_repeat.test | 4 +- .../sql/function/string/test_replace.test | 4 +- .../sql/function/string/test_reverse.test | 4 +- .../sql/function/string/test_right.test | 4 +- .../sql/function/string/test_similar_to.test | 4 +- .../string/test_similar_to_escape.test | 25 ++ .../function/string/test_similarity_utf8.test | 25 ++ .../string/test_split_empty_string.test | 21 + .../sql/function/string/test_split_part.test | 4 +- .../string/test_starts_with_function.test | 4 +- .../test_starts_with_function_utf8.test | 4 +- .../string/test_starts_with_operator.test | 4 +- .../test_starts_with_operator_utf8.test | 4 +- .../string/test_string_array_slice.test | 4 +- .../function/string/test_string_slice.test | 4 +- .../function/string/test_string_split.test | 4 +- .../sql/function/string/test_subscript.test | 4 +- .../sql/function/string/test_substring.test | 4 +- .../function/string/test_substring_utf8.test | 74 +++- .../sql/function/string/test_suffix.test | 4 +- .../sql/function/string/test_to_base.test | 4 +- .../sql/function/string/test_translate.test | 4 +- .../corpus/sql/function/string/test_trim.test | 4 +- .../sql/function/string/test_unicode.test | 4 +- .../sql/function/string/test_url_encode.test | 4 +- .../struct/struct_extract_null_struct.test | 41 ++ .../table/multi_file_array_parameter.test | 4 +- .../function/table/query_function_null.test | 33 ++ .../table/read_duckdb_empty_projection.test | 4 +- .../table/read_duckdb_struct_children.test | 4 +- .../function/table/system_metadata_empty.test | 4 +- .../sql/function/test_scalar_executor.test | 4 +- .../corpus/sql/function/time/epoch.test | 4 +- .../sql/function/time/make_time_nan.test | 21 + .../sql/function/time/test_date_part.test | 4 +- .../sql/function/time/test_extract.test | 4 +- .../sql/function/time/test_extract_stats.test | 4 +- .../function/time/test_time_bucket_time.test | 4 +- .../corpus/sql/function/timestamp/age.test | 4 +- .../sql/function/timestamp/current_time.test | 4 +- .../function/timestamp/current_timestamp.test | 4 +- .../sql/function/timestamp/date_sub_diff.test | 4 +- .../timestamp/date_trunc_fixed_overflow.test | 17 + .../corpus/sql/function/timestamp/epoch.test | 4 +- .../icu_datepart_calendar_statistics.test | 4 +- .../timestamp/icu_function_stability.test | 21 + .../timestamp/icu_get_time_overflow.test | 4 +- .../icu_timestamptz_ns_to_date_min.test | 4 +- ...cu_try_cast_varchar_timestamptz_range.test | 4 +- .../sql/function/timestamp/make_date.test | 4 +- .../strptime_timestamp_ns_range.test | 29 ++ .../timestamp/strptime_year_day_366.test | 21 + .../timestamp/test_date_diff_epoch.test | 4 +- .../function/timestamp/test_date_part.test | 17 +- .../sql/function/timestamp/test_extract.test | 4 +- .../function/timestamp/test_extract_ms.test | 4 +- .../sql/function/timestamp/test_icu_age.test | 4 +- .../function/timestamp/test_icu_dateadd.test | 61 +-- .../timestamp/test_icu_dateadd_ns.test | 188 +++++++++ .../function/timestamp/test_icu_datediff.test | 4 +- .../function/timestamp/test_icu_datepart.test | 4 +- .../timestamp/test_icu_datepart_ns.test | 57 +++ .../function/timestamp/test_icu_datesub.test | 4 +- .../timestamp/test_icu_datetrunc.test | 16 +- .../function/timestamp/test_icu_makedate.test | 4 +- .../function/timestamp/test_icu_strftime.test | 4 +- .../function/timestamp/test_icu_strptime.test | 4 +- ...t_icu_time_bucket_repeated_local_time.test | 4 +- .../test_icu_time_bucket_timestamptz.test | 4 +- .../test_icu_time_bucket_timestamptz_ns.test | 208 ++++++++++ .../timestamp/test_last_modified.test | 4 +- .../sql/function/timestamp/test_now.test | 4 +- .../function/timestamp/test_now_prepared.test | 4 +- .../timestamp/test_strftime_timestamp.test | 4 +- .../timestamp/test_strftime_timestamp_ns.test | 20 +- .../sql/function/timestamp/test_strptime.test | 4 +- .../timestamp/test_strptime_edge_paths.test | 4 +- .../timestamp/test_strptime_nonascii.test | 4 +- .../timestamp/test_time_bucket_timestamp.test | 4 +- .../test_timestamp_difference_range.test | 50 +++ .../timestamp/test_timestamp_lower_bound.test | 37 ++ .../function/timestamp/test_try_strptime.test | 4 +- .../timestamp/test_try_strptime_special.test | 132 ++++++ .../timetz/icu_timezone_offset_range.test | 4 +- .../sql/function/timetz/test_date_part.test | 4 +- .../sql/function/timetz/test_extract.test | 4 +- .../sql/function/timetz/timetz_group_by.test | 4 +- .../function/tokenize/operator_tokenize.test | 4 +- .../function/tokenize/simple_tokenize.test | 4 +- .../corpus/sql/function/uuid/test_uuid.test | 4 +- .../sql/function/uuid/test_uuid_function.test | 4 +- .../variant/blob_offset_overflow.test | 4 +- .../variant/variant_array_length.test | 4 +- .../variant_array_length_shredded.test | 4 +- .../variant/variant_cast_roundtrip.test | 4 +- .../function/variant/variant_contains.test | 4 +- .../variant/variant_contains_shredded.test | 4 +- .../sql/function/variant/variant_exists.test | 4 +- .../variant/variant_exists_shredded.test | 4 +- .../sql/function/variant/variant_extract.test | 4 +- .../variant/variant_extract_string.test | 4 +- .../variant_extract_string_shredded.test | 4 +- .../variant/variant_extract_try_cast.test | 4 +- .../function/variant/variant_group_array.test | 4 +- .../variant/variant_group_array_shredded.test | 4 +- .../sql/function/variant/variant_keys.test | 4 +- .../variant/variant_keys_shredded.test | 4 +- .../function/variant/variant_normalize.test | 4 +- .../variant_shredded_extract_nested.test | 4 +- .../sql/function/variant/variant_type.test | 4 +- .../variant/variant_type_shredded.test | 4 +- .../sql/function/variant/variant_typeof.test | 4 +- .../generated_column_compression.test | 4 +- .../sql/generated_columns/stored/basic.test | 4 +- .../virtual/alter_table.test | 4 +- .../generated_columns/virtual/ambiguity.test | 4 +- .../virtual/cascading_delete.test | 4 +- .../generated_columns/virtual/casting.test | 4 +- .../sql/generated_columns/virtual/check.test | 4 +- .../circular_dependency_stresstest.test | 4 +- .../generated_columns/virtual/collate.test | 4 +- .../virtual/create_table.test | 4 +- .../generated_columns/virtual/default.test | 4 +- .../virtual/drop_dependency.test | 4 +- .../virtual/foreign_key.test | 4 +- .../virtual/foreign_key_extensive.test | 4 +- .../virtual/from_generated_column.test | 4 +- .../virtual/gcol_duckdb_columns.test | 4 +- .../generated_columns/virtual/group_by.test | 4 +- .../virtual/implicit_type.test | 4 +- .../sql/generated_columns/virtual/insert.test | 4 +- .../virtual/not_referencing_columns.test | 4 +- .../sql/generated_columns/virtual/null.test | 4 +- .../generated_columns/virtual/partition.test | 4 +- .../virtual/preserve_order.test | 4 +- .../virtual/primary_key.test | 4 +- .../virtual/referencing_gencols.test | 4 +- .../sql/generated_columns/virtual/rename.test | 4 +- .../virtual/rename_dependency.test | 4 +- .../virtual/rename_table.test | 4 +- .../virtual/row_group_fetch.test | 4 +- .../sql/generated_columns/virtual/rowid.test | 4 +- .../sql/generated_columns/virtual/select.test | 4 +- .../virtual/select_alias.test | 4 +- .../virtual/type_resolution_bug.test | 4 +- .../generated_columns/virtual/typechange.test | 4 +- .../virtual/typechange_dependency.test | 4 +- .../sql/generated_columns/virtual/unique.test | 4 +- .../sql/generated_columns/virtual/update.test | 4 +- .../virtual/update_index.test | 4 +- .../test_art_compound_key_changes.test | 4 +- .../test_art_eager_batch_insert.test | 4 +- .../test_art_eager_constraint_checking.test | 4 +- .../constraints/test_art_eager_with_wal.test | 4 +- .../art/constraints/test_art_large_abort.test | 4 +- .../constraints/test_art_simple_update.test | 4 +- .../test_art_tx_conflict_revert.test | 4 +- ...test_art_tx_delete_with_global_nested.test | 4 +- .../constraints/test_art_tx_deletes_list.test | 4 +- .../test_art_tx_deletes_rollback.test | 4 +- .../test_art_tx_deletes_varchar.test | 4 +- .../constraints/test_art_tx_over_eager.test | 4 +- .../constraints/test_art_tx_returning.test | 4 +- .../constraints/test_art_tx_same_row_id.test | 4 +- ...test_art_tx_update_with_global_nested.test | 4 +- .../constraints/test_art_tx_updates_list.test | 4 +- .../test_art_tx_updates_pk_col.test | 4 +- .../test_art_tx_updates_rollback.test | 4 +- ...test_art_tx_upsert_with_global_nested.test | 4 +- .../constraints/test_art_tx_upserts_list.test | 4 +- .../test_art_tx_upserts_local.test | 4 +- .../test_art_tx_upserts_rollback.test | 4 +- .../test_art_upsert_duplicate.test | 4 +- .../test_art_upsert_other_index.test | 4 +- .../test_art_big_compound_key.test | 4 +- .../test_art_create_concurrently.test | 45 ++ .../test_art_create_if_exists.test | 4 +- .../test_art_create_index_delete.test | 4 +- ...st_art_create_index_duplicate_deletes.test | 4 +- .../test_art_create_many_duplicates.test | 4 +- ...st_art_create_many_duplicates_deletes.test | 4 +- .../create_drop/test_art_create_unique.test | 4 +- .../art/create_drop/test_art_drop_index.test | 4 +- .../test_art_invalid_create_index.test | 4 +- .../create_drop/test_art_many_versions.test | 4 +- ..._recreate_unique_index_local_identity.test | 4 +- .../create_drop/test_art_single_value.test | 4 +- .../art/create_index_session_dependent.test | 4 +- .../art/create_index_time_zone_dependent.test | 189 +++++++++ .../index/art/index_bind_failure_retry.test | 89 ++++ .../sql/index/art/index_macro_dependency.test | 12 +- .../test_art_sel_vector.test | 4 +- .../test_art_simple_update.test | 4 +- .../insert_update_delete/test_art_update.test | 4 +- .../test_art_update_other_column.test | 4 +- .../test_art_update_same_value.test | 4 +- .../test_art_update_with_dict_fsst.test | 4 +- .../sql/index/art/issues/test_art_fuzzer.test | 4 +- .../art/issues/test_art_fuzzer_persisted.test | 4 +- .../issues/test_art_internal_issue_4742.test | 4 +- .../art/issues/test_art_issue_21394.test | 4 +- .../art/issues/test_art_issue_23929.test | 4 +- .../art/issues/test_art_issue_24246.test | 4 +- .../art/issues/test_art_issue_25155.test | 4 +- .../index/art/issues/test_art_issue_4976.test | 4 +- .../index/art/issues/test_art_issue_6603.test | 4 +- .../index/art/issues/test_art_issue_6799.test | 4 +- .../index/art/issues/test_art_issue_7349.test | 4 +- .../index/art/issues/test_art_issue_7530.test | 4 +- .../art/issues/test_art_view_col_binding.test | 8 +- .../multi_column/test_art_multi_column.test | 4 +- .../test_art_multi_predicate.test | 4 +- .../art/nodes/test_art_leaf_coverage.test | 4 +- .../nodes/test_art_nested_leaf_coverage.test | 4 +- .../sql/index/art/nodes/test_art_node_16.test | 4 +- .../index/art/nodes/test_art_node_256.test | 4 +- .../sql/index/art/nodes/test_art_node_4.test | 4 +- .../sql/index/art/nodes/test_art_node_48.test | 4 +- ...rt_prefix_transform_deprecated_create.test | 4 +- ...art_prefix_transform_deprecated_gated.test | 4 +- .../art/nodes/test_art_prefixes_restart.test | 4 +- .../art/nodes/test_art_sparse_merge.test | 4 +- .../art/scan/test_art_adaptive_scan.test | 4 +- .../index/art/scan/test_art_many_matches.test | 4 +- .../scan/test_art_negative_range_scan.test | 4 +- .../art/scan/test_art_node256_byte_edges.test | 4 +- .../index/art/scan/test_art_null_bytes.test | 4 +- .../art/scan/test_art_prepared_scan.test | 4 +- .../index/art/scan/test_art_range_scan.test | 4 +- .../art/scan/test_art_scan_coverage.test | 4 +- .../scan/test_art_scan_duplicate_filters.test | 4 +- .../art/scan/test_art_scan_filter_column.test | 12 +- .../test_art_scan_local_rows_batch_index.test | 29 ++ .../scan/test_art_scan_normal_to_nested.test | 4 +- .../art/scan/test_art_scan_thresholds.test | 4 +- .../test_hash_join_in_filter_index_scan.test | 4 +- .../art/scan/test_in_filter_index_scan.test | 4 +- .../scan/test_not_distinct_index_scan.test | 4 +- .../sql/index/art/scan/test_random_uuid.test | 4 +- .../art_reloaded_buffer_initialization.test | 61 +++ .../test_art_allocator_bitmap_checkpoint.test | 4 +- .../art/storage/test_art_auto_checkpoint.test | 4 +- ...test_art_buffered_replays_chunk_edges.test | 4 +- ...test_art_buffered_replays_interleaved.test | 4 +- ...art_buffered_replays_interval_merging.test | 4 +- .../test_art_buffered_replays_multi_col.test | 4 +- .../art/storage/test_art_checkpoint.test | 4 +- .../art/storage/test_art_corrupt_pointer.test | 13 + .../art/storage/test_art_duckdb_versions.test | 4 +- ...est_art_if_not_exists_constraint_name.test | 4 +- .../index/art/storage/test_art_import.test | 4 +- .../art/storage/test_art_import_export.test | 4 +- ...est_art_list_sort_checkpoint_on_close.test | 57 +++ .../index/art/storage/test_art_mem_limit.test | 4 +- .../sql/index/art/storage/test_art_names.test | 4 +- .../storage/test_art_node256_leaf_layout.test | 4 +- .../index/art/storage/test_art_readonly.test | 4 +- .../index/art/storage/test_art_storage.test | 4 +- .../test_art_storage_long_prefixes.test | 4 +- .../test_art_storage_multi_checkpoint.test | 4 +- .../test_art_wal_checkpoint_minimal.test | 4 +- .../test_art_wal_replay_drop_table.test | 4 +- .../storage/test_art_wal_replay_in_tx.test | 4 +- .../test_art_wal_replay_with_buffer.test | 4 +- ...art_wal_replay_with_buffer_concurrent.test | 4 +- .../index/art/test_art_empty_close_range.test | 4 +- .../sql/index/art/test_art_tx_update_key.test | 4 +- .../sql/index/art/test_index_key_rebind.test | 4 +- .../sql/index/art/types/test_art_boolean.test | 4 +- .../art/types/test_art_coverage_types.test | 4 +- .../sql/index/art/types/test_art_double.test | 4 +- .../art/types/test_art_expression_key.test | 4 +- .../art/types/test_art_integer_types.test | 4 +- .../sql/index/art/types/test_art_real.test | 4 +- .../sql/index/art/types/test_art_real_pk.test | 4 +- .../sql/index/art/types/test_art_union.test | 4 +- .../sql/index/art/types/test_art_varchar.test | 4 +- .../unique_index_unbound_after_attach.test | 4 +- ...test_art_vacuum_persisted_nested_leaf.test | 4 +- .../art/vacuum/test_art_vacuum_rollback.test | 4 +- .../sql/index/create_index_options.test | 4 +- .../corpus/sql/index/index_key_collation.test | 69 ++++ .../sql/index/rollback_comment_on_index.test | 61 +++ .../corpus/sql/insert/insert_by_name.test | 4 +- .../insert_from_many_grouping_sets.test | 4 +- .../corpus/sql/insert/insert_query_node.test | 4 +- .../corpus/sql/insert/insert_rollback.test | 4 +- .../corpus/sql/insert/null_values.test | 4 +- .../corpus/sql/insert/test_big_insert.test | 4 +- .../corpus/sql/insert/test_insert.test | 4 +- .../insert/test_insert_ignored_syntax.test | 4 +- .../sql/insert/test_insert_invalid.test | 4 +- .../corpus/sql/insert/test_insert_query.test | 4 +- .../corpus/sql/insert/test_insert_type.test | 4 +- .../insert/unaligned_interleaved_appends.test | 4 +- ...rbitrary_condition_optimizer_disabled.test | 8 +- .../sql/join/asof/test_asof_empty_right.test | 4 +- .../corpus/sql/join/asof/test_asof_join.test | 4 +- .../test_asof_join_collation_loop_join.test | 37 ++ .../sql/join/asof/test_asof_join_doubles.test | 4 +- .../asof/test_asof_join_filter_pushdown.test | 4 +- .../asof/test_asof_join_inequalities.test | 4 +- .../join/asof/test_asof_join_integers.test | 4 +- .../join/asof/test_asof_join_key_types.test | 4 +- .../test_asof_join_list_partition_key.test | 21 + ...test_asof_join_not_distinct_predicate.test | 4 +- .../sql/join/asof/test_asof_join_nulls.test | 4 +- .../join/asof/test_asof_join_predicates.test | 4 +- .../sql/join/asof/test_asof_join_prefix.test | 4 +- .../join/asof/test_asof_join_pushdown.test | 4 +- .../sql/join/asof/test_asof_join_setops.test | 4 +- .../join/asof/test_asof_join_subquery.test | 4 +- .../join/asof/test_asof_join_timestamps.test | 4 +- .../sql/join/asof/test_asof_join_types.test | 4 +- .../sql/join/asof/test_asof_join_varchar.test | 4 +- .../corpus/sql/join/asof/test_asof_limit.test | 4 +- .../join/asof/test_asof_semi_anti_mark.test | 4 +- .../join/bloom_filter_rowid_deleted_rows.test | 37 ++ .../join/comparison_operand_extraction.test | 4 +- .../cross_product/test_cross_product.test | 4 +- .../corpus/sql/join/delim_join_reuse.test | 4 +- .../testdata/corpus/sql/join/empty_joins.test | 4 +- .../external_join_repartition_probe_side.test | 4 +- .../external_join_runtime_filter.test | 4 +- .../null_safe_runtime_filter_external.test | 45 ++ .../full_outer/full_outer_join_cache.test | 4 +- .../full_outer/full_outer_join_union.test | 4 +- .../join/full_outer/test_full_outer_join.test | 4 +- .../test_full_outer_join_complex.test | 4 +- .../test_full_outer_join_inequality.test | 4 +- .../test_full_outer_join_issue_4252.test | 4 +- .../test_full_outer_join_range.test | 4 +- .../test_zero_column_materialized_join.test | 36 +- .../hash_join/dict_cache_computed_column.test | 94 +++++ .../hash_join/hash_join_constant_probe.test | 4 +- .../hash_join/hash_join_dict_surviving.test | 4 +- ...sh_join_dict_surviving_computed_build.test | 49 +++ .../hash_join_dict_surviving_cte.test | 4 +- .../hash_join_dict_surviving_outer_build.test | 4 +- .../hash_join_dict_surviving_reinterpret.test | 25 ++ .../hash_join/hash_join_dictionary_probe.test | 4 +- ...sh_join_nested_key_after_constant_key.test | 93 +++++ .../hash_join_residual_predicates.test | 4 +- .../sql/join/iejoin/iejoin_issue_6861.test | 4 +- .../sql/join/iejoin/iejoin_issue_7278.test | 4 +- .../iejoin/iejoin_outer_struct_payload.test | 4 +- .../iejoin/iejoin_outer_tail_predicate.test | 25 ++ .../iejoin_semi_anti_residual_payload.test | 4 +- .../sql/join/iejoin/merge_join_switch.test | 4 +- .../join/iejoin/predicate_expressions.test | 4 +- .../sql/join/iejoin/test_countzeros.test | 4 +- .../sql/join/iejoin/test_ieantijoin.test | 4 +- .../corpus/sql/join/iejoin/test_iejoin.test | 4 +- .../join/iejoin/test_iejoin_east_west.test | 4 +- .../sql/join/iejoin/test_iejoin_events.test | 4 +- .../join/iejoin/test_iejoin_null_keys.test | 4 +- .../sql/join/iejoin/test_iejoin_overlaps.test | 4 +- .../join/iejoin/test_iejoin_predicate.test | 4 +- .../sql/join/iejoin/test_iesemijoin.test | 4 +- .../sql/join/inner/empty_tinyint_column.test | 4 +- .../sql/join/inner/equality_join_limits.test | 4 +- .../corpus/sql/join/inner/join_cache.test | 4 +- .../sql/join/inner/join_cross_product.test | 4 +- .../corpus/sql/join/inner/list_join.test | 4 +- .../sql/join/inner/not_between_is_null.test | 4 +- .../join/inner/null_safe_runtime_filter.test | 122 ++++++ .../null_safe_runtime_filter_boundaries.test | 49 +++ .../inner/null_safe_runtime_filter_plan.test | 53 +++ .../right_semi_dict_emission_dead_end.test | 4 +- .../inner/test_dense_prefix_range_filter.test | 16 +- .../sql/join/inner/test_eq_ineq_join.test | 4 +- .../test_inner_join_filter_pushdown.test | 4 +- .../corpus/sql/join/inner/test_join.test | 4 +- .../sql/join/inner/test_join_duplicates.test | 4 +- .../inner/test_join_filter_precedence.test | 4 +- .../sql/join/inner/test_join_is_distinct.test | 4 +- .../join/inner/test_join_is_not_distinct.test | 4 +- .../corpus/sql/join/inner/test_lt_join.test | 4 +- ...t_prefix_range_filter_allnull_pruning.test | 77 ++++ .../test_prefix_range_filter_non_utf8.test | 4 +- .../test_prefix_range_filter_pushdown.test | 4 +- ...refix_range_filter_pushdown_strinline.test | 4 +- .../sql/join/inner/test_range_join.test | 4 +- .../sql/join/inner/test_unequal_join.test | 4 +- .../inner/test_unequal_join_duplicates.test | 4 +- .../sql/join/inner/test_using_chain.test | 4 +- .../sql/join/inner/test_using_join.test | 4 +- .../sql/join/inner/test_varchar_join.test | 4 +- .../join/left_outer/left_join_issue_1172.test | 4 +- .../left_outer/left_join_issue_15316.test | 4 +- .../left_outer/left_join_issue_23805.test | 4 +- .../left_outer/left_join_issue_24540.test | 4 +- .../join/left_outer/left_join_issue_6341.test | 4 +- .../join/left_outer/left_join_issue_7905.test | 4 +- .../left_outer/non_foldable_left_join.test | 4 +- .../test_left_join_filter_pushdown.test | 4 +- .../left_outer/test_left_join_on_true.test | 4 +- .../sql/join/left_outer/test_left_outer.test | 4 +- .../sql/join/left_outer/unique_left_join.test | 4 +- .../join/mark/conjunction_vector_reuse.test | 4 +- .../sql/join/mark/constant_mark_join.test | 4 +- .../sql/join/mark/distinct_comparison.test | 4 +- .../sql/join/mark/explicit_conditions.test | 4 +- .../mark/group_reconstruction_limits.test | 4 +- .../mark/hash_nested_operator_semantics.test | 4 +- .../corpus/sql/join/mark/inferred_groups.test | 4 +- .../join/mark/nested_operator_semantics.test | 4 +- .../sql/join/mark/residual_predicate.test | 4 +- .../sql/join/mark/residual_vector_reuse.test | 4 +- ...test_null_safe_semi_uncommitted_stats.test | 16 +- .../sql/join/mark/tuple_inequality.test | 4 +- .../sql/join/mark/tuple_value_semantics.test | 4 +- .../corpus/sql/join/natural/natural_join.test | 12 +- .../sql/join/nearest/nearest_basic.test | 4 +- .../sql/join/nearest/nearest_errors.test | 4 +- .../sql/join/nearest/nearest_parser.test | 4 +- .../sql/join/nearest/nearest_storage.test | 4 +- .../non_inner_decorrelation_regressions.test | 4 +- .../sql/join/non_inner_join_subquery.test | 4 +- .../join/non_inner_join_subquery_binding.test | 4 +- .../non_inner_join_subquery_pushdown.test | 77 ++++ ...ir_dependent_full_outer_join_subquery.test | 4 +- ...ent_full_outer_join_subquery_bindings.test | 4 +- ...ependent_full_outer_join_subquery_cte.test | 4 +- .../join/pair_dependent_join_subquery.test | 4 +- ...ir_dependent_outer_reference_subquery.test | 4 +- .../join/pair_dependent_right_semi_anti.test | 4 +- .../pair_dependent_volatile_subquery.test | 4 +- .../sql/join/positional/issue20086.test | 4 +- .../join/positional/test_positional_join.test | 4 +- .../pushdown/pushdown_generated_columns.test | 4 +- .../join/pushdown/pushdown_join_types.test | 4 +- .../join/pushdown/pushdown_many_joins.test | 4 +- .../right_outer/right_join_complex_null.test | 4 +- .../test_right_join_filter_pushdown.test | 4 +- .../join/right_outer/test_right_outer.test | 4 +- .../join/runtime_filter_equivalent_keys.test | 140 +++++++ .../runtime_filter_equivalent_keys_plan.test | 35 ++ .../join/runtime_filter_recursive_routes.test | 98 +++++ .../join/runtime_filter_route_effects.test | 50 +++ .../sql/join/runtime_filter_routes.test | 128 ++++++ .../sql/join/runtime_filter_routes_plan.test | 80 ++++ .../sql/join/runtime_filter_row_number.test | 36 ++ .../join/runtime_filter_scalar_pushdown.test | 24 ++ .../sql/join/runtime_filter_scheduling.test | 85 ++++ .../join/runtime_filter_target_safety.test | 148 +++++++ .../semianti/10406-anti-on-ints-strings.test | 4 +- .../corpus/sql/join/semianti/antijoin.test | 4 +- .../semianti/constant_comparison_join.test | 4 +- .../semianti/mix_equality_inequality.test | 4 +- ...wise_NL_join_with_mutliple_conditions.test | 4 +- .../corpus/sql/join/semianti/right_anti.test | 4 +- .../corpus/sql/join/semianti/right_semi.test | 4 +- .../corpus/sql/join/semianti/semijoin.test | 4 +- .../test_semianti_join_filter_pushdown.test | 4 +- .../join/semianti/test_simple_anti_join.test | 4 +- ..._operator_reordering_with_delim_joins.test | 4 +- .../join/test_between_null_bound_join.test | 4 +- .../sql/join/test_complex_join_expr.test | 4 +- .../sql/join/test_complex_range_join.test | 4 +- .../test_join_always_true_conditions.test | 4 +- .../corpus/sql/join/test_join_by.test | 4 +- .../sql/join/test_join_on_aggregates.test | 4 +- .../sql/join/test_merge_join_predicate.test | 4 +- .../sql/join/test_nested_inequality.test | 4 +- .../sql/join/test_predicate_binding.test | 4 +- .../corpus/sql/join/test_string_payload.test | 4 +- .../corpus/sql/json/copy_geojson.test | 4 +- .../copy_geojson_column_option_constant.test | 13 + .../copy_geojson_write_bbox_constant.test | 41 ++ .../sql/json/copy_json_null_options.test | 4 +- .../sql/json/copy_json_partition_by.test | 4 +- .../sql/json/issues/internal_issue1035.test | 4 +- .../sql/json/issues/internal_issue2732.test | 4 +- .../sql/json/issues/internal_issue3146.test | 4 +- .../sql/json/issues/internal_issue3197.test | 4 +- .../sql/json/issues/internal_issue391.test | 4 +- .../sql/json/issues/internal_issue4014.test | 4 +- .../sql/json/issues/internal_issue4389.test | 4 +- .../sql/json/issues/internal_issue4403.test | 4 +- .../sql/json/issues/internal_issue4794.test | 4 +- .../sql/json/issues/internal_issue5288.test | 4 +- .../sql/json/issues/issue10751and11152.test | 4 +- .../corpus/sql/json/issues/issue10784.test | 4 +- .../corpus/sql/json/issues/issue10866.test | 4 +- .../corpus/sql/json/issues/issue11804.test | 4 +- .../corpus/sql/json/issues/issue12188.test | 4 +- .../corpus/sql/json/issues/issue12861.test | 4 +- .../corpus/sql/json/issues/issue13212.test | 4 +- .../corpus/sql/json/issues/issue13725.test | 4 +- .../corpus/sql/json/issues/issue13948.test | 4 +- .../corpus/sql/json/issues/issue14167.test | 4 +- .../corpus/sql/json/issues/issue14245.test | 4 +- .../corpus/sql/json/issues/issue14259.test | 4 +- .../corpus/sql/json/issues/issue15038.test | 4 +- .../corpus/sql/json/issues/issue15601.test | 4 +- .../corpus/sql/json/issues/issue16568.test | 4 +- .../corpus/sql/json/issues/issue16570.test | 4 +- .../corpus/sql/json/issues/issue16684.test | 4 +- .../corpus/sql/json/issues/issue16968.test | 4 +- .../corpus/sql/json/issues/issue17135.test | 4 +- .../corpus/sql/json/issues/issue18301.test | 4 +- .../corpus/sql/json/issues/issue19357.test | 4 +- .../corpus/sql/json/issues/issue19366.test | 4 +- .../corpus/sql/json/issues/issue22764.test | 4 +- .../corpus/sql/json/issues/issue23114.test | 4 +- .../corpus/sql/json/issues/issue25415.test | 4 +- .../corpus/sql/json/issues/issue27414.test | 4 +- .../corpus/sql/json/issues/issue6722.test | 4 +- .../corpus/sql/json/issues/issue8695.test | 4 +- .../issues/large_quoted_string_constant.test | 4 +- ...nference_threshold_internal_exception.test | 4 +- .../sql/json/issues/ndjson_parallel_bom.test | 78 ++++ .../json/issues/read_json_memory_usage.test | 20 +- .../sql/json/issues/test_json_temp_8062.test | 4 +- .../corpus/sql/json/json_blob_roundtrip.test | 59 +++ .../sql/json/scalar/json_nested_casts.test | 4 +- .../json/scalar/json_to_map_invalid_keys.test | 16 +- .../json_transform_case_insensitive_keys.test | 4 +- .../sql/json/scalar/test_geojson_cast.test | 4 +- .../json/scalar/test_json_array_length.test | 4 +- .../test_json_arrow_chain_precedence.test | 185 +++++++++ .../sql/json/scalar/test_json_arrow_expr.test | 4 +- .../sql/json/scalar/test_json_contains.test | 4 +- .../sql/json/scalar/test_json_create.test | 4 +- .../test_json_decimal_no_integer_digits.test | 37 ++ .../sql/json/scalar/test_json_deep_merge.test | 4 +- .../sql/json/scalar/test_json_dot_syntax.test | 4 +- .../sql/json/scalar/test_json_exists.test | 4 +- .../sql/json/scalar/test_json_extract.test | 4 +- .../scalar/test_json_extract_input_types.test | 4 +- .../json/scalar/test_json_geometry_crs.test | 21 + .../corpus/sql/json/scalar/test_json_icu.test | 4 +- .../sql/json/scalar/test_json_insert.test | 4 +- .../sql/json/scalar/test_json_keys.test | 4 +- .../scalar/test_json_merge_deep_nesting.test | 4 +- .../json/scalar/test_json_merge_patch.test | 4 +- .../scalar/test_json_merge_patch_diff.test | 4 +- .../sql/json/scalar/test_json_normalize.test | 4 +- .../sql/json/scalar/test_json_path.test | 4 +- .../json/scalar/test_json_path_prepared.test | 4 +- .../scalar/test_json_path_quoted_keys.test | 25 ++ .../sql/json/scalar/test_json_pretty.test | 4 +- .../sql/json/scalar/test_json_remove.test | 4 +- .../sql/json/scalar/test_json_replace.test | 4 +- .../corpus/sql/json/scalar/test_json_set.test | 4 +- .../json/scalar/test_json_strip_nulls.test | 4 +- .../sql/json/scalar/test_json_structure.test | 10 +- .../json/scalar/test_json_structure_deep.test | 17 + .../scalar/test_json_structure_depth.test | 17 + .../scalar/test_json_structure_iterative.test | 58 +++ .../sql/json/scalar/test_json_transform.test | 16 +- .../sql/json/scalar/test_json_type.test | 4 +- .../sql/json/scalar/test_json_valid.test | 4 +- .../sql/json/scalar/test_json_value.test | 4 +- .../sql/json/scalar/test_st_asgeojson.test | 4 +- .../json/scalar/test_st_geomfromgeojson.test | 4 +- .../sql/json/table/auto_glob_directory.test | 4 +- .../sql/json/table/json_empty_array.test | 4 +- .../json/table/json_multi_file_reader.test | 4 +- .../json_table_in_out_fullkey_quoting.test | 4 +- .../json/table/json_table_in_out_threads.test | 85 ++++ .../sql/json/table/multi_file_hang.test | 4 +- .../sql/json/table/read_geojson_errors.test | 4 +- .../table/read_geojson_featurecollection.test | 4 +- .../sql/json/table/read_geojson_ndjson.test | 4 +- .../sql/json/table/read_geojson_nested.test | 4 +- .../table/read_geojson_pseudo_columns.test | 4 +- .../corpus/sql/json/table/read_json.test | 4 +- .../read_json_case_insensitive_keys.test | 136 ++++++ .../sql/json/table/read_json_dates.test | 4 +- .../read_json_dates_vector_boundary.test | 4 +- .../sql/json/table/read_json_decimal.test | 238 +++++++++++ .../read_json_ignore_errors_spanning.test | 4 +- .../sql/json/table/read_json_objects.test | 4 +- .../table/read_json_parallel_buffers.test | 105 +++++ .../table/read_json_records_param_types.test | 4 +- .../sql/json/table/read_json_root_bignum.test | 4 +- .../table/read_json_timestamp_specials.test | 4 +- .../sql/json/table/read_json_union.test | 4 +- ...read_json_unnest_heterogeneous_struct.test | 4 +- .../sql/json/table/read_single_json_file.test | 4 +- .../sql/json/table/test_json_copy_zstd.test | 4 +- ...son_nested_struct_projection_pushdown.test | 4 +- .../sql/json/test_deserialize_at_clause.test | 13 + .../test_deserialize_function_validation.test | 13 + .../json/test_deserialize_window_frame.test | 17 + .../test_execute_serialized_prepared.test | 13 + .../corpus/sql/json/test_json_bool.test | 4 +- .../corpus/sql/json/test_json_cast.test | 4 +- .../json/test_json_copy_dateformat_error.test | 8 +- .../json/test_json_copy_serialize_plan.test | 4 +- .../sql/json/test_json_deserialize_depth.test | 21 + .../test_json_deserialize_grouping_sets.test | 4 +- ...t_json_deserialize_invalid_statements.test | 4 +- .../test_json_deserialize_invalid_types.test | 4 +- .../test_json_deserialize_invalid_values.test | 4 +- .../test_json_deserialize_missing_refs.test | 4 +- .../json/test_json_deserialize_pointer.test | 51 +++ .../sql/json/test_json_empty_object.test | 4 +- .../test_json_execute_serialized_types.test | 4 +- .../corpus/sql/json/test_json_export.test | 4 +- .../sql/json/test_json_geometry_format.test | 4 +- .../json/test_json_group_window_macro.test | 4 +- .../corpus/sql/json/test_json_macros.test | 4 +- .../sql/json/test_json_path_long_index.test | 4 +- .../sql/json/test_json_persistence.test | 4 +- .../sql/json/test_json_serialize_plan.test | 31 +- .../sql/json/test_json_serialize_sql.test | 9 +- .../corpus/sql/json/test_json_sqlite.test | 4 +- .../test_serialized_decimal_no_type_info.test | 9 + .../json/test_serialized_sample_options.test | 25 ++ .../test_serialized_value_out_of_range.test | 17 + .../keywords/escaped_quotes_expressions.test | 4 +- .../sql/keywords/keywords_in_expressions.test | 4 +- .../limit_exceeds_child_cardinality.test | 4 +- .../limit/streaming_limit_pipeline_flush.test | 4 +- .../streaming_limit_pipeline_flush2.test | 4 +- .../sql/limit/test_batch_limit_filters.test | 4 +- .../corpus/sql/limit/test_limit0.test | 4 +- .../limit/test_preserve_insertion_order.test | 4 +- .../enable_logging_file_keeps_path.test | 45 ++ .../logging/enable_logging_file_no_path.test | 10 +- .../logging/file_system_logging_attach.test | 4 +- .../file_system_logging_attach_deadlock.test | 4 +- .../corpus/sql/logging/http_log_timing.test | 5 +- .../logging/http_request_log_redaction.test | 11 +- .../logging/http_response_log_redaction.test | 12 +- .../sql/logging/http_url_log_redaction.test | 4 +- .../testdata/corpus/sql/logging/logging.test | 14 +- .../sql/logging/logging_branch_coverage.test | 4 +- .../sql/logging/logging_buffer_size.test | 4 +- .../sql/logging/logging_call_functions.test | 16 +- .../sql/logging/logging_context_ids.test | 4 +- .../corpus/sql/logging/logging_csv.test | 4 +- .../sql/logging/logging_deprecated_names.test | 57 +++ .../logging/logging_file_bind_replace.test | 4 +- .../sql/logging/logging_file_persistence.test | 4 +- .../logging_file_truncate_rewrite.test | 4 +- .../logging_memory_after_truncate.test | 14 +- .../logging_non_queryable_storage.test | 10 +- .../sql/logging/logging_scan_progress.test | 21 + .../corpus/sql/logging/logging_types.test | 8 +- ...ble_logging_unknown_type_file_storage.test | 8 +- .../sql/logging/test_logging_function.test | 4 +- .../testdata/corpus/sql/merge/merge_into.test | 4 +- .../merge_into_bind_matching_columns.test | 4 +- .../sql/merge/merge_into_by_source.test | 4 +- .../sql/merge/merge_into_constraint.test | 4 +- .../corpus/sql/merge/merge_into_default.test | 4 +- .../corpus/sql/merge/merge_into_error.test | 4 +- .../sql/merge/merge_into_explain_analyze.test | 4 +- .../corpus/sql/merge/merge_into_index.test | 4 +- .../sql/merge/merge_into_insert_star.test | 4 +- .../sql/merge/merge_into_invalid_action.test | 4 +- .../sql/merge/merge_into_invalid_column.test | 4 +- .../merge_into_invalid_column_reference.test | 4 +- .../sql/merge/merge_into_join_as_filter.test | 4 +- .../merge/merge_into_multiple_updates.test | 4 +- .../sql/merge/merge_into_parenthesis_bug.test | 4 +- .../sql/merge/merge_into_pipelines.test | 4 +- .../sql/merge/merge_into_returning.test | 4 +- ...e_into_returning_explain_no_optimizer.test | 4 +- .../corpus/sql/merge/merge_into_subquery.test | 4 +- .../sql/merge/merge_into_subquery_action.test | 4 +- .../merge/merge_into_subquery_condition.test | 4 +- .../merge_into_subquery_condition_delete.test | 4 +- .../sql/merge/merge_into_too_few_columns.test | 4 +- .../sql/merge/merge_into_update_star.test | 4 +- .../sql/merge/merge_multi_match_error.test | 139 ------- ...erge_not_matched_by_source_join_order.test | 4 +- .../corpus/sql/merge/trigger_merge_into.test | 4 +- .../multi_file_file_row_number.test | 4 +- .../multi_file/multi_file_open_options.test | 4 +- .../sql/multi_file/multi_file_schema.test | 26 +- .../multi_file_schema_filter_casts.test | 4 +- .../aggregate_stats_propagation.test | 8 +- .../anti_join_empty_rhs_projection_map.test | 4 +- .../sql/optimizer/any_extremum_rewrite.test | 4 +- .../array_extract_row_group_pruning.test | 4 +- .../optimizer/barrier_row_group_pruning.test | 4 +- .../optimizer/bool_ref_row_group_pruning.test | 4 +- .../optimizer/boolean_row_group_pruning.test | 4 +- .../optimizer/boolean_wrapper_pushdown.test | 12 +- .../sql/optimizer/case_zonemap_pruning.test | 4 +- .../optimizer/coalesce_zonemap_pruning.test | 4 +- ...consistent_within_query_optimizations.test | 117 ++++++ .../constant_function_zonemap_pruning.test | 20 +- .../optimizer/contains_row_group_pruning.test | 4 +- ...cross_column_expression_stats_pruning.test | 4 +- .../date_part_row_group_pruning.test | 4 +- .../distinct_sibling_column_pruning.test | 4 +- .../sql/optimizer/divide_zonemap_pruning.test | 4 +- .../empty_string_concat_pruning.test | 4 +- .../date_trunc_non_interval_parts.test | 4 +- .../expression/enum_compare_null.test | 4 +- .../expression/enum_full_domain_behavior.test | 4 +- .../enum_full_domain_fold_guard.test | 8 +- .../expression/list_comprehension_casts.test | 4 +- .../list_comprehension_rewrite.test | 4 +- .../expression/test_between_tostring.test | 97 +++++ .../test_casting_negative_integer_to_bit.test | 4 +- .../expression/test_common_aggregate.test | 4 +- .../test_comparison_simplification.test | 4 +- .../test_conjunction_optimization.test | 4 +- .../sql/optimizer/expression/test_cse.test | 4 +- .../expression/test_date_subtract_filter.test | 4 +- .../test_empty_needle_dead_branch.test | 45 ++ .../test_enum_in_simplification.test | 4 +- .../test_equal_or_null_optimization.test | 4 +- .../expression/test_float_identity.test | 4 +- .../test_in_clause_simplification.test | 4 +- .../test_indistinct_aggregates.test | 4 +- .../expression/test_move_constants.test | 4 +- .../test_move_constants_overflow.test | 4 +- .../expression/test_negation_limits.test | 4 +- .../expression/test_nop_arithmetic.test | 4 +- .../test_row_comparison_simplification.test | 4 +- .../test_time_ns_cast_comparison.test | 4 +- .../expression/test_timestamp_offset.test | 4 +- .../uncommitted_appends_fold_guard.test | 4 +- .../false_or_null_segment_pruning.test | 4 +- .../optimizer/in_list_row_group_pruning.test | 4 +- .../sql/optimizer/instr_zonemap_pruning.test | 4 +- .../interval_column_stats_pruning.test | 4 +- .../optimizer/interval_row_group_pruning.test | 4 +- .../join_condition_verification_stats.test | 261 ++++++++++++ .../joins/join_order_deep_setop_chain.test | 4 +- ...late_materialization_pushdown_extract.test | 4 +- .../late_materialization_table_filters.test | 14 +- .../sql/optimizer/left_zonemap_pruning.test | 4 +- .../list_contains_row_group_pruning.test | 4 +- .../list_transform_row_group_pruning.test | 91 ++++ .../map_extract_row_group_pruning.test | 4 +- .../sql/optimizer/modulo_zonemap_pruning.test | 267 ++++++++++++ .../monotone_function_zonemap_pruning.test | 28 +- .../sql/optimizer/monotone_preimage.test | 54 ++- .../monotone_preimage_tinyint_boundaries.test | 4 +- .../sql/optimizer/monotone_preimage_tz.test | 17 +- .../multiple_column_stats_pruning.test | 4 +- .../narrowing_cast_not_invertible.test | 4 +- .../nested_null_segment_pruning.test | 4 +- .../not_conjunction_simplification.test | 4 +- .../null_check_statistics_propagation.test | 4 +- .../optimizer/nullable_row_group_pruning.test | 4 +- .../sql/optimizer/or_null_simplification.test | 4 +- .../plan/dense_or_filter_pushdown.test | 4 +- .../plan/plan_struct_projection_pushdown.test | 4 +- .../plan/test_anti_join_empty_child.test | 4 +- .../plan/test_anti_join_projection_map.test | 4 +- .../test_disable_build_side_probe_side.test | 4 +- .../test_equivalent_filter_mirroring.test | 4 +- .../optimizer/plan/test_except_empty_rhs.test | 4 +- .../optimizer/plan/test_filter_pushdown.test | 4 +- .../plan/test_filter_pushdown_duplicate.test | 4 +- .../plan/test_filter_pushdown_large.test | 4 +- ...test_filter_pushdown_materialized_cte.test | 4 +- .../test_recursive_build_side_probe_side.test | 4 +- .../plan/test_recursive_join_order_guard.test | 4 +- .../plan/test_table_filter_pushdown.test | 4 +- .../plan/test_unused_column_after_join.test | 4 +- .../sql/optimizer/power_zonemap_pruning.test | 4 +- .../sql/optimizer/predicate_factoring.test | 4 +- .../sql/optimizer/prefix_zonemap_pruning.test | 4 +- .../lift_through_left_join_filter.test | 4 +- .../lift_through_nested_joins.test | 4 +- .../pushdown/pushdown_safe_decimal_cast.test | 157 +++++++ .../pushdown_extract_multiple_filters.test | 4 +- .../optimizer/pushdown_extract_reapplied.test | 4 +- .../sql/optimizer/regex_range_filter.test | 4 +- ...ove_unused_columns_nested_struct_cast.test | 33 ++ .../sql/optimizer/rewrite_nan_null.test | 4 +- .../sql/optimizer/secure_view_explain.test | 4 +- .../secure_view_fallible_functions.test | 72 ++++ .../secure_view_join_filter_pushdown.test | 311 ++++++++++++++ .../sql/optimizer/secure_view_join_order.test | 71 ++++ .../sql/optimizer/secure_view_pushdown.test | 4 +- .../secure_view_pushdown_compression.test | 4 +- .../sql/optimizer/secure_view_statistics.test | 4 +- .../sql/optimizer/self_join_aggregate.test | 289 +++++++++++++ .../sql/optimizer/sign_row_group_pruning.test | 4 +- .../optimizer/string_row_group_pruning.test | 4 +- .../sql/optimizer/string_stats_merge.test | 4 +- .../string_stats_merge_truncated_prefix.test | 4 +- .../optimizer/struct_extract_cast_filter.test | 61 +++ .../struct_extract_struct_pack_collation.test | 29 ++ .../sql/optimizer/struct_segment_pruning.test | 4 +- .../optimizer/substring_zonemap_pruning.test | 4 +- .../sum_aggregate_stats_propagation.test | 4 +- .../corpus/sql/optimizer/table_filters.test | 4 +- .../sql/optimizer/temporal_cast_dst.test | 4 +- .../sql/optimizer/temporal_cast_zonemap.test | 4 +- ...test_common_subplan_cte_binding_order.test | 4 +- .../test_common_subplan_nested_bindings.test | 4 +- .../test_common_subplan_projection_maps.test | 4 +- .../test_common_subplan_table_filters.test | 4 +- .../test_duplicate_groups_optimizer.test | 4 +- .../sql/optimizer/test_fd_derived_groups.test | 4 +- .../test_glob_row_group_pruning.test | 4 +- .../sql/optimizer/test_in_rewrite_rule.test | 4 +- .../test_negated_filter_cardinality.test | 4 +- .../test_no_pushdown_cast_into_cte.test | 4 +- .../test_not_comparison_simplification.test | 4 +- .../optimizer/test_rollup_column_pruning.test | 4 +- .../sql/optimizer/test_rowid_pruning.test | 4 +- .../sql/optimizer/test_rowid_pushdown.test | 4 +- .../test_rowid_pushdown_deletes.test | 4 +- .../optimizer/test_rowid_pushdown_plan.test | 4 +- .../sql/optimizer/test_window_self_join.test | 86 +++- .../tests_no_pushdown_under_samples.test | 4 +- .../timestamp_tz_cast_zonemap_pruning.test | 4 +- .../timestamp_unit_cast_zonemap_pruning.test | 4 +- ...opn_window_elimination_argument_order.test | 4 +- ...pn_window_elimination_computed_filter.test | 43 ++ ...ndow_elimination_late_materialization.test | 74 +++- .../topn_window_elimination_max_n.test | 4 +- .../topn_window_elimination_multiplicity.test | 4 +- ...opn_window_elimination_nullable_order.test | 4 +- .../topn_window_set_elimination.test | 4 +- .../optimizer/try_struct_extract_cast.test | 4 +- .../sql/optimizer/tuple_cast_pushdown.test | 37 ++ .../optimizer/unsigned_divide_statistics.test | 4 +- .../upper_lower_zonemap_pruning.test | 4 +- .../variant_cast_pushdown_semantics.test | 102 +++++ .../optimizer/variant_json_cast_pushdown.test | 4 +- .../window_self_join_optimizer_csv.test | 4 +- .../optimizer/yearweek_negative_iso_year.test | 4 +- .../sql/order/hugeint_order_by_extremes.test | 4 +- .../corpus/sql/order/issue_11936.test | 4 +- .../sql/order/limit_full_outer_join.test | 4 +- .../sql/order/limit_invalid_index_value.test | 4 +- .../corpus/sql/order/limit_parameter.test | 4 +- .../limit_percent_cardinality_overflow.test | 17 + .../corpus/sql/order/limit_percent_view.test | 4 +- .../corpus/sql/order/limit_union.test | 4 +- .../corpus/sql/order/negative_offset.test | 4 +- .../corpus/sql/order/order_by_all.test | 4 +- .../sql/order/order_by_internal_5293.test | 4 +- .../sql/order/order_by_negative_zero.test | 4 +- .../order/order_merge_buffer_fallback.test | 4 +- .../corpus/sql/order/order_overflow.test | 4 +- .../testdata/corpus/sql/order/test_limit.test | 4 +- .../corpus/sql/order/test_limit_cte.test | 4 +- .../sql/order/test_limit_nested_types.test | 4 +- .../sql/order/test_limit_parameter.test | 4 +- .../corpus/sql/order/test_limit_percent.test | 4 +- .../corpus/sql/order/test_nulls_first.test | 4 +- .../corpus/sql/order/test_order_by.test | 4 +- .../sql/order/test_order_by_exceptions.test | 4 +- .../test_order_by_non_ordinal_literal.test | 4 +- .../corpus/sql/order/test_order_large.test | 4 +- .../corpus/sql/order/test_order_pragma.test | 4 +- .../sql/order/test_order_range_mapping.test | 4 +- .../corpus/sql/order/test_order_unnest.test | 4 +- .../corpus/sql/order/top_n_issue_21623.test | 4 +- .../corpus/sql/order/top_n_limit_zero.test | 4 +- .../corpus/sql/order/top_n_nulls.test | 4 +- .../sql/ordinality/ordinality_constant.test | 4 +- .../sql/ordinality/ordinality_inout.test | 4 +- .../corpus/sql/overflow/bigint_overflow.test | 4 +- .../sql/overflow/double_float_overflow.test | 4 +- .../sql/overflow/expression_tree_depth.test | 4 +- .../corpus/sql/overflow/integer_overflow.test | 4 +- .../corpus/sql/overflow/table_overflow.test | 4 +- .../sql/overflow/test_numeric_overflow.test | 4 +- .../corpus/sql/overflow/test_overflow.test | 4 +- .../parallelism/async_task_schedule_pool.test | 4 +- .../async_task_synchronous_batch.test | 29 ++ .../interquery/concurrent_appends.test | 4 +- .../concurrent_checkpoint_insert.test | 4 +- .../concurrent_force_checkpoint.test | 4 +- ...oncurrent_index_scans_while_appending.test | 4 +- .../concurrent_reads_while_altering.test | 4 +- .../concurrent_reads_while_renaming.test | 4 +- ...ncurrent_set_async_threads_read_ahead.test | 4 +- ...depth_first_evaluation_union_and_join.test | 4 +- .../intraquery/error_in_pipeline.test | 4 +- .../intraquery/parallel_sample.test | 4 +- .../test_parallel_nested_aggregates.test | 4 +- .../test_persistent_parallelism.test | 4 +- .../intraquery/test_simple_parallelism.test | 4 +- .../test_transaction_local_parallelism.test | 4 +- .../intraquery/test_verify_parallelism.test | 4 +- .../sql/parser/adjacent_string_literal.test | 4 +- .../sql/parser/backtick_identifiers.test | 4 +- .../corpus/sql/parser/bare_column_alias.test | 4 +- .../corpus/sql/parser/columns_aliases.test | 4 +- .../corpus/sql/parser/columns_issue9867.test | 4 +- .../sql/parser/columns_unpacked_empty.test | 29 ++ .../sql/parser/create_macro_tostring.test | 4 +- .../corpus/sql/parser/cte_printing.test | 4 +- .../sql/parser/custom_prefix_operator.test | 108 ++++- .../sql/parser/deeply_nested_types.test | 4 +- .../corpus/sql/parser/digit_separators.test | 4 +- .../parser/division_operator_precedence.test | 4 +- .../dollar_quotes_internal_issue2224.test | 4 +- .../sql/parser/drop_qualified_names.test | 4 +- .../sql/parser/empty_quoted_identifier.test | 4 +- .../sql/parser/expression_depth_limit.test | 4 +- .../parser/external_resource_roundtrip.test | 24 +- .../corpus/sql/parser/fetch_first.test | 4 +- .../corpus/sql/parser/from_first.test | 4 +- .../corpus/sql/parser/function_chaining.test | 4 +- .../corpus/sql/parser/hex_string_literal.test | 4 +- .../corpus/sql/parser/indirection.test | 4 +- .../parser/invalid_utf8_parser_location.test | 4 +- .../corpus/sql/parser/invisible_spaces.test | 4 +- .../corpus/sql/parser/is_not_null_cast.test | 4 +- .../corpus/sql/parser/join_alias.test | 4 +- .../corpus/sql/parser/literal_round_trip.test | 4 +- .../negative_integer_literal_types.test | 53 +++ .../sql/parser/nested_join_backtracking.test | 4 +- .../sql/parser/not_comparison_precedence.test | 4 +- ...meric_literal_underscore_trailing_dot.test | 4 +- .../sql/parser/parenthesized_table_ref.test | 61 +++ .../parsed_data_statement_roundtrip.test | 24 +- .../parser/parser_rewrites_method_chain.test | 4 +- .../corpus/sql/parser/position_prepare.test | 4 +- ...ified_table_function_reserved_keyword.test | 50 +++ .../parser/qualified_underscore_digit.test | 4 +- .../reject_accidental_expression_syntax.test | 4 +- .../reject_accidental_statement_syntax.test | 4 +- .../parser/reject_accidental_type_syntax.test | 4 +- .../parser/reject_unknown_option_values.test | 4 +- .../sql/parser/single_quoted_names.test | 4 +- .../corpus/sql/parser/star_expression.test | 4 +- .../sql/parser/statement_query_text.test | 26 ++ .../parser/statement_tostring_roundtrip.test | 21 +- .../corpus/sql/parser/switch_case.test | 4 +- .../sql/parser/switch_null_arguments.test | 4 +- .../corpus/sql/parser/table_at_clause.test | 4 +- .../corpus/sql/parser/test_columns.test | 4 +- .../corpus/sql/parser/test_columns_lists.test | 4 +- .../corpus/sql/parser/test_columns_order.test | 4 +- .../sql/parser/test_columns_prepared.test | 4 +- .../sql/parser/test_columns_unpacked.test | 4 +- .../corpus/sql/parser/test_columns_where.test | 4 +- .../parser/test_deep_expression_chains.test | 4 +- .../parser/test_deep_expression_nesting.test | 4 +- .../corpus/sql/parser/test_long_error.test | 4 +- .../corpus/sql/parser/test_many_or.test | 4 +- .../parser/test_nested_subquery_depth.test | 21 + .../sql/parser/test_operator_precedence.test | 4 +- .../sql/parser/test_value_functions.test | 4 +- .../parser/tostring_load_export_quoting.test | 25 ++ .../corpus/sql/parser/trailing_commas.test | 4 +- .../unicode_whitespace_error_position.test | 69 ++++ ...unquoted_underscore_digit_identifiers.test | 4 +- .../sql/parser/unreserved_keyword_casing.test | 4 +- .../corpus/sql/parser/values_list_error.test | 4 +- .../parser/values_list_without_brackets.test | 4 +- .../sql/parser/wide_type_definitions.test | 10 +- .../corpus/sql/peg_parser/binary_type.test | 4 +- .../corpus/sql/peg_parser/deep_nesting.test | 4 +- .../sql/peg_parser/enable_peg_parser.test | 4 +- .../corpus/sql/peg_parser/escape_string.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0000.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0002.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0004.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0007.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0009.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0014.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0020.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0039.test | 4 +- .../sql/peg_parser/fuzzer/diverge_0060.test | 4 +- .../sql/peg_parser/fuzzer/fuzzer_4434.test | 4 +- .../sql/peg_parser/fuzzer/internal_0001.test | 4 +- .../sql/peg_parser/fuzzer/internal_0206.test | 4 +- .../sql/peg_parser/fuzzer/internal_0208.test | 4 +- .../sql/peg_parser/fuzzer/internal_0227.test | 4 +- .../fuzzer/new_parser_failure_0074.test | 4 +- .../fuzzer/new_parser_failure_0076.test | 4 +- .../corpus/sql/peg_parser/identifier.test | 4 +- .../corpus/sql/peg_parser/parser/alter.test | 4 +- .../sql/peg_parser/parser/analyze_vacuum.test | 4 +- .../sql/peg_parser/parser/array_subquery.test | 4 +- .../peg_parser/parser/attach_or_replace.test | 4 +- .../corpus/sql/peg_parser/parser/collate.test | 4 +- .../sql/peg_parser/parser/colon_alias.test | 4 +- .../sql/peg_parser/parser/comments.test | 4 +- .../peg_parser/parser/copy_expression.test | 4 +- .../sql/peg_parser/parser/copy_file_name.test | 4 +- .../sql/peg_parser/parser/create_macro.test | 4 +- .../sql/peg_parser/parser/create_table.test | 4 +- .../sql/peg_parser/parser/create_type.test | 4 +- .../peg_parser/parser/custom_operator.test | 4 +- .../sql/peg_parser/parser/delete_from.test | 4 +- .../sql/peg_parser/parser/dollar_quoted.test | 4 +- .../peg_parser/parser/dotted_functions.test | 4 +- .../sql/peg_parser/parser/empty_map.test | 4 +- .../sql/peg_parser/parser/ignore_nulls.test | 4 +- .../corpus/sql/peg_parser/parser/index.test | 4 +- .../corpus/sql/peg_parser/parser/insert.test | 4 +- .../peg_parser/parser/insert_statement.test | 4 +- .../peg_parser/parser/invisible_space.test | 4 +- .../peg_parser/parser/lambda_functions.test | 4 +- .../sql/peg_parser/parser/list_slices.test | 4 +- .../sql/peg_parser/parser/load_extension.test | 36 +- .../corpus/sql/peg_parser/parser/map.test | 4 +- .../sql/peg_parser/parser/merge_into.test | 4 +- .../peg_parser/parser/named_parameters.test | 4 +- .../sql/peg_parser/parser/nested_join.test | 4 +- .../sql/peg_parser/parser/on_conflict.test | 4 +- .../peg_parser/parser/pivot_statement.test | 4 +- .../sql/peg_parser/parser/position.test | 4 +- .../sql/peg_parser/parser/recursive.test | 4 +- .../corpus/sql/peg_parser/parser/sample.test | 4 +- .../parser/scientific_notation.test | 4 +- .../sql/peg_parser/parser/select_star.test | 4 +- .../sql/peg_parser/parser/show_table.test | 4 +- .../peg_parser/parser/struct_identifier.test | 4 +- .../support_optional_not_null_constraint.test | 4 +- .../sql/peg_parser/parser/support_try.test | 4 +- .../parser/support_unreserved_keywords.test | 4 +- .../corpus/sql/peg_parser/parser/type.test | 4 +- .../peg_parser/parser/update_statement.test | 4 +- .../sql/peg_parser/parser/use_statement.test | 4 +- .../peg_parser/parser/window_function.test | 4 +- .../peg_parser/parser/with_ordinality.test | 4 +- .../sql/peg_parser/peg_syntax_error.test | 6 +- .../sql/peg_parser/qualified_operator.test | 4 +- .../transformer/alter_statement.test | 4 +- .../transformer/attach_statement.test | 4 +- .../transformer/between_asymmetric.test | 4 +- .../transformer/call_statement.test | 4 +- .../transformer/delete_statement.test | 4 +- .../transformer/drop_statement.test | 4 +- .../transformer/is_predicate_operators.test | 4 +- .../transformer/load_statement.test | 4 +- .../transformer/peg_transformer.test | 4 +- .../peg_parser/transformer/set_statement.test | 4 +- .../transformer/special_string.test | 4 +- .../transformer/statement_length.test | 4 +- .../transformer/transaction_statement.test | 4 +- .../sql/peg_parser/transformer/trim.test | 4 +- .../transformer/unary_expression.test | 4 +- .../transformer/update_extensions.test | 4 +- .../peg_parser/transformer/use_statement.test | 6 +- .../sql/peg_parser/unterminated_literals.test | 4 +- .../corpus/sql/pg_catalog/pg_attribute.test | 45 +- .../corpus/sql/pg_catalog/pg_constraint.test | 4 +- .../corpus/sql/pg_catalog/pg_database.test | 4 +- .../corpus/sql/pg_catalog/pg_depend.test | 4 +- .../corpus/sql/pg_catalog/pg_enum.test | 4 +- .../corpus/sql/pg_catalog/pg_index.test | 4 +- .../corpus/sql/pg_catalog/pg_namespace.test | 4 +- .../pg_catalog/pg_prepared_statements.test | 4 +- .../corpus/sql/pg_catalog/pg_privilege.test | 4 +- .../corpus/sql/pg_catalog/pg_sequence.test | 4 +- .../corpus/sql/pg_catalog/pg_sequences.test | 4 +- .../corpus/sql/pg_catalog/pg_settings.test | 4 +- .../corpus/sql/pg_catalog/pg_tablespace.test | 4 +- .../corpus/sql/pg_catalog/pg_type.test | 4 +- .../corpus/sql/pg_catalog/pg_views.test | 4 +- .../corpus/sql/pg_catalog/sqlalchemy.test | 4 +- .../sql/pg_catalog/system_functions.test | 4 +- .../corpus/sql/pivot/optional_pivots.test | 4 +- .../corpus/sql/pivot/pivot_15141.test | 4 +- .../testdata/corpus/sql/pivot/pivot_6390.test | 4 +- .../sql/pivot/pivot_aggregate_filter.test | 25 ++ .../corpus/sql/pivot/pivot_bigquery.test | 4 +- .../sql/pivot/pivot_case_insensitive.test | 4 +- .../corpus/sql/pivot/pivot_databricks.test | 4 +- .../corpus/sql/pivot/pivot_empty.test | 4 +- .../sql/pivot/pivot_empty_string_value.test | 4 +- .../testdata/corpus/sql/pivot/pivot_enum.test | 4 +- .../corpus/sql/pivot/pivot_errors.test | 4 +- .../corpus/sql/pivot/pivot_expressions.test | 4 +- .../corpus/sql/pivot/pivot_generated.test | 4 +- .../pivot_identical_aggregates_names.test | 4 +- .../corpus/sql/pivot/pivot_in_boolean.test | 4 +- .../corpus/sql/pivot/pivot_in_cte.test | 41 ++ .../corpus/sql/pivot/pivot_in_map.test | 4 +- .../corpus/sql/pivot/pivot_in_subquery.test | 4 +- .../sql/pivot/pivot_operator_expression.test | 4 +- .../corpus/sql/pivot/pivot_prepare.test | 4 +- .../corpus/sql/pivot/pivot_query_text.test | 4 +- .../testdata/corpus/sql/pivot/pivot_star.test | 4 +- .../corpus/sql/pivot/pivot_storage.test | 4 +- .../sql/pivot/pivot_struct_aggregate.test | 4 +- .../corpus/sql/pivot/pivot_subquery.test | 4 +- .../sql/pivot/pivot_value_collisions.test | 4 +- .../pivot/pivot_value_group_name_clash.test | 21 + .../corpus/sql/pivot/test_multi_pivot.test | 4 +- .../testdata/corpus/sql/pivot/test_pivot.test | 4 +- .../test_pivot_duplicate_aggregates.test | 4 +- .../corpus/sql/pivot/test_unpivot.test | 4 +- .../corpus/sql/pivot/test_unpivot_stmt.test | 4 +- .../sql/pivot/top_level_pivot_syntax.test | 4 +- .../unpivot_exclude_nulls_name_clash.test | 33 ++ .../corpus/sql/pivot/unpivot_expression.test | 4 +- .../sql/pivot/unpivot_internal_names.test | 4 +- .../corpus/sql/pivot/unpivot_no_columns.test | 4 +- .../pivot/unpivot_non_aligned_columns.test | 4 +- .../corpus/sql/pivot/unpivot_types.test | 4 +- .../sql/pivot/unpivot_unnamed_subquery.test | 4 +- .../corpus/sql/pivot/unpivot_view.test | 4 +- .../pragma/pragma_database_size_readonly.test | 4 +- .../call_enable_profiling_function.test | 4 +- .../profiling_output_not_allowed.test | 29 ++ ...ling_output_not_allowed.test.metadata.json | 5 + .../profiling_renderer_settings_null.test | 4 +- .../test_all_profiling_settings.test | 4 +- .../test_attach_and_checkpoint_latency.test | 4 +- .../test_autocheckpoint_latency.test | 4 +- .../profiling/test_checkpoint_profiling.test | 4 +- ...st_commit_write_wal_latency_and_count.test | 4 +- ..._custom_profiling_blocked_thread_time.test | 4 +- ...test_custom_profiling_disable_metrics.test | 4 +- .../test_custom_profiling_errors.test | 4 +- ...t_custom_profiling_optimizer_settings.test | 4 +- ..._profiling_peak_streaming_buffer_size.test | 4 +- ...test_custom_profiling_result_set_size.test | 4 +- ...iling_row_group_metrics_local_storage.test | 4 +- .../test_custom_profiling_rows_scanned.test | 4 +- ...custom_profiling_rows_scanned_parquet.test | 4 +- ...stom_profiling_total_memory_allocated.test | 4 +- .../test_custom_profiling_using_groups.test | 4 +- ...st_duckdb_profiling_settings_function.test | 4 +- .../test_empty_profiling_settings.test | 4 +- .../profiling/test_io_operation_metrics.test | 47 +++ ...st_io_operation_metrics.test.metadata.json | 5 + .../profiling/test_legacy_metrics_format.test | 4 +- .../profiling/test_logging_interaction.test | 4 +- .../profiling/test_metrics_log_timing.test | 4 +- .../profiling/test_no_reset_setting.test | 4 +- .../test_operator_info_suppression.test | 4 +- .../pragma/profiling/test_profiling_all.test | 4 +- .../test_profiling_bytes_scanned.test | 137 ++++++ ...profiling_bytes_scanned.test.metadata.json | 9 + .../test_profiling_bytes_scanned_csv.test | 193 +++++++++ ...iling_bytes_scanned_csv.test.metadata.json | 15 + .../test_profiling_bytes_scanned_json.test | 140 +++++++ ...ling_bytes_scanned_json.test.metadata.json | 11 + ...t_profiling_bytes_scanned_secure_view.test | 21 + .../pragma/profiling/test_profiling_fs.test | 4 +- .../test_profiling_operator_name.test | 21 + .../test_profiling_output_file_overwrite.test | 4 +- .../sql/pragma/storage_info_empty_enum.test | 4 +- .../test_db_invalidation_after_load.test | 4 +- .../sql/pragma/test_disabled_compression.test | 4 +- .../sql/pragma/test_enable_profile.test | 4 +- .../sql/pragma/test_force_compression.test | 4 +- .../corpus/sql/pragma/test_memory_limit.test | 4 +- .../corpus/sql/pragma/test_metadata_info.test | 4 +- .../sql/pragma/test_pragma_database_list.test | 4 +- .../sql/pragma/test_pragma_database_size.test | 4 +- .../sql/pragma/test_pragma_functions.test | 4 +- .../sql/pragma/test_pragma_parsing.test | 4 +- .../pragma/test_pragma_sanitized_inputs.test | 4 +- .../sql/pragma/test_pragma_version.test | 4 +- .../corpus/sql/pragma/test_query_log.test | 4 +- .../corpus/sql/pragma/test_show_tables.test | 4 +- .../sql/pragma/test_show_tables_from.test | 4 +- .../pragma/test_show_tables_temp_views.test | 4 +- .../corpus/sql/pragma/test_storage_info.test | 4 +- .../corpus/sql/pragma/test_table_info.test | 4 +- .../pragma/test_table_info_quoted_names.test | 4 +- .../sql/pragma/test_various_pragmas.test | 4 +- .../corpus/sql/prepared/invalid_prepare.test | 4 +- .../prepared/parameter_order_subquery.test | 4 +- .../sql/prepared/parameter_variants.test | 4 +- .../prepare_catalog_table_functions.test | 8 +- .../corpus/sql/prepared/prepare_copy.test | 4 +- .../sql/prepared/prepare_default_varchar.test | 4 +- .../sql/prepared/prepare_from_first.test | 4 +- .../corpus/sql/prepared/prepare_in.test | 4 +- .../corpus/sql/prepared/prepare_lambda.test | 4 +- .../sql/prepared/prepare_list_functions.test | 4 +- .../prepare_list_sort_untyped_parameter.test | 305 ++++++++++++++ .../sql/prepared/prepare_maintain_types.test | 4 +- .../sql/prepared/prepare_mixed_types.test | 4 +- .../prepare_nested_unresolved_parameter.test | 33 ++ .../sql/prepared/prepare_offset_first.test | 4 +- .../prepare_query_function_parameters.test | 81 ++++ .../sql/prepared/prepare_summarize.test | 4 +- .../prepared/prepare_window_functions.test | 4 +- .../sql/prepared/prepared_named_param.test | 4 +- .../sql/prepared/prepared_null_binding.test | 4 +- .../prepared/prepared_rebind_macro_view.test | 65 +++ .../corpus/sql/prepared/prepared_select.test | 4 +- .../prepared/prepared_stale_statistics.test | 8 +- .../prepared_statistics_optimization.test | 4 +- .../sql/prepared/prepared_time_zone.test | 49 +++ .../prepared_time_zone_remote_catalog.test | 25 ++ .../corpus/sql/prepared/prepared_update.test | 4 +- .../sql/prepared/test_basic_prepare.test | 4 +- .../corpus/sql/prepared/test_issue_2079.test | 4 +- .../corpus/sql/prepared/test_issue_21077.test | 4 +- .../corpus/sql/prepared/test_issue_4010.test | 4 +- .../corpus/sql/prepared/test_issue_4042.test | 4 +- .../corpus/sql/prepared/test_issue_6276.test | 4 +- .../prepared/test_prepare_ambiguous_type.test | 4 +- .../sql/prepared/test_prepare_delete.test | 4 +- .../prepared/test_prepare_delete_update.test | 4 +- .../sql/prepared/test_prepare_drop.test | 4 +- .../sql/prepared/test_prepare_error.test | 4 +- .../sql/prepared/test_prepare_issue_5132.test | 4 +- .../sql/prepared/test_prepare_issue_8500.test | 4 +- .../sql/prepared/test_prepare_null.test | 4 +- .../sql/prepared/test_prepare_select.test | 4 +- .../sql/prepared/test_prepare_subquery.test | 4 +- .../sql/prepared/test_prepare_types.test | 4 +- .../sql/prepared/test_prepare_unused_cte.test | 4 +- .../profiling/test_failed_query_profile.test | 46 +++ ...st_failed_query_profile.test.metadata.json | 8 + .../sql/profiling/test_io_time_metrics.test | 39 ++ .../test_io_time_metrics.test.metadata.json | 6 + .../profiling/test_spilled_bytes_metric.test | 34 ++ ...st_spilled_bytes_metric.test.metadata.json | 5 + .../sql/progress/test_verify_progress.test | 8 +- .../corpus/sql/projection/coalesce_error.test | 4 +- .../corpus/sql/projection/coalesce_rowid.test | 4 +- .../sql/projection/reference_only_output.test | 4 +- .../sql/projection/select_star_exclude.test | 4 +- .../sql/projection/select_star_like.test | 4 +- .../sql/projection/select_star_rename.test | 4 +- .../sql/projection/select_star_replace.test | 6 +- .../select_star_similar_to_full_match.test | 25 ++ .../sql/projection/select_struct_star.test | 4 +- .../test_columns_replace_using.test | 4 +- .../projection/test_complex_expressions.test | 4 +- .../corpus/sql/projection/test_row_id.test | 4 +- .../projection/test_row_id_expression.test | 4 +- .../projection/test_scalar_projection.test | 4 +- .../projection/test_simple_projection.test | 4 +- .../sql/projection/test_table_star.test | 4 +- .../sql/projection/test_value_list.test | 4 +- .../no_crash_when_no_returning_columns.test | 4 +- .../sql/returning/returning_delete.test | 4 +- .../sql/returning/returning_delete_list.test | 4 +- .../returning_delete_same_transaction.test | 4 +- .../sql/returning/returning_insert.test | 4 +- .../corpus/sql/returning/returning_large.test | 4 +- .../sql/returning/returning_update.test | 10 +- .../can_sample_from_ingested_files.test | 4 +- .../sql/sample/helper_operator_coverage.test | 4 +- .../sql/sample/repeatable_seed_range.test | 18 + .../corpus/sql/sample/reservoir_sample.test | 4 +- .../sample/reservoir_sample_memory_limit.test | 4 +- .../sql/sample/same_seed_same_sample.test | 4 +- .../sql/sample/system_sample_index_scan.test | 4 +- .../table_samples/basic_sample_tests.test | 4 +- ...table_sample_converts_to_block_sample.test | 4 +- .../test_sample_is_destroyed_on_updates.test | 4 +- .../table_samples/test_sample_types.test | 4 +- .../test_table_sample_errors.test | 4 +- .../sql/sample/test_sample_too_big.test | 4 +- .../corpus/sql/sample/test_system_rows.test | 4 +- .../sql/sample/test_system_rows_pushdown.test | 4 +- .../secrets/connection_secret_storage.test | 4 +- .../sql/secrets/create_secret_expression.test | 48 ++- .../create_secret_filesystem_logging.test | 4 +- .../secrets/create_secret_hffs_autoload.test | 4 +- ..._secret_persistence_no_client_context.test | 4 +- .../secrets/create_transaction_secret.test | 4 +- .../drop_persistent_secret_if_exists.test | 4 +- .../drop_temporary_secret_storage.test | 4 +- .../sql/secrets/http_env_scope_lookup.test | 4 +- .../sql/secrets/http_secret_redaction.test | 4 +- .../secrets/http_secret_scope_authority.test | 57 +++ .../secrets/persistent_secret_map_value.test | 4 +- .../persistent_secret_name_collision.test | 33 ++ ...persistent_secret_name_path_traversal.test | 81 ++++ .../sql/secrets/refresh_info_redaction.test | 63 +++ .../secrets/secret_autoloading_errors.test | 4 +- .../secrets/secret_compatibility_http.test | 4 +- .../secrets_without_external_access.test | 13 + .../secrets/test_secret_type_parameters.test | 4 +- .../select/test_multi_column_reference.test | 4 +- .../sql/select/test_positional_reference.test | 8 +- .../sql/select/test_projection_names.test | 4 +- .../sql/select/test_schema_reference.test | 4 +- .../test_select_alias_prefix_colon.test | 4 +- .../corpus/sql/select/test_select_into.test | 4 +- .../sql/select/test_select_locking.test | 4 +- .../select/test_select_qualified_view.test | 4 +- .../function_argument_metadata.test | 23 ++ .../function_argument_names.test | 77 ++++ .../logical_operator_serialization.test | 4 +- .../corpus/sql/setops/ambiguous_order_by.test | 4 +- .../compression_expression_collation.test | 73 ++++ .../setops/except_intersect_collation.test | 12 +- .../projection_expression_collation.test | 89 ++++ .../corpus/sql/setops/setops_pushdown.test | 4 +- .../corpus/sql/setops/test_except.test | 4 +- .../setops/test_full_outer_join_union.test | 4 +- .../corpus/sql/setops/test_nested_except.test | 4 +- .../corpus/sql/setops/test_pg_union.test | 4 +- .../corpus/sql/setops/test_setops.test | 4 +- .../sql/setops/test_union_all_by_name.test | 4 +- .../corpus/sql/setops/test_union_binding.test | 4 +- .../corpus/sql/setops/test_union_by_name.test | 4 +- .../corpus/sql/setops/test_union_error.test | 4 +- .../sql/setops/test_union_except_empty.test | 4 +- .../corpus/sql/setops/test_union_order.test | 4 +- .../sql/setops/test_union_staged_types.test | 53 +++ .../sql/setops/test_union_subquery.test | 4 +- .../sql/setops/test_union_type_cast.test | 4 +- .../corpus/sql/setops/union_aggregate.test | 4 +- .../setops/union_all_projection_pushdown.test | 4 +- .../corpus/sql/setops/union_limit.test | 4 +- .../sql/setops/union_order_by_expression.test | 4 +- .../corpus/sql/setops/union_pipeline.test | 4 +- .../corpus/sql/setops/union_shared_scan.test | 4 +- .../corpus/sql/setops/union_single_dedup.test | 4 +- .../corpus/sql/setops/value_union.test | 4 +- .../corpus/sql/settings/access_mode.test | 4 +- .../corpus/sql/settings/allowed_configs.test | 4 +- .../settings/allowed_configs_extensions.test | 4 +- .../sql/settings/allowed_directories.test | 4 +- .../allowed_directories_atomic_update.test | 41 ++ .../allowed_directories_home_directory.test | 4 +- .../corpus/sql/settings/allowed_paths.test | 4 +- .../sql/settings/allowed_remote_paths.test | 49 +++ .../sql/settings/block_allocator_memory.test | 4 +- .../concurrent_set_disabled_optimizers.test | 4 +- .../settings/connection_local_settings.test | 4 +- .../settings/debug_deprecated_settings.test | 4 +- .../settings/default_null_order_extended.test | 4 +- .../sql/settings/deprecated_settings.test | 8 +- .../settings/dialect_compatibility_mode.test | 4 +- .../corpus/sql/settings/drop_set_schema.test | 4 +- .../corpus/sql/settings/errors_as_json.test | 4 +- .../settings/http_client_pool_capacity.test | 4 +- .../settings/integer_division_setting.test | 4 +- .../settings/lock_configuration_pragmas.test | 12 +- .../settings/lock_configuration_schema.test | 4 +- .../sql/settings/max_execution_time.test | 12 +- .../max_execution_time_nested_expansion.test | 4 +- .../sql/settings/max_memory_percentage.test | 4 +- .../settings/max_streaming_buffer_size.test | 4 +- .../memory_limit_settings_unlimited.test | 4 +- .../sql/settings/operator_memory_limit.test | 21 +- .../operator_memory_limit.test.metadata.json | 5 + .../pragma_assignment_deprecated.test | 4 +- .../settings/reset/reset_memory_limit.test | 4 +- .../sql/settings/reset/reset_threads.test | 4 +- .../sql/settings/set_null_settings.test | 4 +- .../sql/settings/set_schema_temp_main.test | 4 +- .../settings/set_scoped_time_zone_schema.test | 93 +++++ .../corpus/sql/settings/setting_alias.test | 4 +- .../sql/settings/setting_collation.test | 4 +- .../setting_collection_roundtrip.test | 4 +- .../settings/setting_disabled_optimizer.test | 4 +- .../sql/settings/setting_exhaustive.test | 4 +- .../sql/settings/setting_null_order.test | 8 +- .../setting_null_order.test.metadata.json | 5 + .../corpus/sql/settings/setting_order.test | 4 +- .../setting_preserve_identifier_case.test | 4 +- .../sql/settings/setting_profiling_mode.test | 4 +- .../corpus/sql/settings/setting_threads.test | 4 +- .../setting_validation_and_reset.test | 4 +- .../corpus/sql/settings/settings_icu.test | 4 +- .../settings/test_disabled_file_systems.test | 4 +- ...test_disabled_file_systems_whitespace.test | 9 + ...st_disabled_local_filesystem_metadata.test | 4 +- ...est_disabled_local_filesystem_secrets.test | 4 +- .../test_external_access_secrets.test | 4 +- .../sql/settings/test_lock_configuration.test | 4 +- .../test_nan_percentage_settings.test | 25 ++ .../sql/settings/test_progress_bar_null.test | 4 +- .../test_progress_bar_time_negative.test | 17 + .../corpus/sql/settings/user_agent.test | 4 +- .../sql/show_select/describe_case_alias.test | 25 ++ .../sql/show_select/describe_rowid.test | 4 +- .../sql/show_select/describe_subquery.test | 4 +- .../show_select/show_quote_identifier.test | 4 +- .../show_select/show_select_constraints.test | 4 +- .../corpus/sql/show_select/show_settings.test | 4 +- .../show_select/show_settings_extension.test | 4 +- .../sql/show_select/summarize_subquery.test | 4 +- .../sql/show_select/test_describe_all.test | 4 +- .../sql/show_select/test_describe_quoted.test | 4 +- .../sql/show_select/test_show_select.test | 4 +- .../sql/show_select/test_summarize.test | 4 +- .../show_select/test_summarize_quoted.test | 4 +- .../test_summarize_temporal_ns.test | 40 ++ .../sql/sql_export/aggregate_literals.test | 4 +- .../sql/sql_export/aggregate_results.test | 4 +- .../sql_export/aggregate_topn_rewrites.test | 8 +- .../testdata/corpus/sql/sql_export/alias.test | 4 +- .../sql/sql_export/basic_plan_shapes.test | 4 +- .../corpus/sql/sql_export/call_values.test | 4 +- .../sql/sql_export/catalog_invocations.test | 4 +- .../sql/sql_export/ci_reconstruction.test | 4 +- .../sql_export/collated_aggregate_state.test | 4 +- .../sql/sql_export/collation_results.test | 4 +- .../sql/sql_export/composition_plan.test | 4 +- .../corpus/sql/sql_export/composition_q1.test | 4 +- .../sql/sql_export/composition_q1_plan.test | 4 +- .../sql/sql_export/composition_results.test | 4 +- ...compressed_materialization_sql_export.test | 4 +- .../sql/sql_export/compression_fallbacks.test | 4 +- .../compression_fallbacks_plan.test | 4 +- .../sql/sql_export/constant_values.test | 4 +- .../sql/sql_export/correlated_metadata.test | 4 +- .../sql/sql_export/correlated_sql_export.test | 8 +- .../corpus/sql/sql_export/cte_names.test | 4 +- .../sql/sql_export/cte_result_matrices.test | 8 +- .../corpus/sql/sql_export/dml_statements.test | 20 +- .../sql/sql_export/empty_aggregate_state.test | 4 +- .../corpus/sql/sql_export/empty_enum.test | 4 +- .../corpus/sql/sql_export/execution_once.test | 4 +- .../corpus/sql/sql_export/explain_sql.test | 4 +- .../sql_export/explain_sql_formatting.test | 12 +- .../sql/sql_export/explain_sql_roundtrip.test | 4 +- .../sql/sql_export/explain_sql_scopes.test | 4 +- .../sql/sql_export/expression_results.test | 4 +- .../sql/sql_export/function_result_types.test | 4 +- .../sql/sql_export/geometry_values.test | 4 +- .../sql_export/grouped_mark_roundtrip.test | 4 +- .../grouped_tuple_mark_roundtrip.test | 65 +++ .../sql_export/icu_datepart_roundtrip.test | 4 +- .../sql/sql_export/join_multiplicities.test | 4 +- .../corpus/sql/sql_export/json_ordering.test | 4 +- .../legacy_source_serialization.test | 8 +- .../corpus/sql/sql_export/mark_collation.test | 4 +- .../sql/sql_export/mark_condition_shapes.test | 4 +- .../sql/sql_export/mark_export_effects.test | 4 +- .../mark_nested_comparison_roundtrip.test | 4 +- .../corpus/sql/sql_export/mark_results.test | 4 +- .../sql/sql_export/mark_strategies.test | 8 +- .../sql_export/named_scalar_arguments.test | 4 +- .../sql/sql_export/nested_collated_nulls.test | 4 +- .../sql/sql_export/nested_collations.test | 4 +- .../sql_export/nested_result_collation.test | 4 +- .../corpus/sql/sql_export/nested_values.test | 4 +- .../sql_export/null_safe_mark_roundtrip.test | 4 +- .../sql/sql_export/numbered_scan_results.test | 4 +- .../sql/sql_export/parquet_variant_type.test | 58 +++ .../sql/sql_export/pivot_list_results.test | 8 +- .../sql/sql_export/pivot_sql_export.test | 18 +- .../sql/sql_export/plain_scope_results.test | 4 +- .../plan_reconstruction_coverage.test | 4 +- .../corpus/sql/sql_export/pruned_offset.test | 4 +- .../sql/sql_export/pure_values_input.test | 4 +- .../sql/sql_export/pushed_column_paths.test | 4 +- .../pushed_projection_rejection.test | 8 +- .../sql/sql_export/range_folded_offset.test | 4 +- .../corpus/sql/sql_export/range_frames.test | 4 +- .../sql/sql_export/range_origin_inputs.test | 4 +- .../sql_export/recursive_payload_results.test | 4 +- .../sql_export/recursive_payload_types.test | 4 +- .../sql/sql_export/recursive_state.test | 8 +- .../sql_export/regex_range_filter_export.test | 4 +- .../sql/sql_export/result_modifiers.test | 4 +- .../sql/sql_export/rewrite_qualification.test | 4 +- .../sql/sql_export/rewritten_functions.test | 4 +- .../sql/sql_export/sampling_values.test | 4 +- .../corpus/sql/sql_export/scalar_limit.test | 4 +- .../corpus/sql/sql_export/scope_reuse.test | 4 +- .../sql/sql_export/scope_reuse_plan.test | 4 +- .../sql_export/secure_view_predicates.test | 4 +- .../sql_export/secure_view_sql_export.test | 4 +- .../sql/sql_export/single_child_union.test | 4 +- .../sql/sql_export/slices_and_limits.test | 4 +- .../sql/sql_export/source_arguments.test | 4 +- .../sql_export/source_invocation_results.test | 4 +- .../corpus/sql/sql_export/source_names.test | 4 +- .../corpus/sql/sql_export/source_results.test | 4 +- .../sql_export_aggregate_order_by_null.test | 4 +- .../sql_export/sql_export_join_scopes.test | 4 +- .../sql/sql_export/sql_export_quantiles.test | 4 +- .../sql_export/statement_verification.test | 4 +- .../sql_export/structural_expressions.test | 4 +- .../table_row_number_sql_export.test | 4 +- .../sql/sql_export/tuple_type_constants.test | 4 +- .../sql/sql_export/union_type_witness.test | 4 +- .../corpus/sql/sql_export/union_value.test | 4 +- .../sql/sql_export/values_consumers.test | 4 +- .../sql_export/values_effect_rejection.test | 4 +- .../sql/sql_export/variant_key_order.test | 4 +- .../sql/sql_export/variant_key_rejection.test | 4 +- .../sql/sql_export/window_unnest_results.test | 4 +- .../sql/sql_export/zero_column_relations.test | 20 +- .../storage/adaptive_segment_allocation.test | 4 +- .../storage/adaptive_segment_lifecycle.test | 4 +- .../storage/adaptive_segment_rollback.test | 4 +- .../alter_add_col_defaultexpr_sequence.test | 4 +- ...lter_based_on_unfinished_insert_fails.test | 4 +- .../alter/alter_column_constraint.test | 4 +- .../alter/alter_lazy_metadata_load.test | 4 +- .../storage/append_strings_to_persistent.test | 4 +- .../attach_autocheckpoint_in_memory.test | 4 +- .../attach_autocheckpoint_no_wal_writes.test | 4 +- .../attach_autocheckpoint_propagation.test | 4 +- .../storage/attach/attach_invalidation.test | 4 +- .../attach_invalidation_default_db.test | 4 +- .../attach_invalidation_sibling_commit.test | 4 +- .../attach_invalidation_sibling_rollback.test | 4 +- .../corpus/sql/storage/attach_mmap.test | 4 +- .../sql/storage/bc/internal_schemas_0102.test | 4 +- .../storage/bc/null_rows_v1_5_or_filter.test | 29 ++ .../sql/storage/bc/test_array_cast_v1_5.test | 45 ++ .../sql/storage/bc/test_broken_view_v092.test | 4 +- .../sql/storage/bc/test_lag_lead_v1_5.test | 13 + .../sql/storage/bc/test_null_stats_v1_5.test | 89 ++++ .../bc/test_repeatable_sample_v1_5.test | 21 + .../bc/test_slice_bounds_storage_version.test | 8 +- .../storage/bc/test_slice_bounds_v1_5.test | 8 +- .../corpus/sql/storage/bc/test_view_v092.test | 4 +- .../sql/storage/buffer_manager_temp_dir.test | 4 +- .../generated_columns/virtual/basic.test | 4 +- .../virtual/constraints.test | 4 +- .../catalog/test_check_constraint.test | 4 +- .../sql/storage/catalog/test_drop_table.test | 4 +- .../storage/catalog/test_macro_storage.test | 4 +- .../test_not_distinct_from_default.test | 4 +- .../catalog/test_not_null_constraint.test | 4 +- .../catalog/test_prepared_storage.test | 4 +- .../catalog/test_store_add_column.test | 4 +- .../catalog/test_store_alter_type.test | 4 +- .../catalog/test_store_default_sequence.test | 4 +- .../storage/catalog/test_store_defaults.test | 4 +- .../catalog/test_store_remove_column.test | 4 +- .../catalog/test_store_rename_column.test | 4 +- .../catalog/test_store_rename_table.test | 4 +- .../catalog/test_store_rename_view.test | 4 +- .../storage/catalog/test_store_sequences.test | 4 +- .../storage/catalog/test_store_temporary.test | 4 +- .../catalog/test_table_macro_storage.test | 4 +- .../catalog/test_view_explicit_aliases.test | 4 +- .../storage/catalog/test_view_storage.test | 4 +- .../checkpoint/checkpoint_in_transaction.test | 8 +- .../checkpoint_rolled_back_use.test | 17 + ...heckpoint_with_outstanding_insertions.test | 4 +- .../checkpoint_without_transactions.test | 45 ++ ...xed_table_delete_insert_fragmentation.test | 4 +- ...itial_database_autocheckpoint_failure.test | 4 +- .../test_checkpoint_abort_truncate.test | 4 +- ...est_checkpoint_failure_delayed_commit.test | 4 +- .../test_checkpoint_failure_on_detach.test | 4 +- .../storage/checkpoint_system_catalog.test | 21 + .../checkpoint_vacuum_unbound_index.test | 37 ++ .../sql/storage/checkpointed_self_append.test | 4 +- .../checkpointed_self_append_tinyint.test | 4 +- .../corpus/sql/storage/commit_abort.test | 4 +- .../sql/storage/commit_abort_medium.test | 4 +- .../sql/storage/commit_index_deletes.test | 4 +- .../commit_out_of_memory_reverts_append.test | 126 ++++++ .../block_size_with_rollback.test | 4 +- .../compact_block_size.test | 4 +- .../compact_vector_size.test | 4 +- .../create_table_compression.test | 4 +- .../default_block_size.test | 4 +- .../compact_block_size/ensure_bitpacking.test | 4 +- .../ensure_no_bitpacking.test | 4 +- .../insertion_order_odd_batches.test | 4 +- .../compact_block_size/mixed_block_sizes.test | 4 +- .../compression/alp/alp_corrupt_count.test | 4 +- .../alp/alp_corrupt_exception_position.test | 4 +- .../compression/alp/alp_corrupt_exponent.test | 4 +- .../compression/alp/alp_corrupt_file.test | 4 +- .../alp/alp_corrupt_header_undercount.test | 4 +- .../alp/alp_corrupt_metadata_offset.test | 4 +- .../alp/alp_corrupt_null_block.test | 9 + .../compression/alp/alp_corrupt_offset.test | 4 +- .../alp/alp_corrupt_offset_unordered.test | 4 +- .../compression/alp/alp_corrupt_offsets.test | 4 +- .../alp/alp_corrupt_vector_size.test | 4 +- .../compression/alp/alp_inf_null_nan.test | 4 +- .../compression/alp/alp_list_skip.test | 4 +- .../storage/compression/alp/alp_min_max.test | 4 +- .../compression/alp/alp_negative_numbers.test | 4 +- .../alp/alp_null_min_regression.test | 4 +- .../storage/compression/alp/alp_nulls.test | 4 +- .../compression/alp/alp_out_of_range.test | 4 +- .../storage/compression/alp/alp_simple.test | 4 +- .../compression/alp/alp_simple_float.test | 4 +- .../compression/alp/alp_storage_version.test | 4 +- .../storage/compression/alp/alp_zeros.test | 4 +- .../alprd/alprd_corrupt_count.test | 4 +- .../alprd/alprd_corrupt_dictionary_count.test | 4 +- .../alprd_corrupt_dictionary_count_zero.test | 4 +- .../alprd/alprd_corrupt_exception_count.test | 4 +- .../alprd_corrupt_exception_position.test | 4 +- .../alprd_corrupt_header_undercount.test | 4 +- .../alprd/alprd_corrupt_left_bit_width.test | 4 +- .../alprd_corrupt_metadata_underflow.test | 4 +- .../alprd/alprd_corrupt_offset.test | 4 +- .../alprd/alprd_corrupt_offset_unordered.test | 4 +- .../alprd/alprd_corrupt_right_bit_width.test | 4 +- .../compression/alprd/alprd_inf_null_nan.test | 4 +- .../compression/alprd/alprd_min_max.test | 4 +- .../alprd/alprd_negative_numbers.test | 4 +- .../compression/alprd/alprd_nulls.test | 4 +- .../compression/alprd/alprd_simple.test | 4 +- .../compression/alprd/alprd_simple_float.test | 4 +- .../alprd/alprd_storage_version.test | 4 +- .../bitpacking/bitpacking_bool_modes.test | 4 +- .../bitpacking/bitpacking_constant_delta.test | 4 +- .../bitpacking/bitpacking_corrupt_count.test | 4 +- .../bitpacking_corrupt_group_offset.test | 4 +- ...bitpacking_corrupt_metadata_underflow.test | 4 +- .../bitpacking/bitpacking_corrupt_width.test | 4 +- .../bitpacking/bitpacking_delta_for.test | 4 +- .../bitpacking_filter_pushdown.test | 4 +- .../bitpacking/bitpacking_hugeint.test | 4 +- .../bitpacking/bitpacking_mode.test | 4 +- .../bitpacking/bitpacking_nulls.test | 4 +- .../bitpacking/bitpacking_simple.test | 4 +- .../bitpacking/bitpacking_simple_hugeint.test | 4 +- .../bitpacking_size_calculation.test | 4 +- .../bitpacking/bitpacking_storage_info.test | 4 +- .../bitpacking/bitpacking_table_copy.test | 4 +- .../bitpacking/bitpacking_uhugeint.test | 4 +- .../bitpacking/force_bitpacking.test | 4 +- .../bitpacking/struct_bitpacking.test | 4 +- .../chimp/chimp_corrupt_group_count.test | 4 +- ...himp_corrupt_leading_zero_block_count.test | 4 +- .../chimp/chimp_corrupt_metadata_offset.test | 4 +- .../compression/chimp/chimp_fetch_row.test | 4 +- .../compression_count_sentinel.test | 4 +- .../compression/compression_null_block.test | 49 +++ .../compression_padding_initialization.test | 361 ++++++++++++++++ .../compression/compression_selection.test | 4 +- .../constant/constant_negative_zero.test | 4 +- .../constant/constant_numeric_types.test | 4 +- .../default_storage_dict_fsst.test | 4 +- .../dict_fsst_corrupt_dict_count.test | 17 + ...dict_fsst_corrupt_dict_count_boundary.test | 13 + .../dict_fsst_corrupt_dict_count_lengths.test | 9 + .../dict_fsst_corrupt_dictionary_index.test | 9 + ...fsst_corrupt_encoded_dictionary_index.test | 9 + ...ict_fsst_corrupt_fsst_only_dict_count.test | 9 + .../dict_fsst_corrupt_indices_width.test | 9 + .../dict_fsst/dict_fsst_corrupt_mode.test | 9 + .../dict_fsst/dict_fsst_count_bound.test | 40 ++ .../dict_fsst_expression_filter.test | 8 +- .../compression/dict_fsst/dict_fsst_test.test | 4 +- .../dict_fsst/dictionary_covers_validity.test | 4 +- .../dict_fsst/dictionary_storage_info.test | 4 +- .../compression/dict_fsst/fetch_row.test | 4 +- .../dict_fsst/force_dictionary.test | 4 +- .../dict_fsst/invalid_symbol_table.test | 4 +- .../compression/dict_fsst/issue_5675.test | 4 +- .../dict_fsst/issue_5675_followup.test | 4 +- .../compression/dict_fsst/issue_5759.test | 4 +- .../dict_fsst/repeated_string_stats.test | 4 +- ...est_dict_fsst_with_smaller_block_size.test | 4 +- .../dict_fsst/test_null_filter_pushdown.test | 4 +- .../dict_fsst/test_null_update.test | 4 +- .../dict_fsst/zero_width_lengths.test | 32 ++ .../dictionary/dict_corrupted_offset.test | 4 +- .../dictionary/dictionary_corrupt_count.test | 4 +- .../dictionary_corrupt_count_consistent.test | 4 +- .../dictionary_corrupt_null_index.test | 4 +- .../dictionary/dictionary_empty_segment.test | 4 +- .../dictionary/dictionary_storage_info.test | 4 +- .../compression/dictionary/fetch_row.test | 4 +- .../invalid_dictionary_metadata.test | 4 +- .../total_string_length_dictionary.test | 4 +- .../fsst/fsst_corrupt_decoded_length.test | 4 +- .../fsst_corrupt_escape_symbol_index.test | 4 +- .../fsst/fsst_disable_compression.test | 4 +- .../fsst/fsst_greedy_long_strings.test | 4 +- .../fsst/fsst_select_across_segments.test | 4 +- .../fsst/fsst_small_symbol_table.test | 4 +- .../compression/fsst/fsst_storage_info.test | 4 +- .../fsst_uncompacted_gap_initialization.test | 33 ++ .../fsst/invalid_fsst_bitpacking_width.test | 4 +- .../storage/compression/fsst/issue_5675.test | 4 +- .../storage/compression/fsst/issue_5759.test | 4 +- .../patas/patas_corrupt_data_offset_high.test | 4 +- .../patas/patas_corrupt_group_count.test | 4 +- .../patas_corrupt_metadata_offset_low.test | 4 +- .../patas/patas_corrupted_file.test | 4 +- .../storage/compression/rle/force_rle.test | 4 +- .../sql/storage/compression/rle/rle_bool.test | 4 +- .../storage/compression/rle/rle_constant.test | 4 +- .../rle/rle_corrupt_run_undercount.test | 4 +- .../rle/rle_corrupt_value_capacity.test | 4 +- .../rle/rle_corrupted_count_offset.test | 4 +- .../storage/compression/rle/rle_filter.test | 4 +- .../compression/rle/rle_filter_pushdown.test | 4 +- .../compression/rle/rle_index_fetch.test | 4 +- .../storage/compression/rle/rle_medium.test | 4 +- .../compression/rle/rle_nulls_edge_case.test | 4 +- .../storage/compression/rle/rle_select.test | 4 +- .../rle/rle_select_force_fetch_row.test | 4 +- .../compression/rle/rle_select_list.test | 4 +- .../rle/rle_select_run_boundaries.test | 4 +- .../compression/rle/rle_signed_zero.test | 4 +- .../storage/compression/rle/struct_rle.test | 4 +- .../roaring/roaring_analyze_array.test | 4 +- .../roaring/roaring_analyze_bitset.test | 4 +- .../roaring/roaring_analyze_run.test | 4 +- .../roaring/roaring_array_simple.test | 4 +- .../roaring/roaring_bitset_boundaries.test | 31 ++ .../roaring/roaring_bitset_simple.test | 4 +- .../roaring/roaring_bool_analyze_array.test | 4 +- .../roaring/roaring_bool_analyze_bitset.test | 4 +- .../roaring/roaring_bool_analyze_run.test | 4 +- .../roaring/roaring_bool_array_simple.test | 4 +- .../roaring_bool_array_simple_w_null.test | 4 +- .../roaring/roaring_bool_bitset_simple.test | 4 +- .../roaring_bool_bitset_simple_w_null.test | 4 +- .../roaring/roaring_bool_fetch_row.test | 4 +- .../roaring/roaring_bool_first_is_null.test | 4 +- .../roaring_bool_inverted_array_simple.test | 4 +- .../roaring_bool_inverted_run_simple.test | 4 +- .../roaring/roaring_bool_run_simple.test | 4 +- .../roaring_bool_run_simple_w_null.test | 4 +- .../roaring_bool_smaller_than_vector.test | 4 +- ...oaring_bool_uncompressed_under_v1_5_0.test | 4 +- ...aring_corrupt_boolean_metadata_offset.test | 13 + .../roaring_corrupt_cardinality_bitset.test | 9 + .../roaring_corrupt_container_count.test | 13 + .../roaring_corrupt_container_type.test | 9 + .../roaring_corrupt_metadata_offset.test | 9 + ...ring_corrupt_metadata_offset_rejected.test | 9 + .../roaring_corrupt_metadata_truncated.test | 9 + .../roaring/roaring_corrupt_null_block.test | 9 + .../roaring_corrupt_run_segment_counts.test | 9 + .../roaring/roaring_corrupted_file.test | 4 +- .../roaring/roaring_fetch_row.test | 4 +- .../roaring_inverted_array_simple.test | 4 +- .../roaring/roaring_inverted_run_simple.test | 4 +- .../roaring/roaring_run_boundaries.test | 33 ++ .../roaring/roaring_run_simple.test | 4 +- .../roaring/roaring_smaller_than_vector.test | 4 +- .../compression/select_across_segments.test | 4 +- .../compression/simple_compression.test | 4 +- .../skip_explicit_compression_analyze.test | 4 +- .../compression/string/big_strings.test | 4 +- .../sql/storage/compression/string/blob.test | 4 +- .../sql/storage/compression/string/empty.test | 4 +- .../compression/string/filter_pushdown.test | 4 +- .../compression/string/index_fetch.test | 4 +- .../storage/compression/string/medium.test | 4 +- .../storage/compression/string/simple.test | 4 +- .../string/string_corrupt_dict_end.test | 4 +- .../string/string_corrupt_dict_offset.test | 4 +- .../string/string_corrupt_int32_min.test | 4 +- .../string_corrupt_negative_marker.test | 4 +- .../string_corrupt_offset_nonmonotonic.test | 4 +- .../string_corrupt_overflow_block_id.test | 4 +- .../string_corrupt_overflow_continuation.test | 4 +- .../string_corrupt_overflow_offset.test | 4 +- ...ring_corrupt_overflow_transient_block.test | 4 +- .../string/string_scan_batch_boundaries.test | 4 +- .../storage/compression/string/struct.test | 4 +- .../compression/string/table_copy.test | 4 +- .../compression/string/vector_flatten.test | 4 +- .../compression/test_using_compression.test | 4 +- .../string_gap_reused_memory.test | 25 ++ .../uncompressed/uncompressed_count.test | 4 +- .../uncompressed/validity_corrupt_count.test | 4 +- .../validity_corrupt_count_boundary.test | 4 +- .../uncompressed/validity_corrupt_offset.test | 4 +- .../storage/compression/zstd/fetch_row.test | 4 +- .../sql/storage/compression/zstd/nulls.test | 4 +- .../compression/zstd/test_skipping.test | 4 +- .../sql/storage/compression/zstd/zstd.test | 4 +- .../zstd/zstd_corrupt_compressed_size.test | 13 + .../compression/zstd/zstd_corrupt_count.test | 9 + .../zstd/zstd_corrupt_next_page_id.test | 9 + .../zstd/zstd_corrupt_page_id.test | 9 + .../zstd/zstd_corrupt_page_offset.test | 9 + .../zstd_corrupt_page_offset_boundary.test | 9 + .../zstd_corrupt_page_offset_directory.test | 9 + .../zstd/zstd_corrupt_string_length.test | 9 + .../zstd/zstd_force_compression.test | 4 +- .../compression/zstd/zstd_packed_segment.test | 29 ++ ...oncurrent_attach_if_not_exists_create.test | 4 +- .../foreignkey/foreign_key_persistent.test | 4 +- .../foreign_key_persistent_memory_limit.test | 4 +- .../storage/corrupt/block_alloc_size_dos.test | 4 +- .../storage/corrupt/block_alloc_size_max.test | 4 +- .../corrupt/block_alloc_size_underflow.test | 4 +- .../corrupt/corrupt_catalog_entry.test | 4 +- .../corrupt/corrupt_encoding_overflow.test | 4 +- .../corrupt/index_corrupt_expression.test | 33 ++ .../sql/storage/ctas_limit0_insert.test | 77 ++++ .../storage/delete/load_delete_modify.test | 4 +- .../sql/storage/delete/repeated_deletes.test | 4 +- .../storage/delete/test_store_deletes.test | 4 +- .../delete/test_unchanged_deletes.test | 4 +- .../delete/test_unchanged_deletes_large.test | 4 +- .../storage/distinct_statistics_sample.test | 4 +- .../storage/distinct_statistics_storage.test | 4 +- .../encrypted_temp_file_size_accounting.test | 20 +- .../encrypted_tmp_file_setting.test | 4 +- ...temp_directory_enable_external_access.test | 4 +- .../wal/encrypted_wal_blob_storage.test | 4 +- .../wal/encrypted_wal_lazy_creation.test | 4 +- .../encryption/wal/encrypted_wal_pragmas.test | 4 +- ...evict_unpinned_without_temp_directory.test | 4 +- .../sql/storage/extended_string_stats.test | 4 +- .../storage/extensions/extension_default.test | 4 +- .../storage/extensions/extension_views.test | 4 +- .../external_file_cache_async_toggle.test | 4 +- .../external_file_cache_block_size.test | 4 +- .../external_file_cache_metadata_memory.test | 33 ++ .../external_file_cache_validate.test | 4 +- .../internal_issue_10700.test | 8 +- .../local_file_rewrite_same_second.test | 45 ++ .../sql/storage/filter_pushdown_struct.test | 4 +- .../full_vector_delete_checkpoint.test | 4 +- .../storage/issue3789_node_segment_tree.test | 4 +- .../sql/storage/issue7582_list_storage.test | 4 +- .../storage/lazy_load/lazy_load_limit.test | 4 +- .../legacy_function_call_subquery.test | 28 ++ .../legacy_named_arguments_upgrade.test | 61 +++ .../corpus/sql/storage/many_checkpoints.test | 4 +- .../corpus/sql/storage/many_self_append.test | 4 +- .../memory/in_memory_disabled_zstd.test | 4 +- .../metadata/full_table_metadata_reuse.test | 4 +- .../full_table_metadata_reuse_v7.test | 4 +- .../metadata/multi_table_metadata_reuse.test | 4 +- .../partial_column_metadata_reuse.test | 4 +- ...ial_column_metadata_reuse_drop_column.test | 4 +- ...ial_column_metadata_reuse_small_block.test | 4 +- .../partial_column_metadata_reuse_v7.test | 4 +- .../partial_table_metadata_reuse.test | 4 +- .../metadata/unchanged_table_statistics.test | 18 +- .../mix/test_update_delete_string.test | 4 +- .../mix/updates_deletes_big_table.test | 4 +- .../updates_deletes_persistent_segments.test | 4 +- ...le_clients_checkpoint_pending_updates.test | 4 +- .../sql/storage/nan_min_statistics.test | 4 +- .../nested/struct_of_lists_unaligned.test | 4 +- .../corpus/sql/storage/null_byte_storage.test | 4 +- .../optimistic_write_alter_then_append.test | 4 +- ...istic_write_batch_insert_sub_rowgroup.test | 4 +- .../optimistic_write_commit_failure.test | 4 +- ...istic_write_cyclic_scan_single_thread.test | 4 +- .../optimistic_write_delete.test | 4 +- .../optimistic_write_large_strings.test | 4 +- ...timistic_write_not_trigger_checkpoint.test | 4 +- .../optimistic_write_temp_table.test | 4 +- ...imistic_write_unique_index_wal_replay.test | 8 +- ..._write_unique_index_wal_replay_desync.test | 4 +- .../optimistic_write_update.test | 4 +- .../overflow_strings/blob_row_fetch.test | 4 +- .../null_overflow_string_memory.test | 4 +- .../many_columns_drop_table.test | 4 +- .../partial_blocks/many_columns_rle.test | 4 +- .../partial_blocks/many_columns_storage.test | 4 +- .../partial_blocks/many_columns_strings.test | 4 +- .../partial_blocks/many_columns_validity.test | 4 +- .../partial_block_tail_memory.test | 25 ++ .../partial_delete_checkpoint_mask.test | 4 +- .../partial_delete_pending_compress.test | 4 +- .../piecemeal_delete_checkpoint_compress.test | 4 +- .../pragma_storage_info_scan_type.test | 4 +- .../prefetch/async_native_scan_pool.test | 8 +- .../async_native_scan_positional.test | 4 +- .../async_native_scan_read_ahead.test | 4 +- ...ync_native_scan_read_ahead_concurrent.test | 4 +- .../async_native_scan_read_ahead_pruning.test | 8 +- .../prefetch/prefetch_run_size_cap.test | 8 +- .../read_duckdb/read_duckdb_basic.test | 4 +- .../read_duckdb/read_duckdb_generated.test | 4 +- .../read_duckdb/read_duckdb_index.test | 4 +- .../read_duckdb/read_duckdb_schema.test | 4 +- .../read_duckdb/read_duckdb_suggested.test | 4 +- .../read_duckdb/read_duckdb_top_n.test | 4 +- .../read_duckdb/read_duckdb_transaction.test | 4 +- .../read_duckdb_union_by_name.test | 4 +- .../read_duckdb_virtual_columns.test | 4 +- .../reclaim_space_drop_table_optimistic.test | 8 +- ...est_reclaim_space_update_large_string.test | 4 +- ...append_after_checkpoint_new_row_group.test | 53 +++ .../storage/revert_append_nested_list.test | 25 ++ .../storage/revert_append_partial_vector.test | 89 ++++ .../sql/storage/row_group_fetch_bulk.test | 4 +- .../alter_preserves_rowid_gaps.test | 4 +- .../append_after_gap_checkpoint.test | 4 +- .../bulk_append_after_gap_checkpoint.test | 4 +- .../indexed_checkpoint_drop_row_group.test | 4 +- .../indexed_dense_vacuum_merge.test | 4 +- .../indexed_geometry_legacy_no_remap.test | 4 +- .../indexed_geometry_vacuum_remap.test | 4 +- .../indexed_incremental_vacuum_remap.test | 4 +- .../indexed_live_vacuum_no_rebuild.test | 4 +- ...d_old_storage_keeps_deleted_row_group.test | 4 +- .../indexed_rebuild_fallback_then_remap.test | 4 +- ...exed_remap_duplicate_key_across_tasks.test | 4 +- .../indexed_remap_merges_across_gap.test | 4 +- .../indexed_remap_partial_chunk.test | 4 +- ...ndexed_remap_same_key_rowid_collision.test | 4 +- ...s_geometry_legacy_no_merge_across_gap.test | 4 +- .../rowid_gaps/leading_gap_lookup.test | 4 +- .../rowid_gaps/old_storage_dense_rewrite.test | 4 +- .../wal_replay_after_gap_checkpoint.test | 4 +- .../sql/storage/shutdown_create_index.test | 4 +- .../storage/shutdown_running_transaction.test | 4 +- .../sql/storage/shutdown_unique_index.test | 4 +- .../storage_exceeds_block_large_string.test | 4 +- .../storage/storage_exceeds_single_block.test | 4 +- .../storage_exceeds_single_block_strings.test | 4 +- .../storage_exceeds_single_block_types.test | 4 +- .../sql/storage/storage_option_coverage.test | 8 +- .../corpus/sql/storage/storage_types.test | 4 +- .../sql/storage/storage_version_65.test | 4 +- .../corpus/sql/storage/storage_versions.test | 4 +- .../sql/storage/store_group_order_all.test | 4 +- .../failed_spill_keeps_block_evictable.test | 4 +- .../temp_directory/initialization_retry.test | 4 +- .../temp_directory/max_swap_space_error.test | 8 +- .../max_swap_space_explicit.test | 4 +- .../max_swap_space_inmemory.test | 4 +- .../max_swap_space_persistent.test | 4 +- .../max_swap_space_unlimited.test | 4 +- .../offload_failure_accounting.test | 4 +- .../offload_small_transient_segments.test | 63 +++ ...ransient_segments_no_optimistic_write.test | 9 + .../temp_directory/temp_directory_null.test | 4 +- .../temp_directory/temp_file_truncation.test | 4 +- .../test_default_temp_directory.test | 4 +- .../test_runner_temp_directory.test | 4 +- .../corpus/sql/storage/test_empty_table.test | 4 +- ...t_eviction_queue_dead_nodes_underflow.test | 4 +- ...ignore_duplicate_deletes_unique_index.test | 4 +- .../sql/storage/test_index_checkpoint.test | 4 +- .../sql/storage/test_large_commits.test | 4 +- .../storage/test_read_only_wal_replay.test | 4 +- .../sql/storage/test_restart_extension.test | 4 +- .../storage/test_show_tables_persistent.test | 4 +- .../corpus/sql/storage/test_storage_scan.test | 4 +- .../sql/storage/test_store_integers.test | 4 +- .../sql/storage/test_store_nulls_strings.test | 4 +- .../sql/storage/test_truncate_persistent.test | 4 +- .../sql/storage/test_unaligned_scan.test | 4 +- .../storage/test_unique_index_checkpoint.test | 4 +- .../total_string_length_nested_types.test | 4 +- .../total_string_length_repeated_insert.test | 4 +- .../sql/storage/types/list/default_list.test | 4 +- .../types/list/empty_float_arrays.test | 4 +- .../types/list/list_corrupt_offset_order.test | 4 +- .../types/list/list_corrupt_offset_range.test | 4 +- .../types/list/list_corrupt_offset_skip.test | 4 +- .../types/list/list_index_compression.test | 4 +- .../types/list/persistent_list_storage.test | 4 +- .../types/list/store_list_of_array.test | 4 +- .../types/list/store_list_of_struct.test | 4 +- .../sql/storage/types/map/map_storage.test | 4 +- .../storage/types/struct/default_struct.test | 4 +- .../types/struct/nested_struct_storage.test | 4 +- .../struct/pushdown_extract_validity.test | 4 +- .../types/struct/struct_of_empty_list.test | 4 +- .../storage/types/struct/struct_storage.test | 4 +- .../sql/storage/types/test_bit_storage.test | 4 +- .../sql/storage/types/test_blob_storage.test | 4 +- .../storage/types/test_hugeint_storage.test | 4 +- .../storage/types/test_interval_storage.test | 4 +- .../storage/types/test_timestamp_storage.test | 4 +- .../storage/types/test_uhugeint_storage.test | 4 +- .../storage/types/test_unsigned_storage.test | 4 +- .../sql/storage/types/test_uuid.storage.test | 4 +- .../types/variant/append_shredded.test | 4 +- .../types/variant/extension_types.test | 4 +- .../storage/types/variant/index_fetch.test | 4 +- .../types/variant/struct_of_variant.test | 4 +- .../storage/types/variant/test_all_types.test | 4 +- .../variant/test_all_types_single_object.test | 10 +- .../variant/test_all_types_single_table.test | 4 +- .../types/variant/test_all_types_variant.test | 4 +- .../sql/storage/types/variant/update.test | 4 +- ...ariant_case_sensitive_fields_shredded.test | 4 +- .../variant/variant_comparator_shredded.test | 4 +- .../variant/variant_comparator_stats.test | 4 +- .../variant_duplicate_keys_shredding.test | 4 +- .../variant_extract_filter_pushdown.test | 4 +- .../types/variant/variant_extract_stats.test | 4 +- .../storage/types/variant/variant_index.test | 4 +- .../types/variant/variant_null_missing.test | 4 +- ...nt_null_shredding_inconsistency_issue.test | 4 +- .../variant_object_key_order_shredded.test | 4 +- ...ariant_object_key_order_shredded_json.test | 4 +- .../variant_shredded_extract_non_object.test | 4 +- .../variant_shredded_extract_wrong_type.test | 4 +- .../types/variant/variant_shredded_slice.test | 4 +- ...variant_shredded_top_level_array_cast.test | 4 +- .../variant/variant_shredding_empty_keys.test | 4 +- .../variant_shredding_inconsistent.test | 4 +- .../variant_shredding_omit_untyped.test | 4 +- .../variant/variant_shredding_small.test | 4 +- .../variant_stats_case_sensitive_merge.test | 4 +- .../variant/variant_stats_merge_fast.test | 4 +- .../variant/variant_storage_version.test | 4 +- .../variant_struct_field_subquery.test | 4 +- .../types/variant/variant_validity_stats.test | 4 +- parser/testdata/corpus/sql/storage/unzip.test | 4 +- .../update/dictionary_update_null.test | 4 +- .../update/noop_string_update_memory.test | 4 +- .../update/test_store_null_updates.test | 4 +- .../update_out_of_memory_statistics.test | 53 +++ .../update/wal_restart_update_insert.test | 8 +- .../vacuum/temp_table_vacuum_on_commit.test | 4 +- .../wal/wal_autocheckpoint_entries.test | 4 +- .../sql/storage/wal/wal_create_index.test | 4 +- .../storage/wal/wal_create_insert_drop.test | 4 +- .../sql/storage/wal/wal_index_delete.test | 4 +- .../sql/storage/wal/wal_index_delete_gen.test | 4 +- .../storage/wal/wal_index_interleaved.test | 4 +- .../wal_index_large_batch_interleaved.test | 4 +- .../sql/storage/wal/wal_index_replay.test | 4 +- .../sql/storage/wal/wal_lazy_creation.test | 4 +- .../wal_null_update_row_group_pruning.test | 4 +- .../sql/storage/wal/wal_promote_version.test | 4 +- ...sistency_add_column_current_timestamp.test | 4 +- ..._replay_consistency_add_column_random.test | 4 +- .../wal/wal_replay_default_database.test | 4 +- ...al_replay_pending_index_dropped_table.test | 8 +- ...y_unbound_index_attach_autocheckpoint.test | 57 +++ ...l_replay_unbound_index_autocheckpoint.test | 53 +++ ...unbound_index_bind_failure_no_replays.test | 25 ++ ..._unbound_index_bind_failure_retryable.test | 49 +++ ...unbound_index_create_index_during_wal.test | 16 +- ...replay_unbound_index_generated_column.test | 4 +- ...al_replay_unbound_index_mixed_inserts.test | 4 +- .../wal_replay_unbound_index_multi_index.test | 4 +- ...lay_unbound_index_shutdown_checkpoint.test | 8 +- .../storage/wal/wal_replay_with_function.test | 4 +- .../sql/storage/wal/wal_storage_types.test | 4 +- .../wal/wal_store_mixed_updates_big.test | 4 +- .../wal/wal_store_mixed_updates_big_null.test | 4 +- .../sql/storage/wal/wal_store_sequences.test | 4 +- .../storage/wal/wal_store_updates_big.test | 4 +- .../wal/wal_store_updates_big_varchar.test | 4 +- .../storage/wal/wal_timestamp_storage.test | 4 +- .../wal/wal_torn_uncommitted_row_group.test | 4 +- .../sql/storage/wal/wal_uhugeint_storage.test | 4 +- .../sql/storage/wal/wal_view_storage.test | 4 +- .../storage_version/storage_hyperloglog.test | 4 +- .../storage_version/storage_version_bump.test | 4 +- .../sql/subquery/any_all/issue_2999.test | 4 +- .../sql/subquery/any_all/subquery_in.test | 4 +- .../sql/subquery/any_all/test_any_all.test | 4 +- .../any_all/test_any_array_subquery.test | 57 +++ .../test_any_left_join_in_on_clause.test | 4 +- .../any_all/test_correlated_any_all.test | 4 +- .../any_all/test_correlated_cte_in.test | 4 +- .../test_correlated_in_left_join_mark.test | 56 +++ .../test_correlated_mark_row_identity.test | 53 +++ .../any_all/test_correlated_tuple_in.test | 37 ++ .../test_multi_column_mark_join_nulls.test | 4 +- .../any_all/test_row_comparison_any_all.test | 4 +- ...test_row_not_equal_any_null_semantics.test | 4 +- .../subquery/any_all/test_scalar_any_all.test | 4 +- .../sql/subquery/any_all/test_scalar_in.test | 4 +- .../subquery/any_all/test_simple_not_in.test | 4 +- .../subquery/any_all/test_some_subquery.test | 4 +- .../test_uncorrelated_all_subquery.test | 4 +- .../test_uncorrelated_any_subquery.test | 4 +- .../subquery/any_all_variant_extremum.test | 4 +- .../complex_correlated_subquery_issue.test | 4 +- .../correlated_internal_issue_5975.test | 4 +- .../complex/correlated_list_any_join.test | 8 +- .../complex/nested_unnest_subquery.test | 4 +- .../exists/test_correlated_exists.test | 4 +- ..._correlated_exists_with_derived_table.test | 4 +- .../exists/test_exists_union_by_name.test | 4 +- .../sql/subquery/exists/test_issue_22267.test | 4 +- .../sql/subquery/exists/test_issue_23979.test | 4 +- .../sql/subquery/exists/test_issue_26401.test | 4 +- .../sql/subquery/exists/test_issue_9308.test | 4 +- .../subquery/exists/test_scalar_exists.test | 4 +- .../test_uncorrelated_exists_subquery.test | 4 +- .../sql/subquery/lateral/lateral_arrays.test | 4 +- .../subquery/lateral/lateral_asof_join.test | 200 +++++++++ .../lateral/lateral_binding_views.test | 4 +- .../lateral/lateral_cte_list_correlation.test | 49 +++ .../lateral/lateral_domain_filter.test | 4 +- .../lateral/lateral_domain_filter_shapes.test | 4 +- .../lateral_domain_join_filter_semantics.test | 4 +- .../lateral/lateral_empty_grouping_sets.test | 390 ++++++++++++++++++ .../subquery/lateral/lateral_fuzzer_1463.test | 4 +- .../lateral/lateral_fuzzer_5984_23.test | 4 +- .../lateral/lateral_grouping_sets.test | 4 +- .../lateral/lateral_join_aggregate.test | 4 +- .../subquery/lateral/lateral_join_chain.test | 4 +- .../lateral_join_generated_columns.test | 4 +- .../subquery/lateral/lateral_join_macro.test | 4 +- .../lateral/lateral_join_typed_macro.test | 178 ++++++++ .../subquery/lateral/lateral_large_lists.test | 4 +- .../subquery/lateral/lateral_left_join.test | 4 +- .../lateral/lateral_nested_domain_filter.test | 4 +- .../lateral_null_propagation_shortcut.test | 80 ++++ .../sql/subquery/lateral/lateral_qualify.test | 4 +- .../lateral_recursive_filter_pushdown.test | 4 +- ...ateral_unnest_intermediate_projection.test | 132 ++++++ .../sql/subquery/lateral/lateral_values.test | 4 +- .../sql/subquery/lateral/pg_lateral.test | 4 +- .../sql/subquery/lateral/qualified_star.test | 4 +- .../subquery/lateral/test_lateral_join.test | 4 +- .../subquery/scalar/array_order_subquery.test | 4 +- .../sql/subquery/scalar/array_subquery.test | 4 +- .../subquery/scalar/coalesce_subquery.test | 4 +- .../correlated_cte_definition_subquery.test | 81 ++++ .../scalar/correlated_grouped_expression.test | 229 ++++++++++ .../scalar/correlated_missing_columns.test | 4 +- .../sql/subquery/scalar/correlated_pivot.test | 4 +- .../scalar/correlated_pivot_error.test | 4 +- .../scalar/correlated_scope_resolution.test | 4 +- .../scalar/correlated_unnest_join_null.test | 86 ++++ .../subquery/scalar/in_multiple_columns.test | 4 +- .../scalar/nested_subquery_window.test | 4 +- .../subquery/scalar/order_by_correlated.test | 4 +- .../pg_grouping_expression_references.test | 86 ++++ .../subquery/scalar/subquery_row_in_any.test | 4 +- .../test_complex_correlated_subquery.test | 4 +- ...st_complex_nested_correlated_subquery.test | 4 +- ..._correlated_aggregate_correlation_key.test | 135 ++++++ ...elated_aggregate_correlation_key_plan.test | 13 + ...test_correlated_count_nested_subquery.test | 41 ++ .../scalar/test_correlated_grouping_set.test | 4 +- .../scalar/test_correlated_having.test | 4 +- .../scalar/test_correlated_set_op.test | 4 +- .../scalar/test_correlated_side_effects.test | 4 +- .../scalar/test_correlated_subquery.test | 4 +- .../scalar/test_correlated_subquery_cte.test | 4 +- .../test_correlated_subquery_where.test | 4 +- .../scalar/test_correlated_window.test | 4 +- .../scalar/test_count_star_subquery.test | 4 +- .../subquery/scalar/test_delete_subquery.test | 4 +- .../test_grouped_correlated_subquery.test | 4 +- .../sql/subquery/scalar/test_issue_4216.test | 4 +- .../sql/subquery/scalar/test_issue_6136.test | 4 +- .../sql/subquery/scalar/test_issue_6184.test | 4 +- .../sql/subquery/scalar/test_issue_7079.test | 4 +- .../scalar/test_join_in_subquery.test | 4 +- .../scalar/test_many_correlated_columns.test | 4 +- .../subquery/scalar/test_scalar_subquery.test | 4 +- .../scalar/test_scalar_subquery_cte.test | 4 +- .../scalar/test_subquery_any_join.test | 4 +- .../test_tpcds_correlated_subquery.test | 4 +- .../test_uncorrelated_scalar_subquery.test | 4 +- .../test_uncorrelated_varchar_subquery.test | 4 +- .../subquery/scalar/test_unnest_subquery.test | 4 +- .../subquery/scalar/test_update_subquery.test | 4 +- .../test_varchar_correlated_subquery.test | 4 +- .../scalar/test_window_function_subquery.test | 4 +- .../scalar/view_filter_below_delim_join.test | 81 ++++ ...filter_below_delim_join.test.metadata.json | 6 + .../sql/subquery/table/test_aliasing.test | 4 +- .../subquery/table/test_subquery_union.test | 4 +- .../subquery/table/test_table_subquery.test | 4 +- .../subquery/table/test_unnamed_subquery.test | 4 +- .../corpus/sql/subquery/test_neumann.test | 4 +- .../corpus/sql/subquery/test_offset.test | 4 +- .../create_external_resource.test | 22 +- .../sql/table_function/database_oid.test | 4 +- .../duckdb_available_metrics.test | 4 +- .../sql/table_function/duckdb_columns.test | 4 +- .../table_function/duckdb_constraints.test | 4 +- .../table_function/duckdb_constraints_fk.test | 4 +- .../duckdb_constraints_issue11284.test | 4 +- .../duckdb_constraints_issue12863.test | 4 +- .../duckdb_constraints_struct_check.test | 61 +++ .../sql/table_function/duckdb_databases.test | 4 +- .../table_function/duckdb_dependencies.test | 4 +- .../sql/table_function/duckdb_dialects.test | 4 +- .../duckdb_eviction_queues.test | 4 +- .../duckdb_eviction_queues_transactions.test | 4 +- .../sql/table_function/duckdb_extensions.test | 4 +- .../duckdb_functions_window.test | 4 +- .../sql/table_function/duckdb_indexes.test | 4 +- .../sql/table_function/duckdb_keywords.test | 4 +- .../duckdb_live_query_metrics.test | 65 +++ .../duckdb_memory_convert_to_persistent.test | 4 +- .../sql/table_function/duckdb_optimizers.test | 4 +- .../duckdb_prepared_statements.test | 4 +- .../sql/table_function/duckdb_schemas.test | 4 +- .../sql/table_function/duckdb_sequences.test | 4 +- .../sql/table_function/duckdb_settings.test | 4 +- .../sql/table_function/duckdb_tables.test | 4 +- .../sql/table_function/duckdb_types.test | 4 +- .../sql/table_function/duckdb_views.test | 4 +- .../external_resource_callback_recursion.test | 49 +++ .../external_resource_discovery.test | 16 +- .../external_resource_discovery_error.test | 36 +- .../external_resource_logging.test | 4 +- .../external_resource_types.test | 4 +- .../external_resources_type_pruning.test | 67 +++ .../external_resources_where_pruning.test | 45 ++ .../sql/table_function/glob_prepared.test | 17 + .../table_function/icu_range_timestamptz.test | 4 +- .../icu_range_timestamptz_lateral_empty.test | 39 ++ .../table_function/information_schema.test | 42 +- ...ormation_schema_fkey_constraint_names.test | 4 +- .../information_schema_issue12867.test | 4 +- .../information_schema_types.test | 4 +- .../sql/table_function/issue_25882.test | 4 +- .../lateral_table_function.test | 4 +- .../postgres_setof_compatibility.test | 4 +- .../range_cardinality_extremes.test | 4 +- .../range_function_different_iterators.test | 4 +- .../range_function_lateral.test | 4 +- .../range_lateral_parallel.test | 30 ++ .../table_function/range_lateral_threads.test | 52 +++ .../table_function/range_non_foldable.test | 4 +- .../sql/table_function/range_timestamp.test | 4 +- .../range_timestamp_lateral_empty.test | 11 +- .../table_function/read_text_and_blob.test | 4 +- .../register_external_resource.test | 4 +- .../sql/table_function/sqlite_master.test | 4 +- .../sqlite_master_connections.test | 4 +- .../table_function/sqlite_master_quotes.test | 4 +- .../table_function_positional_by_name.test | 4 +- .../test_information_schema_columns.test | 4 +- .../table_function/test_range_function.test | 4 +- .../table_function/test_repeat_function.test | 4 +- .../test_repeat_row_function.test | 4 +- .../table_function/test_table_function.test | 4 +- ...warn_deprecated_identifier_conversion.test | 4 +- .../timezone/disable_timestamptz_casts.test | 4 +- .../sql/timezone/icu_calendar_operations.test | 4 +- .../sql/timezone/test_icu_calendar.test | 4 +- .../timezone/test_icu_calendar_chinese.test | 4 +- .../timezone/test_icu_calendar_coptic.test | 4 +- .../timezone/test_icu_calendar_hebrew.test | 4 +- .../timezone/test_icu_calendar_islamic.test | 4 +- .../test_icu_calendar_islamic_observed.test | 4 +- .../timezone/test_icu_calendar_japanese.test | 4 +- .../timezone/test_icu_calendar_persian.test | 4 +- .../test_icu_calendar_range_error.test | 4 +- .../timezone/test_icu_calendar_systems.test | 4 +- .../corpus/sql/timezone/test_icu_casts.test | 4 +- .../timezone/test_icu_datetime_overflow.test | 4 +- .../sql/timezone/test_icu_datetime_sweep.test | 4 +- .../test_icu_offset_seconds_roundtrip.test | 21 + .../test_icu_parse_time_zone_per_row.test | 4 +- .../sql/timezone/test_icu_timezone.test | 20 +- .../test_icu_timezone_edge_cases.test | 4 +- .../test_icu_timezone_far_future.test | 4 +- .../test_icu_timezone_properties.test | 4 +- .../sql/timezone/timestamptz_ns_to_date.test | 4 +- .../timezone/timestamptz_ns_to_timestamp.test | 21 + .../testdata/corpus/sql/topn/test_top_n.test | 4 +- .../test_top_n_distinct_row_group_pruner.test | 4 +- .../corpus/sql/topn/test_top_n_lists.test | 4 +- .../corpus/sql/topn/test_top_n_medium.test | 4 +- .../sql/topn/test_top_n_nested_struct.test | 4 +- .../sql/topn/test_top_n_nulls_first.test | 4 +- ..._first_row_group_reorderer_edge_cases.test | 4 +- .../test_top_n_nulls_row_group_pruner.test | 4 +- ...op_n_nulls_row_group_pruner_extensive.test | 4 +- .../sql/topn/test_top_n_nulls_small.test | 4 +- .../test_top_n_offset_no_limit_pruner.test | 4 +- .../corpus/sql/topn/test_top_n_structs.test | 4 +- .../test_top_n_window_row_group_pruner.test | 37 ++ .../sql/topn/top_n_materialization.test | 4 +- .../corpus/sql/topn/top_n_pruning.test | 4 +- .../sql/topn/top_n_pruning_read_ahead.test | 13 + .../sql/topn/topn_dynamic_filter_cast.test | 4 +- .../corpus/sql/topn/topn_nulls_first.test | 4 +- .../corpus/sql/topn/tpcds_q14_topn.test | 4 +- .../corpus/sql/topn/tpcds_q59_topn.test | 4 +- .../sql/tpcds/dsdgen_nested_schema.test | 117 ++++++ .../corpus/sql/tpcds/dsdgen_readonly.test | 4 +- .../corpus/sql/tpcds/dsdgen_sync_scan.test | 4 +- .../testdata/corpus/sql/tpcds/tpcds_sf0.test | 4 +- .../corpus/sql/tpch/dbgen_nested_schema.test | 113 +++++ .../corpus/sql/tpch/dbgen_readonly.test | 8 +- .../sql/tpch/dbgen_reference_values.test | 4 +- parser/testdata/corpus/sql/tpch/tpch_sf0.test | 4 +- .../aborted_transaction_commit.test | 4 +- .../transactions/commit_revert_failure.test | 4 +- .../transactions/concurrent_drop_index.test | 4 +- .../transactions/concurrent_drop_table.test | 4 +- .../conflict_drop_then_delete.test | 4 +- .../transactions/conflict_rename_append.test | 4 +- .../transactions/count_star_transactions.test | 4 +- .../delete_and_drop_in_same_transaction.test | 4 +- .../delete_index_lookup_transactions.test | 4 +- .../sql/transactions/min_max_deletes.test | 4 +- .../sql/transactions/min_max_updates.test | 4 +- ...rt_commit_index_corruption_drop_table.test | 4 +- .../sql/transactions/rollback_drop.test | 4 +- .../transactions/rollback_drop_column.test | 4 +- .../sql/transactions/rollback_drop_index.test | 4 +- .../sql/transactions/rollback_drop_table.test | 4 +- .../rollback_drop_table_with_delete.test | 4 +- ...n_policy_is_respected_by_preprocessor.test | 4 +- .../multistatement_is_transactional.test | 4 +- ...nsactional_after_BEGIN_chained_COMMIT.test | 4 +- ...tement_is_transactional_chained_BEGIN.test | 4 +- ...ansactional_chained_BEGIN_body_COMMIT.test | 4 +- ...ement_is_transactional_chained_PRAGMA.test | 4 +- ...is_transactional_chained_PRAGMA_BEGIN.test | 4 +- .../pivot_is_handled_correctly.test | 4 +- .../test_alter_preserves_delete_indexes.test | 4 +- ...est_alter_sequence_ownership_conflict.test | 4 +- ...st_alter_sequence_ownership_conflict2.test | 4 +- .../transactions/test_basic_transactions.test | 4 +- ...st_cardinality_estimation_uncommitted.test | 4 +- .../transactions/test_commit_cleanup_oom.test | 4 +- .../test_commit_cleanup_oom_index_retry.test | 4 +- .../test_commit_constraint_violation.test | 65 +++ .../test_commit_flush_append_failure.test | 53 +++ .../test_commit_oom_ghost_keys.test | 33 ++ .../test_create_drop_conflict.test | 4 +- .../test_create_drop_conflict_variation1.test | 4 +- .../sql/transactions/test_ddl_after_dml.test | 4 +- .../test_from_update_conflict.test | 4 +- .../sql/transactions/test_index_abort.test | 4 +- ...index_delete_cleanup_non_main_storage.test | 4 +- .../test_index_huge_aborted_append.test | 4 +- .../test_index_large_aborted_append.test | 4 +- .../transactions/test_index_local_update.test | 4 +- .../test_index_pending_delete.test | 4 +- .../test_index_pending_update.test | 4 +- .../test_index_rollback_flushed_data.test | 4 +- .../test_index_transaction_local.test | 4 +- .../test_index_versioned_deletes.test | 4 +- .../test_index_versioned_updates.test | 4 +- .../test_multi_transaction_append.test | 4 +- .../sql/transactions/test_multi_version.test | 4 +- .../test_multi_version_large.test | 4 +- .../sql/transactions/test_null_version.test | 4 +- ...parser_error_transaction_invalidation.test | 4 +- ...est_read_only_transaction_temp_writes.test | 8 +- .../test_read_only_transactions.test | 4 +- .../test_stacked_schema_change.test | 4 +- .../transactions/test_transaction_abort.test | 4 +- .../test_transaction_local_add.test | 4 +- .../test_transaction_local_alter_type.test | 4 +- .../test_transaction_local_data.test | 4 +- .../test_transaction_local_drop.test | 4 +- .../test_transaction_local_unique_ops.test | 4 +- .../test_validity_append_rollback.test | 4 +- .../transaction_insert_delete_chunks.test | 4 +- .../transaction_insert_mixed_deletes.test | 4 +- .../corpus/sql/transactions/txid_current.test | 4 +- .../types/test_hugeint_transactions.test | 4 +- .../types/test_interval_transactions.test | 4 +- .../types/test_uhugeint_transactions.test | 4 +- .../sql/trigger/create_trigger_catalog.test | 44 +- .../sql/trigger/create_trigger_parse.test | 4 +- .../sql/trigger/create_trigger_wal.test | 4 +- .../corpus/sql/trigger/drop_trigger.test | 4 +- .../sql/trigger/drop_trigger_parse.test | 4 +- .../drop_trigger_unsupported_table.test | 13 + .../corpus/sql/trigger/drop_trigger_wal.test | 4 +- ...ger_into_table_with_statement_trigger.test | 37 ++ .../corpus/sql/trigger/temporary_trigger.test | 4 +- .../sql/trigger/trigger_after_delete.test | 4 +- .../trigger_after_delete_referencing.test | 4 +- .../sql/trigger/trigger_after_insert.test | 4 +- .../trigger_after_insert_referencing.test | 4 +- .../sql/trigger/trigger_after_update.test | 4 +- .../trigger/trigger_after_update_old_new.test | 4 +- .../trigger_after_update_old_new_wal.test | 4 +- .../trigger_after_update_referencing.test | 4 +- .../sql/trigger/trigger_alter_table.test | 4 +- .../trigger/trigger_before_after_mixed.test | 4 +- .../sql/trigger/trigger_before_delete.test | 4 +- .../sql/trigger/trigger_before_insert.test | 4 +- .../sql/trigger/trigger_before_update.test | 4 +- .../trigger/trigger_concurrent_rename.test | 4 +- .../sql/trigger/trigger_dependency.test | 8 +- .../trigger/trigger_dependency_restart.test | 4 +- .../sql/trigger/trigger_for_each_row.test | 4 +- .../trigger/trigger_multiple_per_event.test | 4 +- .../trigger_referencing_validation.test | 4 +- .../corpus/sql/trigger/trigger_returning.test | 4 +- .../trigger_returning_binder_parity.test | 4 +- .../trigger_update_from_multi_match.test | 83 ---- .../corpus/sql/types/alias/nested_alias.test | 4 +- .../sql/types/alias/parquet_variant_cast.test | 13 + .../sql/types/alias/recursive_alias.test | 4 +- .../corpus/sql/types/alias/test_alias.test | 4 +- .../sql/types/alias/test_alias_functions.test | 4 +- .../sql/types/alias/test_alias_map.test | 4 +- .../sql/types/alias/test_alias_struct.test | 4 +- .../alias/test_alias_struct_nested_alias.test | 4 +- .../sql/types/alias/test_alias_table.test | 8 +- .../sql/types/alias/type_with_schema.test | 4 +- .../corpus/sql/types/bignum/issue25939.test | 4 +- .../sql/types/bignum/test_big_bignum.test | 4 +- .../types/bignum/test_bignum_boundaries.test | 4 +- .../types/bignum/test_bignum_comparisons.test | 4 +- .../sql/types/bignum/test_bignum_double.test | 4 +- .../bignum/test_bignum_float_string_cast.test | 4 +- .../test_bignum_from_double_rounding.test | 88 ++++ .../bignum/test_bignum_from_non_finite.test | 8 +- .../sql/types/bignum/test_bignum_hugeint.test | 4 +- .../bignum/test_bignum_implicit_cast.test | 8 +- .../bignum/test_bignum_large_varchar.test | 4 +- .../bignum/test_bignum_negate_compare.test | 13 + .../types/bignum/test_bignum_not_cast.test | 4 +- .../types/bignum/test_bignum_subtract.test | 4 +- .../sql/types/bignum/test_bignum_sum.test | 4 +- .../test_bignum_to_double_overflow.test | 4 +- .../bignum/test_bignum_to_integer_range.test | 61 +++ .../bignum/test_bignum_to_integral_cast.test | 74 ++++ .../types/bignum/test_bignum_try_cast.test | 4 +- .../bignum/test_bignum_varchar_invalid.test | 4 +- .../bignum/test_bignum_varchar_large.test | 4 +- .../sql/types/bignum/test_double_bignum.test | 4 +- .../bignum/test_int_bignum_conversion.test | 4 +- ...test_int_varchar_bignum_compatibility.test | 4 +- .../test_varchar_bignum_conversion.test | 4 +- .../bignum/test_varchar_bignum_unhappy.test | 4 +- .../corpus/sql/types/bit/bit_issue_11211.test | 4 +- .../corpus/sql/types/bit/bit_issue_22527.test | 4 +- .../sql/types/bit/bit_sort_key_order.test | 4 +- .../corpus/sql/types/bit/bit_try_cast.test | 4 +- .../corpus/sql/types/bit/test_bit.test | 4 +- .../bit/test_bit_bitwise_operations.test | 4 +- .../sql/types/bit/test_bit_equality.test | 4 +- .../sql/types/bit/test_bit_functions.test | 24 +- .../corpus/sql/types/bit/test_hex_to_bit.test | 4 +- .../corpus/sql/types/blob/test_blob.test | 4 +- .../corpus/sql/types/blob/test_blob_cast.test | 4 +- .../sql/types/blob/test_blob_function.test | 4 +- .../types/blob/test_blob_invalid_utf8.test | 4 +- .../sql/types/blob/test_blob_operator.test | 4 +- .../sql/types/blob/test_blob_string.test | 4 +- .../sql/types/blob/test_blob_try_cast.test | 4 +- .../cast_expression_storage_version.test | 4 +- .../sql/types/date/date_implicit_cast.test | 4 +- .../corpus/sql/types/date/date_limits.test | 4 +- .../corpus/sql/types/date/date_parsing.test | 4 +- .../corpus/sql/types/date/date_try_cast.test | 4 +- .../corpus/sql/types/date/test_bc_dates.test | 4 +- .../corpus/sql/types/date/test_date.test | 4 +- .../corpus/sql/types/date/test_date_2411.test | 4 +- .../sql/types/date/test_incorrect_dates.test | 4 +- .../sql/types/decimal/cast_from_decimal.test | 4 +- .../sql/types/decimal/cast_to_decimal.test | 4 +- .../sql/types/decimal/decimal_aggregates.test | 4 +- .../sql/types/decimal/decimal_arithmetic.test | 4 +- .../types/decimal/decimal_automatic_cast.test | 4 +- .../sql/types/decimal/decimal_average.test | 24 +- .../decimal_decimal_overflow_cast.test | 4 +- .../sql/types/decimal/decimal_division.test | 52 ++- .../sql/types/decimal/decimal_exception.test | 4 +- .../sql/types/decimal/decimal_exponent.test | 32 +- .../sql/types/decimal/decimal_overflow.test | 4 +- .../types/decimal/decimal_overflow_table.test | 4 +- .../sql/types/decimal/decimal_promotion.test | 4 +- .../sql/types/decimal/decimal_try_cast.test | 4 +- .../types/decimal/decimal_values_warning.test | 4 +- .../types/decimal/decimal_zero_to_float.test | 4 +- .../decimal/large_decimal_constants.test | 4 +- .../sql/types/decimal/test_decimal.test | 4 +- .../sql/types/decimal/test_decimal_2411.test | 4 +- .../sql/types/decimal/test_decimal_2975.test | 4 +- .../sql/types/decimal/test_decimal_4106.test | 4 +- .../decimal/test_decimal_from_string.test | 4 +- .../sql/types/decimal/test_decimal_ops.test | 4 +- ...test_decimal_small_precision_behavior.test | 4 +- .../sql/types/decimal/test_empty_dec.test | 4 +- .../sql/types/decimal/test_empty_decimal.test | 4 +- .../enum/create_enum_collection_alias.test | 4 +- .../sql/types/enum/enum_cast_optimizer.test | 41 ++ .../enum/enum_enum_cast_missing_value.test | 45 ++ .../sql/types/enum/standalone_enum.test | 4 +- .../corpus/sql/types/enum/test_25633.test | 4 +- .../corpus/sql/types/enum/test_26369.test | 12 +- .../corpus/sql/types/enum/test_3479.test | 4 +- .../corpus/sql/types/enum/test_3641.test | 4 +- .../corpus/sql/types/enum/test_5983.test | 4 +- .../corpus/sql/types/enum/test_6356.test | 4 +- .../sql/types/enum/test_alter_enum.test | 4 +- .../corpus/sql/types/enum/test_enum.test | 8 +- .../corpus/sql/types/enum/test_enum_case.test | 4 +- .../corpus/sql/types/enum/test_enum_cast.test | 4 +- .../sql/types/enum/test_enum_comparisons.test | 4 +- .../sql/types/enum/test_enum_constraints.test | 4 +- .../types/enum/test_enum_duckdb_types.test | 4 +- .../enum/test_enum_range_boundary_rows.test | 4 +- .../sql/types/enum/test_enum_schema.test | 4 +- .../sql/types/enum/test_enum_structs.test | 4 +- .../sql/types/enum/test_enum_table.test | 4 +- .../sql/types/enum/test_enum_temp_tbl.test | 4 +- .../sql/types/enum/test_enum_to_numbers.test | 4 +- .../enum/test_enums_and_built_in_types.test | 4 +- .../sql/types/float/ieee_floating_points.test | 4 +- .../corpus/sql/types/float/infinity_test.test | 4 +- .../corpus/sql/types/float/nan_aggregate.test | 4 +- .../sql/types/float/nan_aggregates.test | 4 +- .../sql/types/float/nan_arithmetic.test | 4 +- .../corpus/sql/types/float/nan_cast.test | 4 +- .../corpus/sql/types/float/nan_functions.test | 4 +- .../corpus/sql/types/float/nan_join.test | 4 +- .../sql/types/float/nan_minmax_order.test | 4 +- .../corpus/sql/types/float/nan_ordering.test | 4 +- .../corpus/sql/types/float/nan_test.test | 4 +- .../corpus/sql/types/float/nan_window.test | 4 +- .../corpus/sql/types/float/nested_nan.test | 4 +- .../corpus/sql/types/geo/geometry.test | 4 +- .../sql/types/geo/geometry_blob_cast.test | 4 +- .../geo/geometry_blob_cast_invalid_parts.test | 4 +- .../sql/types/geo/geometry_compatability.test | 4 +- .../corpus/sql/types/geo/geometry_crs.test | 4 +- .../sql/types/geo/geometry_crs_formats.test | 4 +- .../types/geo/geometry_crs_id_overflow.test | 17 + .../sql/types/geo/geometry_crs_persist.test | 4 +- .../sql/types/geo/geometry_crs_projjson.test | 4 +- .../sql/types/geo/geometry_crs_wkt2.test | 4 +- .../types/geo/geometry_from_wkb_stats.test | 4 +- .../geometry_intersection_filter_parquet.test | 4 +- .../sql/types/geo/geometry_intersects.test | 4 +- .../geo/geometry_legacy_recheckpoint.test | 4 +- .../sql/types/geo/geometry_nonascii_cast.test | 4 +- .../types/geo/geometry_parquet_pushdown.test | 4 +- .../sql/types/geo/geometry_persist.test | 4 +- .../sql/types/geo/geometry_persist_wal.test | 4 +- .../corpus/sql/types/geo/geometry_shred.test | 4 +- .../sql/types/geo/geometry_shred_deletes.test | 4 +- .../sql/types/geo/geometry_shred_empty.test | 4 +- .../sql/types/geo/geometry_shred_fetch.test | 4 +- .../sql/types/geo/geometry_shred_limit.test | 4 +- .../sql/types/geo/geometry_shred_list.test | 4 +- .../sql/types/geo/geometry_shred_more.test | 4 +- .../types/geo/geometry_shred_pk_append.test | 4 +- .../sql/types/geo/geometry_shred_shapes.test | 4 +- .../corpus/sql/types/geo/geometry_stats.test | 4 +- .../sql/types/geo/geometry_stats_prune.test | 4 +- .../types/geo/geometry_stats_prune_nan.test | 4 +- .../types/geo/geometry_stats_prune_null.test | 4 +- .../geo/geometry_stats_prune_shredded.test | 4 +- .../types/geo/geometry_storage_version.test | 4 +- .../geo/geometry_try_cast_malformed.test | 4 +- .../corpus/sql/types/geo/geometry_update.test | 4 +- .../types/geo/geometry_vertex_extract.test | 4 +- .../corpus/sql/types/geo/geometry_wkb.test | 4 +- .../sql/types/geo/geometry_wkb_depth.test | 4 +- .../types/geo/geometry_wkb_invalid_flag.test | 4 +- .../sql/types/hugeint/hugeint_multiply.test | 107 ++++- .../types/hugeint/hugeint_sum_overflow.test | 4 +- .../sql/types/hugeint/hugeint_try_cast.test | 8 +- .../hugeint/test_hugeint_aggregates.test | 4 +- .../hugeint/test_hugeint_arithmetic.test | 4 +- .../types/hugeint/test_hugeint_auto_cast.test | 4 +- .../types/hugeint/test_hugeint_bitwise.test | 4 +- ...est_hugeint_cast_from_floating_bounds.test | 152 +++++++ .../hugeint/test_hugeint_conversion.test | 4 +- .../types/hugeint/test_hugeint_exponent.test | 4 +- .../types/hugeint/test_hugeint_functions.test | 4 +- .../hugeint/test_hugeint_null_value.test | 4 +- .../sql/types/hugeint/test_hugeint_ops.test | 4 +- .../test_hugeint_to_floating_rounding.test | 124 ++++++ .../sql/types/interval/frac_interval.test | 4 +- .../sql/types/interval/interval_alias.test | 4 +- .../interval_colon_time_overflow.test | 4 +- .../types/interval/interval_constants.test | 4 +- .../interval/interval_epoch_overflow.test | 4 +- .../interval/interval_multiply_overflow.test | 4 +- .../interval/interval_ten_digit_hours.test | 4 +- .../sql/types/interval/interval_try_cast.test | 4 +- .../sql/types/interval/test_interval.test | 4 +- .../interval/test_interval_addition.test | 23 +- .../types/interval/test_interval_between.test | 4 +- .../interval/test_interval_comparison.test | 4 +- .../test_interval_no_normalize_dedup.test | 49 +++ .../sql/types/interval/test_interval_ops.test | 4 +- .../corpus/sql/types/list/list_case.test | 4 +- .../sql/types/list/list_comparison.test | 4 +- .../sql/types/list/list_concat_null.test | 4 +- .../types/list/list_constant_reference.test | 4 +- .../sql/types/list/list_cross_product.test | 4 +- .../corpus/sql/types/list/list_distinct.test | 4 +- .../list/list_extract_internal_issue2747.test | 4 +- .../sql/types/list/list_extract_struct.test | 4 +- .../corpus/sql/types/list/list_index.test | 4 +- .../types/list/list_index_abort_small.test | 4 +- .../list/list_index_abort_small_nested.test | 4 +- .../corpus/sql/types/list/list_indexing.test | 4 +- .../sql/types/list/list_null_members.test | 4 +- .../types/list/list_null_members_small.test | 4 +- .../corpus/sql/types/list/list_of_struct.test | 4 +- .../sql/types/list/list_parse_recursion.test | 4 +- .../corpus/sql/types/list/list_stats.test | 4 +- .../types/list/list_test_many_deletes.test | 4 +- .../sql/types/list/list_to_varchar_cast.test | 4 +- .../list/list_update_with_many_matches.test | 4 +- .../corpus/sql/types/list/list_updates.test | 4 +- .../sql/types/list/list_updates_varchar.test | 4 +- .../sql/types/list/mix_numeric_types.test | 4 +- .../list/nested_comparison_validity.test | 4 +- .../sql/types/list/nested_list_extract.test | 4 +- .../sql/types/list/nested_list_slice.test | 4 +- .../sql/types/list/nested_list_updates.test | 4 +- .../sql/types/list/recursive_unnest.test | 4 +- .../sql/types/list/unnest_aggregate.test | 4 +- .../corpus/sql/types/list/unnest_array.test | 4 +- .../sql/types/list/unnest_complex_types.test | 4 +- .../corpus/sql/types/list/unnest_expand.test | 4 +- .../sql/types/list/unnest_group_by.test | 4 +- .../sql/types/list/unnest_having_qualify.test | 4 +- .../list/unnest_non_constant_options.test | 4 +- .../sql/types/list/unnest_null_empty.test | 4 +- .../sql/types/list/unnest_table_function.test | 4 +- .../corpus/sql/types/list/unnest_types.test | 4 +- .../corpus/sql/types/map/map_cast.test | 4 +- .../map/map_const_and_col_combination.test | 4 +- .../corpus/sql/types/map/map_empty.test | 4 +- .../types/map/map_extract_nested_null.test | 4 +- .../types/map/map_keys_outer_join_null.test | 4 +- .../corpus/sql/types/map/map_null.test | 4 +- .../types/nested/array/array_aggregate.test | 4 +- .../sql/types/nested/array/array_case.test | 4 +- .../sql/types/nested/array/array_cast.test | 4 +- .../types/nested/array/array_coverage.test | 4 +- .../nested/array/array_fuzzer_failures.test | 4 +- .../sql/types/nested/array/array_invalid.test | 4 +- .../types/nested/array/array_join_gather.test | 61 +++ .../sql/types/nested/array/array_joins.test | 4 +- .../sql/types/nested/array/array_joins_2.test | 4 +- .../sql/types/nested/array/array_large.test | 4 +- .../nested/array/array_lateral_unnest.test | 4 +- .../nested/array/array_limit_offset.test | 4 +- .../types/nested/array/array_list_agg.test | 4 +- .../nested/array/array_list_aggregate.test | 4 +- .../sql/types/nested/array/array_misc.test | 4 +- .../nested/array/array_roundtrip_csv.test | 4 +- .../nested/array/array_roundtrip_json.test | 4 +- .../nested/array/array_roundtrip_parquet.test | 4 +- .../types/nested/array/array_rowgroup.test | 4 +- .../sql/types/nested/array/array_simple.test | 4 +- .../types/nested/array/array_statistics.test | 4 +- .../types/nested/array/array_storage_3.test | 4 +- .../types/nested/array/array_summarize.test | 4 +- .../types/nested/array/array_try_cast.test | 4 +- .../array/array_try_cast_vector_types.test | 4 +- .../types/nested/array/array_tupleformat.test | 4 +- .../sql/types/nested/array/array_unnest.test | 4 +- .../nested/array/array_value_comparison.test | 4 +- .../array/tuple_with_array_row_layout.test | 57 +++ .../sql/types/nested/list/any_list.test | 4 +- .../corpus/sql/types/nested/list/array.test | 4 +- .../sql/types/nested/list/array_agg.test | 4 +- .../nested/list/internal_issue_2457.test | 4 +- .../nested/list/list_aggr_parameter.test | 4 +- .../nested/list/list_aggregate_dict.test | 4 +- .../types/nested/list/list_aggregates.test | 4 +- .../nested/list/list_cast_child_offset.test | 4 +- .../list/list_comparison_stale_positions.test | 8 +- .../sql/types/nested/list/list_subquery.test | 4 +- .../list/nested_comparison_null_children.test | 4 +- .../types/nested/list/test_list_extract.test | 4 +- ...test_list_functions_with_null_structs.test | 4 +- .../types/nested/list/test_list_index.test | 4 +- .../types/nested/list/test_list_slice.test | 4 +- .../list/test_list_slice_negative_step.test | 4 +- .../list/test_list_slice_numeric_limits.test | 4 +- .../nested/list/test_list_slice_step.test | 4 +- .../types/nested/list/test_nested_list.test | 4 +- .../types/nested/list/test_scalar_list.test | 4 +- .../sql/types/nested/map/map_error.test | 4 +- .../nested/map/map_from_entries/column.test | 4 +- .../map_from_entries/column_null_entry.test | 4 +- .../map/map_from_entries/data_types.test | 4 +- .../map_from_entries/dictionary_vector.test | 4 +- .../nested/map/map_from_entries/empty.test | 4 +- .../nested/map/map_from_entries/invalid.test | 4 +- .../nested/map/map_from_entries/nested.test | 4 +- .../nested/map/map_from_entries/null.test | 4 +- .../map/map_from_entries/null_entry.test | 4 +- .../corpus/sql/types/nested/map/test_map.test | 4 +- .../nested/map/test_map_and_lambdas.test | 4 +- .../nested/map/test_map_cardinality.test | 4 +- .../sql/types/nested/map/test_map_concat.test | 4 +- .../types/nested/map/test_map_constant.test | 4 +- .../types/nested/map/test_map_contains.test | 4 +- .../types/nested/map/test_map_entries.test | 4 +- .../sql/types/nested/map/test_map_keys.test | 4 +- .../nested/map/test_map_nested_keys.test | 4 +- .../types/nested/map/test_map_subscript.test | 4 +- .../map/test_map_subscript_composite.test | 4 +- .../map/test_map_subscript_from_column.test | 4 +- .../map/test_map_subscript_vector_types.test | 4 +- .../nested/map/test_map_subscript_where.test | 4 +- .../sql/types/nested/map/test_map_values.test | 4 +- .../nested/map/test_map_vector_types.test | 4 +- .../nested/map/test_null_map_interaction.test | 4 +- .../nested/nested_constant_comparison.test | 4 +- .../sql/types/nested/nested_nested_types.test | 4 +- .../nested/struct/struct_aggregates.test | 4 +- .../struct/struct_aggregates_types.test | 4 +- .../sql/types/nested/struct/struct_dict.test | 4 +- .../types/nested/struct/struct_is_null.test | 4 +- .../nested/struct/struct_of_lists_where.test | 4 +- .../types/nested/struct/struct_subquery.test | 4 +- .../sql/types/nested/struct/test_struct.test | 4 +- .../types/nested/struct/test_struct_keys.test | 4 +- .../nested/struct/test_struct_values.test | 4 +- .../nested/test_deeply_nested_types.test | 12 +- .../sql/types/nested/unnest_range_plan.test | 4 +- .../sql/types/null/test_boolean_null.test | 4 +- .../corpus/sql/types/null/test_is_null.test | 4 +- .../corpus/sql/types/null/test_null.test | 4 +- .../corpus/sql/types/null/test_null_aggr.test | 4 +- .../corpus/sql/types/null/test_null_cast.test | 4 +- .../numeric/arithmetic_vector_types.test | 4 +- .../sql/types/numeric/bigint_try_cast.test | 4 +- .../corpus/sql/types/numeric/bool_casts.test | 8 +- .../combinations/decimal_combinations.test | 4 +- .../combinations/usmallint_combinations.test | 4 +- .../combinations/utinyint_combinations.test | 4 +- .../sql/types/numeric/float_precision.test | 4 +- .../sql/types/numeric/hugeint_try_cast.test | 4 +- .../sql/types/numeric/integer_try_cast.test | 4 +- .../sql/types/numeric/smallint_try_cast.test | 4 +- .../sql/types/numeric/test_empty_numeric.test | 4 +- .../sql/types/numeric/tinyint_try_cast.test | 4 +- .../numeric/ubigint_arithmetic_casting.test | 4 +- .../sql/types/numeric/ubigint_try_cast.test | 4 +- .../sql/types/numeric/uhugeint_try_cast.test | 4 +- .../sql/types/numeric/uinteger_try_cast.test | 4 +- .../sql/types/numeric/usmallint_try_cast.test | 4 +- .../sql/types/numeric/utinyint_try_cast.test | 4 +- .../sql/types/string/test_big_strings.test | 4 +- .../corpus/sql/types/string/test_unicode.test | 4 +- .../struct/create_qualified_type_array.test | 4 +- .../sql/types/struct/create_type_struct.test | 4 +- .../corpus/sql/types/struct/empty_struct.test | 4 +- .../sql/types/struct/empty_tuple_storage.test | 4 +- .../types/struct/inet_struct_comparison.test | 4 +- .../nested_struct_projection_pushdown.test | 4 +- .../sql/types/struct/nested_structs.test | 4 +- .../corpus/sql/types/struct/remap_struct.test | 4 +- .../struct/remap_struct_constant_nested.test | 4 +- .../struct/remap_struct_duplicate_source.test | 17 + .../types/struct/remap_struct_in_list.test | 4 +- .../sql/types/struct/remap_struct_in_map.test | 4 +- .../struct/remap_struct_list_source_name.test | 4 +- .../struct/remap_struct_mapping_type.test | 17 + .../struct/remap_struct_nested_default.test | 17 + .../sql/types/struct/remap_struct_size.test | 4 +- .../corpus/sql/types/struct/struct_case.test | 4 +- .../struct/struct_case_insensitivity.test | 4 +- .../corpus/sql/types/struct/struct_cast.test | 4 +- .../struct/struct_cast_parent_path_order.test | 4 +- .../types/struct/struct_cast_superset.test | 4 +- .../sql/types/struct/struct_comparison.test | 4 +- .../sql/types/struct/struct_concat.test | 4 +- .../sql/types/struct/struct_contains.test | 4 +- .../types/struct/struct_contains_types.test | 4 +- .../types/struct/struct_cross_product.test | 4 +- .../types/struct/struct_different_names.test | 4 +- .../sql/types/struct/struct_distinct.test | 4 +- .../sql/types/struct/struct_equality_bug.test | 4 +- .../types/struct/struct_extract_variant.test | 37 ++ .../corpus/sql/types/struct/struct_index.test | 4 +- .../struct_key_collation_and_combine.test | 17 + .../sql/types/struct/struct_named_cast.test | 4 +- .../sql/types/struct/struct_null_members.test | 4 +- .../sql/types/struct/struct_operations.test | 4 +- .../sql/types/struct/struct_pack_list.test | 4 +- .../sql/types/struct/struct_position.test | 4 +- .../struct/struct_projection_pushdown.test | 4 +- ...struct_projection_pushdown_in_storage.test | 4 +- ...uct_projection_pushdown_optimizer_bug.test | 4 +- .../struct_projection_pushdown_unnamed.test | 4 +- .../struct/struct_search_physical_types.test | 4 +- .../corpus/sql/types/struct/struct_stats.test | 4 +- .../sql/types/struct/struct_subquery.test | 4 +- .../sql/types/struct/struct_tables.test | 4 +- .../types/struct/struct_unnest_recursion.test | 4 +- .../sql/types/struct/struct_updates.test | 4 +- .../struct_variant_projection_pushdown.test | 41 ++ .../corpus/sql/types/struct/test_tuple.test | 4 +- .../struct/tuple_old_storage_attach.test | 33 ++ .../types/struct/unnamed_struct_casts.test | 4 +- .../struct/unnamed_struct_comparison.test | 4 +- .../sql/types/struct/unnamed_struct_mix.test | 4 +- .../types/struct/unnamed_struct_to_tuple.test | 4 +- .../sql/types/struct/unnest_column_names.test | 4 +- .../sql/types/struct/unnest_struct.test | 4 +- .../sql/types/struct/unnest_struct_mix.test | 4 +- .../types/struct/unnest_struct_subquery.test | 4 +- .../sql/types/struct/update_empty_row.test | 4 +- .../corpus/sql/types/test_date_cast.test | 4 +- .../test_interval_negation_overflow.test | 4 +- .../corpus/sql/types/test_null_type.test | 4 +- .../sql/types/test_qualified_type_cast.test | 4 +- .../corpus/sql/types/test_quotes.test | 4 +- .../corpus/sql/types/test_typeof.test | 4 +- .../types/test_user_type_errors_18452.test | 4 +- .../corpus/sql/types/time/test_time.test | 4 +- .../corpus/sql/types/time/test_time_2411.test | 4 +- .../corpus/sql/types/time/test_time_ns.test | 4 +- .../corpus/sql/types/time/test_time_tz.test | 4 +- .../sql/types/time/test_time_tz_collate.test | 4 +- .../sql/types/time/test_time_tz_icu.test | 12 +- .../sql/types/time/time_beyond_day.test | 20 +- .../types/time/time_cast_trailing_text.test | 163 ++++++++ .../time/time_cast_trailing_text_icu.test | 21 + .../corpus/sql/types/time/time_limits.test | 4 +- .../corpus/sql/types/time/time_parsing.test | 22 +- .../corpus/sql/types/time/time_try_cast.test | 4 +- .../sql/types/time/timetz_minmax_order.test | 8 +- .../alternative_timestamp_casts.test | 4 +- .../sql/types/timestamp/bc_timestamp.test | 4 +- .../timestamp/infinity_cast_coverage.test | 4 +- .../timestamp/test_incorrect_timestamp.test | 4 +- .../types/timestamp/test_infinite_time.test | 4 +- .../sql/types/timestamp/test_timestamp.test | 4 +- .../types/timestamp/test_timestamp_2411.test | 4 +- .../test_timestamp_auto_casting.test | 4 +- .../types/timestamp/test_timestamp_ms.test | 4 +- ...amp_round_to_lower_precision_overflow.test | 45 ++ .../timestamp/test_timestamp_to_tz_cast.test | 4 +- .../types/timestamp/test_timestamp_types.test | 4 +- .../types/timestamp/test_timestamp_tz.test | 4 +- .../sql/types/timestamp/timestamp_limits.test | 12 +- .../timestamp_ms_timestamptz_mixing.test | 4 +- .../timestamp/timestamp_ns_interval_add.test | 165 ++++++++ .../timestamp/timestamp_ns_lower_bound.test | 4 +- .../timestamp_offset_boundaries.test | 4 +- .../types/timestamp/timestamp_precision.test | 4 +- .../timestamp_round_out_of_range.test | 12 +- .../timestamp_time_of_day_overflow.test | 4 +- .../timestamp/timestamp_timezone_cast.test | 4 +- .../types/timestamp/timestamp_try_cast.test | 4 +- .../types/timestamp/timestamptz_ns_casts.test | 8 +- ...timestamptz_ns_timestamptz_comparison.test | 46 +++ .../sql/types/timestamp/utc_offset.test | 4 +- .../sql/types/type/test_make_get_type.test | 4 +- .../sql/types/type/test_type_storage.test | 4 +- .../type_constructor_error_location.test | 4 +- .../corpus/sql/types/type_constructors.test | 4 +- .../sql/types/type_expression_roundtrip.test | 4 +- .../corpus/sql/types/type_literal.test | 4 +- .../uhugeint/test_uhugeint_aggregates.test | 4 +- .../uhugeint/test_uhugeint_arithmetic.test | 4 +- .../uhugeint/test_uhugeint_auto_cast.test | 4 +- .../uhugeint/test_uhugeint_conversion.test | 4 +- .../uhugeint/test_uhugeint_exponent.test | 4 +- .../uhugeint/test_uhugeint_functions.test | 4 +- .../uhugeint/test_uhugeint_null_value.test | 4 +- .../sql/types/uhugeint/test_uhugeint_ops.test | 4 +- .../sql/types/uhugeint/uhugeint_literal.test | 4 +- .../sql/types/uhugeint/uhugeint_multiply.test | 4 +- .../uhugeint/uhugeint_subtract_overflow.test | 72 ++++ .../sql/types/uhugeint/uhugeint_try_cast.test | 4 +- .../sql/types/union/struct_to_json_union.test | 4 +- .../sql/types/union/struct_to_union.test | 4 +- .../types/union/struct_to_union_try_cast.test | 35 +- .../sql/types/union/union_aggregate.test | 4 +- .../sql/types/union/union_ambiguous.test | 4 +- .../corpus/sql/types/union/union_cast.test | 4 +- .../sql/types/union/union_common_type.test | 33 ++ .../corpus/sql/types/union/union_compare.test | 4 +- .../corpus/sql/types/union/union_extract.test | 4 +- .../corpus/sql/types/union/union_join.test | 4 +- .../sql/types/union/union_limit_offset.test | 4 +- .../corpus/sql/types/union/union_limits.test | 4 +- .../corpus/sql/types/union/union_list.test | 4 +- .../union/union_list_empty_to_varchar.test | 4 +- .../corpus/sql/types/union/union_sort.test | 4 +- .../corpus/sql/types/union/union_struct.test | 4 +- .../corpus/sql/types/union/union_tag.test | 4 +- .../corpus/sql/types/union/union_test.test | 4 +- .../union/union_try_cast_member_failure.test | 4 +- .../sql/types/union/union_validity.test | 4 +- .../corpus/sql/types/union/union_value.test | 4 +- .../unsigned/test_unsigned_arithmetic.test | 4 +- .../unsigned/test_unsigned_auto_cast.test | 4 +- .../unsigned/test_unsigned_conversion.test | 4 +- .../types/unsigned/test_unsigned_verify.test | 4 +- .../corpus/sql/types/uuid/test_uuid_cast.test | 4 +- .../types/uuid/test_uuid_uhugeint_cast.test | 4 +- .../variant/debug_shred_empty_object.test | 4 +- .../variant/implicit_cast_from_variant.test | 4 +- .../corpus/sql/types/variant/json_cast.test | 4 +- .../sql/types/variant/json_cast_depth.test | 40 ++ .../types/variant/json_cast_depth_thread.test | 13 + .../list_to_variant_null_after_value.test | 4 +- .../variant/map_extract_variant_values.test | 4 +- .../sql/types/variant/test_all_types.test | 4 +- .../test_variant_list_copy_shredded.test | 4 +- .../corpus/sql/types/variant/tpch_test.test | 4 +- .../types/variant/tpch_test_through_json.test | 4 +- .../types/variant/try_cast_from_variant.test | 4 +- .../variant/try_cast_nested_list_writer.test | 4 +- .../variant_binary_duplicate_keys.test | 4 +- .../variant/variant_cast_parameter_stats.test | 4 +- .../variant_cast_parent_path_order.test | 4 +- .../sql/types/variant/variant_cast_stats.test | 4 +- .../variant/variant_cast_stats_json.test | 4 +- .../types/variant/variant_cast_type_null.test | 102 +++++ .../variant/variant_cast_tz_from_string.test | 4 +- .../sql/types/variant/variant_casts.test | 4 +- .../variant/variant_decimal_arithmetic.test | 4 +- .../sql/types/variant/variant_distinct.test | 4 +- .../variant_extract_json_cast_shredded.test | 8 +- .../sql/types/variant/variant_icu_casts.test | 4 +- .../variant_map_to_variant_filter.test | 4 +- .../variant/variant_object_key_order.test | 4 +- .../variant_object_key_order_json.test | 4 +- .../variant/variant_stats_merge_decimal.test | 4 +- ...variant_struct_cast_parent_projection.test | 4 +- .../variant_struct_field_subquery.test | 4 +- ...ant_struct_field_subquery_cast_parent.test | 4 +- .../variant/variant_to_array_try_cast.test | 4 +- .../types/variant/variant_to_json_null.test | 4 +- .../types/variant/variant_to_map_cast.test | 4 +- .../sql/unnest/list_constant_reference.test | 4 +- .../sql/update/compact_update_allocation.test | 4 +- .../force_update_to_del_and_insert.test | 4 +- .../corpus/sql/update/issue_22392.test | 4 +- .../corpus/sql/update/null_update_merge.test | 4 +- .../update/null_update_merge_transaction.test | 4 +- .../sql/update/string_update_null_heap.test | 4 +- .../string_update_transaction_local_7348.test | 4 +- .../sql/update/test_big_string_update.test | 4 +- .../sql/update/test_cascading_updates.test | 4 +- .../sql/update/test_multiple_assignment.test | 4 +- .../corpus/sql/update/test_null_update.test | 4 +- .../update/test_repeated_string_update.test | 4 +- .../test_stress_update_issue_19688.test | 4 +- .../corpus/sql/update/test_string_update.test | 4 +- .../test_string_update_many_strings.test | 4 +- .../sql/update/test_string_update_null.test | 4 +- .../update/test_string_update_rollback.test | 4 +- .../test_string_update_rollback_null.test | 4 +- .../corpus/sql/update/test_update.test | 4 +- .../update/test_update_delete_same_tuple.test | 4 +- .../corpus/sql/update/test_update_from.test | 12 +- .../sql/update/test_update_issue_3170.test | 4 +- .../sql/update/test_update_many_updaters.test | 4 +- .../test_update_many_updaters_nulls.test | 4 +- .../corpus/sql/update/test_update_mix.test | 4 +- .../sql/update/test_update_same_value.test | 4 +- .../test_update_with_non_regular_type.test | 4 +- .../sql/update/update_after_commit.test | 4 +- .../corpus/sql/update/update_default.test | 4 +- .../corpus/sql/update/update_delete_wal.test | 4 +- .../sql/update/update_error_suggestions.test | 4 +- .../sql/update/update_from_multi_match.test | 245 ----------- .../corpus/sql/update/update_join_nulls.test | 4 +- .../sql/update/update_null_integers.test | 4 +- .../corpus/sql/update/update_query_node.test | 4 +- .../update_string_null_merge_dict_fsst.test | 4 +- .../corpus/sql/update/update_tuple.test | 4 +- .../upsert/concurrent_insert_or_replace.test | 4 +- .../insert_or_replace/generated_column.test | 4 +- .../issue_20952_non_pk_index_column.test | 4 +- .../pk_and_non_unique_index.test | 4 +- .../upsert/insert_or_replace/returning.test | 4 +- .../insert_or_replace/returning_nothing.test | 4 +- .../unique_and_non_unique_index.test | 4 +- .../insert_or_replace/unique_constraint.test | 4 +- .../insert_or_replace/unique_index.test | 4 +- .../upsert/minimal_reproducable_example.test | 4 +- .../corpus/sql/upsert/no_complex_default.test | 4 +- .../upsert/on_conflict_null_unique_key.test | 77 ++++ .../sql/upsert/postgres/composite_key.test | 4 +- .../non_spurious_duplicate_violation.test | 4 +- .../postgres/planner_preprocessing.test | 4 +- .../sql/upsert/postgres/single_key.test | 4 +- .../corpus/sql/upsert/test_big_insert.test | 4 +- ...est_big_insert_no_vector_verification.test | 4 +- .../sql/upsert/test_generated_column.test | 4 +- ...est_problematic_conditional_do_update.test | 4 +- .../corpus/sql/upsert/upsert_aliased.test | 4 +- .../corpus/sql/upsert/upsert_basic.test | 4 +- .../sql/upsert/upsert_conflict_key_type.test | 353 ++++++++++++++++ .../upsert/upsert_conflict_key_type_json.test | 29 ++ .../sql/upsert/upsert_conflict_target.test | 4 +- .../upsert/upsert_conflict_target_index.test | 4 +- .../corpus/sql/upsert/upsert_coverage.test | 4 +- .../corpus/sql/upsert/upsert_default.test | 4 +- .../upsert/upsert_default_expressions.test | 4 +- .../upsert_default_value_causes_conflict.test | 4 +- .../sql/upsert/upsert_default_values.test | 4 +- .../sql/upsert/upsert_distinct_bug.test | 4 +- .../sql/upsert/upsert_duplicates_issue.test | 4 +- .../upsert/upsert_excluded_references.test | 4 +- .../sql/upsert/upsert_explicit_index.test | 4 +- .../upsert/upsert_global_mixed_conflicts.test | 4 +- .../upsert_inner_conflict_do_nothing.test | 4 +- .../corpus/sql/upsert/upsert_lambda.test | 4 +- .../sql/upsert/upsert_local_no_tuples.test | 4 +- .../upsert/upsert_multiple_constraints.test | 4 +- .../sql/upsert/upsert_order_coverage.test | 4 +- .../sql/upsert/upsert_partial_update.test | 4 +- .../corpus/sql/upsert/upsert_returning.test | 4 +- .../sql/upsert/upsert_set_expressions.test | 4 +- .../corpus/sql/upsert/upsert_shorthand.test | 4 +- .../corpus/sql/upsert/upsert_transaction.test | 4 +- .../corpus/sql/upsert/upsert_unique_null.test | 4 +- .../corpus/sql/vacuum/test_analyze.test | 4 +- .../sql/vacuum/vacuum_nested_types.test | 4 +- .../sql/variables/test_variable_syntax.test | 4 +- .../corpus/sql/variables/test_variables.test | 12 +- .../sql/variant/variant_comparator.test | 4 +- .../sql/variant/variant_nested_arrays.test | 4 +- .../sql/vector_types/list_vector_types.test | 4 +- .../sql/vector_types/vector_types_errors.test | 4 +- .../window/parallel_collection_combine.test | 4 +- .../sql/window/segment_tree_leaf_batches.test | 4 +- .../corpus/sql/window/test_basic_window.test | 4 +- .../corpus/sql/window/test_boundary_expr.test | 4 +- .../sql/window/test_constant_orderby.test | 4 +- .../sql/window/test_cume_dist_orderby.test | 4 +- .../corpus/sql/window/test_dense_rank.test | 4 +- .../test_dense_rank_empty_union_branch.test | 26 ++ .../sql/window/test_duplicate_partition.test | 4 +- .../corpus/sql/window/test_empty_frames.test | 4 +- .../corpus/sql/window/test_evil_window.test | 4 +- .../sql/window/test_fill_logical_range.test | 53 +++ .../corpus/sql/window/test_fill_orderby.test | 4 +- .../sql/window/test_fill_physical_types.test | 4 +- .../sql/window/test_fill_prefix_order.test | 4 +- .../corpus/sql/window/test_ignore_nulls.test | 4 +- .../sql/window/test_invalid_window.test | 4 +- ...est_last_ignore_nulls_large_partition.test | 4 +- .../corpus/sql/window/test_lead_lag.test | 4 +- .../window/test_lead_lag_offset_overflow.test | 4 +- .../sql/window/test_leadlag_orderby.test | 4 +- .../corpus/sql/window/test_list_window.test | 4 +- .../corpus/sql/window/test_mad_window.test | 4 +- .../corpus/sql/window/test_mode_window.test | 4 +- .../sql/window/test_mode_window_varlen.test | 4 +- .../sql/window/test_naive_aggregation.test | 4 +- .../sql/window/test_negative_range.test | 4 +- .../window/test_no_default_window_spec.test | 4 +- .../corpus/sql/window/test_nthvalue.test | 4 +- .../corpus/sql/window/test_ntile.test | 4 +- .../corpus/sql/window/test_order_by_all.test | 4 +- .../window/test_parallel_group_cleanup.test | 4 +- .../test_partition_constant_arguments.test | 4 +- .../sql/window/test_quantile_skip_list.test | 4 +- .../sql/window/test_quantile_window.test | 4 +- .../sql/window/test_range_optimisation.test | 4 +- .../testdata/corpus/sql/window/test_rank.test | 4 +- .../corpus/sql/window/test_rank_orderby.test | 4 +- .../sql/window/test_rownumber_orderby.test | 4 +- .../corpus/sql/window/test_scalar_window.test | 4 +- .../window/test_single_following_frame.test | 4 +- .../sql/window/test_split_partition_heap.test | 4 +- .../sql/window/test_streaming_lead_lag.test | 20 +- .../sql/window/test_streaming_nthvalue.test | 12 +- .../sql/window/test_streaming_window.test | 4 +- .../test_streaming_window_distinct.test | 4 +- .../corpus/sql/window/test_thread_count.test | 4 +- .../corpus/sql/window/test_tpcc_results.test | 4 +- .../corpus/sql/window/test_tpcds_q49.test | 4 +- .../corpus/sql/window/test_value_exclude.test | 4 +- .../corpus/sql/window/test_value_orderby.test | 4 +- .../window/test_volatile_independence.test | 4 +- .../corpus/sql/window/test_wide_orderby.test | 4 +- .../test_window_agg_stats_propagation.test | 4 +- .../window/test_window_aggregate_macro.test | 4 +- .../sql/window/test_window_binding.test | 4 +- .../sql/window/test_window_binding_ctes.test | 4 +- .../corpus/sql/window/test_window_bool.test | 4 +- .../corpus/sql/window/test_window_clause.test | 4 +- .../sql/window/test_window_clause_scope.test | 4 +- .../test_window_constant_aggregate.test | 4 +- .../test_window_constant_allocator.test | 4 +- .../corpus/sql/window/test_window_cse.test | 4 +- .../corpus/sql/window/test_window_dbplyr.test | 4 +- .../sql/window/test_window_distinct.test | 4 +- .../test_window_exclude_state_destructor.test | 4 +- .../corpus/sql/window/test_window_filter.test | 4 +- .../sql/window/test_window_finalize_race.test | 4 +- .../corpus/sql/window/test_window_fusion.test | 4 +- .../sql/window/test_window_interval.test | 4 +- .../sql/window/test_window_order_collate.test | 4 +- .../corpus/sql/window/test_window_rows.test | 4 +- .../test_window_segment_tree_error.test | 4 +- .../sql/window/test_window_string_agg.test | 4 +- .../corpus/sql/window/test_window_tpcds.test | 4 +- .../corpus/sql/window/test_window_types.test | 4 +- .../sql/window/test_window_unnest_error.test | 4 +- .../sql/window/test_window_value_edges.test | 4 +- .../sql/window/test_window_wisconsin.test | 4 +- .../sql/window/window_distinct_build_oom.test | 28 ++ .../window/window_distinct_memory_limit.test | 4 +- .../window/window_expression_comparison.test | 4 +- .../window_fallible_scalarized_aggregate.test | 15 + .../corpus/sql/window/window_mtcars.test | 4 +- 5428 files changed, 42417 insertions(+), 10924 deletions(-) create mode 100644 parser/testdata/corpus/sql/aggregate/aggregate_state_export/aggregate_state_union.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_timestamp_export_state.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_empty_state.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_distinct.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/summarize_nanosecond_types.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timetz.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_avg_timestamp_infinity.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_decimal_aggregate_named_argument.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_precision.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_double.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timestamp_exact.test create mode 100644 parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_sampling.test create mode 100644 parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_order_by_keys.test create mode 100644 parser/testdata/corpus/sql/aggregate/group/group_by_all_collation.test create mode 100644 parser/testdata/corpus/sql/aggregate/group/group_by_all_having_groups.test create mode 100644 parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_range.test create mode 100644 parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_wrapped_id.test create mode 100644 parser/testdata/corpus/sql/aggregate/grouping_sets/many_duplicate_grouping_sets.test create mode 100644 parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_create_index.test create mode 100644 parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_null.test create mode 100644 parser/testdata/corpus/sql/alter/alter_table_if_exists_tostring.test create mode 100644 parser/testdata/corpus/sql/alter/struct/add_col_struct_column_default.test create mode 100644 parser/testdata/corpus/sql/attach/attach_detach_in_transaction.test create mode 100644 parser/testdata/corpus/sql/attach/attach_detach_same_name_transaction.test create mode 100644 parser/testdata/corpus/sql/attach/attach_ducklake_metadata_warning.test create mode 100644 parser/testdata/corpus/sql/attach/attach_encrypted_storage_version.test create mode 100644 parser/testdata/corpus/sql/attach/attach_encrypted_v1_4_file.test create mode 100644 parser/testdata/corpus/sql/attach/attach_mmap_reserve_size_range.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_external_access.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_show_subquery.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_show_types.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_show_with_type.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_type_autoload.test create mode 100644 parser/testdata/corpus/sql/attach/external_resource_type_dotted.test create mode 100644 parser/testdata/corpus/sql/cast/boolean_to_decimal_cast.test create mode 100644 parser/testdata/corpus/sql/cast/decimal_hugeint_zero_to_double.test create mode 100644 parser/testdata/corpus/sql/cast/double_to_varchar_shortest.test create mode 100644 parser/testdata/corpus/sql/cast/nested_union_variant_to_varchar_quoting.test create mode 100644 parser/testdata/corpus/sql/cast/struct_cast_can_throw.test create mode 100644 parser/testdata/corpus/sql/cast/struct_from_string_duplicate_keys.test create mode 100644 parser/testdata/corpus/sql/cast/struct_to_map_null_cast.test create mode 100644 parser/testdata/corpus/sql/cast/try_cast_union_impossible.test create mode 100644 parser/testdata/corpus/sql/catalog/comment_on_sequence_counter.test create mode 100644 parser/testdata/corpus/sql/catalog/dependencies/test_drop_type_table_dependency.test create mode 100644 parser/testdata/corpus/sql/catalog/function/test_macro_parameter_named_argument.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_index.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_sequence.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_foreign_key_paths.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_main_schema.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_missing_entries.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_search_path.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path_catalog.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_show_all_tables.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_show_tables.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_attached.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_catalog.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema_ctas.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema_ctas_persistence.test create mode 100644 parser/testdata/corpus/sql/catalog/nested_schema_ctas_temp.test create mode 100644 parser/testdata/corpus/sql/catalog/sequence/sequence_int64_limit.test create mode 100644 parser/testdata/corpus/sql/catalog/sequence/sequence_wal_last_value_concurrent.test create mode 100644 parser/testdata/corpus/sql/catalog/system_functions/system_catalog_entry_pushdown.test create mode 100644 parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner.test create mode 100644 parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner_fallible_filters.test create mode 100644 parser/testdata/corpus/sql/collate/collate_group_by_all.test create mode 100644 parser/testdata/corpus/sql/collate/collate_group_subquery.test create mode 100644 parser/testdata/corpus/sql/collate/collate_json_ordered_aggregate.test create mode 100644 parser/testdata/corpus/sql/collate/icu_sort_key_language_tags.test create mode 100644 parser/testdata/corpus/sql/collate/test_collate_list_has_any_all.test create mode 100644 parser/testdata/corpus/sql/collate/test_default_collation_functions.test create mode 100644 parser/testdata/corpus/sql/conjunction/or_select_order.test create mode 100644 parser/testdata/corpus/sql/connect/connect_failure_keeps_local_transaction.test create mode 100644 parser/testdata/corpus/sql/connect/disconnect_aborted_transaction.test create mode 100644 parser/testdata/corpus/sql/constraints/foreignkey/fk_alter_preserves_parent_dependency.test create mode 100644 parser/testdata/corpus/sql/copy/copy_to_attached_database_path.test create mode 100644 parser/testdata/corpus/sql/copy/csv/csv_comment_quoted_sniff.test create mode 100644 parser/testdata/corpus/sql/copy/csv/csv_last_value_error_no_newline.test create mode 100644 parser/testdata/corpus/sql/copy/csv/csv_quoted_buffer_boundary.test create mode 100644 parser/testdata/corpus/sql/copy/csv/csv_unterminated_quote_cast_error_eof.test create mode 100644 parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_invalid_utf8_nested.test create mode 100644 parser/testdata/corpus/sql/copy/csv/sniff_csv_skip_overflow.test create mode 100644 parser/testdata/corpus/sql/copy/csv/test_unregistered_compression.test create mode 100644 parser/testdata/corpus/sql/copy/csv/test_utf16_surrogate_pairs.test create mode 100644 parser/testdata/corpus/sql/copy/file_rotation_preserve_order.test create mode 100644 parser/testdata/corpus/sql/copy/filename_pattern_serialization.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval_saturated.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/bloom_filter_pruned_row_groups.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/concurrent_add_parquet_key.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/crafted_rowgroup_huge_columns.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/int96_invalid_stats.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/issue_27456_constant_stats.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/multi_file_max_files_for_stats.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache_disabled.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_prefetch.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_read.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_reference.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_robustness.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/page_index/page_index_write.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_metadata.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_deeply_nested_list.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_delta_byte_array_length_overflow.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_empty_enum.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_encryption_null_key.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_field_ids_invalid.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_footer_size_option.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_given_schema_cardinality.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache_list.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_int96_out_of_range.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_interval_dictionary.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_metadata_prepared.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_nan_setting.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_negative_chunk_size.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_pruned_first_file_cardinality.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_pushdown_extract_nested_cast.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_default_only_struct.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_hive_partitioning.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_cast_chain.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_missing.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_nested_default.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_types.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_short_decompress.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_timestamptz_ns_as_timestamp.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/parquet_wrong_geometry_types.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_budget_growth.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning_nulls_first.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit_threads.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/read_ahead/recheck_prefetch_log.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/union_by_name_statistics_lookup.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/union_by_name_varchar_blob.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/variant_binary_as_string_stats.test create mode 100644 parser/testdata/corpus/sql/copy/parquet/variant_deep_nesting.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/integer_partitioned_write.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_full_outer_hash_join.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_iejoin.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_outer_asof_join.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_write_batch_limits.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_written_batch_bytes.test create mode 100644 parser/testdata/corpus/sql/copy/partitioned/partitioned_written_key_edges.test create mode 100644 parser/testdata/corpus/sql/copy/return_column_types.test create mode 100644 parser/testdata/corpus/sql/copy/return_stats_all_null_row_group.test create mode 100644 parser/testdata/corpus/sql/copy_database/copy_database_system_catalog.test create mode 100644 parser/testdata/corpus/sql/create/create_table_as_no_data_limit.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle_demotion.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_27925.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_runtime_filter.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_nested_buffered_consumer_cycle.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_effects.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_modes.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_selection.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_sibling_dependencies.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_runtime_filters.test create mode 100644 parser/testdata/corpus/sql/cte/materialized/cte_streaming_over_materialization.test create mode 100644 parser/testdata/corpus/sql/cte/recursive_cte_key_aggregate_subquery.test create mode 100644 parser/testdata/corpus/sql/delete/delete_using_duplicate_local_rows.test create mode 100644 parser/testdata/corpus/sql/error/error_location_copied_query.test create mode 100644 parser/testdata/corpus/sql/error/identifier_quoting_in_messages.test create mode 100644 parser/testdata/corpus/sql/error/test_try_common_subexpression.test create mode 100644 parser/testdata/corpus/sql/error/test_try_constant_regex.test create mode 100644 parser/testdata/corpus/sql/error/test_try_in_clause.test create mode 100644 parser/testdata/corpus/sql/export/export_legacy_options.test create mode 100644 parser/testdata/corpus/sql/export/import_database_non_copy_load.test create mode 100644 parser/testdata/corpus/sql/extensions/extension_repository_from_host.test create mode 100644 parser/testdata/corpus/sql/extensions/extension_repository_from_host_httpfs.test create mode 100644 parser/testdata/corpus/sql/extensions/extension_repository_from_host_no_httpfs.test create mode 100644 parser/testdata/corpus/sql/filter/between_nested_exponential.test create mode 100644 parser/testdata/corpus/sql/filter/disjunctive_compressed_filter.test create mode 100644 parser/testdata/corpus/sql/function/array/array_size_mismatch_argument.test create mode 100644 parser/testdata/corpus/sql/function/autocomplete/nested_parentheses.test create mode 100644 parser/testdata/corpus/sql/function/blob/from_base64_padding.test create mode 100644 parser/testdata/corpus/sql/function/blob/from_base64_padding_order.test create mode 100644 parser/testdata/corpus/sql/function/comparison/between_nested_types.test create mode 100644 parser/testdata/corpus/sql/function/date/test_epoch_ns_try.test create mode 100644 parser/testdata/corpus/sql/function/date/week_parts_minimum_date.test create mode 100644 parser/testdata/corpus/sql/function/generic/constant_argument_errors.test create mode 100644 parser/testdata/corpus/sql/function/generic/hash_comparison_keys.test create mode 100644 parser/testdata/corpus/sql/function/list/generate_series_timestamp_range_end.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/arrow/arrow_storage_before_v2.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_json.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_nested_schema.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/lambda_parameter_named_argument.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/reduce_try_empty.test create mode 100644 parser/testdata/corpus/sql/function/list/lambdas/reduce_volatile.test create mode 100644 parser/testdata/corpus/sql/function/list/list_concat_prepared_list_sort.test create mode 100644 parser/testdata/corpus/sql/function/list/list_contains_variant.test create mode 100644 parser/testdata/corpus/sql/function/list/list_grade_up_ties.test create mode 100644 parser/testdata/corpus/sql/function/list/list_resize_non_list.test create mode 100644 parser/testdata/corpus/sql/function/list/list_resize_variant.test create mode 100644 parser/testdata/corpus/sql/function/list/list_select_empty_child.test create mode 100644 parser/testdata/corpus/sql/function/numeric/bit_count_hugeint.test create mode 100644 parser/testdata/corpus/sql/function/numeric/round_null_beyond_width.test create mode 100644 parser/testdata/corpus/sql/function/numeric/setseed_pinned_values.test create mode 100644 parser/testdata/corpus/sql/function/numeric/test_mod_min_negative_one.test create mode 100644 parser/testdata/corpus/sql/function/numeric/test_modulo_min_by_minus_one.test create mode 100644 parser/testdata/corpus/sql/function/numeric/test_round_double_exact_midpoint.test create mode 100644 parser/testdata/corpus/sql/function/operator/test_comparison_function_call_types.test create mode 100644 parser/testdata/corpus/sql/function/operator/test_conjunction_nulls.test create mode 100644 parser/testdata/corpus/sql/function/string/hex_bignum.test create mode 100644 parser/testdata/corpus/sql/function/string/nfc_normalize.test create mode 100644 parser/testdata/corpus/sql/function/string/parse_formatted_bytes_exact.test create mode 100644 parser/testdata/corpus/sql/function/string/regex_replace_dictionary.test create mode 100644 parser/testdata/corpus/sql/function/string/test_glob_utf8.test create mode 100644 parser/testdata/corpus/sql/function/string/test_levenshtein_interrupt.test create mode 100644 parser/testdata/corpus/sql/function/string/test_similar_to_escape.test create mode 100644 parser/testdata/corpus/sql/function/string/test_similarity_utf8.test create mode 100644 parser/testdata/corpus/sql/function/string/test_split_empty_string.test create mode 100644 parser/testdata/corpus/sql/function/struct/struct_extract_null_struct.test create mode 100644 parser/testdata/corpus/sql/function/table/query_function_null.test create mode 100644 parser/testdata/corpus/sql/function/time/make_time_nan.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/date_trunc_fixed_overflow.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/icu_function_stability.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/strptime_timestamp_ns_range.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/strptime_year_day_366.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd_ns.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_icu_datepart_ns.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz_ns.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_timestamp_difference_range.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_timestamp_lower_bound.test create mode 100644 parser/testdata/corpus/sql/function/timestamp/test_try_strptime_special.test create mode 100644 parser/testdata/corpus/sql/index/art/create_drop/test_art_create_concurrently.test create mode 100644 parser/testdata/corpus/sql/index/art/create_index_time_zone_dependent.test create mode 100644 parser/testdata/corpus/sql/index/art/index_bind_failure_retry.test create mode 100644 parser/testdata/corpus/sql/index/art/scan/test_art_scan_local_rows_batch_index.test create mode 100644 parser/testdata/corpus/sql/index/art/storage/art_reloaded_buffer_initialization.test create mode 100644 parser/testdata/corpus/sql/index/art/storage/test_art_corrupt_pointer.test create mode 100644 parser/testdata/corpus/sql/index/art/storage/test_art_list_sort_checkpoint_on_close.test create mode 100644 parser/testdata/corpus/sql/index/index_key_collation.test create mode 100644 parser/testdata/corpus/sql/index/rollback_comment_on_index.test create mode 100644 parser/testdata/corpus/sql/join/asof/test_asof_join_collation_loop_join.test create mode 100644 parser/testdata/corpus/sql/join/asof/test_asof_join_list_partition_key.test create mode 100644 parser/testdata/corpus/sql/join/bloom_filter_rowid_deleted_rows.test create mode 100644 parser/testdata/corpus/sql/join/external/null_safe_runtime_filter_external.test create mode 100644 parser/testdata/corpus/sql/join/hash_join/dict_cache_computed_column.test create mode 100644 parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_computed_build.test create mode 100644 parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_reinterpret.test create mode 100644 parser/testdata/corpus/sql/join/hash_join/hash_join_nested_key_after_constant_key.test create mode 100644 parser/testdata/corpus/sql/join/iejoin/iejoin_outer_tail_predicate.test create mode 100644 parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter.test create mode 100644 parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_boundaries.test create mode 100644 parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_plan.test create mode 100644 parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_allnull_pruning.test create mode 100644 parser/testdata/corpus/sql/join/non_inner_join_subquery_pushdown.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys_plan.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_recursive_routes.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_route_effects.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_routes.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_routes_plan.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_row_number.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_scalar_pushdown.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_scheduling.test create mode 100644 parser/testdata/corpus/sql/join/runtime_filter_target_safety.test create mode 100644 parser/testdata/corpus/sql/json/copy_geojson_column_option_constant.test create mode 100644 parser/testdata/corpus/sql/json/copy_geojson_write_bbox_constant.test create mode 100644 parser/testdata/corpus/sql/json/issues/ndjson_parallel_bom.test create mode 100644 parser/testdata/corpus/sql/json/json_blob_roundtrip.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_arrow_chain_precedence.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_decimal_no_integer_digits.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_geometry_crs.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_path_quoted_keys.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_structure_deep.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_structure_depth.test create mode 100644 parser/testdata/corpus/sql/json/scalar/test_json_structure_iterative.test create mode 100644 parser/testdata/corpus/sql/json/table/json_table_in_out_threads.test create mode 100644 parser/testdata/corpus/sql/json/table/read_json_case_insensitive_keys.test create mode 100644 parser/testdata/corpus/sql/json/table/read_json_decimal.test create mode 100644 parser/testdata/corpus/sql/json/table/read_json_parallel_buffers.test create mode 100644 parser/testdata/corpus/sql/json/test_deserialize_at_clause.test create mode 100644 parser/testdata/corpus/sql/json/test_deserialize_function_validation.test create mode 100644 parser/testdata/corpus/sql/json/test_deserialize_window_frame.test create mode 100644 parser/testdata/corpus/sql/json/test_execute_serialized_prepared.test create mode 100644 parser/testdata/corpus/sql/json/test_json_deserialize_depth.test create mode 100644 parser/testdata/corpus/sql/json/test_json_deserialize_pointer.test create mode 100644 parser/testdata/corpus/sql/json/test_serialized_decimal_no_type_info.test create mode 100644 parser/testdata/corpus/sql/json/test_serialized_sample_options.test create mode 100644 parser/testdata/corpus/sql/json/test_serialized_value_out_of_range.test create mode 100644 parser/testdata/corpus/sql/logging/enable_logging_file_keeps_path.test create mode 100644 parser/testdata/corpus/sql/logging/logging_deprecated_names.test create mode 100644 parser/testdata/corpus/sql/logging/logging_scan_progress.test delete mode 100644 parser/testdata/corpus/sql/merge/merge_multi_match_error.test create mode 100644 parser/testdata/corpus/sql/optimizer/consistent_within_query_optimizations.test create mode 100644 parser/testdata/corpus/sql/optimizer/expression/test_between_tostring.test create mode 100644 parser/testdata/corpus/sql/optimizer/expression/test_empty_needle_dead_branch.test create mode 100644 parser/testdata/corpus/sql/optimizer/join_condition_verification_stats.test create mode 100644 parser/testdata/corpus/sql/optimizer/list_transform_row_group_pruning.test create mode 100644 parser/testdata/corpus/sql/optimizer/modulo_zonemap_pruning.test create mode 100644 parser/testdata/corpus/sql/optimizer/pushdown/pushdown_safe_decimal_cast.test create mode 100644 parser/testdata/corpus/sql/optimizer/remove_unused_columns_nested_struct_cast.test create mode 100644 parser/testdata/corpus/sql/optimizer/secure_view_fallible_functions.test create mode 100644 parser/testdata/corpus/sql/optimizer/secure_view_join_filter_pushdown.test create mode 100644 parser/testdata/corpus/sql/optimizer/secure_view_join_order.test create mode 100644 parser/testdata/corpus/sql/optimizer/self_join_aggregate.test create mode 100644 parser/testdata/corpus/sql/optimizer/struct_extract_cast_filter.test create mode 100644 parser/testdata/corpus/sql/optimizer/struct_extract_struct_pack_collation.test create mode 100644 parser/testdata/corpus/sql/optimizer/topn_window_elimination_computed_filter.test create mode 100644 parser/testdata/corpus/sql/optimizer/tuple_cast_pushdown.test create mode 100644 parser/testdata/corpus/sql/optimizer/variant_cast_pushdown_semantics.test create mode 100644 parser/testdata/corpus/sql/order/limit_percent_cardinality_overflow.test create mode 100644 parser/testdata/corpus/sql/parallelism/async_task_synchronous_batch.test create mode 100644 parser/testdata/corpus/sql/parser/columns_unpacked_empty.test create mode 100644 parser/testdata/corpus/sql/parser/negative_integer_literal_types.test create mode 100644 parser/testdata/corpus/sql/parser/parenthesized_table_ref.test create mode 100644 parser/testdata/corpus/sql/parser/qualified_table_function_reserved_keyword.test create mode 100644 parser/testdata/corpus/sql/parser/statement_query_text.test create mode 100644 parser/testdata/corpus/sql/parser/test_nested_subquery_depth.test create mode 100644 parser/testdata/corpus/sql/parser/tostring_load_export_quoting.test create mode 100644 parser/testdata/corpus/sql/parser/unicode_whitespace_error_position.test create mode 100644 parser/testdata/corpus/sql/pivot/pivot_aggregate_filter.test create mode 100644 parser/testdata/corpus/sql/pivot/pivot_in_cte.test create mode 100644 parser/testdata/corpus/sql/pivot/pivot_value_group_name_clash.test create mode 100644 parser/testdata/corpus/sql/pivot/unpivot_exclude_nulls_name_clash.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test.metadata.json create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test.metadata.json create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test.metadata.json create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test.metadata.json create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test.metadata.json create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_secure_view.test create mode 100644 parser/testdata/corpus/sql/pragma/profiling/test_profiling_operator_name.test create mode 100644 parser/testdata/corpus/sql/prepared/prepare_list_sort_untyped_parameter.test create mode 100644 parser/testdata/corpus/sql/prepared/prepare_nested_unresolved_parameter.test create mode 100644 parser/testdata/corpus/sql/prepared/prepare_query_function_parameters.test create mode 100644 parser/testdata/corpus/sql/prepared/prepared_rebind_macro_view.test create mode 100644 parser/testdata/corpus/sql/prepared/prepared_time_zone.test create mode 100644 parser/testdata/corpus/sql/prepared/prepared_time_zone_remote_catalog.test create mode 100644 parser/testdata/corpus/sql/profiling/test_failed_query_profile.test create mode 100644 parser/testdata/corpus/sql/profiling/test_failed_query_profile.test.metadata.json create mode 100644 parser/testdata/corpus/sql/profiling/test_io_time_metrics.test create mode 100644 parser/testdata/corpus/sql/profiling/test_io_time_metrics.test.metadata.json create mode 100644 parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test create mode 100644 parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test.metadata.json create mode 100644 parser/testdata/corpus/sql/projection/select_star_similar_to_full_match.test create mode 100644 parser/testdata/corpus/sql/sample/repeatable_seed_range.test create mode 100644 parser/testdata/corpus/sql/secrets/http_secret_scope_authority.test create mode 100644 parser/testdata/corpus/sql/secrets/persistent_secret_name_collision.test create mode 100644 parser/testdata/corpus/sql/secrets/persistent_secret_name_path_traversal.test create mode 100644 parser/testdata/corpus/sql/secrets/refresh_info_redaction.test create mode 100644 parser/testdata/corpus/sql/secrets/secrets_without_external_access.test create mode 100644 parser/testdata/corpus/sql/serialization/function_argument_metadata.test create mode 100644 parser/testdata/corpus/sql/serialization/function_argument_names.test create mode 100644 parser/testdata/corpus/sql/setops/compression_expression_collation.test create mode 100644 parser/testdata/corpus/sql/setops/projection_expression_collation.test create mode 100644 parser/testdata/corpus/sql/setops/test_union_staged_types.test create mode 100644 parser/testdata/corpus/sql/settings/allowed_directories_atomic_update.test create mode 100644 parser/testdata/corpus/sql/settings/allowed_remote_paths.test create mode 100644 parser/testdata/corpus/sql/settings/operator_memory_limit.test.metadata.json create mode 100644 parser/testdata/corpus/sql/settings/set_scoped_time_zone_schema.test create mode 100644 parser/testdata/corpus/sql/settings/setting_null_order.test.metadata.json create mode 100644 parser/testdata/corpus/sql/settings/test_disabled_file_systems_whitespace.test create mode 100644 parser/testdata/corpus/sql/settings/test_nan_percentage_settings.test create mode 100644 parser/testdata/corpus/sql/settings/test_progress_bar_time_negative.test create mode 100644 parser/testdata/corpus/sql/show_select/describe_case_alias.test create mode 100644 parser/testdata/corpus/sql/show_select/test_summarize_temporal_ns.test create mode 100644 parser/testdata/corpus/sql/sql_export/grouped_tuple_mark_roundtrip.test create mode 100644 parser/testdata/corpus/sql/sql_export/parquet_variant_type.test create mode 100644 parser/testdata/corpus/sql/storage/bc/null_rows_v1_5_or_filter.test create mode 100644 parser/testdata/corpus/sql/storage/bc/test_array_cast_v1_5.test create mode 100644 parser/testdata/corpus/sql/storage/bc/test_lag_lead_v1_5.test create mode 100644 parser/testdata/corpus/sql/storage/bc/test_null_stats_v1_5.test create mode 100644 parser/testdata/corpus/sql/storage/bc/test_repeatable_sample_v1_5.test create mode 100644 parser/testdata/corpus/sql/storage/checkpoint/checkpoint_rolled_back_use.test create mode 100644 parser/testdata/corpus/sql/storage/checkpoint/checkpoint_without_transactions.test create mode 100644 parser/testdata/corpus/sql/storage/checkpoint_system_catalog.test create mode 100644 parser/testdata/corpus/sql/storage/checkpoint_vacuum_unbound_index.test create mode 100644 parser/testdata/corpus/sql/storage/commit_out_of_memory_reverts_append.test create mode 100644 parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_null_block.test create mode 100644 parser/testdata/corpus/sql/storage/compression/compression_null_block.test create mode 100644 parser/testdata/corpus/sql/storage/compression/compression_padding_initialization.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_boundary.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_lengths.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dictionary_index.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_encoded_dictionary_index.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_fsst_only_dict_count.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_indices_width.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_mode.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_count_bound.test create mode 100644 parser/testdata/corpus/sql/storage/compression/dict_fsst/zero_width_lengths.test create mode 100644 parser/testdata/corpus/sql/storage/compression/fsst/fsst_uncompacted_gap_initialization.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_boundaries.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_boolean_metadata_offset.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_cardinality_bitset.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_count.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_type.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset_rejected.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_truncated.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_null_block.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_run_segment_counts.test create mode 100644 parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_boundaries.test create mode 100644 parser/testdata/corpus/sql/storage/compression/uncompressed/string_gap_reused_memory.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_compressed_size.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_count.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_next_page_id.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_id.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_boundary.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_directory.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_string_length.test create mode 100644 parser/testdata/corpus/sql/storage/compression/zstd/zstd_packed_segment.test create mode 100644 parser/testdata/corpus/sql/storage/corrupt/index_corrupt_expression.test create mode 100644 parser/testdata/corpus/sql/storage/ctas_limit0_insert.test create mode 100644 parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_metadata_memory.test create mode 100644 parser/testdata/corpus/sql/storage/external_file_cache/local_file_rewrite_same_second.test create mode 100644 parser/testdata/corpus/sql/storage/legacy_function_call_subquery.test create mode 100644 parser/testdata/corpus/sql/storage/legacy_named_arguments_upgrade.test create mode 100644 parser/testdata/corpus/sql/storage/partial_blocks/partial_block_tail_memory.test create mode 100644 parser/testdata/corpus/sql/storage/revert_append_after_checkpoint_new_row_group.test create mode 100644 parser/testdata/corpus/sql/storage/revert_append_nested_list.test create mode 100644 parser/testdata/corpus/sql/storage/revert_append_partial_vector.test create mode 100644 parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments.test create mode 100644 parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments_no_optimistic_write.test create mode 100644 parser/testdata/corpus/sql/storage/update/update_out_of_memory_statistics.test create mode 100644 parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_attach_autocheckpoint.test create mode 100644 parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_autocheckpoint.test create mode 100644 parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_no_replays.test create mode 100644 parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_retryable.test create mode 100644 parser/testdata/corpus/sql/subquery/any_all/test_any_array_subquery.test create mode 100644 parser/testdata/corpus/sql/subquery/any_all/test_correlated_in_left_join_mark.test create mode 100644 parser/testdata/corpus/sql/subquery/any_all/test_correlated_mark_row_identity.test create mode 100644 parser/testdata/corpus/sql/subquery/any_all/test_correlated_tuple_in.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_asof_join.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_cte_list_correlation.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_empty_grouping_sets.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_join_typed_macro.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_null_propagation_shortcut.test create mode 100644 parser/testdata/corpus/sql/subquery/lateral/lateral_unnest_intermediate_projection.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/correlated_cte_definition_subquery.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/correlated_grouped_expression.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/correlated_unnest_join_null.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/pg_grouping_expression_references.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key_plan.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/test_correlated_count_nested_subquery.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test create mode 100644 parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test.metadata.json create mode 100644 parser/testdata/corpus/sql/table_function/duckdb_constraints_struct_check.test create mode 100644 parser/testdata/corpus/sql/table_function/duckdb_live_query_metrics.test create mode 100644 parser/testdata/corpus/sql/table_function/external_resource_callback_recursion.test create mode 100644 parser/testdata/corpus/sql/table_function/external_resources_type_pruning.test create mode 100644 parser/testdata/corpus/sql/table_function/external_resources_where_pruning.test create mode 100644 parser/testdata/corpus/sql/table_function/glob_prepared.test create mode 100644 parser/testdata/corpus/sql/table_function/icu_range_timestamptz_lateral_empty.test create mode 100644 parser/testdata/corpus/sql/table_function/range_lateral_parallel.test create mode 100644 parser/testdata/corpus/sql/table_function/range_lateral_threads.test create mode 100644 parser/testdata/corpus/sql/timezone/test_icu_offset_seconds_roundtrip.test create mode 100644 parser/testdata/corpus/sql/timezone/timestamptz_ns_to_timestamp.test create mode 100644 parser/testdata/corpus/sql/topn/test_top_n_window_row_group_pruner.test create mode 100644 parser/testdata/corpus/sql/topn/top_n_pruning_read_ahead.test create mode 100644 parser/testdata/corpus/sql/tpcds/dsdgen_nested_schema.test create mode 100644 parser/testdata/corpus/sql/tpch/dbgen_nested_schema.test create mode 100644 parser/testdata/corpus/sql/transactions/test_commit_constraint_violation.test create mode 100644 parser/testdata/corpus/sql/transactions/test_commit_flush_append_failure.test create mode 100644 parser/testdata/corpus/sql/transactions/test_commit_oom_ghost_keys.test create mode 100644 parser/testdata/corpus/sql/trigger/drop_trigger_unsupported_table.test create mode 100644 parser/testdata/corpus/sql/trigger/row_trigger_into_table_with_statement_trigger.test delete mode 100644 parser/testdata/corpus/sql/trigger/trigger_update_from_multi_match.test create mode 100644 parser/testdata/corpus/sql/types/alias/parquet_variant_cast.test create mode 100644 parser/testdata/corpus/sql/types/bignum/test_bignum_from_double_rounding.test create mode 100644 parser/testdata/corpus/sql/types/bignum/test_bignum_negate_compare.test create mode 100644 parser/testdata/corpus/sql/types/bignum/test_bignum_to_integer_range.test create mode 100644 parser/testdata/corpus/sql/types/bignum/test_bignum_to_integral_cast.test create mode 100644 parser/testdata/corpus/sql/types/enum/enum_cast_optimizer.test create mode 100644 parser/testdata/corpus/sql/types/enum/enum_enum_cast_missing_value.test create mode 100644 parser/testdata/corpus/sql/types/geo/geometry_crs_id_overflow.test create mode 100644 parser/testdata/corpus/sql/types/hugeint/test_hugeint_cast_from_floating_bounds.test create mode 100644 parser/testdata/corpus/sql/types/hugeint/test_hugeint_to_floating_rounding.test create mode 100644 parser/testdata/corpus/sql/types/interval/test_interval_no_normalize_dedup.test create mode 100644 parser/testdata/corpus/sql/types/nested/array/array_join_gather.test create mode 100644 parser/testdata/corpus/sql/types/nested/array/tuple_with_array_row_layout.test create mode 100644 parser/testdata/corpus/sql/types/struct/remap_struct_duplicate_source.test create mode 100644 parser/testdata/corpus/sql/types/struct/remap_struct_mapping_type.test create mode 100644 parser/testdata/corpus/sql/types/struct/remap_struct_nested_default.test create mode 100644 parser/testdata/corpus/sql/types/struct/struct_extract_variant.test create mode 100644 parser/testdata/corpus/sql/types/struct/struct_key_collation_and_combine.test create mode 100644 parser/testdata/corpus/sql/types/struct/struct_variant_projection_pushdown.test create mode 100644 parser/testdata/corpus/sql/types/struct/tuple_old_storage_attach.test create mode 100644 parser/testdata/corpus/sql/types/time/time_cast_trailing_text.test create mode 100644 parser/testdata/corpus/sql/types/time/time_cast_trailing_text_icu.test create mode 100644 parser/testdata/corpus/sql/types/timestamp/test_timestamp_round_to_lower_precision_overflow.test create mode 100644 parser/testdata/corpus/sql/types/timestamp/timestamp_ns_interval_add.test create mode 100644 parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_timestamptz_comparison.test create mode 100644 parser/testdata/corpus/sql/types/uhugeint/uhugeint_subtract_overflow.test create mode 100644 parser/testdata/corpus/sql/types/union/union_common_type.test create mode 100644 parser/testdata/corpus/sql/types/variant/json_cast_depth.test create mode 100644 parser/testdata/corpus/sql/types/variant/json_cast_depth_thread.test create mode 100644 parser/testdata/corpus/sql/types/variant/variant_cast_type_null.test delete mode 100644 parser/testdata/corpus/sql/update/update_from_multi_match.test create mode 100644 parser/testdata/corpus/sql/upsert/on_conflict_null_unique_key.test create mode 100644 parser/testdata/corpus/sql/upsert/upsert_conflict_key_type.test create mode 100644 parser/testdata/corpus/sql/upsert/upsert_conflict_key_type_json.test create mode 100644 parser/testdata/corpus/sql/window/test_dense_rank_empty_union_branch.test create mode 100644 parser/testdata/corpus/sql/window/test_fill_logical_range.test create mode 100644 parser/testdata/corpus/sql/window/window_distinct_build_oom.test create mode 100644 parser/testdata/corpus/sql/window/window_fallible_scalarized_aggregate.test diff --git a/parser/testdata/README.md b/parser/testdata/README.md index f7fac0d5..18605ec9 100644 --- a/parser/testdata/README.md +++ b/parser/testdata/README.md @@ -4,10 +4,10 @@ Generated by cmd/regenerate - do not edit corpus files or expectations by hand; rerun the tool instead (see PLAN.md, § Conformance oracle and corpus). - Source: DuckDB test/sql/**/*.test and test/fuzzer/**/*.test -- Pinned commit: d54cbbe3df17e8e5ce68312f483b4155836112aa -- Oracle: DuckDB CLI v2.0.0 (release build of the pinned commit) -- Files: 4925, cases: 56064 (54106 must-accept, 1958 must-reject) -- Statements without an observed verdict (oracle timeout/crash): 11, dropped +- Pinned commit: 8d78114e90a53823803660bf821f6073ac87da8c +- Oracle: DuckDB CLI v2.0.1 (release build of the pinned commit) +- Files: 5412, cases: 62544 (60401 must-accept, 2143 must-reject) +- Statements without an observed verdict (oracle timeout/crash): 8, dropped Classification: the oracle runs each statement against :memory: with extension autoloading disabled. An error starting with "Parser Error" diff --git a/parser/testdata/corpus/fuzzer/afl/alter_if_exists.test b/parser/testdata/corpus/fuzzer/afl/alter_if_exists.test index 785e8c38..97fb1e75 100644 --- a/parser/testdata/corpus/fuzzer/afl/alter_if_exists.test +++ b/parser/testdata/corpus/fuzzer/afl/alter_if_exists.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/alter_if_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE IF EXISTS t0 ADD COLUMN c1 INT; diff --git a/parser/testdata/corpus/fuzzer/afl/analyze_empty_table.test b/parser/testdata/corpus/fuzzer/afl/analyze_empty_table.test index 2f1dc83a..a986035f 100644 --- a/parser/testdata/corpus/fuzzer/afl/analyze_empty_table.test +++ b/parser/testdata/corpus/fuzzer/afl/analyze_empty_table.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/analyze_empty_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disable_optimizer diff --git a/parser/testdata/corpus/fuzzer/afl/case_map_cast.test b/parser/testdata/corpus/fuzzer/afl/case_map_cast.test index 9dc63901..9ee45535 100644 --- a/parser/testdata/corpus/fuzzer/afl/case_map_cast.test +++ b/parser/testdata/corpus/fuzzer/afl/case_map_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/case_map_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRUE WHERE CASE MAP { } WHEN 'abc' [ ('any_string' IN (NULL::VARCHAR)): ] THEN TRUE END ; diff --git a/parser/testdata/corpus/fuzzer/afl/decimal_string_roundtrip.test b/parser/testdata/corpus/fuzzer/afl/decimal_string_roundtrip.test index fbdf6feb..50be672c 100644 --- a/parser/testdata/corpus/fuzzer/afl/decimal_string_roundtrip.test +++ b/parser/testdata/corpus/fuzzer/afl/decimal_string_roundtrip.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/decimal_string_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT .0 diff --git a/parser/testdata/corpus/fuzzer/afl/generate_series_null.test b/parser/testdata/corpus/fuzzer/afl/generate_series_null.test index a9eea6ef..46982dec 100644 --- a/parser/testdata/corpus/fuzzer/afl/generate_series_null.test +++ b/parser/testdata/corpus/fuzzer/afl/generate_series_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/generate_series_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c0 FROM generate_series(NULL) t3(c0); diff --git a/parser/testdata/corpus/fuzzer/afl/grouping_empty_table.test b/parser/testdata/corpus/fuzzer/afl/grouping_empty_table.test index 30f59700..08209ce2 100644 --- a/parser/testdata/corpus/fuzzer/afl/grouping_empty_table.test +++ b/parser/testdata/corpus/fuzzer/afl/grouping_empty_table.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/grouping_empty_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c1 INT); diff --git a/parser/testdata/corpus/fuzzer/afl/invalid_foreign_key.test b/parser/testdata/corpus/fuzzer/afl/invalid_foreign_key.test index 194dcf41..158b701a 100644 --- a/parser/testdata/corpus/fuzzer/afl/invalid_foreign_key.test +++ b/parser/testdata/corpus/fuzzer/afl/invalid_foreign_key.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/invalid_foreign_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table y(y int, foreign key (y) references y(y)); diff --git a/parser/testdata/corpus/fuzzer/afl/issue_7551.test b/parser/testdata/corpus/fuzzer/afl/issue_7551.test index ecd18832..280f7c68 100644 --- a/parser/testdata/corpus/fuzzer/afl/issue_7551.test +++ b/parser/testdata/corpus/fuzzer/afl/issue_7551.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/issue_7551.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/afl/issue_8185.test b/parser/testdata/corpus/fuzzer/afl/issue_8185.test index b3aadbc6..9635ba90 100644 --- a/parser/testdata/corpus/fuzzer/afl/issue_8185.test +++ b/parser/testdata/corpus/fuzzer/afl/issue_8185.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/issue_8185.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 ( v1 INTEGER , v2 INTEGER) ; diff --git a/parser/testdata/corpus/fuzzer/afl/limit_out_of_range.test b/parser/testdata/corpus/fuzzer/afl/limit_out_of_range.test index 07296a4a..820015d0 100644 --- a/parser/testdata/corpus/fuzzer/afl/limit_out_of_range.test +++ b/parser/testdata/corpus/fuzzer/afl/limit_out_of_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/limit_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 LIMIT 3493690519702624888078795276804013381392711238711408854154521934990547605008475834286773858253643735619391784938186674922945640543537290894084514784093972720748475288610394187481276081350259062592878908961890372712236217855377408.000000%; diff --git a/parser/testdata/corpus/fuzzer/afl/non_foldable_parameter.test b/parser/testdata/corpus/fuzzer/afl/non_foldable_parameter.test index d729f912..79fe2b63 100644 --- a/parser/testdata/corpus/fuzzer/afl/non_foldable_parameter.test +++ b/parser/testdata/corpus/fuzzer/afl/non_foldable_parameter.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/non_foldable_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE p AS SELECT ?; diff --git a/parser/testdata/corpus/fuzzer/afl/random_join.test b/parser/testdata/corpus/fuzzer/afl/random_join.test index 90ae093a..bb136821 100644 --- a/parser/testdata/corpus/fuzzer/afl/random_join.test +++ b/parser/testdata/corpus/fuzzer/afl/random_join.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/random_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c1 INT); diff --git a/parser/testdata/corpus/fuzzer/afl/self_referential_alias.test b/parser/testdata/corpus/fuzzer/afl/self_referential_alias.test index 8c28fa9a..c0dda68a 100644 --- a/parser/testdata/corpus/fuzzer/afl/self_referential_alias.test +++ b/parser/testdata/corpus/fuzzer/afl/self_referential_alias.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/self_referential_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x x WHERE x = 0; diff --git a/parser/testdata/corpus/fuzzer/afl/window_function_binder_error.test b/parser/testdata/corpus/fuzzer/afl/window_function_binder_error.test index c68e2070..35285640 100644 --- a/parser/testdata/corpus/fuzzer/afl/window_function_binder_error.test +++ b/parser/testdata/corpus/fuzzer/afl/window_function_binder_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/window_function_binder_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(x) OVER () FROM (SELECT 1) x(x); diff --git a/parser/testdata/corpus/fuzzer/afl/window_type_mismatch.test b/parser/testdata/corpus/fuzzer/afl/window_type_mismatch.test index 1305797a..ab20099a 100644 --- a/parser/testdata/corpus/fuzzer/afl/window_type_mismatch.test +++ b/parser/testdata/corpus/fuzzer/afl/window_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/afl/window_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT rank() OVER (), lag(NULL) OVER (); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/arg_minmax_by_decimal.test b/parser/testdata/corpus/fuzzer/duckfuzz/arg_minmax_by_decimal.test index 66ce98a3..8734de1d 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/arg_minmax_by_decimal.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/arg_minmax_by_decimal.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/arg_minmax_by_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_const_columndatacopy.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_const_columndatacopy.test index 28d5839d..44858d62 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_const_columndatacopy.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_const_columndatacopy.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_const_columndatacopy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uuids(uuid UUID); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_const_null_cast.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_const_null_cast.test index 4b8d6f56..8ff89520 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_const_null_cast.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_const_null_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_const_null_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(c8 UTINYINT); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_distance.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_distance.test index 4b535e38..88519b44 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_distance.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_distance.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_distance.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_distance('asdf', [42]::INTEGER[1]); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_group_by_sample.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_group_by_sample.test index 011c362a..6ff46dc9 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_group_by_sample.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_group_by_sample.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_group_by_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE array_tbl(c50 INTEGER[2][]); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_hash.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_hash.test index e5009d49..3a68a03f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_hash.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_hash.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_hash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads = 1 diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_list_gather_cast.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_list_gather_cast.test index 25e4ee29..675e0104 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_list_gather_cast.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_list_gather_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_list_gather_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table my_table as select * exclude(small_enum, medium_enum, large_enum) from test_all_types(); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_serialization_flattening.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_serialization_flattening.test index 07cd8702..54a4ae03 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_serialization_flattening.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_serialization_flattening.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_serialization_flattening.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(c2 BOOL, c48 STRUCT(a INTEGER[3], b VARCHAR[3]));; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_nullness.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_nullness.test index feedc081..279cf038 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_nullness.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_nullness.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_slice_nullness.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_reverse(NULL::INTEGER[]) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_underflow.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_underflow.test index 9fe024bf..1acef46f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_underflow.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_underflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_slice_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ([1, 2, 3])[0:-9223372036854775808]; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_vector_type.test b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_vector_type.test index 1e6ebce5..fb42b148 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_vector_type.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/array_slice_vector_type.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/array_slice_vector_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/arrow_scan_subquery_nullptr.test b/parser/testdata/corpus/fuzzer/duckfuzz/arrow_scan_subquery_nullptr.test index cbb0c37f..45570c8f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/arrow_scan_subquery_nullptr.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/arrow_scan_subquery_nullptr.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/arrow_scan_subquery_nullptr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (SELECT * FROM arrow_scan(NULL, NULL, NULL)); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_minmax.test b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_minmax.test index a1094ad7..9c0e1139 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_minmax.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_minmax.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/bitstring_agg_minmax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select bitstring_agg(4741, 1706, -128); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_uhugeint.test b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_uhugeint.test index c94f230e..6e360d21 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_uhugeint.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_uhugeint.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/bitstring_agg_uhugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as select hugeint, uhugeint from test_all_types(); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_unfoldable.test b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_unfoldable.test index 6deba4ff..6d9f401a 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_unfoldable.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/bitstring_agg_unfoldable.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/bitstring_agg_unfoldable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT bitstring_agg(i, i, 42) FROM range(10) t(i); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/column_alias_exist.test b/parser/testdata/corpus/fuzzer/duckfuzz/column_alias_exist.test index 335d70ce..8bbee60a 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/column_alias_exist.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/column_alias_exist.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/column_alias_exist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types() limit 0 diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/complex_join_cardinality_assert.test b/parser/testdata/corpus/fuzzer/duckfuzz/complex_join_cardinality_assert.test index 894134ec..6ad69a15 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/complex_join_cardinality_assert.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/complex_join_cardinality_assert.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/complex_join_cardinality_assert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(i int); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_hugeint.test b/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_hugeint.test index 89c454df..0e6778d1 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_hugeint.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_hugeint.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/compressed_materialization_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT TRY_CAST(COLUMNS(*) AS HUGEINT) FROM all_types AS t51(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41, c42, c43, c44, c45, c46, c47, c48, c49, c50) ORDER BY c14 DESC NULLS FIRST diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_json.test b/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_json.test index aba5febe..5d199813 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_json.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/compressed_materialization_json.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/compressed_materialization_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select distinct json_array(); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/correlated_subqueries.test b/parser/testdata/corpus/fuzzer/duckfuzz/correlated_subqueries.test index 6941470b..1895e0ba 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/correlated_subqueries.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/correlated_subqueries.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/correlated_subqueries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mytable(i INT) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/corrupted_parquet.test b/parser/testdata/corpus/fuzzer/duckfuzz/corrupted_parquet.test index cb4dc15c..a22611eb 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/corrupted_parquet.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/corrupted_parquet.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/corrupted_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_parquet('data/parquet-testing/broken/fuzzer4360.parquet', filename=true); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/create_sort_key_strings.test b/parser/testdata/corpus/fuzzer/duckfuzz/create_sort_key_strings.test index 555b1239..74ae9f88 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/create_sort_key_strings.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/create_sort_key_strings.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/create_sort_key_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2(c38 STRUCT(a INTEGER, b VARCHAR)); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/duck_fuzz_column_binding_tests.test b/parser/testdata/corpus/fuzzer/duckfuzz/duck_fuzz_column_binding_tests.test index 9e332263..9b04d732 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/duck_fuzz_column_binding_tests.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/duck_fuzz_column_binding_tests.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/duck_fuzz_column_binding_tests.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ref_8.uint AS c0, diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/duckdb_fuzzer_4430.test b/parser/testdata/corpus/fuzzer/duckfuzz/duckdb_fuzzer_4430.test index 9e081f6c..7f65dfb8 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/duckdb_fuzzer_4430.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/duckdb_fuzzer_4430.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/duckdb_fuzzer_4430.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/duckdb_fuzzer_4430.db' AS db1 @@ -19,11 +19,31 @@ DETACH db1 -- ok == +ATTACH IF NOT EXISTS '{TEST_DIR}/duckdb_fuzzer_4430_other.db' AS db1 +-- +ok +== +CREATE TABLE db1.tbl2(i INTEGER) +-- +ok +== ROLLBACK -- ok == +SELECT count(*) FROM duckdb_databases() WHERE database_name = 'db1' +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE database_name = 'db1' +-- +ok +== SELECT * FROM db1.tbl -- ok == +COMMIT +-- +ok +== diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/empty_result_pullup_delim_joins.test b/parser/testdata/corpus/fuzzer/duckfuzz/empty_result_pullup_delim_joins.test index a7d84988..bff43d46 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/empty_result_pullup_delim_joins.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/empty_result_pullup_delim_joins.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/empty_result_pullup_delim_joins.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit call dbgen(sf=0.1); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/enum_const_cast.test b/parser/testdata/corpus/fuzzer/duckfuzz/enum_const_cast.test index c84417e0..b3b14b1b 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/enum_const_cast.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/enum_const_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/enum_const_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(TRY_CAST((ceil(2918) AND shobj_description(5, (NOT 6203))) AS ENUM('enum_0', 'enum_1', 'enum_2', 'enum_3', 'enum_4', 'enum_5', 'enum_6', 'enum_7', 'enum_8', 'enum_9', 'enum_10', 'enum_11', 'enum_12', 'enum_13', 'enum_14', 'enum_15', 'enum_16', 'enum_17', 'enum_18', 'enum_19', 'enum_20', 'enum_21', 'enum_22', 'enum_23', 'enum_24', 'enum_25', 'enum_26', 'enum_27', 'enum_28', 'enum_29', 'enum_30', 'enum_31', 'enum_32', 'enum_33', 'enum_34', 'enum_35', 'enum_36', 'enum_37', 'enum_38', 'enum_39', 'enum_40', 'enum_41', 'enum_42', 'enum_43', 'enum_44', 'enum_45', 'enum_46', 'enum_47', 'enum_48', 'enum_49', 'enum_50', 'enum_51', 'enum_52', 'enum_53', 'enum_54', 'enum_55', 'enum_56', 'enum_57', 'enum_58', 'enum_59', 'enum_60', 'enum_61', 'enum_62', 'enum_63', 'enum_64', 'enum_65', 'enum_66', 'enum_67', 'enum_68', 'enum_69', 'enum_70', 'enum_71', 'enum_72', 'enum_73', 'enum_74', 'enum_75', 'enum_76', 'enum_77', 'enum_78', 'enum_79', 'enum_80', 'enum_81', 'enum_82', 'enum_83', 'enum_84', 'enum_85', 'enum_86', 'enum_87', 'enum_88', 'enum_89', 'enum_90', 'enum_91', 'enum_92', 'enum_93', 'enum_94', 'enum_95', 'enum_96', 'enum_97', 'enum_98', 'enum_99', 'enum_100', 'enum_101', 'enum_102', 'enum_103', 'enum_104', 'enum_105', 'enum_106', 'enum_107', 'enum_108', 'enum_109', 'enum_110', 'enum_111', 'enum_112', 'enum_113', 'enum_114', 'enum_115', 'enum_116', 'enum_117', 'enum_118', 'enum_119', 'enum_120', 'enum_121', 'enum_122', 'enum_123', 'enum_124', 'enum_125', 'enum_126', 'enum_127', 'enum_128', 'enum_129', 'enum_130', 'enum_131', 'enum_132', 'enum_133', 'enum_134', 'enum_135', 'enum_136', 'enum_137', 'enum_138', 'enum_139', 'enum_140', 'enum_141', 'enum_142', 'enum_143', 'enum_144', 'enum_145', 'enum_146', 'enum_147', 'enum_148', 'enum_149', 'enum_150', 'enum_151', 'enum_152', 'enum_153', 'enum_154', 'enum_155', 'enum_156', 'enum_157', 'enum_158', 'enum_159', 'enum_160', 'enum_161', 'enum_162', 'enum_163', 'enum_164', 'enum_165', 'enum_166', 'enum_167', 'enum_168', 'enum_169', 'enum_170', 'enum_171', 'enum_172', 'enum_173', 'enum_174', 'enum_175', 'enum_176', 'enum_177', 'enum_178', 'enum_179', 'enum_180', 'enum_181', 'enum_182', 'enum_183', 'enum_184', 'enum_185', 'enum_186', 'enum_187', 'enum_188', 'enum_189', 'enum_190', 'enum_191', 'enum_192', 'enum_193', 'enum_194', 'enum_195', 'enum_196', 'enum_197', 'enum_198', 'enum_199', 'enum_200', 'enum_201', 'enum_202', 'enum_203', 'enum_204', 'enum_205', 'enum_206', 'enum_207', 'enum_208', 'enum_209', 'enum_210', 'enum_211', 'enum_212', 'enum_213', 'enum_214', 'enum_215', 'enum_216', 'enum_217', 'enum_218', 'enum_219', 'enum_220', 'enum_221', 'enum_222', 'enum_223', 'enum_224', 'enum_225', 'enum_226', 'enum_227', 'enum_228', 'enum_229', 'enum_230', 'enum_231', 'enum_232', 'enum_233', 'enum_234', 'enum_235', 'enum_236', 'enum_237', 'enum_238', 'enum_239', 'enum_240', 'enum_241', 'enum_242', 'enum_243', 'enum_244', 'enum_245', 'enum_246', 'enum_247', 'enum_248', 'enum_249', 'enum_250', 'enum_251', 'enum_252', 'enum_253', 'enum_254', 'enum_255', 'enum_256', 'enum_257', 'enum_258', 'enum_259', 'enum_260', 'enum_261', 'enum_262', 'enum_263', 'enum_264', 'enum_265', 'enum_266', 'enum_267', 'enum_268', 'enum_269', 'enum_270', 'enum_271', 'enum_272', 'enum_273', 'enum_274', 'enum_275', 'enum_276', 'enum_277', 'enum_278', 'enum_279', 'enum_280', 'enum_281', 'enum_282', 'enum_283', 'enum_284', 'enum_285', 'enum_286', 'enum_287', 'enum_288', 'enum_289', 'enum_290', 'enum_291', 'enum_292', 'enum_293', 'enum_294', 'enum_295', 'enum_296', 'enum_297', 'enum_298', 'enum_299')) AS ENUM('enum_0', 'enum_69999')) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/filter_combiner_assert.test b/parser/testdata/corpus/fuzzer/duckfuzz/filter_combiner_assert.test index 6121287d..6dfd325e 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/filter_combiner_assert.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/filter_combiner_assert.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/filter_combiner_assert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partsupp(ps_partkey INTEGER, ps_suppkey INTEGER, ps_availqty INTEGER, ps_supplycost DECIMAL(15,2), ps_comment VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2698.test b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2698.test index 1eada0f2..ff503ad5 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2698.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2698.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/fuzzer_issue_2698.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (TRY_CAST(5572 AS INTEGER[3][3]) BETWEEN json(c48) AND NULL) FROM all_types AS t51(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41, c42, c43, c44, c45, c46, c47, c48, c49, c50); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2980.test b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2980.test index 3d0c8bf6..42e1a288 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2980.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_2980.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/fuzzer_issue_2980.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT NULL FROM query_table(NULL, NULL) AS t6(c1, c2, c3, c4, c5) , region AS t10(c7, c8, c9) HAVING TRY_CAST(c3 AS STRUCT(a INTEGER, b VARCHAR)[3]) QUALIFY (c3 BETWEEN c8 AND (c4 BETWEEN c4 AND c5)); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_4325.test b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_4325.test index c6087305..d5912e26 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_4325.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/fuzzer_issue_4325.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/fuzzer_issue_4325.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL FROM (VALUES (0, 1, 2, 3, 4)) AS _("0", "1", "2", "3", "4") INNER JOIN (SELECT NULL LIMIT rank_dense() OVER (PARTITION BY #4, NULL, NULL, NULL ROWS BETWEEN c83 PRECEDING AND CURRENT ROW)) USING (c19) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/generate_null_timestamp.test b/parser/testdata/corpus/fuzzer/duckfuzz/generate_null_timestamp.test index 1c87b8c4..c07f94da 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/generate_null_timestamp.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/generate_null_timestamp.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/generate_null_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/group_by_all_positional_ref.test b/parser/testdata/corpus/fuzzer/duckfuzz/group_by_all_positional_ref.test index eacb4e28..39786142 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/group_by_all_positional_ref.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/group_by_all_positional_ref.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/group_by_all_positional_ref.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(c1 int, c2 int); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/hash_constant.test b/parser/testdata/corpus/fuzzer/duckfuzz/hash_constant.test index 097aaaa9..edbadbaa 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/hash_constant.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/hash_constant.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/hash_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT hash(main.list_value(main.list_value(), main.list_value(42, 999, NULL, NULL, -42), NULL, main.list_value(), main.list_value(42, 999, NULL, NULL, -42))) FROM all_types; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/having_window_bind.test b/parser/testdata/corpus/fuzzer/duckfuzz/having_window_bind.test index fb982e96..fb30f5cd 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/having_window_bind.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/having_window_bind.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/having_window_bind.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit call dbgen(sf=0); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/hugeint_negate_underflow.test b/parser/testdata/corpus/fuzzer/duckfuzz/hugeint_negate_underflow.test index 4863fa78..ab582102 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/hugeint_negate_underflow.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/hugeint_negate_underflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/hugeint_negate_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select -(-170141183460469231731687303715884105728)::HUGEINT; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/invalid_make_time.test b/parser/testdata/corpus/fuzzer/duckfuzz/invalid_make_time.test index 450b1d32..0b94b5c9 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/invalid_make_time.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/invalid_make_time.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/invalid_make_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT make_time(64, 64, 157); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/json_execute_serialized_null.test b/parser/testdata/corpus/fuzzer/duckfuzz/json_execute_serialized_null.test index a8d49a35..6f271b10 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/json_execute_serialized_null.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/json_execute_serialized_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/json_execute_serialized_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit call dbgen(sf=0.01); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_null.test b/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_null.test index ec4ec12d..e5709485 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_null.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/json_extract_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_extract('hello world', CAST(NULL AS json)) AS c1 diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_string_null.test b/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_string_null.test index c4137963..79a0bdf7 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_string_null.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/json_extract_string_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/json_extract_string_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into integers values (1); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/json_functions_null_params.test b/parser/testdata/corpus/fuzzer/duckfuzz/json_functions_null_params.test index 5d5b342d..15ae5d8b 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/json_functions_null_params.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/json_functions_null_params.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/json_functions_null_params.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT from_json('{"duck": 42}', NULL::JSON) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/julian_overflow.test b/parser/testdata/corpus/fuzzer/duckfuzz/julian_overflow.test index 21da384b..139c6246 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/julian_overflow.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/julian_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/julian_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT julian(c1) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/late_materialization_filter.test b/parser/testdata/corpus/fuzzer/duckfuzz/late_materialization_filter.test index dfd97d7b..d7a44d28 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/late_materialization_filter.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/late_materialization_filter.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/late_materialization_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(z int, i bool, j bool, k uhugeint); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/limit_offset_macro_subquery.test b/parser/testdata/corpus/fuzzer/duckfuzz/limit_offset_macro_subquery.test index 2108ad4e..417fd8d9 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/limit_offset_macro_subquery.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/limit_offset_macro_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/limit_offset_macro_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 OFFSET format_type(NULL, 2515); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/limit_percent_subquery.test b/parser/testdata/corpus/fuzzer/duckfuzz/limit_percent_subquery.test index 6aca631b..feb54e21 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/limit_percent_subquery.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/limit_percent_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/limit_percent_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(i INT); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/list_try_cast.test b/parser/testdata/corpus/fuzzer/duckfuzz/list_try_cast.test index ad19d044..fcd33581 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/list_try_cast.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/list_try_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/list_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(i INT[]); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/list_zip_no_args.test b/parser/testdata/corpus/fuzzer/duckfuzz/list_zip_no_args.test index eab58a7f..452c62e2 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/list_zip_no_args.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/list_zip_no_args.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/list_zip_no_args.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_zip() AS c0; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/logger_null.test b/parser/testdata/corpus/fuzzer/duckfuzz/logger_null.test index 093ea85d..d279382b 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/logger_null.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/logger_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/logger_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM duckdb_logs(denormalized_table := NULL) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/map_concat_type_mismatch.test b/parser/testdata/corpus/fuzzer/duckfuzz/map_concat_type_mismatch.test index aefea3fd..7813178f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/map_concat_type_mismatch.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/map_concat_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/map_concat_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT map_concat(42, 42); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/null_arguments.test b/parser/testdata/corpus/fuzzer/duckfuzz/null_arguments.test index 7eca7d6a..61bc2e38 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/null_arguments.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/null_arguments.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/null_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL FROM parquet_scan(NULL, "schema" := NULL); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/null_checkpoint.test b/parser/testdata/corpus/fuzzer/duckfuzz/null_checkpoint.test index 941f0ccb..3d8f307a 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/null_checkpoint.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/null_checkpoint.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/null_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL checkpoint(NULL) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/ordagg_nargs.test b/parser/testdata/corpus/fuzzer/duckfuzz/ordagg_nargs.test index 579ec955..f78c9c85 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/ordagg_nargs.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/ordagg_nargs.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/ordagg_nargs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cume_dist() OVER (ROWS diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/order_by_positional_reference.test b/parser/testdata/corpus/fuzzer/duckfuzz/order_by_positional_reference.test index 5465c46f..f2c6ab8c 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/order_by_positional_reference.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/order_by_positional_reference.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/order_by_positional_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c1, c2, NULL FROM integers ORDER BY #10 diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/pivot_aggregate_mismatch.test b/parser/testdata/corpus/fuzzer/duckfuzz/pivot_aggregate_mismatch.test index f6a03e1c..95f58649 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/pivot_aggregate_mismatch.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/pivot_aggregate_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/pivot_aggregate_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (VALUES (42)) t(i) PIVOT (current_date() FOR (i) IN (41)) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/qualify_column_reference.test b/parser/testdata/corpus/fuzzer/duckfuzz/qualify_column_reference.test index 34c1a8ef..54e91c35 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/qualify_column_reference.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/qualify_column_reference.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/qualify_column_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(c1 int, c2 int); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/read_ndjson_non_varchar_input.test b/parser/testdata/corpus/fuzzer/duckfuzz/read_ndjson_non_varchar_input.test index d06d9363..fd259a71 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/read_ndjson_non_varchar_input.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/read_ndjson_non_varchar_input.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/read_ndjson_non_varchar_input.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_ndjson([42]) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/regex_syntax_2889.test b/parser/testdata/corpus/fuzzer/duckfuzz/regex_syntax_2889.test index d49fbb15..c597e0b8 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/regex_syntax_2889.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/regex_syntax_2889.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/regex_syntax_2889.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/regexp_replace_constant.test b/parser/testdata/corpus/fuzzer/duckfuzz/regexp_replace_constant.test index a05d3822..d7d4e609 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/regexp_replace_constant.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/regexp_replace_constant.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/regexp_replace_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract('foobarbaz', 'B..', 0, NULL); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/repeat_row_null.test b/parser/testdata/corpus/fuzzer/duckfuzz/repeat_row_null.test index 31d8dd5e..46c7f483 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/repeat_row_null.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/repeat_row_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/repeat_row_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM repeat_row(NULL) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/repeat_wrong_number.test b/parser/testdata/corpus/fuzzer/duckfuzz/repeat_wrong_number.test index 5345813e..0e12f434 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/repeat_wrong_number.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/repeat_wrong_number.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/repeat_wrong_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM repeat(42, 1) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/semi_join_has_correct_left_right_relations.test b/parser/testdata/corpus/fuzzer/duckfuzz/semi_join_has_correct_left_right_relations.test index 55f7e931..9b792b86 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/semi_join_has_correct_left_right_relations.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/semi_join_has_correct_left_right_relations.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/semi_join_has_correct_left_right_relations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select range a from range(300); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/string_to_nested_cast_sample.test b/parser/testdata/corpus/fuzzer/duckfuzz/string_to_nested_cast_sample.test index 6fa24d71..2a9997c1 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/string_to_nested_cast_sample.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/string_to_nested_cast_sample.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/string_to_nested_cast_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE part AS SELECT concat('this is a long part name', i) AS p_name FROM range(20000) t(i); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/strptime_const_arg.test b/parser/testdata/corpus/fuzzer/duckfuzz/strptime_const_arg.test index 446bee80..9961d30c 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/strptime_const_arg.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/strptime_const_arg.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/strptime_const_arg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types AS diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/temporal_avg.test b/parser/testdata/corpus/fuzzer/duckfuzz/temporal_avg.test index 03e49cba..d03eec09 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/temporal_avg.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/temporal_avg.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/temporal_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT avg(c1) FROM test_vector_types(CAST(NULL AS TIMESTAMP)) AS test_vector_types(c1); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/test_vector_types_double_3.test b/parser/testdata/corpus/fuzzer/duckfuzz/test_vector_types_double_3.test index 42528c32..0e1b4cc7 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/test_vector_types_double_3.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/test_vector_types_double_3.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/test_vector_types_double_3.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM test_vector_types(CAST(NULL AS DOUBLE[3]), CAST(NULL AS DOUBLE[3])) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/to_weeks_overflow.test b/parser/testdata/corpus/fuzzer/duckfuzz/to_weeks_overflow.test index ca9dcd6b..5b7b987d 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/to_weeks_overflow.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/to_weeks_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/to_weeks_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT to_weeks(#4) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/tuple_data_empty_heap.test b/parser/testdata/corpus/fuzzer/duckfuzz/tuple_data_empty_heap.test index ee2fc22e..e3d0e291 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/tuple_data_empty_heap.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/tuple_data_empty_heap.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/tuple_data_empty_heap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set threads=4; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/union_dict_tag.test b/parser/testdata/corpus/fuzzer/duckfuzz/union_dict_tag.test index ee19e5cf..e60e082f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/union_dict_tag.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/union_dict_tag.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/union_dict_tag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT encode("union"::varchar), "double" FROM all_types where "double"; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test b/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test index 4f461783..810bfab2 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/unpivot_multiple_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (SELECT 42) AS t1 UNPIVOT (c2 FOR c2 IN (6317) c2 IN (NULL)) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/vector_size_out_of_range.test b/parser/testdata/corpus/fuzzer/duckfuzz/vector_size_out_of_range.test index 5eedbf4e..7e8d4ebd 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/vector_size_out_of_range.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/vector_size_out_of_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/vector_size_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT OPERATOR ( / ) + ARRAY [ ] :: INTERVAL SECONDS [9] [ ] :: SETOF NCHAR ARRAY :: FLOAT ; diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/vector_type.test b/parser/testdata/corpus/fuzzer/duckfuzz/vector_type.test index 78b2ea3f..a0ccfe3a 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/vector_type.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/vector_type.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/vector_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT vector_type(42::INTEGER) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/visit_operator_expressions_in_column_lifetime_analyzer.test b/parser/testdata/corpus/fuzzer/duckfuzz/visit_operator_expressions_in_column_lifetime_analyzer.test index 4ccaf055..efb4819f 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/visit_operator_expressions_in_column_lifetime_analyzer.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/visit_operator_expressions_in_column_lifetime_analyzer.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/visit_operator_expressions_in_column_lifetime_analyzer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT arg_min(CAST(ref_19."varchar" AS VARCHAR), CAST(ref_3."varchar" AS VARCHAR)) OVER (PARTITION BY ref_23."bit" ORDER BY ref_6.ubigint) FROM (SELECT (SELECT "time" FROM main.all_types LIMIT 1 OFFSET 4) AS c1 FROM main.all_types AS ref_0 WHERE ref_0."varchar") AS subq_0 INNER JOIN (SELECT ref_1."varchar" AS c5 FROM main.all_types AS ref_1 LEFT JOIN main.all_types AS ref_2 ON ((ref_1."varchar" !~~* ref_2."varchar")) WHERE (ref_2."varchar" ~~* ref_2."varchar")) AS subq_1 INNER JOIN main.all_types AS ref_3 ON ((subq_1.c5 ~~ ref_3."varchar")) ON ((ref_3."varchar" ~~ subq_1.c5)) INNER JOIN main.all_types AS ref_4 RIGHT JOIN main.all_types AS ref_5 RIGHT JOIN main.all_types AS ref_6 ON ((ref_6."varchar" ^@ ref_6."varchar")) ON ((ref_6.timestamp_ms IS NOT NULL)) INNER JOIN main.all_types AS ref_7 INNER JOIN main.all_types AS ref_8 ON ((ref_7.dec_4_1 = ref_8.dec_4_1)) LEFT JOIN main.all_types AS ref_9 RIGHT JOIN main.all_types AS ref_10 ON ((ref_9.timestamp_array = ref_10.timestamp_array)) ON ((ref_10."varchar" ^@ ref_8."varchar")) INNER JOIN main.all_types AS ref_11 RIGHT JOIN main.all_types AS ref_12 ON ((ref_11."float" = ref_12."float")) LEFT JOIN main.all_types AS ref_13 ON ((ref_11."varchar" ~~~ ref_12."varchar")) ON ((CAST(NULL AS VARCHAR) ~~~ ref_7."varchar")) ON (((((ref_8."varchar" !~~ ref_8."varchar") AND (ref_6."varchar" ~~~ ref_12."varchar")) OR (ref_9."varchar" ~~ CAST(NULL AS VARCHAR))) AND (ref_6."varchar" ^@ ref_8."varchar") AND (ref_11.hugeint IS NOT NULL))) RIGHT JOIN (SELECT (SELECT bool FROM main.all_types LIMIT 1 OFFSET 6) AS c4) AS subq_2 ON ((ref_9."varchar" !~~ ref_8."varchar")) ON ((ref_3."int" = ref_10."int")) INNER JOIN (SELECT 41 AS c0 FROM main.all_types AS ref_15 RIGHT JOIN main.all_types AS ref_16 ON ((ref_15."varchar" = ref_16."varchar"))) AS subq_3 INNER JOIN (SELECT ref_17.timestamp_s AS c5 FROM main.all_types AS ref_17) AS subq_4 ON ((subq_3.c0 IS NULL)) INNER JOIN main.all_types AS ref_18 LEFT JOIN main.all_types AS ref_19 INNER JOIN main.all_types AS ref_20 INNER JOIN main.all_types AS ref_21 ON (((SELECT "varchar" FROM main.all_types LIMIT 1 OFFSET 4) ~~~ ref_21."varchar")) ON ((ref_21."timestamp" IS NULL)) ON ((ref_19."varchar" ~~~ ref_20."varchar")) RIGHT JOIN main.all_types AS ref_22 LEFT JOIN main.all_types AS ref_23 ON (1) ON (0) ON ((0 OR (ref_20."varchar" !~~* ref_19."varchar") OR ((EXISTS(SELECT (SELECT tinyint FROM main.all_types LIMIT 1 OFFSET 1) AS c0 FROM main.all_types AS ref_24 WHERE (ref_23."bigint" IS NOT NULL) LIMIT 110) OR (ref_23.timestamp_array IS NULL)) AND (ref_21."varchar" ^@ ref_21."varchar")))) ON ((ref_9."varchar" ~~* chr(CAST(ref_18."int" AS INTEGER)))) WHERE (ref_12."varchar" ^@ ref_20."varchar"); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/window_expression_equality.test b/parser/testdata/corpus/fuzzer/duckfuzz/window_expression_equality.test index d2ee46a6..fc8a3daa 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/window_expression_equality.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/window_expression_equality.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/window_expression_equality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types(c1 BOOL, c9 SMALLINT, c10 UINTEGER, c36 VARCHAR[]); diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/window_negate_stats.test b/parser/testdata/corpus/fuzzer/duckfuzz/window_negate_stats.test index 0f074109..93218d3e 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/window_negate_stats.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/window_negate_stats.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/window_negate_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT max(c34) FILTER (WHERE c26) OVER (PARTITION BY c23 ROWS BETWEEN GREATEST(COALESCE(c5, 0), 0) PRECEDING AND CURRENT ROW) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/window_null_range.test b/parser/testdata/corpus/fuzzer/duckfuzz/window_null_range.test index 8b13eee1..fc870109 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/window_null_range.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/window_null_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/window_null_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as select * exclude(small_enum, medium_enum, large_enum) diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/window_order_bind_failure.test b/parser/testdata/corpus/fuzzer/duckfuzz/window_order_bind_failure.test index bd1b605e..d39b221c 100644 --- a/parser/testdata/corpus/fuzzer/duckfuzz/window_order_bind_failure.test +++ b/parser/testdata/corpus/fuzzer/duckfuzz/window_order_bind_failure.test @@ -1,6 +1,6 @@ # source: test/fuzzer/duckfuzz/window_order_bind_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types AS SELECT * EXCLUDE(small_enum, medium_enum, large_enum) diff --git a/parser/testdata/corpus/fuzzer/fuzz_not_operator.test b/parser/testdata/corpus/fuzzer/fuzz_not_operator.test index 0474299e..2179a2ba 100644 --- a/parser/testdata/corpus/fuzzer/fuzz_not_operator.test +++ b/parser/testdata/corpus/fuzzer/fuzz_not_operator.test @@ -1,6 +1,6 @@ # source: test/fuzzer/fuzz_not_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM (select 1) tbl(i) WHERE ( 2060771621 != i + -2134619525 ) diff --git a/parser/testdata/corpus/fuzzer/fuzz_not_unpacked_columns.test b/parser/testdata/corpus/fuzzer/fuzz_not_unpacked_columns.test index 189dfb54..54f9b0ee 100644 --- a/parser/testdata/corpus/fuzzer/fuzz_not_unpacked_columns.test +++ b/parser/testdata/corpus/fuzzer/fuzz_not_unpacked_columns.test @@ -1,6 +1,6 @@ # source: test/fuzzer/fuzz_not_unpacked_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v00 (c01 INT, c02 STRING); diff --git a/parser/testdata/corpus/fuzzer/issue4298.test b/parser/testdata/corpus/fuzzer/issue4298.test index bed5d221..bd8248f3 100644 --- a/parser/testdata/corpus/fuzzer/issue4298.test +++ b/parser/testdata/corpus/fuzzer/issue4298.test @@ -1,6 +1,6 @@ # source: test/fuzzer/issue4298.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * FROM test_all_types(use_large_bignum := -32768, use_large_enum := NULL); diff --git a/parser/testdata/corpus/fuzzer/nthvalue_indexing.test b/parser/testdata/corpus/fuzzer/nthvalue_indexing.test index 488c9962..15cab8de 100644 --- a/parser/testdata/corpus/fuzzer/nthvalue_indexing.test +++ b/parser/testdata/corpus/fuzzer/nthvalue_indexing.test @@ -1,6 +1,6 @@ # source: test/fuzzer/nthvalue_indexing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT nth_value(NULL, (c2 IS NOT NULL)::BIGINT) OVER (PARTITION BY 1585 ROWS BETWEEN CURRENT ROW AND CURRENT ROW) diff --git a/parser/testdata/corpus/fuzzer/pedro/C_C++_API_query_verification.test b/parser/testdata/corpus/fuzzer/pedro/C_C++_API_query_verification.test index 720f5f75..33347b98 100644 --- a/parser/testdata/corpus/fuzzer/pedro/C_C++_API_query_verification.test +++ b/parser/testdata/corpus/fuzzer/pedro/C_C++_API_query_verification.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/C_C++_API_query_verification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/aggregate_assertion_errors.test b/parser/testdata/corpus/fuzzer/pedro/aggregate_assertion_errors.test index 7a07d5d3..3b421405 100644 --- a/parser/testdata/corpus/fuzzer/pedro/aggregate_assertion_errors.test +++ b/parser/testdata/corpus/fuzzer/pedro/aggregate_assertion_errors.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/aggregate_assertion_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT reservoir_quantile(1, 1 ORDER BY 1); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_column_generated.test b/parser/testdata/corpus/fuzzer/pedro/alter_column_generated.test index 4ac0bafc..f47d649e 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_column_generated.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_column_generated.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_column_generated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 AS (1), c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_dependencies.test b/parser/testdata/corpus/fuzzer/pedro/alter_dependencies.test index 23e939d5..990ae68f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_dependencies.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_dependencies.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c2 INT, c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_dependency_conflict.test b/parser/testdata/corpus/fuzzer/pedro/alter_dependency_conflict.test index 24e7a634..69d88045 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_dependency_conflict.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_dependency_conflict.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_dependency_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t4 (c0 DATE, c3 VARCHAR(10)); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_table_rowid.test b/parser/testdata/corpus/fuzzer/pedro/alter_table_rowid.test index b7efbef2..577a0911 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_table_rowid.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_table_rowid.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_table_rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INTEGER, c1 INTEGER); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_type_null_mix.test b/parser/testdata/corpus/fuzzer/pedro/alter_type_null_mix.test index ae110222..0d4702b2 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_type_null_mix.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_type_null_mix.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_type_null_mix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c0 USMALLINT); diff --git a/parser/testdata/corpus/fuzzer/pedro/alter_virtual_column_segfault.test b/parser/testdata/corpus/fuzzer/pedro/alter_virtual_column_segfault.test index c35fd2f7..7663f635 100644 --- a/parser/testdata/corpus/fuzzer/pedro/alter_virtual_column_segfault.test +++ b/parser/testdata/corpus/fuzzer/pedro/alter_virtual_column_segfault.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/alter_virtual_column_segfault.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c2 AS (1) VIRTUAL, c1 TIME WITH TIME ZONE); diff --git a/parser/testdata/corpus/fuzzer/pedro/analyze_nonexistant.test b/parser/testdata/corpus/fuzzer/pedro/analyze_nonexistant.test index a5ca9417..93d4a993 100644 --- a/parser/testdata/corpus/fuzzer/pedro/analyze_nonexistant.test +++ b/parser/testdata/corpus/fuzzer/pedro/analyze_nonexistant.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/analyze_nonexistant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 TINYINT); diff --git a/parser/testdata/corpus/fuzzer/pedro/another_binder_error.test b/parser/testdata/corpus/fuzzer/pedro/another_binder_error.test index 5ce5105f..08d2dbdd 100644 --- a/parser/testdata/corpus/fuzzer/pedro/another_binder_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/another_binder_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/another_binder_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT avg(0) c0, (SELECT 0 OFFSET c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/art_concatenate_prefix.test b/parser/testdata/corpus/fuzzer/pedro/art_concatenate_prefix.test index 2ad2fc89..9b535ae7 100644 --- a/parser/testdata/corpus/fuzzer/pedro/art_concatenate_prefix.test +++ b/parser/testdata/corpus/fuzzer/pedro/art_concatenate_prefix.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/art_concatenate_prefix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/art_prefix_error.test b/parser/testdata/corpus/fuzzer/pedro/art_prefix_error.test index 89e4a5f3..c741aa52 100644 --- a/parser/testdata/corpus/fuzzer/pedro/art_prefix_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/art_prefix_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/art_prefix_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 BLOB PRIMARY KEY); diff --git a/parser/testdata/corpus/fuzzer/pedro/between_mark_reference.test b/parser/testdata/corpus/fuzzer/pedro/between_mark_reference.test index 8c018025..58f3c756 100644 --- a/parser/testdata/corpus/fuzzer/pedro/between_mark_reference.test +++ b/parser/testdata/corpus/fuzzer/pedro/between_mark_reference.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/between_mark_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 WHERE '23:' > ALL(SELECT '0') BETWEEN false AND true; diff --git a/parser/testdata/corpus/fuzzer/pedro/between_type_mismatch.test b/parser/testdata/corpus/fuzzer/pedro/between_type_mismatch.test index f241ea5c..c0ee6190 100644 --- a/parser/testdata/corpus/fuzzer/pedro/between_type_mismatch.test +++ b/parser/testdata/corpus/fuzzer/pedro/between_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/between_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 USMALLINT); diff --git a/parser/testdata/corpus/fuzzer/pedro/binder_assertion_error.test b/parser/testdata/corpus/fuzzer/pedro/binder_assertion_error.test index 995ac5c5..bfbcf1e7 100644 --- a/parser/testdata/corpus/fuzzer/pedro/binder_assertion_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/binder_assertion_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/binder_assertion_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 2) c0 WHERE (SELECT (SELECT (SELECT c0))); diff --git a/parser/testdata/corpus/fuzzer/pedro/binder_error_with_having_statement.test b/parser/testdata/corpus/fuzzer/pedro/binder_error_with_having_statement.test index fb699d80..6ed55ba9 100644 --- a/parser/testdata/corpus/fuzzer/pedro/binder_error_with_having_statement.test +++ b/parser/testdata/corpus/fuzzer/pedro/binder_error_with_having_statement.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/binder_error_with_having_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2(c1 INT, c2 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/blob_wrong_optimization.test b/parser/testdata/corpus/fuzzer/pedro/blob_wrong_optimization.test index 09666c72..40792b88 100644 --- a/parser/testdata/corpus/fuzzer/pedro/blob_wrong_optimization.test +++ b/parser/testdata/corpus/fuzzer/pedro/blob_wrong_optimization.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/blob_wrong_optimization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW t1(c1, c0) AS (SELECT 1, max(c0) FROM t0); diff --git a/parser/testdata/corpus/fuzzer/pedro/buffer_manager_out_of_memory.test b/parser/testdata/corpus/fuzzer/pedro/buffer_manager_out_of_memory.test index 713f1aef..95d025b7 100644 --- a/parser/testdata/corpus/fuzzer/pedro/buffer_manager_out_of_memory.test +++ b/parser/testdata/corpus/fuzzer/pedro/buffer_manager_out_of_memory.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/buffer_manager_out_of_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA MEMORY_LIMIT='10MB'; diff --git a/parser/testdata/corpus/fuzzer/pedro/buffer_manager_resize_issue.test b/parser/testdata/corpus/fuzzer/pedro/buffer_manager_resize_issue.test index 71669dca..a7870403 100644 --- a/parser/testdata/corpus/fuzzer/pedro/buffer_manager_resize_issue.test +++ b/parser/testdata/corpus/fuzzer/pedro/buffer_manager_resize_issue.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/buffer_manager_resize_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 INT, c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_assertion_error.test b/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_assertion_error.test index 431ccd2c..5ca09f01 100644 --- a/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_assertion_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_assertion_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/cardinality_estimator_assertion_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (SELECT 2) t0, (SELECT 3) t1 WHERE INTERVAL '1' DAYS USING SAMPLE (1 ROWS) REPEATABLE (1); diff --git a/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_runtime_issue.test b/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_runtime_issue.test index 05ccbbf7..6e884601 100644 --- a/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_runtime_issue.test +++ b/parser/testdata/corpus/fuzzer/pedro/cardinality_estimator_runtime_issue.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/cardinality_estimator_runtime_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 AS (SELECT 2); diff --git a/parser/testdata/corpus/fuzzer/pedro/comparison_to_string.test b/parser/testdata/corpus/fuzzer/pedro/comparison_to_string.test index e7cc624e..87a7f222 100644 --- a/parser/testdata/corpus/fuzzer/pedro/comparison_to_string.test +++ b/parser/testdata/corpus/fuzzer/pedro/comparison_to_string.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/comparison_to_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 WHERE (1 IS DISTINCT FROM 1) > ANY(SELECT 2); diff --git a/parser/testdata/corpus/fuzzer/pedro/complex_offset_clause_crash.test b/parser/testdata/corpus/fuzzer/pedro/complex_offset_clause_crash.test index db8f103f..31cabca3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/complex_offset_clause_crash.test +++ b/parser/testdata/corpus/fuzzer/pedro/complex_offset_clause_crash.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/complex_offset_clause_crash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 6 OFFSET count(*) FILTER ((SELECT 2 UNION (SELECT 2) OFFSET (SELECT LAST))) OVER (); diff --git a/parser/testdata/corpus/fuzzer/pedro/complex_type_all_subquery.test b/parser/testdata/corpus/fuzzer/pedro/complex_type_all_subquery.test index 66e73058..5a5272ed 100644 --- a/parser/testdata/corpus/fuzzer/pedro/complex_type_all_subquery.test +++ b/parser/testdata/corpus/fuzzer/pedro/complex_type_all_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/complex_type_all_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit VALUES((0, 0) = ALL(SELECT 2)); diff --git a/parser/testdata/corpus/fuzzer/pedro/concurrent_catalog_usage.test b/parser/testdata/corpus/fuzzer/pedro/concurrent_catalog_usage.test index 9e8df253..7c12f695 100644 --- a/parser/testdata/corpus/fuzzer/pedro/concurrent_catalog_usage.test +++ b/parser/testdata/corpus/fuzzer/pedro/concurrent_catalog_usage.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/concurrent_catalog_usage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 AS (SELECT 42); diff --git a/parser/testdata/corpus/fuzzer/pedro/concurrent_set_threads.test b/parser/testdata/corpus/fuzzer/pedro/concurrent_set_threads.test index 9f42a84d..5f7822ce 100644 --- a/parser/testdata/corpus/fuzzer/pedro/concurrent_set_threads.test +++ b/parser/testdata/corpus/fuzzer/pedro/concurrent_set_threads.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/concurrent_set_threads.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads={i} diff --git a/parser/testdata/corpus/fuzzer/pedro/constraints_temp_table.test b/parser/testdata/corpus/fuzzer/pedro/constraints_temp_table.test index 186b3878..a481b96f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/constraints_temp_table.test +++ b/parser/testdata/corpus/fuzzer/pedro/constraints_temp_table.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/constraints_temp_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 INT, c0 INT CONSTRAINT k1 REFERENCES t0(c0) UNIQUE); diff --git a/parser/testdata/corpus/fuzzer/pedro/correlated_in_segv.test b/parser/testdata/corpus/fuzzer/pedro/correlated_in_segv.test index 23dfefdd..bfa90cc2 100644 --- a/parser/testdata/corpus/fuzzer/pedro/correlated_in_segv.test +++ b/parser/testdata/corpus/fuzzer/pedro/correlated_in_segv.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/correlated_in_segv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 1 WHERE 1 IN (c0) GROUP BY ()) FROM (SELECT 1) t0(c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/correlated_limit_rowid.test b/parser/testdata/corpus/fuzzer/pedro/correlated_limit_rowid.test index 8d60478e..746e4922 100644 --- a/parser/testdata/corpus/fuzzer/pedro/correlated_limit_rowid.test +++ b/parser/testdata/corpus/fuzzer/pedro/correlated_limit_rowid.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/correlated_limit_rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 1 LIMIT t1.rowid) FROM t1 NATURAL JOIN t0; diff --git a/parser/testdata/corpus/fuzzer/pedro/correlated_offset_subquery.test b/parser/testdata/corpus/fuzzer/pedro/correlated_offset_subquery.test index 11dcb55d..cd215a70 100644 --- a/parser/testdata/corpus/fuzzer/pedro/correlated_offset_subquery.test +++ b/parser/testdata/corpus/fuzzer/pedro/correlated_offset_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/correlated_offset_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 1 OFFSET c0) FROM (VALUES(1)) c0; diff --git a/parser/testdata/corpus/fuzzer/pedro/correlated_subquery_downcast_error.test b/parser/testdata/corpus/fuzzer/pedro/correlated_subquery_downcast_error.test index d40de0dc..92651e57 100644 --- a/parser/testdata/corpus/fuzzer/pedro/correlated_subquery_downcast_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/correlated_subquery_downcast_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/correlated_subquery_downcast_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) OVER() = ANY(SELECT * FROM t0 t1 WHERE(c0 = t0.c0)) FROM t0; diff --git a/parser/testdata/corpus/fuzzer/pedro/create_index_error.test b/parser/testdata/corpus/fuzzer/pedro/create_index_error.test index 716c7d7b..dd98fbfd 100644 --- a/parser/testdata/corpus/fuzzer/pedro/create_index_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/create_index_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/create_index_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 VARCHAR, c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/create_replace_table_union.test b/parser/testdata/corpus/fuzzer/pedro/create_replace_table_union.test index 3d514afa..0c81d9a8 100644 --- a/parser/testdata/corpus/fuzzer/pedro/create_replace_table_union.test +++ b/parser/testdata/corpus/fuzzer/pedro/create_replace_table_union.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/create_replace_table_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t0 AS ((SELECT 1) UNION ALL ((SELECT 2) INTERSECT ALL (SELECT 2))); diff --git a/parser/testdata/corpus/fuzzer/pedro/currval_sequence_dependency.test b/parser/testdata/corpus/fuzzer/pedro/currval_sequence_dependency.test index 7d78ddf3..5cce859d 100644 --- a/parser/testdata/corpus/fuzzer/pedro/currval_sequence_dependency.test +++ b/parser/testdata/corpus/fuzzer/pedro/currval_sequence_dependency.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/currval_sequence_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE seq; diff --git a/parser/testdata/corpus/fuzzer/pedro/date_int_optimizer_error.test b/parser/testdata/corpus/fuzzer/pedro/date_int_optimizer_error.test index da6f862d..f4c600d1 100644 --- a/parser/testdata/corpus/fuzzer/pedro/date_int_optimizer_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/date_int_optimizer_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/date_int_optimizer_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM t0 WHERE DATE '2010-1-1' = 2; diff --git a/parser/testdata/corpus/fuzzer/pedro/decimal_with_invalid_scale.test b/parser/testdata/corpus/fuzzer/pedro/decimal_with_invalid_scale.test index 40073e72..38cf11fd 100644 --- a/parser/testdata/corpus/fuzzer/pedro/decimal_with_invalid_scale.test +++ b/parser/testdata/corpus/fuzzer/pedro/decimal_with_invalid_scale.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/decimal_with_invalid_scale.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE x(x DECIMAL(38763269, 77914819)); diff --git a/parser/testdata/corpus/fuzzer/pedro/delete_add_column.test b/parser/testdata/corpus/fuzzer/pedro/delete_add_column.test index 2b149cf3..15817c6b 100644 --- a/parser/testdata/corpus/fuzzer/pedro/delete_add_column.test +++ b/parser/testdata/corpus/fuzzer/pedro/delete_add_column.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/delete_add_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT 1 c1; diff --git a/parser/testdata/corpus/fuzzer/pedro/delete_using_bindings.test b/parser/testdata/corpus/fuzzer/pedro/delete_using_bindings.test index e9911c52..957d4f15 100644 --- a/parser/testdata/corpus/fuzzer/pedro/delete_using_bindings.test +++ b/parser/testdata/corpus/fuzzer/pedro/delete_using_bindings.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/delete_using_bindings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM t0 USING ((SELECT 1) t1 INNER JOIN (SELECT 2) t2 ON t0.c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/drop_gcol.test b/parser/testdata/corpus/fuzzer/pedro/drop_gcol.test index e4dc9e17..4501f796 100644 --- a/parser/testdata/corpus/fuzzer/pedro/drop_gcol.test +++ b/parser/testdata/corpus/fuzzer/pedro/drop_gcol.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/drop_gcol.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 INT AS (0), c1 INT, CHECK(c1 > 0)); diff --git a/parser/testdata/corpus/fuzzer/pedro/duplicate_cte.test b/parser/testdata/corpus/fuzzer/pedro/duplicate_cte.test index a3ad9b74..ea1084c3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/duplicate_cte.test +++ b/parser/testdata/corpus/fuzzer/pedro/duplicate_cte.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/duplicate_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t0 AS (SELECT 2) INSERT INTO t0 (WITH t0 AS (SELECT 2) SELECT 2); diff --git a/parser/testdata/corpus/fuzzer/pedro/duplicate_using_clause.test b/parser/testdata/corpus/fuzzer/pedro/duplicate_using_clause.test index 0f2d93ab..cd3a7f4a 100644 --- a/parser/testdata/corpus/fuzzer/pedro/duplicate_using_clause.test +++ b/parser/testdata/corpus/fuzzer/pedro/duplicate_using_clause.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/duplicate_using_clause.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/escaped_trim_function_call.test b/parser/testdata/corpus/fuzzer/pedro/escaped_trim_function_call.test index d4ed9f91..043fa0dd 100644 --- a/parser/testdata/corpus/fuzzer/pedro/escaped_trim_function_call.test +++ b/parser/testdata/corpus/fuzzer/pedro/escaped_trim_function_call.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/escaped_trim_function_call.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT "trim"('hello'); diff --git a/parser/testdata/corpus/fuzzer/pedro/export_parquet_generated.test b/parser/testdata/corpus/fuzzer/pedro/export_parquet_generated.test index 984fe71a..704e46fe 100644 --- a/parser/testdata/corpus/fuzzer/pedro/export_parquet_generated.test +++ b/parser/testdata/corpus/fuzzer/pedro/export_parquet_generated.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/export_parquet_generated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit BEGIN; diff --git a/parser/testdata/corpus/fuzzer/pedro/first_value_window_crash.test b/parser/testdata/corpus/fuzzer/pedro/first_value_window_crash.test index 895a2c0e..0b83e965 100644 --- a/parser/testdata/corpus/fuzzer/pedro/first_value_window_crash.test +++ b/parser/testdata/corpus/fuzzer/pedro/first_value_window_crash.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/first_value_window_crash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT first_value((1 || mode() WITHIN GROUP (ORDER BY 1)) IGNORE NULLS) OVER () FROM t1; diff --git a/parser/testdata/corpus/fuzzer/pedro/floating_point_conversion_overflow.test b/parser/testdata/corpus/fuzzer/pedro/floating_point_conversion_overflow.test index 3e020d5b..384470c4 100644 --- a/parser/testdata/corpus/fuzzer/pedro/floating_point_conversion_overflow.test +++ b/parser/testdata/corpus/fuzzer/pedro/floating_point_conversion_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/floating_point_conversion_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 0::{float_type}::{type} @@ -43,11 +43,11 @@ SELECT 4294967296::DOUBLE::UINTEGER -- ok == -SELECT 18446743523953736703::REAL::UBIGINT +SELECT 18446743523953737727::REAL::UBIGINT -- ok == -SELECT 18446743523953736704::REAL::UBIGINT +SELECT 18446743523953737728::REAL::UBIGINT -- ok == diff --git a/parser/testdata/corpus/fuzzer/pedro/floating_point_inequality.test b/parser/testdata/corpus/fuzzer/pedro/floating_point_inequality.test index 2910e133..8fe41f56 100644 --- a/parser/testdata/corpus/fuzzer/pedro/floating_point_inequality.test +++ b/parser/testdata/corpus/fuzzer/pedro/floating_point_inequality.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/floating_point_inequality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT -0::DOUBLE, 0::DOUBLE; diff --git a/parser/testdata/corpus/fuzzer/pedro/force_external_blob.test b/parser/testdata/corpus/fuzzer/pedro/force_external_blob.test index 9b648b1a..de4c4cc8 100644 --- a/parser/testdata/corpus/fuzzer/pedro/force_external_blob.test +++ b/parser/testdata/corpus/fuzzer/pedro/force_external_blob.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/force_external_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA DEBUG_FORCE_EXTERNAL=1; diff --git a/parser/testdata/corpus/fuzzer/pedro/force_no_cross_product.test b/parser/testdata/corpus/fuzzer/pedro/force_no_cross_product.test index af8f47a3..bbfb68ac 100644 --- a/parser/testdata/corpus/fuzzer/pedro/force_no_cross_product.test +++ b/parser/testdata/corpus/fuzzer/pedro/force_no_cross_product.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/force_no_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_force_no_cross_product=1; diff --git a/parser/testdata/corpus/fuzzer/pedro/forced_parallelism_empty_select.test b/parser/testdata/corpus/fuzzer/pedro/forced_parallelism_empty_select.test index a245eac5..05f91176 100644 --- a/parser/testdata/corpus/fuzzer/pedro/forced_parallelism_empty_select.test +++ b/parser/testdata/corpus/fuzzer/pedro/forced_parallelism_empty_select.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/forced_parallelism_empty_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA verify_parallelism; diff --git a/parser/testdata/corpus/fuzzer/pedro/foreign_key_binding_issue.test b/parser/testdata/corpus/fuzzer/pedro/foreign_key_binding_issue.test index 40e420e1..7f53e3b7 100644 --- a/parser/testdata/corpus/fuzzer/pedro/foreign_key_binding_issue.test +++ b/parser/testdata/corpus/fuzzer/pedro/foreign_key_binding_issue.test @@ -1,11 +1,11 @@ # source: test/fuzzer/pedro/foreign_key_binding_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 INT, UNIQUE (c0, c0)); -- -error: Parser Error: column ""c0"" appears twice in primary key constraint +error: Parser Error: column "c0" appears twice in primary key constraint == CREATE TABLE t0 (c0 INT, FOREIGN KEY (c0, c0) REFERENCES t0(c0, c0), UNIQUE (c0, c0)); -- diff --git a/parser/testdata/corpus/fuzzer/pedro/foreign_key_type_mismatch.test b/parser/testdata/corpus/fuzzer/pedro/foreign_key_type_mismatch.test index 6891c7c4..22601118 100644 --- a/parser/testdata/corpus/fuzzer/pedro/foreign_key_type_mismatch.test +++ b/parser/testdata/corpus/fuzzer/pedro/foreign_key_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/foreign_key_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c2 INT CONSTRAINT k0 UNIQUE, c0 DECIMAL, CONSTRAINT k1 FOREIGN KEY (c0) REFERENCES t0 (c2)); diff --git a/parser/testdata/corpus/fuzzer/pedro/gcol_stack_overflow.test b/parser/testdata/corpus/fuzzer/pedro/gcol_stack_overflow.test index d508d418..16609a28 100644 --- a/parser/testdata/corpus/fuzzer/pedro/gcol_stack_overflow.test +++ b/parser/testdata/corpus/fuzzer/pedro/gcol_stack_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/gcol_stack_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c2 AS (c0) VIRTUAL, c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/group_by_all_row_alias.test b/parser/testdata/corpus/fuzzer/pedro/group_by_all_row_alias.test index 1c65e89f..76daf9ff 100644 --- a/parser/testdata/corpus/fuzzer/pedro/group_by_all_row_alias.test +++ b/parser/testdata/corpus/fuzzer/pedro/group_by_all_row_alias.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/group_by_all_row_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c1 c2, ROW(t0.c1, c2) FROM t0 GROUP BY ALL; diff --git a/parser/testdata/corpus/fuzzer/pedro/hash_finalize_race.test b/parser/testdata/corpus/fuzzer/pedro/hash_finalize_race.test index 9441cc30..6e7b06a3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/hash_finalize_race.test +++ b/parser/testdata/corpus/fuzzer/pedro/hash_finalize_race.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/hash_finalize_race.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE t4; diff --git a/parser/testdata/corpus/fuzzer/pedro/having_query_wrong_result.test b/parser/testdata/corpus/fuzzer/pedro/having_query_wrong_result.test index e1d5f780..58f91b3f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/having_query_wrong_result.test +++ b/parser/testdata/corpus/fuzzer/pedro/having_query_wrong_result.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/having_query_wrong_result.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT nextval('seq'); diff --git a/parser/testdata/corpus/fuzzer/pedro/having_subquery_failed_to_bind.test b/parser/testdata/corpus/fuzzer/pedro/having_subquery_failed_to_bind.test index 3b2f139d..72161ead 100644 --- a/parser/testdata/corpus/fuzzer/pedro/having_subquery_failed_to_bind.test +++ b/parser/testdata/corpus/fuzzer/pedro/having_subquery_failed_to_bind.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/having_subquery_failed_to_bind.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(c2) c0 FROM (SELECT 1) t1(c2) HAVING (SELECT c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/in_clause_optimization_error.test b/parser/testdata/corpus/fuzzer/pedro/in_clause_optimization_error.test index e3cf21f0..ca22ceb5 100644 --- a/parser/testdata/corpus/fuzzer/pedro/in_clause_optimization_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/in_clause_optimization_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/in_clause_optimization_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t0 VALUES (42) diff --git a/parser/testdata/corpus/fuzzer/pedro/in_clause_setop_rewrite.test b/parser/testdata/corpus/fuzzer/pedro/in_clause_setop_rewrite.test index 90fa98fe..b36d7edc 100644 --- a/parser/testdata/corpus/fuzzer/pedro/in_clause_setop_rewrite.test +++ b/parser/testdata/corpus/fuzzer/pedro/in_clause_setop_rewrite.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/in_clause_setop_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t0(id int); diff --git a/parser/testdata/corpus/fuzzer/pedro/incomplete_checkpoint.test b/parser/testdata/corpus/fuzzer/pedro/incomplete_checkpoint.test index b4bf9b88..b4a986a8 100644 --- a/parser/testdata/corpus/fuzzer/pedro/incomplete_checkpoint.test +++ b/parser/testdata/corpus/fuzzer/pedro/incomplete_checkpoint.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/incomplete_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA wal_autocheckpoint='1TB'; diff --git a/parser/testdata/corpus/fuzzer/pedro/incorrect_offset_result.test b/parser/testdata/corpus/fuzzer/pedro/incorrect_offset_result.test index 9ce94fca..dab71750 100644 --- a/parser/testdata/corpus/fuzzer/pedro/incorrect_offset_result.test +++ b/parser/testdata/corpus/fuzzer/pedro/incorrect_offset_result.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/incorrect_offset_result.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t0 (VALUES (1, 1),(2, 2),(3, 3)); diff --git a/parser/testdata/corpus/fuzzer/pedro/index_current_timestamp.test b/parser/testdata/corpus/fuzzer/pedro/index_current_timestamp.test index a2a82694..b67293ff 100644 --- a/parser/testdata/corpus/fuzzer/pedro/index_current_timestamp.test +++ b/parser/testdata/corpus/fuzzer/pedro/index_current_timestamp.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/index_current_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT, c1 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/pedro/index_generated_column.test b/parser/testdata/corpus/fuzzer/pedro/index_generated_column.test index f17250e8..4119b36b 100644 --- a/parser/testdata/corpus/fuzzer/pedro/index_generated_column.test +++ b/parser/testdata/corpus/fuzzer/pedro/index_generated_column.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/index_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i0 ON t0 USING ART ((c0 + c1)); diff --git a/parser/testdata/corpus/fuzzer/pedro/index_insert_from_union.test b/parser/testdata/corpus/fuzzer/pedro/index_insert_from_union.test index cbe37922..6ee061bb 100644 --- a/parser/testdata/corpus/fuzzer/pedro/index_insert_from_union.test +++ b/parser/testdata/corpus/fuzzer/pedro/index_insert_from_union.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/index_insert_from_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (c1 INT, PRIMARY KEY (c1)); @@ -35,7 +35,3 @@ SELECT * FROM t2 WHERE c1<2 -- ok == -COMMIT --- -ok -== diff --git a/parser/testdata/corpus/fuzzer/pedro/index_not_updated_returning.test b/parser/testdata/corpus/fuzzer/pedro/index_not_updated_returning.test index 2bc2c7fe..c6a3fcfa 100644 --- a/parser/testdata/corpus/fuzzer/pedro/index_not_updated_returning.test +++ b/parser/testdata/corpus/fuzzer/pedro/index_not_updated_returning.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/index_not_updated_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 AS SELECT 1 c1, 1 c2; diff --git a/parser/testdata/corpus/fuzzer/pedro/index_on_altered_table.test b/parser/testdata/corpus/fuzzer/pedro/index_on_altered_table.test index 2bf25583..74c0d2f6 100644 --- a/parser/testdata/corpus/fuzzer/pedro/index_on_altered_table.test +++ b/parser/testdata/corpus/fuzzer/pedro/index_on_altered_table.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/index_on_altered_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CHECKPOINT diff --git a/parser/testdata/corpus/fuzzer/pedro/insert_or_replace_only_pk.test b/parser/testdata/corpus/fuzzer/pedro/insert_or_replace_only_pk.test index a65abfad..3da18b36 100644 --- a/parser/testdata/corpus/fuzzer/pedro/insert_or_replace_only_pk.test +++ b/parser/testdata/corpus/fuzzer/pedro/insert_or_replace_only_pk.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/insert_or_replace_only_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (c1 INT PRIMARY KEY); diff --git a/parser/testdata/corpus/fuzzer/pedro/intersect_correlated_subquery.test b/parser/testdata/corpus/fuzzer/pedro/intersect_correlated_subquery.test index 1a65f4ac..282a6ad0 100644 --- a/parser/testdata/corpus/fuzzer/pedro/intersect_correlated_subquery.test +++ b/parser/testdata/corpus/fuzzer/pedro/intersect_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/intersect_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 TINYINT); diff --git a/parser/testdata/corpus/fuzzer/pedro/intersect_empty_array.test b/parser/testdata/corpus/fuzzer/pedro/intersect_empty_array.test index c6c3ec88..5e70f1c3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/intersect_empty_array.test +++ b/parser/testdata/corpus/fuzzer/pedro/intersect_empty_array.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/intersect_empty_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 2 INTERSECT VALUES([]); diff --git a/parser/testdata/corpus/fuzzer/pedro/is_distinct_from_validation.test b/parser/testdata/corpus/fuzzer/pedro/is_distinct_from_validation.test index a771e266..845a41e3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/is_distinct_from_validation.test +++ b/parser/testdata/corpus/fuzzer/pedro/is_distinct_from_validation.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/is_distinct_from_validation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (0 IS DISTINCT FROM 2) = 0; diff --git a/parser/testdata/corpus/fuzzer/pedro/lag_window_function.test b/parser/testdata/corpus/fuzzer/pedro/lag_window_function.test index ee290273..28822896 100644 --- a/parser/testdata/corpus/fuzzer/pedro/lag_window_function.test +++ b/parser/testdata/corpus/fuzzer/pedro/lag_window_function.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/lag_window_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT lag(1) OVER (ORDER BY 0 RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING); diff --git a/parser/testdata/corpus/fuzzer/pedro/last_memory_leak.test b/parser/testdata/corpus/fuzzer/pedro/last_memory_leak.test index fcb8760e..edcc5b6c 100644 --- a/parser/testdata/corpus/fuzzer/pedro/last_memory_leak.test +++ b/parser/testdata/corpus/fuzzer/pedro/last_memory_leak.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/last_memory_leak.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/pedro/lateral_join.test b/parser/testdata/corpus/fuzzer/pedro/lateral_join.test index 5aa71e45..23b17f7f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/lateral_join.test +++ b/parser/testdata/corpus/fuzzer/pedro/lateral_join.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/lateral_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/like_empty_list.test b/parser/testdata/corpus/fuzzer/pedro/like_empty_list.test index 45e209ec..b47b82cb 100644 --- a/parser/testdata/corpus/fuzzer/pedro/like_empty_list.test +++ b/parser/testdata/corpus/fuzzer/pedro/like_empty_list.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/like_empty_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '1' LIKE []; diff --git a/parser/testdata/corpus/fuzzer/pedro/limit_on_any_subquery.test b/parser/testdata/corpus/fuzzer/pedro/limit_on_any_subquery.test index 3c2900ed..a8a7f6d3 100644 --- a/parser/testdata/corpus/fuzzer/pedro/limit_on_any_subquery.test +++ b/parser/testdata/corpus/fuzzer/pedro/limit_on_any_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/limit_on_any_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 WHERE 1 < ANY(SELECT 2 LIMIT 0%); diff --git a/parser/testdata/corpus/fuzzer/pedro/local_transaction_delete_empty_tree.test b/parser/testdata/corpus/fuzzer/pedro/local_transaction_delete_empty_tree.test index 6a4ba88a..351dff06 100644 --- a/parser/testdata/corpus/fuzzer/pedro/local_transaction_delete_empty_tree.test +++ b/parser/testdata/corpus/fuzzer/pedro/local_transaction_delete_empty_tree.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/local_transaction_delete_empty_tree.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM t1 RETURNING 1; diff --git a/parser/testdata/corpus/fuzzer/pedro/logical_column_index_out_of_range.test b/parser/testdata/corpus/fuzzer/pedro/logical_column_index_out_of_range.test index 692321cc..12136743 100644 --- a/parser/testdata/corpus/fuzzer/pedro/logical_column_index_out_of_range.test +++ b/parser/testdata/corpus/fuzzer/pedro/logical_column_index_out_of_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/logical_column_index_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT, c2 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/missing_subquery_error.test b/parser/testdata/corpus/fuzzer/pedro/missing_subquery_error.test index e2b9a4da..e9262970 100644 --- a/parser/testdata/corpus/fuzzer/pedro/missing_subquery_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/missing_subquery_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/missing_subquery_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t2 AS (SELECT 3 WHERE count(*) FILTER (1)) SELECT 0 FROM t2 diff --git a/parser/testdata/corpus/fuzzer/pedro/multiplication_verification.test b/parser/testdata/corpus/fuzzer/pedro/multiplication_verification.test index f92818e4..1152f911 100644 --- a/parser/testdata/corpus/fuzzer/pedro/multiplication_verification.test +++ b/parser/testdata/corpus/fuzzer/pedro/multiplication_verification.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/multiplication_verification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 * (1 < 1); diff --git a/parser/testdata/corpus/fuzzer/pedro/nan_as_seed.test b/parser/testdata/corpus/fuzzer/pedro/nan_as_seed.test index 0a80525a..f9eb1bc5 100644 --- a/parser/testdata/corpus/fuzzer/pedro/nan_as_seed.test +++ b/parser/testdata/corpus/fuzzer/pedro/nan_as_seed.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/nan_as_seed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select range i from range(10000) diff --git a/parser/testdata/corpus/fuzzer/pedro/natural_join_generated_heap_overflow.test b/parser/testdata/corpus/fuzzer/pedro/natural_join_generated_heap_overflow.test index 1ced1bdb..71c671b4 100644 --- a/parser/testdata/corpus/fuzzer/pedro/natural_join_generated_heap_overflow.test +++ b/parser/testdata/corpus/fuzzer/pedro/natural_join_generated_heap_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/natural_join_generated_heap_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 AS (1), c0 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/nested_limit_subquery.test b/parser/testdata/corpus/fuzzer/pedro/nested_limit_subquery.test index 329a3821..a3460e3c 100644 --- a/parser/testdata/corpus/fuzzer/pedro/nested_limit_subquery.test +++ b/parser/testdata/corpus/fuzzer/pedro/nested_limit_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/nested_limit_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (SELECT 1) t0(c0) WHERE (SELECT c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/nested_subquery_table_function.test b/parser/testdata/corpus/fuzzer/pedro/nested_subquery_table_function.test index 56eb9c11..38276b0d 100644 --- a/parser/testdata/corpus/fuzzer/pedro/nested_subquery_table_function.test +++ b/parser/testdata/corpus/fuzzer/pedro/nested_subquery_table_function.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/nested_subquery_table_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM range((SELECT 1) - 0); diff --git a/parser/testdata/corpus/fuzzer/pedro/non_boolean_aggregate_filter.test b/parser/testdata/corpus/fuzzer/pedro/non_boolean_aggregate_filter.test index 7c320361..1f93ef9f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/non_boolean_aggregate_filter.test +++ b/parser/testdata/corpus/fuzzer/pedro/non_boolean_aggregate_filter.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/non_boolean_aggregate_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT mode(1) FILTER (0); diff --git a/parser/testdata/corpus/fuzzer/pedro/offset_query_allocator_assertion.test b/parser/testdata/corpus/fuzzer/pedro/offset_query_allocator_assertion.test index 10f4dbea..940e28cf 100644 --- a/parser/testdata/corpus/fuzzer/pedro/offset_query_allocator_assertion.test +++ b/parser/testdata/corpus/fuzzer/pedro/offset_query_allocator_assertion.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/offset_query_allocator_assertion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c0 FROM t0 OFFSET 42949672960; diff --git a/parser/testdata/corpus/fuzzer/pedro/order_by_all_with_union.test b/parser/testdata/corpus/fuzzer/pedro/order_by_all_with_union.test index d585b4b5..c452392f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/order_by_all_with_union.test +++ b/parser/testdata/corpus/fuzzer/pedro/order_by_all_with_union.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/order_by_all_with_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit (SELECT 2 ORDER BY(SELECT 2)) UNION SELECT 1 ORDER BY ALL; diff --git a/parser/testdata/corpus/fuzzer/pedro/overflow_parsing_interval.test b/parser/testdata/corpus/fuzzer/pedro/overflow_parsing_interval.test index df57faf3..912124e5 100644 --- a/parser/testdata/corpus/fuzzer/pedro/overflow_parsing_interval.test +++ b/parser/testdata/corpus/fuzzer/pedro/overflow_parsing_interval.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/overflow_parsing_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT INTERVAL '-9223372036854775808' MICROSECONDS; diff --git a/parser/testdata/corpus/fuzzer/pedro/overflow_varchar_decimal_cast.test b/parser/testdata/corpus/fuzzer/pedro/overflow_varchar_decimal_cast.test index a59e3ec7..c9a1b480 100644 --- a/parser/testdata/corpus/fuzzer/pedro/overflow_varchar_decimal_cast.test +++ b/parser/testdata/corpus/fuzzer/pedro/overflow_varchar_decimal_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/overflow_varchar_decimal_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(strftime(TIMESTAMP '1-1-1 0:00:00',340282346638528859811704183484516925440.0) AS DECIMAL(10,2)); diff --git a/parser/testdata/corpus/fuzzer/pedro/parser_roundtrip.test b/parser/testdata/corpus/fuzzer/pedro/parser_roundtrip.test index f89c02e4..01bee067 100644 --- a/parser/testdata/corpus/fuzzer/pedro/parser_roundtrip.test +++ b/parser/testdata/corpus/fuzzer/pedro/parser_roundtrip.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/parser_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT BLOB '\x27' diff --git a/parser/testdata/corpus/fuzzer/pedro/prepared_statement_recursive_cte.test b/parser/testdata/corpus/fuzzer/pedro/prepared_statement_recursive_cte.test index ff9eb644..dcf57203 100644 --- a/parser/testdata/corpus/fuzzer/pedro/prepared_statement_recursive_cte.test +++ b/parser/testdata/corpus/fuzzer/pedro/prepared_statement_recursive_cte.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/prepared_statement_recursive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE p0 AS WITH RECURSIVE t1(c2) AS ((SELECT 1) UNION DISTINCT (SELECT (c2 + 1) FROM t1 WHERE (c2 < 3))) SELECT * FROM t1 ORDER BY c2 NULLS LAST; diff --git a/parser/testdata/corpus/fuzzer/pedro/pushdown_assertion_error.test b/parser/testdata/corpus/fuzzer/pedro/pushdown_assertion_error.test index 39053b9b..12ee9ef8 100644 --- a/parser/testdata/corpus/fuzzer/pedro/pushdown_assertion_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/pushdown_assertion_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/pushdown_assertion_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (c2 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/pushdown_error.test b/parser/testdata/corpus/fuzzer/pedro/pushdown_error.test index 32675110..ff45d466 100644 --- a/parser/testdata/corpus/fuzzer/pedro/pushdown_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/pushdown_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/pushdown_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2(c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/pushdown_simplification_overflow.test b/parser/testdata/corpus/fuzzer/pedro/pushdown_simplification_overflow.test index 0ff40f23..4cd2cf90 100644 --- a/parser/testdata/corpus/fuzzer/pedro/pushdown_simplification_overflow.test +++ b/parser/testdata/corpus/fuzzer/pedro/pushdown_simplification_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/pushdown_simplification_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1(c0) VALUES (1),(2),(3); diff --git a/parser/testdata/corpus/fuzzer/pedro/qualify_binder_error.test b/parser/testdata/corpus/fuzzer/pedro/qualify_binder_error.test index 3baeb9c5..09c9d359 100644 --- a/parser/testdata/corpus/fuzzer/pedro/qualify_binder_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/qualify_binder_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/qualify_binder_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c0, count(c0) over () AS count_window FROM (SELECT 1) t0(c0) GROUP BY c0 QUALIFY count_window; diff --git a/parser/testdata/corpus/fuzzer/pedro/random_engine_use_after_free.test b/parser/testdata/corpus/fuzzer/pedro/random_engine_use_after_free.test index 187d2d38..d0017b51 100644 --- a/parser/testdata/corpus/fuzzer/pedro/random_engine_use_after_free.test +++ b/parser/testdata/corpus/fuzzer/pedro/random_engine_use_after_free.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/random_engine_use_after_free.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c0 INT CHECK (current_schema()='main')); diff --git a/parser/testdata/corpus/fuzzer/pedro/recursive_cte_dependent_join.test b/parser/testdata/corpus/fuzzer/pedro/recursive_cte_dependent_join.test index 4428b532..91ff13dc 100644 --- a/parser/testdata/corpus/fuzzer/pedro/recursive_cte_dependent_join.test +++ b/parser/testdata/corpus/fuzzer/pedro/recursive_cte_dependent_join.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/recursive_cte_dependent_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (WITH RECURSIVE t1 AS (SELECT 1 UNION SELECT 1 FROM t1 WHERE c2 < 3) SELECT 2 FROM t1) FROM (SELECT 1 c2) t1; diff --git a/parser/testdata/corpus/fuzzer/pedro/recursive_cte_limit_percent.test b/parser/testdata/corpus/fuzzer/pedro/recursive_cte_limit_percent.test index d379d9d6..7c2cdfa6 100644 --- a/parser/testdata/corpus/fuzzer/pedro/recursive_cte_limit_percent.test +++ b/parser/testdata/corpus/fuzzer/pedro/recursive_cte_limit_percent.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/recursive_cte_limit_percent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t1(c0) AS ((SELECT 1, 1 c1) UNION (SELECT 1, 1 FROM (SELECT 1) x(x) JOIN t1 ON FALSE LIMIT 1%)) SELECT 1 FROM t1 JOIN t1 t0 USING (c1); diff --git a/parser/testdata/corpus/fuzzer/pedro/regr_count_validity.test b/parser/testdata/corpus/fuzzer/pedro/regr_count_validity.test index 48fcb7c3..94665d74 100644 --- a/parser/testdata/corpus/fuzzer/pedro/regr_count_validity.test +++ b/parser/testdata/corpus/fuzzer/pedro/regr_count_validity.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/regr_count_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regr_count(1,1) FROM t0; diff --git a/parser/testdata/corpus/fuzzer/pedro/rename_column_assertion.test b/parser/testdata/corpus/fuzzer/pedro/rename_column_assertion.test index d0e1c443..59525f3d 100644 --- a/parser/testdata/corpus/fuzzer/pedro/rename_column_assertion.test +++ b/parser/testdata/corpus/fuzzer/pedro/rename_column_assertion.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/rename_column_assertion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 INT, c2 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/rename_restart.test b/parser/testdata/corpus/fuzzer/pedro/rename_restart.test index 60019e9e..fc3fdee4 100644 --- a/parser/testdata/corpus/fuzzer/pedro/rename_restart.test +++ b/parser/testdata/corpus/fuzzer/pedro/rename_restart.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/rename_restart.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET wal_autocheckpoint='10MB'; diff --git a/parser/testdata/corpus/fuzzer/pedro/rename_table_index_rollback.test b/parser/testdata/corpus/fuzzer/pedro/rename_table_index_rollback.test index 45b63d75..9561f662 100644 --- a/parser/testdata/corpus/fuzzer/pedro/rename_table_index_rollback.test +++ b/parser/testdata/corpus/fuzzer/pedro/rename_table_index_rollback.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/rename_table_index_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE VIEW t1 AS (SELECT 1); diff --git a/parser/testdata/corpus/fuzzer/pedro/rename_table_index_storage.test b/parser/testdata/corpus/fuzzer/pedro/rename_table_index_storage.test index c1c329bc..c7d030eb 100644 --- a/parser/testdata/corpus/fuzzer/pedro/rename_table_index_storage.test +++ b/parser/testdata/corpus/fuzzer/pedro/rename_table_index_storage.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/rename_table_index_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i0 ON t1 (c0); diff --git a/parser/testdata/corpus/fuzzer/pedro/restart_current_time.test b/parser/testdata/corpus/fuzzer/pedro/restart_current_time.test index c4b0f9e9..30369c93 100644 --- a/parser/testdata/corpus/fuzzer/pedro/restart_current_time.test +++ b/parser/testdata/corpus/fuzzer/pedro/restart_current_time.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/restart_current_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 INT, CHECK (CURRENT_TIME >= TIME '00:00:00')); diff --git a/parser/testdata/corpus/fuzzer/pedro/restart_random.test b/parser/testdata/corpus/fuzzer/pedro/restart_random.test index c13e302e..2dc72238 100644 --- a/parser/testdata/corpus/fuzzer/pedro/restart_random.test +++ b/parser/testdata/corpus/fuzzer/pedro/restart_random.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/restart_random.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 INT, CHECK (RANDOM() >= 0)); diff --git a/parser/testdata/corpus/fuzzer/pedro/returning_clause_sizes_not_match.test b/parser/testdata/corpus/fuzzer/pedro/returning_clause_sizes_not_match.test index bb497670..c1f59e64 100644 --- a/parser/testdata/corpus/fuzzer/pedro/returning_clause_sizes_not_match.test +++ b/parser/testdata/corpus/fuzzer/pedro/returning_clause_sizes_not_match.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/returning_clause_sizes_not_match.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INT, y AS(x + 100)); diff --git a/parser/testdata/corpus/fuzzer/pedro/returning_clause_with_rowid.test b/parser/testdata/corpus/fuzzer/pedro/returning_clause_with_rowid.test index a6de36cd..8856bb9f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/returning_clause_with_rowid.test +++ b/parser/testdata/corpus/fuzzer/pedro/returning_clause_with_rowid.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/returning_clause_with_rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t0 VALUES (1) RETURNING c0, rowid; diff --git a/parser/testdata/corpus/fuzzer/pedro/rollup_wrong_result.test b/parser/testdata/corpus/fuzzer/pedro/rollup_wrong_result.test index df359f63..07769e8f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/rollup_wrong_result.test +++ b/parser/testdata/corpus/fuzzer/pedro/rollup_wrong_result.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/rollup_wrong_result.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET default_null_order='nulls_first'; diff --git a/parser/testdata/corpus/fuzzer/pedro/sample_limit_overflow.test b/parser/testdata/corpus/fuzzer/pedro/sample_limit_overflow.test index fb0c51f6..8ecbbd97 100644 --- a/parser/testdata/corpus/fuzzer/pedro/sample_limit_overflow.test +++ b/parser/testdata/corpus/fuzzer/pedro/sample_limit_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/sample_limit_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (SELECT 1 ORDER BY ALL LIMIT 514322393620248226) USING SAMPLE SYSTEM (36%); diff --git a/parser/testdata/corpus/fuzzer/pedro/segment_tree_index_issue.test b/parser/testdata/corpus/fuzzer/pedro/segment_tree_index_issue.test index fb8038ff..4657ab7d 100644 --- a/parser/testdata/corpus/fuzzer/pedro/segment_tree_index_issue.test +++ b/parser/testdata/corpus/fuzzer/pedro/segment_tree_index_issue.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/segment_tree_index_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 INT); diff --git a/parser/testdata/corpus/fuzzer/pedro/setop_type_mismatch.test b/parser/testdata/corpus/fuzzer/pedro/setop_type_mismatch.test index 8b7786b0..cc372b65 100644 --- a/parser/testdata/corpus/fuzzer/pedro/setop_type_mismatch.test +++ b/parser/testdata/corpus/fuzzer/pedro/setop_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/setop_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '\x1E' FROM (SELECT 1) t1(c0) ORDER BY ALL OFFSET (SELECT DISTINCT 6.5 FROM (SELECT 1) t1(c0) UNION ALL SELECT 3); diff --git a/parser/testdata/corpus/fuzzer/pedro/signed_and_unsigned_comparison.test b/parser/testdata/corpus/fuzzer/pedro/signed_and_unsigned_comparison.test index e699984f..d6c10945 100644 --- a/parser/testdata/corpus/fuzzer/pedro/signed_and_unsigned_comparison.test +++ b/parser/testdata/corpus/fuzzer/pedro/signed_and_unsigned_comparison.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/signed_and_unsigned_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 ( diff --git a/parser/testdata/corpus/fuzzer/pedro/statistics_propagation_set_op.test b/parser/testdata/corpus/fuzzer/pedro/statistics_propagation_set_op.test index 5f6f8176..e24782bc 100644 --- a/parser/testdata/corpus/fuzzer/pedro/statistics_propagation_set_op.test +++ b/parser/testdata/corpus/fuzzer/pedro/statistics_propagation_set_op.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/statistics_propagation_set_op.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (SELECT 1) t0(c0) WHERE ((VALUES(1), (c0) LIMIT 1) INTERSECT (SELECT 1)); diff --git a/parser/testdata/corpus/fuzzer/pedro/strftime_constant_null.test b/parser/testdata/corpus/fuzzer/pedro/strftime_constant_null.test index 76a17dce..c9af29d4 100644 --- a/parser/testdata/corpus/fuzzer/pedro/strftime_constant_null.test +++ b/parser/testdata/corpus/fuzzer/pedro/strftime_constant_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/strftime_constant_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c1 TIMESTAMP); diff --git a/parser/testdata/corpus/fuzzer/pedro/strptime_null_argument.test b/parser/testdata/corpus/fuzzer/pedro/strptime_null_argument.test index 746d734d..a020ef09 100644 --- a/parser/testdata/corpus/fuzzer/pedro/strptime_null_argument.test +++ b/parser/testdata/corpus/fuzzer/pedro/strptime_null_argument.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/strptime_null_argument.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strptime(NULL,'p') IS DISTINCT FROM DATE '-543572-1-1'; diff --git a/parser/testdata/corpus/fuzzer/pedro/subquery_assertion_error.test b/parser/testdata/corpus/fuzzer/pedro/subquery_assertion_error.test index 2b5b8efd..73047144 100644 --- a/parser/testdata/corpus/fuzzer/pedro/subquery_assertion_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/subquery_assertion_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/subquery_assertion_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (VALUES(1 != ALL(SELECT 2))); diff --git a/parser/testdata/corpus/fuzzer/pedro/temp_sequence_durability.test b/parser/testdata/corpus/fuzzer/pedro/temp_sequence_durability.test index ebf2847d..f86254e7 100644 --- a/parser/testdata/corpus/fuzzer/pedro/temp_sequence_durability.test +++ b/parser/testdata/corpus/fuzzer/pedro/temp_sequence_durability.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/temp_sequence_durability.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA DISABLE_CHECKPOINT_ON_SHUTDOWN; diff --git a/parser/testdata/corpus/fuzzer/pedro/temp_sequence_reconnect.test b/parser/testdata/corpus/fuzzer/pedro/temp_sequence_reconnect.test index 63b27885..60818a91 100644 --- a/parser/testdata/corpus/fuzzer/pedro/temp_sequence_reconnect.test +++ b/parser/testdata/corpus/fuzzer/pedro/temp_sequence_reconnect.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/temp_sequence_reconnect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE t1; diff --git a/parser/testdata/corpus/fuzzer/pedro/temp_table_cleanup.test b/parser/testdata/corpus/fuzzer/pedro/temp_table_cleanup.test index 1c657caf..33d07a2f 100644 --- a/parser/testdata/corpus/fuzzer/pedro/temp_table_cleanup.test +++ b/parser/testdata/corpus/fuzzer/pedro/temp_table_cleanup.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/temp_table_cleanup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE t2 AS (SELECT 1); diff --git a/parser/testdata/corpus/fuzzer/pedro/test_segv_argmax.test b/parser/testdata/corpus/fuzzer/pedro/test_segv_argmax.test index d8bb3c0b..754b59a2 100644 --- a/parser/testdata/corpus/fuzzer/pedro/test_segv_argmax.test +++ b/parser/testdata/corpus/fuzzer/pedro/test_segv_argmax.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/test_segv_argmax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 ( diff --git a/parser/testdata/corpus/fuzzer/pedro/test_truncate_heap_use_after_free.test b/parser/testdata/corpus/fuzzer/pedro/test_truncate_heap_use_after_free.test index b70342ef..f7698d53 100644 --- a/parser/testdata/corpus/fuzzer/pedro/test_truncate_heap_use_after_free.test +++ b/parser/testdata/corpus/fuzzer/pedro/test_truncate_heap_use_after_free.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/test_truncate_heap_use_after_free.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t2 VALUES (1),(0); diff --git a/parser/testdata/corpus/fuzzer/pedro/test_window_function_nullptr.test b/parser/testdata/corpus/fuzzer/pedro/test_window_function_nullptr.test index 497fc19f..629a2650 100644 --- a/parser/testdata/corpus/fuzzer/pedro/test_window_function_nullptr.test +++ b/parser/testdata/corpus/fuzzer/pedro/test_window_function_nullptr.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/test_window_function_nullptr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA DEBUG_WINDOW_MODE='separate'; diff --git a/parser/testdata/corpus/fuzzer/pedro/update_default_segv.test b/parser/testdata/corpus/fuzzer/pedro/update_default_segv.test index 4ca0676f..ba57c555 100644 --- a/parser/testdata/corpus/fuzzer/pedro/update_default_segv.test +++ b/parser/testdata/corpus/fuzzer/pedro/update_default_segv.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/update_default_segv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 VARCHAR, c2 AS(1), c3 INT, UNIQUE(c0)); diff --git a/parser/testdata/corpus/fuzzer/pedro/update_join_bind_error.test b/parser/testdata/corpus/fuzzer/pedro/update_join_bind_error.test index bf972f11..4ecd5feb 100644 --- a/parser/testdata/corpus/fuzzer/pedro/update_join_bind_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/update_join_bind_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/update_join_bind_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT 1 diff --git a/parser/testdata/corpus/fuzzer/pedro/update_join_statistics.test b/parser/testdata/corpus/fuzzer/pedro/update_join_statistics.test index 56fa4b4d..f41ad670 100644 --- a/parser/testdata/corpus/fuzzer/pedro/update_join_statistics.test +++ b/parser/testdata/corpus/fuzzer/pedro/update_join_statistics.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/update_join_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c0 INT, c2 BIGINT, PRIMARY KEY (c0)); diff --git a/parser/testdata/corpus/fuzzer/pedro/utf8_invalid_unicode.test b/parser/testdata/corpus/fuzzer/pedro/utf8_invalid_unicode.test index b4a94c5d..3efee2b4 100644 --- a/parser/testdata/corpus/fuzzer/pedro/utf8_invalid_unicode.test +++ b/parser/testdata/corpus/fuzzer/pedro/utf8_invalid_unicode.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/utf8_invalid_unicode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT upper(decode('\xF6\x96\xB0\x85'::BLOB)::VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/pedro/vacuum_table_with_generated_column.test b/parser/testdata/corpus/fuzzer/pedro/vacuum_table_with_generated_column.test index a41f99b5..ac6fb94e 100644 --- a/parser/testdata/corpus/fuzzer/pedro/vacuum_table_with_generated_column.test +++ b/parser/testdata/corpus/fuzzer/pedro/vacuum_table_with_generated_column.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/vacuum_table_with_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INT, y AS (x + 100)); diff --git a/parser/testdata/corpus/fuzzer/pedro/vacuum_unsupported_type.test b/parser/testdata/corpus/fuzzer/pedro/vacuum_unsupported_type.test index 5e109d1a..c5060b6e 100644 --- a/parser/testdata/corpus/fuzzer/pedro/vacuum_unsupported_type.test +++ b/parser/testdata/corpus/fuzzer/pedro/vacuum_unsupported_type.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/vacuum_unsupported_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS (VALUES ([], {'a': []})); diff --git a/parser/testdata/corpus/fuzzer/pedro/verify_parallelism_batch_index.test b/parser/testdata/corpus/fuzzer/pedro/verify_parallelism_batch_index.test index 940d9e86..dfcc844b 100644 --- a/parser/testdata/corpus/fuzzer/pedro/verify_parallelism_batch_index.test +++ b/parser/testdata/corpus/fuzzer/pedro/verify_parallelism_batch_index.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/verify_parallelism_batch_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 AS VALUES (1), (2), (3); diff --git a/parser/testdata/corpus/fuzzer/pedro/view_not_rebound_error.test b/parser/testdata/corpus/fuzzer/pedro/view_not_rebound_error.test index fade9eef..d33f8c0a 100644 --- a/parser/testdata/corpus/fuzzer/pedro/view_not_rebound_error.test +++ b/parser/testdata/corpus/fuzzer/pedro/view_not_rebound_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/view_not_rebound_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set enable_view_dependencies=true diff --git a/parser/testdata/corpus/fuzzer/pedro/wal_rename_table.test b/parser/testdata/corpus/fuzzer/pedro/wal_rename_table.test index a028b11a..e9bb0fbb 100644 --- a/parser/testdata/corpus/fuzzer/pedro/wal_rename_table.test +++ b/parser/testdata/corpus/fuzzer/pedro/wal_rename_table.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/wal_rename_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t1 RENAME TO t0; diff --git a/parser/testdata/corpus/fuzzer/pedro/window_function_timeout.test b/parser/testdata/corpus/fuzzer/pedro/window_function_timeout.test index b455ac9b..f79de2d1 100644 --- a/parser/testdata/corpus/fuzzer/pedro/window_function_timeout.test +++ b/parser/testdata/corpus/fuzzer/pedro/window_function_timeout.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/window_function_timeout.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 TIME); diff --git a/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test b/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test index 43d92fc0..7bec886e 100644 --- a/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test +++ b/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test @@ -1,6 +1,6 @@ # source: test/fuzzer/pedro/window_self_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) OVER w1 WINDOW w1 AS (ORDER BY count(*) OVER w1); diff --git a/parser/testdata/corpus/fuzzer/public/cast_index_expression.test b/parser/testdata/corpus/fuzzer/public/cast_index_expression.test index 8d4de345..2f65ebfb 100644 --- a/parser/testdata/corpus/fuzzer/public/cast_index_expression.test +++ b/parser/testdata/corpus/fuzzer/public/cast_index_expression.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/cast_index_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i_index ON v00 USING ART ( NULLIF ( v00, 'string' ) ); diff --git a/parser/testdata/corpus/fuzzer/public/columns_using.test b/parser/testdata/corpus/fuzzer/public/columns_using.test index f281175e..972fdaef 100644 --- a/parser/testdata/corpus/fuzzer/public/columns_using.test +++ b/parser/testdata/corpus/fuzzer/public/columns_using.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/columns_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v00 (c01 INT); diff --git a/parser/testdata/corpus/fuzzer/public/distinct_on_non_integer_literal.test b/parser/testdata/corpus/fuzzer/public/distinct_on_non_integer_literal.test index 1458bd66..f3175f6c 100644 --- a/parser/testdata/corpus/fuzzer/public/distinct_on_non_integer_literal.test +++ b/parser/testdata/corpus/fuzzer/public/distinct_on_non_integer_literal.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/distinct_on_non_integer_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET order_by_non_integer_literal=true; diff --git a/parser/testdata/corpus/fuzzer/public/duplicate_alias_using.test b/parser/testdata/corpus/fuzzer/public/duplicate_alias_using.test index 7d72feee..47f0c27e 100644 --- a/parser/testdata/corpus/fuzzer/public/duplicate_alias_using.test +++ b/parser/testdata/corpus/fuzzer/public/duplicate_alias_using.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/duplicate_alias_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c1 diff --git a/parser/testdata/corpus/fuzzer/public/enum_empty_type.test b/parser/testdata/corpus/fuzzer/public/enum_empty_type.test index 240ab8af..687c6203 100644 --- a/parser/testdata/corpus/fuzzer/public/enum_empty_type.test +++ b/parser/testdata/corpus/fuzzer/public/enum_empty_type.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/enum_empty_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE c AS ENUM(''); diff --git a/parser/testdata/corpus/fuzzer/public/insert_by_name_default.test b/parser/testdata/corpus/fuzzer/public/insert_by_name_default.test index f4cc73a3..260ea9f4 100644 --- a/parser/testdata/corpus/fuzzer/public/insert_by_name_default.test +++ b/parser/testdata/corpus/fuzzer/public/insert_by_name_default.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/insert_by_name_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(i INT) diff --git a/parser/testdata/corpus/fuzzer/public/insert_or_replace_default_values.test b/parser/testdata/corpus/fuzzer/public/insert_or_replace_default_values.test index f43a78b2..dceed15e 100644 --- a/parser/testdata/corpus/fuzzer/public/insert_or_replace_default_values.test +++ b/parser/testdata/corpus/fuzzer/public/insert_or_replace_default_values.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/insert_or_replace_default_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(id INTEGER PRIMARY KEY DEFAULT 1, payload INTEGER DEFAULT nextval('seq')); diff --git a/parser/testdata/corpus/fuzzer/public/insert_returning.test b/parser/testdata/corpus/fuzzer/public/insert_returning.test index bb919287..3f5a65a2 100644 --- a/parser/testdata/corpus/fuzzer/public/insert_returning.test +++ b/parser/testdata/corpus/fuzzer/public/insert_returning.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/insert_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO v00 (c01, c02) VALUES (0, 'abc'); diff --git a/parser/testdata/corpus/fuzzer/public/lateral_in_right_side_of_join.test b/parser/testdata/corpus/fuzzer/public/lateral_in_right_side_of_join.test index 498a5123..560bf266 100644 --- a/parser/testdata/corpus/fuzzer/public/lateral_in_right_side_of_join.test +++ b/parser/testdata/corpus/fuzzer/public/lateral_in_right_side_of_join.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/lateral_in_right_side_of_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INT , c1 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/public/lateral_join_subquery.test b/parser/testdata/corpus/fuzzer/public/lateral_join_subquery.test index b1c830aa..5aed2917 100644 --- a/parser/testdata/corpus/fuzzer/public/lateral_join_subquery.test +++ b/parser/testdata/corpus/fuzzer/public/lateral_join_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/lateral_join_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM t1 INNER JOIN (SELECT t1.c1) ON (SELECT 42); diff --git a/parser/testdata/corpus/fuzzer/public/lateral_right_join.test b/parser/testdata/corpus/fuzzer/public/lateral_right_join.test index c36ac303..63c8d5ef 100644 --- a/parser/testdata/corpus/fuzzer/public/lateral_right_join.test +++ b/parser/testdata/corpus/fuzzer/public/lateral_right_join.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/lateral_right_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (c01 INT, c02 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/public/pivot_empty_enum.test b/parser/testdata/corpus/fuzzer/public/pivot_empty_enum.test index 91041f89..221803ea 100644 --- a/parser/testdata/corpus/fuzzer/public/pivot_empty_enum.test +++ b/parser/testdata/corpus/fuzzer/public/pivot_empty_enum.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/pivot_empty_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c01 INT); diff --git a/parser/testdata/corpus/fuzzer/public/pivot_full_join_using.test b/parser/testdata/corpus/fuzzer/public/pivot_full_join_using.test index e7a304dc..4b2a00b7 100644 --- a/parser/testdata/corpus/fuzzer/public/pivot_full_join_using.test +++ b/parser/testdata/corpus/fuzzer/public/pivot_full_join_using.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/pivot_full_join_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c01 INT, c02 INT); diff --git a/parser/testdata/corpus/fuzzer/public/positional_join_correlated_subquery.test b/parser/testdata/corpus/fuzzer/public/positional_join_correlated_subquery.test index 764c3d93..f7b36235 100644 --- a/parser/testdata/corpus/fuzzer/public/positional_join_correlated_subquery.test +++ b/parser/testdata/corpus/fuzzer/public/positional_join_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/positional_join_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 42 FROM (SELECT c01) POSITIONAL JOIN (SELECT c02)) diff --git a/parser/testdata/corpus/fuzzer/public/pragma_named_parameters.test b/parser/testdata/corpus/fuzzer/public/pragma_named_parameters.test index 4eece6e1..c83fcc89 100644 --- a/parser/testdata/corpus/fuzzer/public/pragma_named_parameters.test +++ b/parser/testdata/corpus/fuzzer/public/pragma_named_parameters.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/pragma_named_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA e=r=0,0; diff --git a/parser/testdata/corpus/fuzzer/public/regex_range_filter_mismatch.test b/parser/testdata/corpus/fuzzer/public/regex_range_filter_mismatch.test index fc589135..4079cfc4 100644 --- a/parser/testdata/corpus/fuzzer/public/regex_range_filter_mismatch.test +++ b/parser/testdata/corpus/fuzzer/public/regex_range_filter_mismatch.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/regex_range_filter_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v00 ( c01 INTEGER ) ; diff --git a/parser/testdata/corpus/fuzzer/public/semi_anti_join_using.test b/parser/testdata/corpus/fuzzer/public/semi_anti_join_using.test index 7e1dd545..8accf7c9 100644 --- a/parser/testdata/corpus/fuzzer/public/semi_anti_join_using.test +++ b/parser/testdata/corpus/fuzzer/public/semi_anti_join_using.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/semi_anti_join_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO v00 VALUES (42); diff --git a/parser/testdata/corpus/fuzzer/public/semi_join_using.test b/parser/testdata/corpus/fuzzer/public/semi_join_using.test index 5d30cbed..317cc17c 100644 --- a/parser/testdata/corpus/fuzzer/public/semi_join_using.test +++ b/parser/testdata/corpus/fuzzer/public/semi_join_using.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/semi_join_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c02 diff --git a/parser/testdata/corpus/fuzzer/public/unpivot_partial_values.test b/parser/testdata/corpus/fuzzer/public/unpivot_partial_values.test index 31533b7c..f63a4fab 100644 --- a/parser/testdata/corpus/fuzzer/public/unpivot_partial_values.test +++ b/parser/testdata/corpus/fuzzer/public/unpivot_partial_values.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/unpivot_partial_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (SELECT 42 c1) AS ta06 UNPIVOT (c1 FOR 'v' IN ( ( c1, 'a' || 'b' ) ) ) ; diff --git a/parser/testdata/corpus/fuzzer/public/unsatisfiable_filter_prune.test b/parser/testdata/corpus/fuzzer/public/unsatisfiable_filter_prune.test index 6376d1cd..c2d60fda 100644 --- a/parser/testdata/corpus/fuzzer/public/unsatisfiable_filter_prune.test +++ b/parser/testdata/corpus/fuzzer/public/unsatisfiable_filter_prune.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/unsatisfiable_filter_prune.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INT, c1 INT); diff --git a/parser/testdata/corpus/fuzzer/public/window_subquery_error.test b/parser/testdata/corpus/fuzzer/public/window_subquery_error.test index 8022aa84..35aab40f 100644 --- a/parser/testdata/corpus/fuzzer/public/window_subquery_error.test +++ b/parser/testdata/corpus/fuzzer/public/window_subquery_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/window_subquery_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'string' IN ( SELECT string_agg ('str') OVER ( PARTITION BY c02 + 'string' IN ( SELECT 'string' )) ); diff --git a/parser/testdata/corpus/fuzzer/public/window_subquery_with_functions_error.test b/parser/testdata/corpus/fuzzer/public/window_subquery_with_functions_error.test index 98e0d02e..51fc8fd1 100644 --- a/parser/testdata/corpus/fuzzer/public/window_subquery_with_functions_error.test +++ b/parser/testdata/corpus/fuzzer/public/window_subquery_with_functions_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/public/window_subquery_with_functions_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 ( v1 INTEGER ) ; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_executor.test b/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_executor.test index cf172859..df66c1f4 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_executor.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_executor.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/bitstring_agg_executor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(v UBIGINT); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_overflow.test index dec5ab56..fd82b19c 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/bitstring_agg_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/bitstring_agg_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE integers(i {type}); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/current_schemas_null.test b/parser/testdata/corpus/fuzzer/sqlsmith/current_schemas_null.test index 356e8e0d..3a69d2a0 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/current_schemas_null.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/current_schemas_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/current_schemas_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE booleans(bool BOOLEAN); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/dayofweek_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/dayofweek_overflow.test index 116ce9b7..c306260b 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/dayofweek_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/dayofweek_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/dayofweek_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(date DATE); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/fuzzer_window_varchar.test b/parser/testdata/corpus/fuzzer/sqlsmith/fuzzer_window_varchar.test index fa4bde4c..fc6c27a0 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/fuzzer_window_varchar.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/fuzzer_window_varchar.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/fuzzer_window_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types("varchar" VARCHAR, "double" DOUBLE);; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/generate_series_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/generate_series_overflow.test index e095cc6e..ca076c8c 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/generate_series_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/generate_series_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/generate_series_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(bigint BIGINT); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/interval_diff_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/interval_diff_overflow.test index ba38e086..22bbd3e5 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/interval_diff_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/interval_diff_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/interval_diff_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT subtract( diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/interval_multiply_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/interval_multiply_overflow.test index 6abe9111..659ef440 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/interval_multiply_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/interval_multiply_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/interval_multiply_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT multiply("interval", "bigint") diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/json_contains_null.test b/parser/testdata/corpus/fuzzer/sqlsmith/json_contains_null.test index aedb79f4..be59fe91 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/json_contains_null.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/json_contains_null.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/json_contains_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_contains(NULL::VARCHAR, NULL::VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/like_null_pattern.test b/parser/testdata/corpus/fuzzer/sqlsmith/like_null_pattern.test index 22e8f3fd..ce8ac5fd 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/like_null_pattern.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/like_null_pattern.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/like_null_pattern.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_schema() ~~ CAST(NULL AS VARCHAR) diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/mad_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/mad_overflow.test index 6fa59a3c..de50e259 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/mad_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/mad_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/mad_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT mad(dec38_10) diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/makedate_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/makedate_overflow.test index b2ef8398..92c9aaf0 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/makedate_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/makedate_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/makedate_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT make_timestamp("bigint", "bigint", "bigint", "bigint", "bigint", "double") diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/nested_correlated_subquery.test b/parser/testdata/corpus/fuzzer/sqlsmith/nested_correlated_subquery.test index 306dc33b..a84c7e30 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/nested_correlated_subquery.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/nested_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/nested_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(ps_supplycost INT, n_name INT); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map.test b/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map.test index 1fbc0eb7..201567da 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/nullif_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(map MAP(VARCHAR, VARCHAR));; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map_with_config.test b/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map_with_config.test index d963c82d..29a55061 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map_with_config.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/nullif_map_with_config.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/nullif_map_with_config.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET default_block_size = 262144; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/statistics_assertion_trigger.test b/parser/testdata/corpus/fuzzer/sqlsmith/statistics_assertion_trigger.test index 0897298b..f06a8c66 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/statistics_assertion_trigger.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/statistics_assertion_trigger.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/statistics_assertion_trigger.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL AS c3 diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/strptime_nullpointer.test b/parser/testdata/corpus/fuzzer/sqlsmith/strptime_nullpointer.test index 592b415e..6a3962c6 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/strptime_nullpointer.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/strptime_nullpointer.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/strptime_nullpointer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 BOOLEAN DEFAULT(true), c1 VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/struct_null_coalesce_assert.test b/parser/testdata/corpus/fuzzer/sqlsmith/struct_null_coalesce_assert.test index 3c632361..1c84d8ce 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/struct_null_coalesce_assert.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/struct_null_coalesce_assert.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/struct_null_coalesce_assert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct_tbl("struct" STRUCT(a INTEGER, b VARCHAR)); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/struct_verify_crash.test b/parser/testdata/corpus/fuzzer/sqlsmith/struct_verify_crash.test index 3c3c6ae8..9d5a882e 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/struct_verify_crash.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/struct_verify_crash.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/struct_verify_crash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(array_of_structs STRUCT(a INTEGER, b VARCHAR)[]); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/subquery_binding_error.test b/parser/testdata/corpus/fuzzer/sqlsmith/subquery_binding_error.test index ed7e396d..3e89d446 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/subquery_binding_error.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/subquery_binding_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/subquery_binding_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types("varchar" VARCHAR); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/test_abs_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/test_abs_overflow.test index abee8762..f521ab44 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/test_abs_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/test_abs_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/test_abs_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numerics AS SELECT tinyint, smallint, int, bigint, hugeint FROM test_all_types(); diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_diff_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_diff_overflow.test index f352a39b..611628c5 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_diff_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_diff_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/timestamp_diff_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ts("timestamp" TIMESTAMP);; @@ -20,9 +20,9 @@ INSERT INTO ts VALUES(NULL); ok == select - subtract( + count(subtract( cast(now() as timestamp), - cast(ref_0.timestamp as timestamp)) as c10 + cast(ref_0.timestamp as timestamp))) as c10 from ts as ref_0 -- diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_overflow.test index f5c48645..bb346816 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/timestamp_overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/timestamp_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c15 diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_double_cast.test b/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_double_cast.test index fe0aada5..be3ce10a 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_double_cast.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_double_cast.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/timestamptz_double_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_null_range.test b/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_null_range.test index 1d1a58e1..0a302386 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_null_range.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/timestamptz_null_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/timestamptz_null_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL FROM ( diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/validity_mask_out_of_bounds.test b/parser/testdata/corpus/fuzzer/sqlsmith/validity_mask_out_of_bounds.test index f633042d..8bfdf3f0 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/validity_mask_out_of_bounds.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/validity_mask_out_of_bounds.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/validity_mask_out_of_bounds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types(struct_of_arrays STRUCT(a INTEGER[], b VARCHAR[]), "smallint" SMALLINT);; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/window-leadlag-overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/window-leadlag-overflow.test index 28a7acb5..ba01ee7b 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/window-leadlag-overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/window-leadlag-overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/window-leadlag-overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH all_types AS ( diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/window-list-value.test b/parser/testdata/corpus/fuzzer/sqlsmith/window-list-value.test index 0fc16ce6..9b9413c2 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/window-list-value.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/window-list-value.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/window-list-value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as select * exclude(small_enum, medium_enum, large_enum) diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/window-rows-overflow.test b/parser/testdata/corpus/fuzzer/sqlsmith/window-rows-overflow.test index d3856f19..5e058bf9 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/window-rows-overflow.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/window-rows-overflow.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/window-rows-overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/window_function_error.test b/parser/testdata/corpus/fuzzer/sqlsmith/window_function_error.test index 75fddfe8..778329a2 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/window_function_error.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/window_function_error.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/window_function_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT 'thisisastring42' AS r_name; diff --git a/parser/testdata/corpus/fuzzer/sqlsmith/window_scalar_range.test b/parser/testdata/corpus/fuzzer/sqlsmith/window_scalar_range.test index 208c9f7e..fc222432 100644 --- a/parser/testdata/corpus/fuzzer/sqlsmith/window_scalar_range.test +++ b/parser/testdata/corpus/fuzzer/sqlsmith/window_scalar_range.test @@ -1,6 +1,6 @@ # source: test/fuzzer/sqlsmith/window_scalar_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partsupp AS SELECT (random() * 100)::INT AS c2 diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/aggregate_state_union.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/aggregate_state_union.test new file mode 100644 index 00000000..a8112c44 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/aggregate_state_union.test @@ -0,0 +1,21 @@ +# source: test/sql/aggregate/aggregate_state_export/aggregate_state_union.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT finalize(s) FROM ( + SELECT list(v) AS s FROM (VALUES ([1, 2])) t(v) + UNION ALL + SELECT list(v) EXPORT_STATE AS s FROM (VALUES ([3])) t(v) +) t; +-- +ok +== +SELECT typeof(s) FROM (SELECT sum(1) AS s UNION ALL SELECT sum(1) EXPORT_STATE) t LIMIT 1; +-- +ok +== +SELECT typeof(s) FROM (SELECT sum(1) EXPORT_STATE AS s UNION ALL SELECT sum(2) EXPORT_STATE) t LIMIT 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_count_distinct_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_count_distinct_export_state.test index 9039bdeb..282410fa 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_count_distinct_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_count_distinct_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/approx_count_distinct_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(approx_count_distinct(i) EXPORT_STATE) = approx_count_distinct(i), approx_count_distinct(i) FROM range(100000) r(i); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_quantile_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_quantile_export_state.test index 4f0acca7..86267b8a 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_quantile_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_quantile_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/approx_quantile_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT approx_quantile(i, 0.5) EXPORT_STATE FROM (SELECT 1 AS i WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_top_k_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_top_k_export_state.test index 4ca14096..e92fe529 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_top_k_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/approx_top_k_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/approx_top_k_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads=1; @@ -132,3 +132,26 @@ SELECT finalize(to_aggregate_state({ -- ok == +CREATE TABLE partial AS SELECT * FROM (VALUES (0, 1), (0, 1), (0, 1), (1, 2), (1, 2), (2, 2), (2, 2), (3, 3)) t(b, v); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT b, approx_top_k(v, 1) EXPORT_STATE s FROM partial GROUP BY b); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM ( + SELECT b, approx_top_k(v, 1) EXPORT_STATE s + FROM (SELECT i % 2 b, CASE WHEN i < 40 THEN 7 ELSE i END v FROM range(100) r(i)) GROUP BY b +); +-- +ok +== +SELECT finalize(to_aggregate_state({ + 'k': 2::UBIGINT, + 'values': [{'value': 'a'::VARCHAR, 'count': 5::UBIGINT}]::STRUCT("value" VARCHAR, "count" UBIGINT)[], + 'filter': list_transform(range(64), lambda x: 1::UBIGINT) +}, 'approx_top_k', ['VARCHAR', 'BIGINT'])); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/arg_min_max_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/arg_min_max_export_state.test index 8385a619..2ecffd81 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/arg_min_max_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/arg_min_max_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/arg_min_max_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT arg_min(a, b) EXPORT_STATE FROM (SELECT 1 a, 1 b WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_time_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_time_export_state.test index 70b64b0c..2ac16e61 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_time_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_time_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/avg_time_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(to_aggregate_state({'count': 1, 'value': 99999999999999999}, 'avg', ['{type}'])); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_timestamp_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_timestamp_export_state.test new file mode 100644 index 00000000..5558a1fa --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/avg_timestamp_export_state.test @@ -0,0 +1,111 @@ +# source: test/sql/aggregate/aggregate_state_export/avg_timestamp_export_state.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT avg(ts) EXPORT_STATE, avg(ts) FILTER (ts < TIMESTAMP '2001-01-01') EXPORT_STATE, avg(ts) FILTER (ts > TIMESTAMP '1999-01-01') EXPORT_STATE +FROM (VALUES ('infinity'::TIMESTAMP), (TIMESTAMP '2000-01-01'), ('-infinity'::TIMESTAMP)) t(ts); +-- +ok +== +SELECT avg(ts) EXPORT_STATE FROM (VALUES (TIMESTAMP '2000-01-01'), (TIMESTAMP '2000-01-03')) t(ts); +-- +ok +== +SELECT avg(d) EXPORT_STATE, finalize(avg(d) EXPORT_STATE) FROM (VALUES ('-infinity'::DATE), (DATE '2000-01-01')) t(d); +-- +ok +== +CREATE VIEW states AS SELECT g, avg(ts) EXPORT_STATE AS st FROM (VALUES (0, 'infinity'::TIMESTAMP), (0, 'infinity'::TIMESTAMP), (1, TIMESTAMP '2000-01-01'), (1, TIMESTAMP '2000-01-03'), (2, '-infinity'::TIMESTAMP)) t(g, ts) GROUP BY g; +-- +ok +== +SELECT finalize(combine(s0.st, s1.st)), finalize(combine(s1.st, s2.st)), finalize(combine(s0.st, s2.st)) +FROM states s0, states s1, states s2 WHERE s0.g = 0 AND s1.g = 1 AND s2.g = 2; +-- +ok +== +SELECT finalize(combine_aggr(st)), finalize(combine_aggr(st) FILTER (g < 2)) FROM states; +-- +ok +== +SELECT combine_aggr(st, 3), finalize(combine_aggr(st, 3)) FROM states WHERE g = 0; +-- +ok +== +SELECT finalize(combine_aggr(st, 2)), finalize(combine_aggr(st, 2) FILTER (g > 0)), finalize(combine_aggr(st, 2) FILTER (g <> 1)) FROM states; +-- +ok +== +SELECT combine_aggr(st, 2), finalize(combine_aggr(st, 2)) FROM (SELECT combine_aggr(st) AS st FROM states WHERE g <> 1); +-- +ok +== +SELECT finalize(combine_aggr(st, CASE WHEN g = 0 THEN 0 ELSE 1 END)) FROM states WHERE g < 2; +-- +ok +== +SELECT finalize(to_aggregate_state({'count': 18446744073709551615, 'value': v}, 'avg', ['TIMESTAMP'])) FROM (VALUES (1::HUGEINT), (2), (3)) t(v) ORDER BY v; +-- +ok +== +SELECT finalize(combine(a, b)), finalize(combine(b, a)) FROM (SELECT to_aggregate_state({'count': 1, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']) AS a, to_aggregate_state({'count': 18446744073709551615, 'value': 2::HUGEINT}, 'avg', ['TIMESTAMP']) AS b); +-- +ok +== +SELECT finalize(to_aggregate_state({'count': 18446744073709551615, 'value': 4::HUGEINT}, 'avg', ['TIMESTAMP'])); +-- +ok +== +SELECT finalize(to_aggregate_state({'count': 18446744073709551615, 'value': {v}::HUGEINT}, 'avg', ['TIMESTAMP'])); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT finalize(combine_aggr(to_aggregate_state({'count': 18446744073709551615, 'value': {v}::HUGEINT}, 'avg', ['TIMESTAMPTZ']))); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT finalize(combine_aggr(to_aggregate_state({'count': 18446744073709551615, 'value': {v}::HUGEINT}, 'avg', ['TIMESTAMP']), 2)); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT combine(to_aggregate_state({'count': 18446744073709551615, 'value': {v}::HUGEINT}, 'avg', ['TIMESTAMP']), st) FROM states; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT combine(st, to_aggregate_state({'count': 18446744073709551615, 'value': {v}::HUGEINT}, 'avg', ['TIMESTAMP'])) FROM states; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT finalize(to_aggregate_state({'count': 0, 'value': v}, 'avg', ['TIMESTAMP'])) FROM (VALUES (1::HUGEINT), (2), (3), (5)) t(v) ORDER BY v; +-- +ok +== +SELECT finalize(combine_aggr(st)), finalize(combine_aggr(st, 2)) FROM (SELECT to_aggregate_state({'count': 0, 'value': 18446744073709551617::HUGEINT}, 'avg', ['TIMESTAMP']) AS st); +-- +ok +== +SELECT finalize(combine(to_aggregate_state({'count': 0, 'value': 5::HUGEINT}, 'avg', ['TIMESTAMP']), to_aggregate_state({'count': 0, 'value': -4::HUGEINT}, 'avg', ['TIMESTAMP']))); +-- +ok +== +SELECT finalize(combine(a, b)), finalize(combine(b, a)) FROM (SELECT to_aggregate_state({'count': 1, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']) AS a, to_aggregate_state({'count': 0, 'value': 5::HUGEINT}, 'avg', ['TIMESTAMP']) AS b); +-- +ok +== +SELECT finalize(combine(to_aggregate_state({'count': 18446744073709551614, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']), to_aggregate_state({'count': 1, 'value': 1::HUGEINT}, 'avg', ['TIMESTAMP']))); +-- +ok +== +SELECT finalize(combine(to_aggregate_state({'count': 18446744073709551614, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']), to_aggregate_state({'count': 2, 'value': 1::HUGEINT}, 'avg', ['TIMESTAMP']))); +-- +ok +== +SELECT finalize(combine_aggr(to_aggregate_state({'count': 6148914691236517205, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']), 3)); +-- +ok +== +SELECT finalize(combine_aggr(to_aggregate_state({'count': 6148914691236517204, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']), 3)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/bool_and_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/bool_and_export_state.test index 9d09d29b..6a995238 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/bool_and_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/bool_and_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/bool_and_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT bool_and(NULL) EXPORT_STATE diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/combine_aggr_count_overflow.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/combine_aggr_count_overflow.test index 8010c9dc..3a7b67ba 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/combine_aggr_count_overflow.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/combine_aggr_count_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/combine_aggr_count_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH s AS (SELECT {aggr}(x) EXPORT_STATE st FROM (VALUES (1), (2), (2), (7)) v(x)) diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/count_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/count_export_state.test index e2887c99..96f3aef0 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/count_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/count_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/count_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) export_state diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/finalize_null_fields.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/finalize_null_fields.test index f62c1e5f..cb7fa377 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/finalize_null_fields.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/finalize_null_fields.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/finalize_null_fields.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*), count(r) FROM ( diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/first_last_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/first_last_export_state.test index 7dd54886..eedece31 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/first_last_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/first_last_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/first_last_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT first(i) EXPORT_STATE FROM (SELECT 1 AS i WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/kahan_avg_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/kahan_avg_export_state.test index 9641692a..de324e98 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/kahan_avg_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/kahan_avg_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/kahan_avg_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE kahan_context1 AS diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/legacy_aggregate_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/legacy_aggregate_state.test index a7ae0f10..ed2ef1cf 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/legacy_aggregate_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/legacy_aggregate_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/legacy_aggregate_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/legacy_aggregate_state.db' AS legacy diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/list_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/list_export_state.test index b052e7fc..003814d1 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/list_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/list_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/list_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(list(i) EXPORT_STATE) FROM (VALUES (1), (2), (3)) t(i); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/minmax_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/minmax_export_state.test index 433fdcfc..f1236206 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/minmax_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/minmax_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/minmax_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT min(v) EXPORT_STATE FROM (SELECT NULL::varchar AS v WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_aggregate_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_aggregate_export_state.test index 019ee268..5bb436a3 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_aggregate_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_aggregate_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/ordered_aggregate_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(l_orderkey BIGINT, l_quantity DECIMAL(15,2), l_shipdate DATE); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_empty_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_empty_state.test new file mode 100644 index 00000000..29a2c4ca --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_empty_state.test @@ -0,0 +1,21 @@ +# source: test/sql/aggregate/aggregate_state_export/ordered_export_empty_state.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT finalize(count(i ORDER BY k) EXPORT_STATE) FROM (SELECT 1 i, 1 k) WHERE false; +-- +ok +== +SELECT finalize(sum(i ORDER BY k) EXPORT_STATE) FROM (SELECT 1 i, 1 k) WHERE false; +-- +ok +== +SELECT finalize(count(i ORDER BY k) EXPORT_STATE) FROM (VALUES (1,1),(2,2),(3,3)) t(i,k); +-- +ok +== +SELECT count(i ORDER BY k) FROM (SELECT 1 i, 1 k) WHERE false; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_state_layout.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_state_layout.test index 6b1ad07a..56ba3c9c 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_state_layout.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/ordered_export_state_layout.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/ordered_export_state_layout.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(count(INTERVAL 1 DAY ORDER BY INTERVAL 1 DAY) EXPORT_STATE) FROM range(3); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/product_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/product_export_state.test index b995138c..4c7d8375 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/product_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/product_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/product_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT product(v) EXPORT_STATE FROM (SELECT NULL::double AS v WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/state_export_parquet.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/state_export_parquet.test index 38b540c3..29eb398a 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/state_export_parquet.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/state_export_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/state_export_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT SUM(42) EXPORT_STATE AS state) TO '{TEST_DIR}/exported_state.parquet'; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/sum_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/sum_export_state.test index ddaee622..48f48fe5 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/sum_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/sum_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/sum_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(sum(1::INTEGER) EXPORT_STATE); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_aggregate_state_type.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_aggregate_state_type.test index 9c341e47..41b8dd9f 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_aggregate_state_type.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_aggregate_state_type.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_aggregate_state_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(avg(1.0::{type}) EXPORT_STATE); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_combine_aggr.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_combine_aggr.test index 93f5e8e8..2b46fe55 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_combine_aggr.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_combine_aggr.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_combine_aggr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table dummy as select range % 10 g, range d from range(100); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_corr_state_export.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_corr_state_export.test index 742ee52a..3d46dc1c 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_corr_state_export.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_corr_state_export.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_corr_state_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT corr(d, d+1) export_state FROM dummy; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_covar_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_covar_export_state.test index 46d5a6e5..1a68df30 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_covar_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_covar_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_covar_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(x INTEGER, y INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_distinct.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_distinct.test new file mode 100644 index 00000000..27203721 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_distinct.test @@ -0,0 +1,69 @@ +# source: test/sql/aggregate/aggregate_state_export/test_export_state_distinct.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT i % 3 AS g, i % 10 AS v FROM range(30) r(i); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, count(DISTINCT v) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, sum(DISTINCT v) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== +SELECT finalize(count(DISTINCT v) EXPORT_STATE) FROM t; +-- +ok +== +SELECT count(DISTINCT v) EXPORT_STATE FROM t; +-- +ok +== +SELECT g, count(DISTINCT v) FILTER (WHERE v > 2) EXPORT_STATE FROM t GROUP BY g; +-- +ok +== +SELECT g, string_agg(DISTINCT v ORDER BY v) EXPORT_STATE FROM t GROUP BY g; +-- +ok +== +SELECT g, string_agg(DISTINCT v ORDER BY v) FILTER (WHERE v > 2) EXPORT_STATE FROM t GROUP BY g; +-- +ok +== +SELECT count(DISTINCT v), finalize(count(v) EXPORT_STATE) FROM t; +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, count(v) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, sum(v) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, count(v) FILTER (WHERE v > 2) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== +SELECT finalize(count(v) FILTER (WHERE v > 2) EXPORT_STATE) FROM t; +-- +ok +== +SELECT finalize(string_agg(v ORDER BY v) EXPORT_STATE) FROM (SELECT v FROM t WHERE g = 0); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, string_agg(v ORDER BY v) EXPORT_STATE AS s FROM t WHERE v < 3 GROUP BY g); +-- +ok +== +SELECT finalize(combine_aggr(s)) FROM (SELECT g, string_agg(v ORDER BY v) FILTER (WHERE v < 2) EXPORT_STATE AS s FROM t GROUP BY g); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_finalize_limits.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_finalize_limits.test index f9770a4f..deeb1176 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_finalize_limits.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_export_state_finalize_limits.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_export_state_finalize_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize( diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_bounds.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_bounds.test index 50abc9fa..a157510a 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_bounds.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_bounds.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_bounds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(to_aggregate_state([ {'v0' : 1} ], 'string_agg', [ 'VARCHAR', 'VARCHAR' ], NULL,[ {'column' : 0, 'order' : 'ASC NULLS FIRST'} ])); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_types.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_types.test index 9c9e72b7..36af69c1 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_types.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_types.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_sorted_aggregate_state_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(to_aggregate_state([{'v0': 1}, {'v0': 2}], 'list', ['INTEGER[]'], NULL, [{'column': 0, 'order': 'ASC NULLS FIRST'}])); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_opaque.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_opaque.test index 3469fa4a..f36e4aed 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_opaque.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_opaque.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_state_export_opaque.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT skewness(d) FROM dummy; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_quantile.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_quantile.test index c08aa160..6500873b 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_quantile.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_quantile.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_state_export_quantile.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT quantile_disc(d, 0.5) FROM dummy; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_string_agg.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_string_agg.test index fbcdc7f9..bea83bd7 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_string_agg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_string_agg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_state_export_string_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT string_agg(d, '|') FROM dummy; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_struct.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_struct.test index 2595c3d4..fab25559 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_struct.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_state_export_struct.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_state_export_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(d), avg(d)::integer, count(d), min(d), max(d), first(d), last(d), kurtosis(d), kurtosis_pop(d) FROM dummy; diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_stddev_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_stddev_export_state.test index 0d47a1ef..4ccfa8a6 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_stddev_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/test_stddev_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/test_stddev_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table stddev_test(val integer, grp integer) diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_argument_types.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_argument_types.test index b204b57d..24a8d97d 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_argument_types.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_argument_types.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/to_aggregate_state_argument_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(to_aggregate_state(1::BIGINT, 'sum'::VARIANT, ['BIGINT'])); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_errors.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_errors.test index 5a4510b1..b5c31a30 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_errors.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/to_aggregate_state_errors.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/to_aggregate_state_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT to_aggregate_state(0::HUGEINT, 'sum', [NULL]); diff --git a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/vector_minmax_export_state.test b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/vector_minmax_export_state.test index d3400ccd..ad435af8 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregate_state_export/vector_minmax_export_state.test +++ b/parser/testdata/corpus/sql/aggregate/aggregate_state_export/vector_minmax_export_state.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregate_state_export/vector_minmax_export_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT finalize(min(v) EXPORT_STATE) FROM (SELECT NULL::struct(a int, b varchar) AS v WHERE false) t; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_decimal_scalar.test b/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_decimal_scalar.test index 189485f8..2b205447 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_decimal_scalar.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_decimal_scalar.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/approx_quantile_decimal_scalar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT approx_quantile(x, 0.5), typeof(approx_quantile(x, 0.5)), approx_quantile(x, [0.5]), quantile_cont(x, 0.5) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_parallel_finalize.test b/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_parallel_finalize.test index f1cec47f..37d3cb6e 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_parallel_finalize.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/approx_quantile_parallel_finalize.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/approx_quantile_parallel_finalize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=8; @@ -27,3 +27,10 @@ SELECT count(*) FROM (SELECT approx_quantile(v, 0.5) AS q FROM big GROUP BY g) W -- ok == +SELECT count(*) FROM ( + SELECT g, approx_quantile(g, 0.5) AS q, approx_quantile(g, [0, 0.5, 1]) AS qs + FROM big GROUP BY g +) WHERE q = g AND qs = [g, g, g]; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/approx_top_k.test b/parser/testdata/corpus/sql/aggregate/aggregates/approx_top_k.test index b51f1ff8..e5d77f36 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/approx_top_k.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/approx_top_k.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/approx_top_k.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i%5 as even_groups, log(1 + i*i)::int as skewed_groups FROM range(10000) t(i); @@ -88,3 +88,15 @@ ORDER BY id; -- ok == +SET threads=4; +-- +ok +== +SELECT count(*) FROM ( + SELECT g, approx_top_k(v, 1) a + FROM (SELECT i % 100000 g, CASE WHEN (i // 100000) < 5 THEN 0 ELSE i // 100000 END v FROM range(1600000) r(i)) + GROUP BY g +) WHERE a != [0]; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n.test b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n.test index 824bede7..27cf6d5f 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/arg_min_max_n.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (val VARCHAR, arg INT); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n_tpch.test b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n_tpch.test index f30993f7..315ff928 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n_tpch.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_n_tpch.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/arg_min_max_n_tpch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select min(l_orderkey, 3) from lineitem; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_nulls_last.test b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_nulls_last.test index 5e06d01b..fe543d30 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_nulls_last.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/arg_min_max_nulls_last.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/arg_min_max_nulls_last.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT * FROM VALUES (1, 5, 1), (1, NULL, 2), (1, 3, NULL), (2, NULL, NULL), (3, 1, NULL) t(grp, arg, val) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/avg_interval_large_count.test b/parser/testdata/corpus/sql/aggregate/aggregates/avg_interval_large_count.test index c4aae852..280c76a8 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/avg_interval_large_count.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/avg_interval_large_count.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/avg_interval_large_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH s AS (SELECT avg(x) EXPORT_STATE st FROM (VALUES (INTERVAL 1 DAY), (INTERVAL 0 DAY)) v(x)) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/binning.test b/parser/testdata/corpus/sql/aggregate/aggregates/binning.test index 50caf050..31030aa5 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/binning.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/binning.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/binning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT equi_width_bins(0, 10, 2, true) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/bitagg_memory_limit.test b/parser/testdata/corpus/sql/aggregate/aggregates/bitagg_memory_limit.test index f5f00915..b26cbfba 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/bitagg_memory_limit.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/bitagg_memory_limit.test @@ -1,21 +1,24 @@ # source: test/sql/aggregate/aggregates/bitagg_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit='256MB'; -- ok == -SET threads=4; +PRAGMA temp_directory='' -- ok == -PRAGMA temp_directory='' +PRAGMA max_temp_directory_size='0B' -- ok == -PRAGMA max_temp_directory_size='0B' +SELECT count(*) AS groups, max(length(a)) AS bits +FROM (SELECT g, bit_and(v) AS a, bit_or(v) AS o, bit_xor(v) AS x + FROM (SELECT i::BIGINT AS g, repeat('1', 6096)::BIT AS v FROM range(1000000) t(i)) + GROUP BY g); -- ok == diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_empty.test b/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_empty.test index 8a19b074..71e44064 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_empty.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_empty.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/bitstring_agg_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_force_external=true; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_memory_limit.test b/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_memory_limit.test index 8b026d96..edc0e1cf 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_memory_limit.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/bitstring_agg_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/bitstring_agg_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE src AS diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/duckdb_fuzzer_4313.test b/parser/testdata/corpus/sql/aggregate/aggregates/duckdb_fuzzer_4313.test index 2bd1bb43..4e158321 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/duckdb_fuzzer_4313.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/duckdb_fuzzer_4313.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/duckdb_fuzzer_4313.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT is_histogram_other_bin(x::BIGINT) FROM(VALUES(1), (NULL)) t(x); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/first_last_alloc_reuse.test b/parser/testdata/corpus/sql/aggregate/aggregates/first_last_alloc_reuse.test index 7a1e709a..f234bb0c 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/first_last_alloc_reuse.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/first_last_alloc_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/first_last_alloc_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i, repeat('x', 1000 + i) AS s FROM range(200) t(i); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/histogram_exact.test b/parser/testdata/corpus/sql/aggregate/aggregates/histogram_exact.test index 963af225..c7e915d3 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/histogram_exact.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/histogram_exact.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/histogram_exact.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE obs(n BIGINT); @@ -19,11 +19,11 @@ SELECT histogram_exact(n::double, [10, 20, 30, 40, 50]) FROM obs -- ok == -SELECT histogram_exact((date '2000-01-01' + interval (n) days)::date, [date '2000-01-01' + interval (x) days for x in [10, 20, 30, 40, 50]]) FROM obs +SELECT histogram_exact((date '2000-01-01' + interval (n) days)::date, [(date '2000-01-01' + interval (x) days)::date for x in [10, 20, 30, 40, 50]]) FROM obs -- ok == -SELECT histogram_exact(n::varchar, [10, 20, 30, 40, 50]) FROM obs +SELECT histogram_exact(n::varchar, [10, 20, 30, 40, 50]::VARCHAR[]) FROM obs -- ok == @@ -61,6 +61,14 @@ SELECT list_aggregate(map_values(histogram_exact(n, [10, 10, 20])), 'sum') FROM -- ok == +SELECT histogram_exact(l, b) FROM (VALUES ([1], [1])) t(l, b) +-- +ok +== +SELECT histogram_exact(1::INTEGER, [0.6]) +-- +ok +== SELECT is_histogram_other_bin(NULL) -- ok @@ -77,3 +85,15 @@ SELECT is_histogram_other_bin({'i': NULL::INT[][]}) -- ok == +SELECT histogram_exact(x, [1, 2147483647]) FROM (VALUES (1),(5),(2147483647)) t(x); +-- +ok +== +SELECT histogram_exact(x, ['', 'b']) FROM (VALUES ('a'),('b')) t(x); +-- +ok +== +SELECT histogram_exact(x, [1, 2147483647]) FROM (VALUES (1),(2147483647)) t(x); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/histogram_table_function.test b/parser/testdata/corpus/sql/aggregate/aggregates/histogram_table_function.test index ca987cbf..5633f16d 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/histogram_table_function.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/histogram_table_function.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/histogram_table_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into integers values (42); @@ -79,3 +79,15 @@ SELECT * FROM histogram_values(integers, [i%2]) ORDER BY bin -- ok == +create table dates(d date); +-- +ok +== +insert into dates select date '2020-01-01' + interval (r*7) day from range(20) t(r) +-- +ok +== +SELECT bin, count FROM histogram_values(dates, d, bin_count := 4) +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/lttb.test b/parser/testdata/corpus/sql/aggregate/aggregates/lttb.test index 55ba1e27..45ed0973 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/lttb.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/lttb.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/lttb.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT lttb(x::DOUBLE, y::DOUBLE, 5 ORDER BY x) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/max_n_all_types_grouped.test b/parser/testdata/corpus/sql/aggregate/aggregates/max_n_all_types_grouped.test index facb8dc9..bdf1f90b 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/max_n_all_types_grouped.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/max_n_all_types_grouped.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/max_n_all_types_grouped.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO compute_top_k(table_name, group_col, val_col, k) AS TABLE diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite.test b/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite.test index 4485af45..fb60f0cc 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/mode_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mode_rewrite(g INTEGER, v VARCHAR, ord INTEGER, keep BOOLEAN); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite_memory.test b/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite_memory.test index 99680f8e..63e0c0b1 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite_memory.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/mode_rewrite_memory.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/mode_rewrite_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit='32MB'; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/quantile_memory_limit.test b/parser/testdata/corpus/sql/aggregate/aggregates/quantile_memory_limit.test index e26e1fb9..943dc764 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/quantile_memory_limit.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/quantile_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/quantile_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA memory_limit='300MB' diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/string_agg_union.test b/parser/testdata/corpus/sql/aggregate/aggregates/string_agg_union.test index cac00c1f..4eef75ba 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/string_agg_union.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/string_agg_union.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/string_agg_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH my_data as ( diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/summarize_nanosecond_types.test b/parser/testdata/corpus/sql/aggregate/aggregates/summarize_nanosecond_types.test new file mode 100644 index 00000000..c55f665d --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/summarize_nanosecond_types.test @@ -0,0 +1,17 @@ +# source: test/sql/aggregate/aggregates/summarize_nanosecond_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT column_name, column_type, avg IS NULL FROM (SUMMARIZE SELECT '12:34:56'::TIME_NS AS t); +-- +ok +== +SELECT column_name, column_type, avg IS NULL FROM (SUMMARIZE SELECT '2020-01-01 00:00:00'::TIMESTAMPTZ_NS AS ts); +-- +ok +== +SELECT column_name, column_type, avg IS NULL FROM (SUMMARIZE SELECT '2020-01-01 00:00:00'::TIMESTAMP AS ts); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggr_string.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggr_string.test index e41b469a..6bac95ec 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggr_string.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggr_string.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_aggr_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL as a, NULL as b, NULL as c, NULL as d, 1 as id UNION SELECT 'Кирилл' as a, 'Müller' as b, '我是谁' as c, 'ASCII' as d, 2 as id ORDER BY 1 diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types.test index 82924385..7544329e 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_aggregate_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(s STRING, g INTEGER) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types_scalar.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types_scalar.test index 74fcbe13..5220e911 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types_scalar.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_aggregate_types_scalar.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_aggregate_types_scalar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(), COUNT(1), COUNT(*), COUNT(NULL), COUNT('hello'), COUNT(DATE '1992-02-02') diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value.test index 0d35fec2..c6f080a0 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_any_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INTEGER) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value_noninlined.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value_noninlined.test index a308c074..60229050 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value_noninlined.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_any_value_noninlined.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_any_value_noninlined.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a INTEGER, b VARCHAR) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile.test index 857b3d6d..3193688d 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_approx_quantile.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantile as select range r, random() from range(10000) union all values (NULL, 0.1), (NULL, 0.5), (NULL, 0.9) order by 2; @@ -256,6 +256,18 @@ SELECT reservoir_quantile(r, NULL) from quantile -- ok == +SELECT reservoir_quantile(r, NULL::DOUBLE[]) from quantile +-- +ok +== +SELECT reservoir_quantile(r, NULL::DOUBLE[], 100) from quantile +-- +ok +== +SELECT reservoir_quantile(r, NULL::DOUBLE[]) OVER () from quantile +-- +ok +== SELECT reservoir_quantile(r, 'nan'::DOUBLE) from quantile -- ok diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_decimal.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_decimal.test index 8b2c9454..cadfef95 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_decimal.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_approx_quantile_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_serializer = true; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timestamp_infinity.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timestamp_infinity.test index 0d1ce543..0259cf53 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timestamp_infinity.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timestamp_infinity.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_approx_quantile_timestamp_infinity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT approx_quantile('-infinity'::TIMESTAMP, 0.25), approx_quantile('infinity'::TIMESTAMP, 0.25) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timetz.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timetz.test new file mode 100644 index 00000000..5f834313 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_approx_quantile_timetz.test @@ -0,0 +1,37 @@ +# source: test/sql/aggregate/aggregates/test_approx_quantile_timetz.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT approx_quantile('12:34:56+05'::TIMETZ, 0.5)::VARCHAR; +-- +ok +== +SELECT approx_quantile('00:00:00+00'::TIMETZ, 0.5)::VARCHAR; +-- +ok +== +CREATE TABLE q AS SELECT approx_quantile('00:00:00+00'::TIMETZ, 0.5) AS t; +-- +ok +== +SELECT t::VARCHAR FROM q; +-- +ok +== +SUMMARIZE (SELECT '00:00:00+00'::TIMETZ AS ttz); +-- +ok +== +SELECT approx_quantile(x, [0.0, 1.0])::VARCHAR FROM (VALUES ('10:00:00+05'::TIMETZ), ('09:00:00+00'::TIMETZ)) t(x); +-- +ok +== +SELECT finalize(to_aggregate_state({'count':1,'min':0.0,'max':0.0,'centroids':[{'mean':1e15,'weight':1.0}]},'approx_quantile',['TIME','FLOAT'],[NULL,0.5]))::VARCHAR; +-- +ok +== +SELECT approx_quantile(t, [0.1, 0.9])::VARCHAR FROM (VALUES ('01:00:00'::TIME), ('05:00:00'::TIME)) v(t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_approximate_distinct_count.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_approximate_distinct_count.test index 3038d8ae..9cb5f43f 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_approximate_distinct_count.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_approximate_distinct_count.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_approximate_distinct_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select approx_count_distinct(*) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max.test index fefa0e64..64ddd818 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_arg_min_max.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select argmin() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max_null.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max_null.test index a87435e8..983a8b22 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max_null.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_arg_min_max_null.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_arg_min_max_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select arg_min_null() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_avg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_avg.test index 2d21fafe..6672cc39 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_avg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_avg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT AVG(3), AVG(NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_avg_timestamp_infinity.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_avg_timestamp_infinity.test new file mode 100644 index 00000000..c4022c04 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_avg_timestamp_infinity.test @@ -0,0 +1,101 @@ +# source: test/sql/aggregate/aggregates/test_avg_timestamp_infinity.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT avg(ts) FROM (VALUES ('-infinity'::TIMESTAMP), (TIMESTAMP '2000-01-01')) t(ts); +-- +ok +== +SELECT avg(ts) FROM (VALUES ('infinity'::TIMESTAMP), (TIMESTAMP '2000-01-01')) t(ts); +-- +ok +== +SELECT avg(ts) FROM (VALUES ('infinity'::TIMESTAMP), ('-infinity'::TIMESTAMP), (TIMESTAMP '2000-01-01')) t(ts); +-- +ok +== +SELECT column_name, avg FROM (SUMMARIZE (SELECT * FROM (VALUES ('infinity'::TIMESTAMP), ('-infinity'::TIMESTAMP)) t(ts))); +-- +ok +== +SELECT avg(d) FROM (VALUES ('-infinity'::DATE), (DATE '2000-01-01')) t(d); +-- +ok +== +SELECT avg(ts)::VARCHAR FROM (VALUES ('-infinity'::TIMESTAMP), (TIMESTAMP '290309-12-22 (BC) 00:00:00')) t(ts); +-- +ok +== +SELECT avg(ts)::VARCHAR FROM (VALUES ('infinity'::TIMESTAMPTZ), (TIMESTAMPTZ '2000-01-01 00:00:00+00')) t(ts); +-- +ok +== +SELECT avg(ts) FROM (VALUES (TIMESTAMP '2000-01-01'), (TIMESTAMP '2000-01-03'), (NULL)) t(ts); +-- +ok +== +SELECT avg(ts) FROM (VALUES (NULL::TIMESTAMP)) t(ts); +-- +ok +== +SELECT avg('infinity'::TIMESTAMP), avg(TIMESTAMP '2000-01-01') FROM range(3000); +-- +ok +== +SELECT avg(DISTINCT ts), avg(ts ORDER BY ts DESC), avg(DISTINCT ts) FILTER (ts < TIMESTAMP '2001-01-01') +FROM (VALUES ('infinity'::TIMESTAMP), ('infinity'::TIMESTAMP), (TIMESTAMP '2000-01-01'), ('-infinity'::TIMESTAMP)) t(ts); +-- +ok +== +SET threads=4 +-- +ok +== +CREATE TABLE many AS SELECT i % 3 AS g, CASE WHEN i = 1 THEN '-infinity'::TIMESTAMP WHEN i IN (399997, 399998) THEN 'infinity'::TIMESTAMP ELSE TIMESTAMP '2000-01-01' + INTERVAL (i) SECOND END AS ts FROM range(400000) t(i); +-- +ok +== +SELECT g, avg(ts) FROM many GROUP BY g ORDER BY g; +-- +ok +== +SELECT avg(ts), avg(ts) FILTER (g <> 1) FROM many; +-- +ok +== +SELECT CASE WHEN a IS NULL THEN 'NULL' WHEN isfinite(a) THEN 'finite' ELSE a::VARCHAR END AS kind, count(*), min(i), max(i) +FROM ( + SELECT i, avg(ts) OVER (ORDER BY i ROWS BETWEEN 80 PRECEDING AND CURRENT ROW) AS a + FROM (SELECT i, CASE WHEN i = 50 THEN 'infinity'::TIMESTAMP WHEN i = 120 THEN '-infinity'::TIMESTAMP ELSE TIMESTAMP '2000-01-01' + INTERVAL (i) HOUR END AS ts FROM range(200) t(i)) +) +GROUP BY kind ORDER BY min(i); +-- +ok +== +SELECT i, avg(ts) OVER (ORDER BY i ROWS BETWEEN 80 PRECEDING AND CURRENT ROW) AS a +FROM (SELECT i, CASE WHEN i = 50 THEN 'infinity'::TIMESTAMP WHEN i = 120 THEN '-infinity'::TIMESTAMP ELSE TIMESTAMP '2000-01-01' + INTERVAL (i) HOUR END AS ts FROM range(200) t(i)) +QUALIFY i = 49; +-- +ok +== +SELECT i, avg(ts) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) +FROM (VALUES (1, TIMESTAMP '2000-01-01'), (2, '-infinity'::TIMESTAMP), (3, TIMESTAMP '2000-01-03'), (4, TIMESTAMP '2000-01-05')) t(i, ts) +ORDER BY i; +-- +ok +== +SELECT i, avg(ts) OVER (PARTITION BY i % 2), avg(DISTINCT ts) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) +FROM (VALUES (1, TIMESTAMP '2000-01-01'), (2, '-infinity'::TIMESTAMP), (3, TIMESTAMP '2000-01-03'), (4, TIMESTAMP '2000-01-05')) t(i, ts) +ORDER BY i; +-- +ok +== +SET debug_verify_aggregate_state_export=true +-- +ok +== +SELECT avg(d), avg(d) FILTER (d > DATE '1999-01-01') FROM (VALUES ('-infinity'::DATE), (DATE '2000-01-01'), (DATE '2000-01-03')) t(d); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bigint_avg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bigint_avg.test index 12544d24..4ec7f1b6 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bigint_avg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bigint_avg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bigint_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigints(n HUGEINT); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_binned_histogram.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_binned_histogram.test index eea26e25..4b51b51a 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_binned_histogram.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_binned_histogram.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_binned_histogram.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT histogram(n, [10, 20, 30, 40, 50]) FROM obs @@ -84,3 +84,189 @@ SELECT histogram(n, NULL::BIGINT[]) FROM obs -- ok == +SELECT histogram(l, b) FROM (VALUES ([1], [1]), ([2], [1])) t(l, b) +-- +ok +== +SELECT histogram(l, b) FROM (VALUES ([[1]], [[1]])) t(l, b) +-- +ok +== +SELECT histogram(s, b) FROM (VALUES ({'a': 1}, [1])) t(s, b) +-- +ok +== +SELECT histogram(l, b) OVER (ROWS BETWEEN CURRENT ROW AND CURRENT ROW) FROM (VALUES ([1], [1])) t(l, b) +-- +ok +== +PREPARE invalid_bins AS SELECT histogram(l, b) FROM (VALUES ([1], [1])) t(l, b) +-- +ok +== +SELECT histogram(1, []::DATE[]) +-- +ok +== +SELECT histogram(s, b) FROM (VALUES ({'a': [1]}, [{'a': 1}])) t(s, b) +-- +ok +== +SELECT histogram(s, b) FROM (VALUES (row([1]), [row(1)])) t(s, b) +-- +ok +== +SELECT histogram(m, b) FROM (VALUES (MAP([1], [[1]]), [MAP([1], [1])])) t(m, b) +-- +ok +== +SELECT histogram(m, b) FROM (VALUES (MAP([1::BIGINT], [1::BIGINT]), [MAP([1], [1])])) t(m, b) +-- +ok +== +SELECT histogram(1, [0.5, 1.5, 2.5]) +-- +ok +== +SELECT typeof(histogram(1::INTEGER, [1::BIGINT])) +-- +ok +== +SELECT typeof(histogram(true, [0, 1])), typeof(histogram(1::SMALLINT, [10, 20])), typeof(histogram(1::UBIGINT, [10, 20])), typeof(histogram(1::UHUGEINT, [10, 20])) +-- +ok +== +SELECT histogram(v, [100000]) FROM (VALUES (1::SMALLINT)) t(v) +-- +ok +== +SELECT histogram(v, [10, 20]) FROM (VALUES (170141183460469231731687303715884105728::UHUGEINT)) t(v) +-- +ok +== +SELECT histogram(d, [TIMESTAMP '2020-06-01']) FROM (VALUES (DATE '2020-01-01')) t(d) +-- +ok +== +SELECT histogram(s, b) FROM (VALUES ({'a': 1, 'b': NULL::INTEGER[]}, [{'a': 1}])) t(s, b) +-- +ok +== +SELECT histogram(NULL, [1, 2]) +-- +ok +== +SELECT histogram(d, b) FROM (VALUES (DATE '2020-01-01', ['2020-06-01'])) t(d, b) +-- +ok +== +SELECT histogram(DATE '2020-01-01', ['2020-06-01']) +-- +ok +== +SELECT list_contains(b, d) FROM (VALUES (DATE '2020-01-01', ['2020-06-01'])) t(d, b) +-- +ok +== +SELECT histogram(d, b::DATE[]) FROM (VALUES (DATE '2020-01-01', ['2020-06-01'])) t(d, b) +-- +ok +== +SELECT histogram(ts, b) FROM (VALUES (TIMESTAMP '2020-01-01', [DATE '5874897-12-31'])) t(ts, b) +-- +ok +== +SELECT histogram(ts, b) FROM (VALUES (TIMESTAMP '2020-01-01', [DATE '2020-06-01'])) t(ts, b) +-- +ok +== +CREATE TYPE small_enum AS ENUM ('a', 'b') +-- +ok +== +SELECT histogram(v, ['a'::small_enum, 'b'::small_enum]) FROM (VALUES ('a'), ('b')) t(v) +-- +ok +== +SELECT typeof(histogram(v, ['a', 'b'])) FROM (VALUES ('a'::small_enum)) t(v) +-- +ok +== +SELECT histogram(1, ['1'::ENUM('1')]) +-- +ok +== +SELECT histogram(get_type(1), ['INTEGER'::ENUM('INTEGER')]) +-- +ok +== +SELECT histogram(union_value(e := 'a'::small_enum)::UNION(e small_enum, n INTEGER), ['a'::small_enum]) +-- +ok +== +SELECT histogram(union_value(a := 1), [union_value(b := 1)]) +-- +ok +== +SELECT histogram(union_value(a := 1)::UNION(a INTEGER, b INTEGER), [1]) +-- +ok +== +WITH v AS (SELECT union_value(b := 1)::UNION(a INTEGER, b INTEGER) AS s) +SELECT list_aggregate(map_values(histogram(union_value(wrapped := s)::UNION(a INTEGER[], wrapped UNION(a INTEGER, b INTEGER)), [s])), 'sum') FROM v +-- +ok +== +WITH v AS (SELECT union_value(b := 1)::UNION(a INTEGER, b INTEGER) AS s) +SELECT list_aggregate(map_values(histogram(union_value(b := 1)::UNION(a INTEGER[], b INTEGER), [s])), 'sum') FROM v +-- +ok +== +SELECT histogram(union_value(a := [1])::UNION(a INTEGER[], b DATE), b) FROM (VALUES ([union_value(a := 1)::UNION(a INTEGER, b INTEGER)])) t(b) +-- +ok +== +SELECT list_aggregate(map_values(histogram(union_value(b := 1)::UNION(a INTEGER[3], b INTEGER), b)), 'sum') FROM (VALUES ([union_value(b := 1)::UNION(a INTEGER[2], b INTEGER)])) t(b) +-- +ok +== +SELECT histogram(union_value(a := 1), [{'tag': 0::UTINYINT, 'a': 1}]) +-- +ok +== +SELECT histogram(1, [1::VARIANT]) +-- +ok +== +SELECT histogram(get_type(1), [1::VARIANT]) +-- +ok +== +SELECT histogram(v, b) FROM (VALUES (1::VARIANT, [get_type(1)])) t(v, b) +-- +ok +== +SELECT histogram(n, [10, 20, 30, 40, 50]::BIGINT[5]) FROM obs +-- +ok +== +SELECT histogram(a, b) FROM (VALUES ([1,2,3]::INT[3], [[1,2]::INT[2]])) t(a, b) +-- +ok +== +PREPARE binned AS SELECT histogram(n, ?) FROM obs +-- +ok +== +EXECUTE binned([10, 20, 30, 40, 50]) +-- +ok +== +PREPARE binned_arg AS SELECT histogram(?, [10, 20, 30, 40, 50]) FROM obs +-- +ok +== +EXECUTE binned_arg(25) +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_and.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_and.test index 636e6360..e4b3d1dc 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_and.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_and.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bit_and.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT BIT_AND(3), BIT_AND(NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_or.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_or.test index 726c0dc8..c617c4c8 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_or.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_or.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bit_or.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT BIT_OR(3), BIT_OR(NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_xor.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_xor.test index 2e9f0e8f..7018ddca 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_xor.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bit_xor.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bit_xor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT BIT_XOR(3), BIT_XOR(NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg.test index f53dcbff..23310b00 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bitstring_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tinyints(i TINYINT) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg_small_types.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg_small_types.test index 0f6ded11..f6ba63a3 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg_small_types.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bitstring_agg_small_types.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bitstring_agg_small_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bt AS SELECT v::TINYINT v FROM (VALUES (-100), (5), (100)) x(v); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_bool.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_bool.test index 7b58a56f..92b3bdac 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_bool.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_bool.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select bool_or(0) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_corr.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_corr.test index 142d0e98..91e55dbf 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_corr.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_corr.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_corr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select corr() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_count.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_count.test index c62fc5af..51ed96b2 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_count.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_count.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*), COUNT(1), COUNT(100), COUNT(NULL), COUNT(DISTINCT 1) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_all_types.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_all_types.test index 5d2e743b..41db977b 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_all_types.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_all_types.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_count_all_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(n) FROM test_vector_types(NULL::INT, all_flat={flatten}) t(n); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_qualified_star.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_qualified_star.test index f2b58e27..ee716251 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_qualified_star.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_qualified_star.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_count_qualified_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id int4); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_star.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_star.test index 5d94671b..ce9f1570 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_count_star.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_count_star.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_count_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_covar.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_covar.test index 72a4ef56..59228dc3 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_covar.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_covar.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_covar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COVAR_POP() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_decimal_aggregate_named_argument.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_decimal_aggregate_named_argument.test new file mode 100644 index 00000000..726c0c9e --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_decimal_aggregate_named_argument.test @@ -0,0 +1,21 @@ +# source: test/sql/aggregate/aggregates/test_decimal_aggregate_named_argument.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT avg(x := 1), avg(x := i), sum(arg := 1) FROM range(3) t(i) +-- +ok +== +SELECT avg(x := 1::TINYINT), avg(x := 1::UBIGINT), sum(arg := i::HUGEINT) FROM range(3) t(i) +-- +ok +== +SELECT avg(x := 1::VARIANT) FROM range(3) +-- +ok +== +SELECT avg(x := 1.5::DECIMAL(4,1)), sum(arg := 2.5), avg(i), sum(i) FROM range(3) t(i) +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_empty_aggregate.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_empty_aggregate.test index 6608f3e6..027ecaaf 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_empty_aggregate.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_empty_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_empty_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*), COUNT(i), STDDEV_SAMP(i), SUM(i), SUM(DISTINCT i), FIRST(i), LAST(i), MAX(i), MIN(i) FROM integers WHERE i > 100 diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_entropy.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_entropy.test index 865a30fa..c1eca867 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_entropy.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_entropy.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_entropy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select entropy() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_first_last_any_ordered.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_first_last_any_ordered.test index 746393aa..7156e1d4 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_first_last_any_ordered.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_first_last_any_ordered.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_first_last_any_ordered.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, grp INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_first_noninlined.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_first_noninlined.test index 929949d3..75a0ed71 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_first_noninlined.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_first_noninlined.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_first_noninlined.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT FIRST(b) FROM tbl WHERE a=2 diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_group_on_expression.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_group_on_expression.test index dec51ba7..eb1ddaba 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_group_on_expression.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_group_on_expression.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_group_on_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integer(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram.test index 6ad7953f..f367658d 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_histogram.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select histogram(NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram_3529.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram_3529.test index 369edb74..9f378f6e 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram_3529.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_histogram_3529.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_histogram_3529.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tmp (c0 integer, c1 integer); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_incorrect_aggregate.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_incorrect_aggregate.test index fea80446..32ac1870 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_incorrect_aggregate.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_incorrect_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_incorrect_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(1, 2, 3) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_avg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_avg.test index e19c9e2a..f716f63d 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_avg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_avg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_kahan_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE doubles(n DOUBLE); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_combine.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_combine.test index 8c37eb2d..c7e280df 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_combine.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_combine.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_kahan_combine.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE doubles AS SELECT * FROM (VALUES (9007199254740992.0::DOUBLE), (1.0::DOUBLE)) t(x); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_precision.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_precision.test new file mode 100644 index 00000000..cc030897 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_precision.test @@ -0,0 +1,76 @@ +# source: test/sql/aggregate/aggregates/test_kahan_precision.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT printf('%.17g', fsum(v)), printf('%.17g', favg(v)) FROM (VALUES (1e16::DOUBLE), (1.0), (-1e16)) t(v); +-- +ok +== +SELECT printf('%.17g', fsum(v)) FROM (VALUES (1.0::DOUBLE), (1e100), (1.0), (-1e100)) t(v); +-- +ok +== +SELECT printf('%.17g', fsum(v)) FROM ( + SELECT 3.6686354453820154e17::DOUBLE AS v + UNION ALL SELECT 37.0::DOUBLE FROM range(14) + UNION ALL SELECT -3.6686354453820154e17::DOUBLE +); +-- +ok +== +SELECT printf('%.17g', favg(v)), printf('%.17g', fsum(v)) FROM (VALUES (0.1::DOUBLE), (0.3)) t(v); +-- +ok +== +SELECT fsum(v), favg(v) FROM (VALUES (1e308::DOUBLE), (1e308), (-1e308)) t(v); +-- +ok +== +SELECT fsum(v), favg(v) FROM (VALUES (-1e308::DOUBLE), (-1e308), (1e308)) t(v); +-- +ok +== +SELECT fsum(v), favg(v) FROM (VALUES (1.0::DOUBLE), ('inf'::DOUBLE), (2.0)) t(v); +-- +ok +== +SELECT isnan(fsum(v)), isnan(favg(v)) FROM (VALUES ('inf'::DOUBLE), ('-inf'::DOUBLE)) t(v); +-- +ok +== +SELECT isnan(fsum(v)), isnan(favg(v)) FROM (VALUES (1.0::DOUBLE), ('nan'::DOUBLE)) t(v); +-- +ok +== +SELECT fsum(v), favg(v) FROM (VALUES (NULL::DOUBLE)) t(v); +-- +ok +== +SELECT DISTINCT printf('%.17g', fsum(v) OVER w), printf('%.17g', favg(v) OVER w) FROM ( + SELECT i, CASE WHEN i = 0 THEN 1e16::DOUBLE WHEN i = 999 THEN -1e16::DOUBLE ELSE 1.0 END AS v + FROM range(1000) r(i) +) WINDOW w AS (ORDER BY i ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING); +-- +ok +== +SELECT DISTINCT fsum(v) OVER (ORDER BY i ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM ( + SELECT i, CASE WHEN i = 999 THEN -1e308::DOUBLE ELSE 1e308::DOUBLE END AS v FROM range(1000) r(i) +); +-- +ok +== +CREATE TABLE big AS +SELECT i, CASE WHEN i = 0 THEN 1e16::DOUBLE WHEN i = 999999 THEN -1e16::DOUBLE ELSE 1.0 END AS v +FROM range(1000000) r(i); +-- +ok +== +SELECT printf('%.17g', fsum(v)), printf('%.17g', favg(v)) FROM big; +-- +ok +== +SELECT i % 2 AS g, printf('%.17g', fsum(v)), printf('%.17g', favg(v)) FROM big GROUP BY g ORDER BY g; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_sum.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_sum.test index af74cf70..903fce88 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_sum.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_kahan_sum.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_kahan_sum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT FSUM(n)::BIGINT FROM doubles; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_kurtosis.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_kurtosis.test index c4ada74d..65106856 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_kurtosis.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_kurtosis.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_kurtosis.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select kurtosis() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_last.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_last.test index e27247c6..667e479a 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_last.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_last.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_last.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LAST(i) FROM five diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_last_noninlined.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_last_noninlined.test index 7799d522..c690cf75 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_last_noninlined.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_last_noninlined.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_last_noninlined.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LAST(b) FROM tbl WHERE a=2 diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_mad.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_mad.test index 0f2d10cd..e8af7ee9 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_mad.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_mad.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_mad.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT mad(NULL), mad(1) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_mad_hugeint_range.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_mad_hugeint_range.test index 096dd804..3ae268d7 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_mad_hugeint_range.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_mad_hugeint_range.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_mad_hugeint_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT mad(x) FROM (VALUES (99999999999999999999999999999999999999::DECIMAL(38,0)), (-99999999999999999999999999999999999999::DECIMAL(38,0)), (-99999999999999999999999999999999999999::DECIMAL(38,0))) t(x) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_median.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_median.test index 8e4776d7..3a96d989 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_median.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_median.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_median.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT median(NULL), median(1) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax.test index be40549e..b30fb839 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_minmax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table lists as select array[i] l from generate_series(0,5,1) tbl(i); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax_14145.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax_14145.test index 2e93e5a8..a03fd0e0 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax_14145.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_minmax_14145.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_minmax_14145.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DESCRIBE SELECT max(l) from (select unnest( [{'a':1}::JSON, [2]::JSON ]) as l); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_mode.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_mode.test index 5294665c..6fcc640b 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_mode.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_mode.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select mode() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_null_aggregates.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_null_aggregates.test index e3455a55..17483001 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_null_aggregates.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_null_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_null_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 BIGINT, c1 SMALLINT); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_order_by_aggregate.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_order_by_aggregate.test index 34d37575..fa482132 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_order_by_aggregate.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_order_by_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_order_by_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(grp INTEGER, i INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregate_inner_error.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregate_inner_error.test index 30abc070..4cec8584 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregate_inner_error.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregate_inner_error.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_ordered_aggregate_inner_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT approx_top_k(1, NULL ORDER BY i DESC) FROM range(5) t(i) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregates.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregates.test index 510ae924..25751cae 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregates.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_ordered_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_ordered_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE flights( @@ -133,6 +133,10 @@ SELECT percentile_disc([]) WITHIN GROUP (ORDER BY LAST); -- ok == +SELECT {agg}(NULL::DOUBLE[]) WITHIN GROUP (ORDER BY i {direction}) FROM range(3) t(i); +-- +error: Parser Error: syntax error at or near "}" +== select mode(0.25) within group(order by i) from generate_series(0,100) tbl(i); -- error: Parser Error: Wrong number of arguments for MODE diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_perfect_ht.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_perfect_ht.test index 5c12c9b3..c41dadc0 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_perfect_ht.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_perfect_ht.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_perfect_ht.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA perfect_ht_threshold=20; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_product.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_product.test index c253fa27..55084964 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_product.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_product.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select product() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont.test index 99457fa4..5c60a8c6 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_quantile_cont.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantile as select range r, random() from range(0,1000000,100) union all values (NULL, 0.1), (NULL, 0.5), (NULL, 0.9) order by 2; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont_list.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont_list.test index 5ddb7e8c..6d55fbc5 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont_list.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_cont_list.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_quantile_cont_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantiles as select range r, random() FROM range(0,1000000,100) union all values (NULL, 0.25), (NULL, 0.5), (NULL, 0.75) order by 2; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc.test index c74d9126..e7126dd8 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_quantile_disc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE quantile as diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_double.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_double.test new file mode 100644 index 00000000..f62c546c --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_double.test @@ -0,0 +1,63 @@ +# source: test/sql/aggregate/aggregates/test_quantile_disc_double.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT quantile_disc(x, 0.9) AS dec_q, quantile_disc(x, 0.9::DOUBLE) AS dbl_q FROM range(1, 11) t(x); +-- +ok +== +SELECT n, + (SELECT quantile_disc(x, 0.9) FROM range(1, n + 1) t(x)) AS dec_q, + (SELECT quantile_disc(x, 0.9::DOUBLE) FROM range(1, n + 1) t(x)) AS dbl_q +FROM range(8, 12) r(n) ORDER BY n; +-- +ok +== +SELECT quantile_disc(x, -0.9) AS dec_q, quantile_disc(x, -0.9::DOUBLE) AS dbl_q FROM range(1, 11) t(x); +-- +ok +== +SELECT count(*) +FROM ( + SELECT n, quantile_disc(x, {q}) AS dec_q, quantile_disc(x, {q}::DOUBLE) AS dbl_q + FROM range(1, 201) r(n), LATERAL (SELECT x FROM range(1, n + 1) t(x)) s + GROUP BY n) +WHERE dec_q IS DISTINCT FROM dbl_q + OR dec_q IS DISTINCT FROM greatest(1, ceil(n * {q}))::BIGINT; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) +FROM ( + SELECT n, + (SELECT quantile_disc(x, {q}) FROM range(1, n + 1) t(x)) AS dec_q, + (SELECT quantile_disc(x, {q}::DOUBLE) FROM range(1, n + 1) t(x)) AS dbl_q + FROM range(1, 201) r(n)) +WHERE dec_q IS DISTINCT FROM dbl_q + OR dec_q IS DISTINCT FROM greatest(1, ceil(n * {q}))::BIGINT; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) +FROM ( + SELECT n, + quantile_disc(x, [0.1, 0.5, 0.9]) AS dec_q, + quantile_disc(x, [0.1, 0.5, 0.9]::DOUBLE[]) AS dbl_q + FROM range(1, 201) r(n), LATERAL (SELECT x FROM range(1, n + 1) t(x)) s + GROUP BY n) +WHERE dec_q IS DISTINCT FROM dbl_q + OR dec_q IS DISTINCT FROM [greatest(1, ceil(n * 0.1)), greatest(1, ceil(n * 0.5)), greatest(1, ceil(n * 0.9))]::BIGINT[]; +-- +ok +== +SELECT count(*) +FROM ( + SELECT n, + (SELECT quantile_disc(x, [0.1, 0.5, 0.9]) FROM range(1, n + 1) t(x)) AS dec_q, + (SELECT quantile_disc(x, [0.1, 0.5, 0.9]::DOUBLE[]) FROM range(1, n + 1) t(x)) AS dbl_q + FROM range(1, 201) r(n)) +WHERE dec_q IS DISTINCT FROM dbl_q; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_list.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_list.test index 04047df6..3fce862c 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_list.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_disc_list.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_quantile_disc_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantiles as select range r, random() FROM range(10000) union all values (NULL, 0.1), (NULL, 0.5), (NULL, 0.9) order by 2; diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timestamp_exact.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timestamp_exact.test new file mode 100644 index 00000000..7170a08d --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timestamp_exact.test @@ -0,0 +1,21 @@ +# source: test/sql/aggregate/aggregates/test_quantile_timestamp_exact.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT median(x)::VARCHAR FROM (VALUES (TIMESTAMP_NS '2024-01-01 00:00:00.000000001'), (TIMESTAMP_NS '2024-01-01 00:00:00.000000001')) t(x); +-- +ok +== +SELECT median(x)::VARCHAR FROM (VALUES (TIMESTAMP '294247-01-10 04:00:54'), (TIMESTAMP '294247-01-10 04:00:54')) t(x); +-- +ok +== +SELECT quantile_cont(x, 0.25)::VARCHAR FROM (VALUES (TIMESTAMP '2024-01-01 00:00:00'), (TIMESTAMP '2024-01-01 00:00:10')) t(x); +-- +ok +== +SELECT median(x)::VARCHAR FROM (VALUES (TIME '12:34:56.123457'), (TIME '12:34:56.123457')) t(x); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timetz.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timetz.test index f06d9fcf..1662a978 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timetz.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_quantile_timetz.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_quantile_timetz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE z AS FROM (VALUES ('10:00:00+05'::TIMETZ), ('09:00:00+00'::TIMETZ), ('07:00:00+00'::TIMETZ)) v(x); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_regression.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_regression.test index e88108f8..6d923094 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_regression.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_regression.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_regression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select regr_avgx(NULL,NULL) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_decimal.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_decimal.test index 1a321632..e2f12a06 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_decimal.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_reservoir_quantile_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO decimals VALUES (1.10), (2.20), (3.30), (4.40), (5.50), (6.60), (7.70), (8.80), (9.90), (10.00); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_sampling.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_sampling.test new file mode 100644 index 00000000..4cbe9ba0 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_reservoir_quantile_sampling.test @@ -0,0 +1,22 @@ +# source: test/sql/aggregate/aggregates/test_reservoir_quantile_sampling.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT reservoir_quantile(x, 0.5) BETWEEN 400000 AND 600000 FROM range(1000000) t(x); +-- +ok +== +SELECT reservoir_quantile(x, 0.5, 1000) BETWEEN 400000 AND 600000 FROM range(1000000) t(x); +-- +ok +== +SELECT list_aggregate(reservoir_quantile(x, [0.1, 0.9], 1000), 'min') > 50000 AND + list_aggregate(reservoir_quantile(x, [0.1, 0.9], 1000), 'max') > 800000 FROM range(1000000) t(x); +-- +ok +== +SELECT reservoir_quantile(x, 0.5) FROM range(10) t(x); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_scalar_aggr.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_scalar_aggr.test index 490b6efb..932d2f74 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_scalar_aggr.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_scalar_aggr.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_scalar_aggr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(1), MIN(1), FIRST(1), LAST(1),MAX(1), SUM(1), STRING_AGG('hello', ',') diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_sem.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_sem.test index 7b4fa2ac..797c7ad3 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_sem.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_sem.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_sem.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select sem() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_simple_filter.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_simple_filter.test index f00a2f96..fcd481eb 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_simple_filter.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_simple_filter.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_simple_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_skewness.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_skewness.test index 46aacc93..20f50fc5 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_skewness.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_skewness.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_skewness.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select skewness() diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_stddev.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_stddev.test index dc11500d..ddcc66ce 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_stddev.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_stddev.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_stddev.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT stddev_samp(1) diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg.test index 461e669b..ac7ad1dc 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_string_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT STRING_AGG('a', 'b', 'c') diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg_big.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg_big.test index 746e464f..8b3ec57e 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg_big.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_string_agg_big.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_string_agg_big.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings AS SELECT c::VARCHAR g, (c*10+e)::VARCHAR x FROM range(0, 100, 1) t1(c), range(0, 100, 1) t2(e); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum.test index d04ea457..72b9b750 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_sum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(0, 1000, 1); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_decimal_overflow.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_decimal_overflow.test index 32e3600a..84cc025b 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_decimal_overflow.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_decimal_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_sum_decimal_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimals AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_fastpath.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_fastpath.test index f8c2eb0d..f0109c05 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_fastpath.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_sum_fastpath.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_sum_fastpath.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(i) FROM range(9007199254738944, 9007199254740992) t(i); diff --git a/parser/testdata/corpus/sql/aggregate/aggregates/test_weighted_avg.test b/parser/testdata/corpus/sql/aggregate/aggregates/test_weighted_avg.test index c1a8a7d5..f1f88bca 100644 --- a/parser/testdata/corpus/sql/aggregate/aggregates/test_weighted_avg.test +++ b/parser/testdata/corpus/sql/aggregate/aggregates/test_weighted_avg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/aggregates/test_weighted_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT weighted_avg(3, 3), weighted_avg(3, NULL), weighted_avg(NULL, 3), weighted_avg(NULL, NULL) diff --git a/parser/testdata/corpus/sql/aggregate/count_execution_paths.test b/parser/testdata/corpus/sql/aggregate/count_execution_paths.test index 1ad79901..df85c11c 100644 --- a/parser/testdata/corpus/sql/aggregate/count_execution_paths.test +++ b/parser/testdata/corpus/sql/aggregate/count_execution_paths.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/count_execution_paths.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE count_validity AS diff --git a/parser/testdata/corpus/sql/aggregate/distinct/distinct_limit.test b/parser/testdata/corpus/sql/aggregate/distinct/distinct_limit.test index 718fdabb..34d22f53 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/distinct_limit.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/distinct_limit.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/distinct_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET profiling_renderer_settings = MAP {'operator_casing': 'upper'}; @@ -99,6 +99,22 @@ EXPLAIN SELECT i % 100 FROM range(1000000) t(i) GROUP BY 1 LIMIT 10 -- ok == +EXPLAIN SELECT i % 8 FROM range(1000000) t(i) GROUP BY 1 LIMIT 100 +-- +ok +== +SELECT count(*) FROM (SELECT i % 8 FROM range(1000000) t(i) GROUP BY 1 LIMIT 100) +-- +ok +== +EXPLAIN SELECT i % 8 FROM range(1000000) t(i) GROUP BY 1 LIMIT 5 +-- +ok +== +SELECT count(*) FROM (SELECT i % 8 FROM range(1000000) t(i) GROUP BY 1 LIMIT 5) +-- +ok +== EXPLAIN SELECT i % 100, COUNT(*) FROM range(1000000) t(i) GROUP BY 1 LIMIT 10 -- ok diff --git a/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_nulls.test b/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_nulls.test index 912be507..7015833b 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_nulls.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/distinct_on_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (2, 3), (4, 5), (2, NULL), (NULL, NULL); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_order_by.test b/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_order_by.test index 0073df62..46888b00 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_order_by.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/distinct_on_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/distinct_on_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER, k INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/grouped/combined_with_grouping.test b/parser/testdata/corpus/sql/aggregate/distinct/grouped/combined_with_grouping.test index bc7b4197..b2d7b177 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/grouped/combined_with_grouping.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/grouped/combined_with_grouping.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/grouped/combined_with_grouping.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table students ( diff --git a/parser/testdata/corpus/sql/aggregate/distinct/grouped/identical_inputs.test b/parser/testdata/corpus/sql/aggregate/distinct/grouped/identical_inputs.test index ba60778d..e632c3d5 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/grouped/identical_inputs.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/grouped/identical_inputs.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/grouped/identical_inputs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select i%50::BIGINT as i, i%5::BIGINT as j from range(1000000) tbl(i); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/grouped/issue_5070.test b/parser/testdata/corpus/sql/aggregate/distinct/grouped/issue_5070.test index f2f71d34..2865dbb6 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/grouped/issue_5070.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/grouped/issue_5070.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/grouped/issue_5070.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma verify_parallelism diff --git a/parser/testdata/corpus/sql/aggregate/distinct/grouped/multiple_grouping_sets.test b/parser/testdata/corpus/sql/aggregate/distinct/grouped/multiple_grouping_sets.test index e470d012..a4bbcf3a 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/grouped/multiple_grouping_sets.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/grouped/multiple_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/grouped/multiple_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into students diff --git a/parser/testdata/corpus/sql/aggregate/distinct/grouped/string_agg.test b/parser/testdata/corpus/sql/aggregate/distinct/grouped/string_agg.test index f60e31e7..6ac7743b 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/grouped/string_agg.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/grouped/string_agg.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/grouped/string_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings( diff --git a/parser/testdata/corpus/sql/aggregate/distinct/issue19616.test b/parser/testdata/corpus/sql/aggregate/distinct/issue19616.test index fac6f275..17a9275f 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/issue19616.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/issue19616.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/issue19616.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/aggregate/distinct/issue2656.test b/parser/testdata/corpus/sql/aggregate/distinct/issue2656.test index 5a7c1bb7..5508cfaa 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/issue2656.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/issue2656.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/issue2656.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T (t1 int, t2 int); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/issue8505.test b/parser/testdata/corpus/sql/aggregate/distinct/issue8505.test index 85fc6d3a..26f3e819 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/issue8505.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/issue8505.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/issue8505.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test (id int, provider int, record_key int, record_rank int, record_date int) diff --git a/parser/testdata/corpus/sql/aggregate/distinct/issue9241.test b/parser/testdata/corpus/sql/aggregate/distinct/issue9241.test index ec3dd35d..2e71bf7c 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/issue9241.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/issue9241.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/issue9241.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table foo (a int, b int); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite.test b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite.test index beb0eba9..17b43b7f 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE distinct_rewrite AS diff --git a/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_join_order.test b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_join_order.test index 3b1cd019..fcd6add4 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_join_order.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_join_order.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_join_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 INTEGER, c2 INTEGER[]); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_order_by_keys.test b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_order_by_keys.test new file mode 100644 index 00000000..f42b4d6b --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_order_by_keys.test @@ -0,0 +1,78 @@ +# source: test/sql/aggregate/distinct/rewrite/distinct_aggregate_rewrite_order_by_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE tu(g INT, u UNION(a VARCHAR, b INT)); +-- +ok +== +INSERT INTO tu VALUES (1, union_value(a := '1')), (1, union_value(b := 1)), (2, union_value(a := 'x')), (2, union_value(b := 2)), (2, NULL); +-- +ok +== +SELECT g, list_sort(string_split(STRING_AGG(DISTINCT u, ','), ',')), STRING_AGG(DISTINCT u, ',' ORDER BY u) +FROM tu +GROUP BY g +ORDER BY g; +-- +ok +== +SELECT g, STRING_AGG(DISTINCT u, ',' ORDER BY u), list_sort(string_split(STRING_AGG(DISTINCT u, ','), ',')) +FROM tu +GROUP BY g +ORDER BY g; +-- +ok +== +SELECT STRING_AGG(DISTINCT u, ',' ORDER BY u), list_sort(string_split(STRING_AGG(DISTINCT u, ','), ',')), count(DISTINCT u) +FROM tu; +-- +ok +== +SELECT g, list_sort(string_split(STRING_AGG(DISTINCT u, ',') FILTER (WHERE g > 0), ',')), + STRING_AGG(DISTINCT u, ',' ORDER BY u) FILTER (WHERE g > 0) +FROM tu +GROUP BY g +ORDER BY g; +-- +ok +== +SELECT g, list_sort(string_split(STRING_AGG(DISTINCT u, ','), ',')), STRING_AGG(DISTINCT u, ',' ORDER BY u), + STRING_AGG(DISTINCT u, ',' ORDER BY u DESC) +FROM tu +GROUP BY g +ORDER BY g; +-- +ok +== +CREATE TABLE tv(g INT, v VARIANT); +-- +ok +== +INSERT INTO tv VALUES (1, '1'::VARIANT), (1, 1::VARIANT), (2, 'x'::VARIANT); +-- +ok +== +SELECT g, STRING_AGG(DISTINCT v, ','), STRING_AGG(DISTINCT v, ',' ORDER BY v) +FROM tv +GROUP BY g +ORDER BY g; +-- +ok +== +CREATE TABLE ts(g INT, s VARCHAR); +-- +ok +== +INSERT INTO ts VALUES (1, 'a'), (1, 'b'), (1, 'a'), (2, 'c'), (2, NULL); +-- +ok +== +SELECT g, list_sort(list(DISTINCT s)), list(DISTINCT s ORDER BY unicode(s) DESC), list(DISTINCT s ORDER BY unicode(s)) +FROM ts +GROUP BY g +ORDER BY g; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct.test b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct.test index 5424bb2a..1f6bd769 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/test_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on.test b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on.test index 1c2dc550..3d02e376 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/test_distinct_on.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (2, 3, 5), (4, 5, 6), (2, 7, 6) diff --git a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on_columns.test b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on_columns.test index 8f3ba26c..9e2dc328 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on_columns.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_on_columns.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/test_distinct_on_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (VALUES (1,1,2),(1,1,3)) AS t(key1,key2,v) diff --git a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_order_by.test b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_order_by.test index ca8edf24..b545b41f 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_order_by.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/test_distinct_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/test_distinct_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT i%2 FROM integers ORDER BY 1 diff --git a/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped.test b/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped.test index 6b678c19..4c1d8386 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as diff --git a/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped_shared_input.test b/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped_shared_input.test index cb6dfedf..6a901eb0 100644 --- a/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped_shared_input.test +++ b/parser/testdata/corpus/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped_shared_input.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/distinct/ungrouped/test_distinct_ungrouped_shared_input.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select i%50 as i from range(1000000) tbl(i); diff --git a/parser/testdata/corpus/sql/aggregate/first_last_nested_vectors.test b/parser/testdata/corpus/sql/aggregate/first_last_nested_vectors.test index 67209ea8..4176f4e2 100644 --- a/parser/testdata/corpus/sql/aggregate/first_last_nested_vectors.test +++ b/parser/testdata/corpus/sql/aggregate/first_last_nested_vectors.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/first_last_nested_vectors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT first([i]) = CASE WHEN i >= 2500 THEN [2500] ELSE [0] END diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all.test index dab9c92c..c69cd315 100644 --- a/parser/testdata/corpus/sql/aggregate/group/group_by_all.test +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/group_by_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(g integer, i integer); diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all_collation.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all_collation.test new file mode 100644 index 00000000..b0f08c0b --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all_collation.test @@ -0,0 +1,33 @@ +# source: test/sql/aggregate/group/group_by_all_collation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT s COLLATE NOCASE AS s, count(*) FROM (VALUES ('a'), ('A'), ('b')) v(s) GROUP BY ALL ORDER BY 1 +-- +ok +== +SELECT s COLLATE NOCASE AS s, count(*) FROM (VALUES ('a'), ('A'), ('b')) v(s) GROUP BY s COLLATE NOCASE ORDER BY 1 +-- +ok +== +SELECT s COLLATE NOCASE AS s, upper(s) COLLATE NOCASE AS u, count(*) FROM (VALUES ('a'), ('A'), ('b')) v(s) GROUP BY ALL ORDER BY 1 +-- +ok +== +SELECT s, count(*) FROM (VALUES ('a'), ('A')) v(s) GROUP BY ALL ORDER BY 1 +-- +ok +== +SET default_collation='nocase' +-- +ok +== +SELECT s, count(*) FROM (VALUES ('a'), ('A'), ('b')) v(s) GROUP BY ALL ORDER BY 1 +-- +ok +== +SELECT s, count(*) FROM (VALUES ('a'), ('A'), ('b')) v(s) GROUP BY s ORDER BY 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all_having.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all_having.test index ddfb0397..b2e613c4 100644 --- a/parser/testdata/corpus/sql/aggregate/group/group_by_all_having.test +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all_having.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/group_by_all_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (SELECT 1) t0(c0) GROUP BY c0 HAVING c0>0 diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all_having_groups.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all_having_groups.test new file mode 100644 index 00000000..245a550c --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all_having_groups.test @@ -0,0 +1,65 @@ +# source: test/sql/aggregate/group/group_by_all_having_groups.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT small: x < 2 FROM unnest([0, 1]) _(x) GROUP BY ALL HAVING small ORDER BY ALL; +-- +ok +== +SELECT small: x < 2, count(*) AS n FROM unnest([0, 1]) _(x) GROUP BY ALL HAVING small; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(6) t(x) GROUP BY ALL HAVING k = 0; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(6) t(x) GROUP BY ALL HAVING x % 2 = 0; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(5) t(x) GROUP BY ALL HAVING n > 2; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(6) t(x) GROUP BY ALL HAVING x > 3 ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM range(6) t(x) GROUP BY ALL HAVING x > 3; +-- +ok +== +CREATE TABLE collated (s VARCHAR COLLATE NOCASE, i INTEGER); +-- +ok +== +INSERT INTO collated VALUES ('a', 1), ('A', 2), ('b', 3); +-- +ok +== +SELECT lower(s) AS l, count(*) FROM collated GROUP BY ALL HAVING l = 'a'; +-- +ok +== +SELECT lower(s) AS l, count(*) FROM collated GROUP BY ALL HAVING lower(s) = 'A'; +-- +ok +== +SELECT s AS k, count(*) FROM (SELECT 'A' COLLATE NOCASE AS s FROM range(2)) t GROUP BY ALL HAVING unicode(k) = 65; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(6) t(x) GROUP BY ALL HAVING GROUPING(x % 2) = 0 ORDER BY ALL; +-- +ok +== +SELECT x, count(*) AS n FROM range(4) t(x) GROUP BY ALL HAVING EXISTS (SELECT 1 FROM range(2) u(y) WHERE y = x) ORDER BY ALL; +-- +ok +== +SELECT x % 2 AS k, count(*) AS n FROM range(6) t(x) GROUP BY ALL HAVING (SELECT x) = 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all_order.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all_order.test index d33c255e..74dcbfb3 100644 --- a/parser/testdata/corpus/sql/aggregate/group/group_by_all_order.test +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all_order.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/group_by_all_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(i) FROM integers diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_all_window.test b/parser/testdata/corpus/sql/aggregate/group/group_by_all_window.test index 5a9350aa..c9467911 100644 --- a/parser/testdata/corpus/sql/aggregate/group/group_by_all_window.test +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_all_window.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/group_by_all_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range % 3 AS g, range AS v FROM range(10); diff --git a/parser/testdata/corpus/sql/aggregate/group/group_by_limits.test b/parser/testdata/corpus/sql/aggregate/group/group_by_limits.test index 9d078c1a..b80099b9 100644 --- a/parser/testdata/corpus/sql/aggregate/group/group_by_limits.test +++ b/parser/testdata/corpus/sql/aggregate/group/group_by_limits.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/group_by_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(t_k0 TINYINT); diff --git a/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_range.test b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_range.test new file mode 100644 index 00000000..9c6979d1 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_range.test @@ -0,0 +1,17 @@ +# source: test/sql/aggregate/group/perfect_hash_corrupt_stats_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE perfect_hash_corrupt_stats_range; +-- +ok +== +SET disabled_optimizers='compressed_materialization'; +-- +ok +== +SELECT g, count(*), sum(g) FROM t GROUP BY g; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_wrapped_id.test b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_wrapped_id.test new file mode 100644 index 00000000..8aeb3445 --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_corrupt_stats_wrapped_id.test @@ -0,0 +1,13 @@ +# source: test/sql/aggregate/group/perfect_hash_corrupt_stats_wrapped_id.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE perfect_hash_corrupt_stats_wrapped_id; +-- +ok +== +SELECT g, count(*), sum(g), count(*) FILTER (WHERE g % 2 = 0) FROM t GROUP BY g; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/group/perfect_hash_max_values.test b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_max_values.test index 66b8a207..d28439c0 100644 --- a/parser/testdata/corpus/sql/aggregate/group/perfect_hash_max_values.test +++ b/parser/testdata/corpus/sql/aggregate/group/perfect_hash_max_values.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/perfect_hash_max_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 'infinity'::TIMESTAMP x UNION ALL SELECT 'infinity'::TIMESTAMP; diff --git a/parser/testdata/corpus/sql/aggregate/group/perfect_ht_memory_limit.test b/parser/testdata/corpus/sql/aggregate/group/perfect_ht_memory_limit.test index b0054fe5..351ba57e 100644 --- a/parser/testdata/corpus/sql/aggregate/group/perfect_ht_memory_limit.test +++ b/parser/testdata/corpus/sql/aggregate/group/perfect_ht_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/perfect_ht_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA explain_output='physical_only'; diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by.test index 27747a08..f72e2e11 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (13, 22), (12, 21) diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_alias.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_alias.test index 514cfc37..abc81989 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_alias.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_alias.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER) diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_error.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_error.test index 92ac648c..b97c8206 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_error.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_error.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INT) diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_large_string.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_large_string.test index b167553a..c0efd4fa 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_large_string.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_large_string.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_large_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a VARCHAR, b INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_multi_column.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_multi_column.test index bdb65ef2..f8c29135 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_multi_column.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1, 2), (1, 2, 2), (1, 1, 2), (2, 1, 2), (1, 2, 4), (1, 2, NULL); diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_nested.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_nested.test index 1e8a8069..4af7b59b 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_nested.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_nested.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE {storage_type} intlists AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_null_length.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_null_length.test index a192898a..42d041b5 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_null_length.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_null_length.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_null_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_by_skip_lookups.test b/parser/testdata/corpus/sql/aggregate/group/test_group_by_skip_lookups.test index afd10894..ebbe91a4 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_by_skip_lookups.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_by_skip_lookups.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_by_skip_lookups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads = 3; diff --git a/parser/testdata/corpus/sql/aggregate/group/test_group_null.test b/parser/testdata/corpus/sql/aggregate/group/test_group_null.test index 5ed41189..ae6ee361 100644 --- a/parser/testdata/corpus/sql/aggregate/group/test_group_null.test +++ b/parser/testdata/corpus/sql/aggregate/group/test_group_null.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/group/test_group_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (3, 4), (NULL, 4), (2, 4); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/cube.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/cube.test index 293f063f..8c88a39e 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/cube.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/cube.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/cube.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table students (course VARCHAR, type VARCHAR, highest_grade INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping.test index a8da169c..456e68c0 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/grouping.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table students (course VARCHAR, type VARCHAR); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets.test index 55e122f3..773060c3 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1 from students group by (); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_filter.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_filter.test index f24639a0..902787be 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_filter.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_filter.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/grouping_sets_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT course, COUNT(*) FROM students GROUP BY GROUPING SETS ((), (course)) HAVING course LIKE 'C%' ORDER BY 1, 2; diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_many_sets.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_many_sets.test index ecfbb5d3..0671310b 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_many_sets.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_many_sets.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/grouping_sets_many_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i % 2 c0, i % 3 c1, i % 4 c2, i % 5 c3, i % 6 c4, i % 7 c5, i % 8 c6, i % 9 c7, i % 10 c8, i % 11 c9, i % 12 c10, i % 13 c11, i FROM range(100) r(i); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_sum_having.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_sum_having.test index ea07f308..f2f763b8 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_sum_having.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/grouping_sets_sum_having.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/grouping_sets_sum_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range i, range % 3 g, (range / 4)::DECIMAL(9,2) d FROM range(6); diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/issue_3730.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/issue_3730.test index 48fded5f..ffdc1f67 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/issue_3730.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/issue_3730.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/issue_3730.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE response( diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/many_duplicate_grouping_sets.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/many_duplicate_grouping_sets.test new file mode 100644 index 00000000..f8288f9f --- /dev/null +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/many_duplicate_grouping_sets.test @@ -0,0 +1,13 @@ +# source: test/sql/aggregate/grouping_sets/many_duplicate_grouping_sets.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM (SELECT 1 c0) t GROUP BY GROUPING SETS ((c0), (c0), (c0)); +-- +ok +== +SELECT count(*) FROM (SELECT count(*) FROM (SELECT 1 c0) t GROUP BY GROUPING SETS ((c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0),(c0))); +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/multiple_empty_grouping_sets.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/multiple_empty_grouping_sets.test index 902886ea..e50b2342 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/multiple_empty_grouping_sets.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/multiple_empty_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/multiple_empty_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) diff --git a/parser/testdata/corpus/sql/aggregate/grouping_sets/rollup.test b/parser/testdata/corpus/sql/aggregate/grouping_sets/rollup.test index b199fbdf..520edbea 100644 --- a/parser/testdata/corpus/sql/aggregate/grouping_sets/rollup.test +++ b/parser/testdata/corpus/sql/aggregate/grouping_sets/rollup.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/grouping_sets/rollup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select course, count(*) from students group by rollup (course) order by 1, 2; diff --git a/parser/testdata/corpus/sql/aggregate/having/having_alias.test b/parser/testdata/corpus/sql/aggregate/having/having_alias.test index 99cbae68..f9cae791 100644 --- a/parser/testdata/corpus/sql/aggregate/having/having_alias.test +++ b/parser/testdata/corpus/sql/aggregate/having/having_alias.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/having/having_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT b, sum(a) AS a diff --git a/parser/testdata/corpus/sql/aggregate/having/having_without_groupby.test b/parser/testdata/corpus/sql/aggregate/having/having_without_groupby.test index 18b4379c..25d1490e 100644 --- a/parser/testdata/corpus/sql/aggregate/having/having_without_groupby.test +++ b/parser/testdata/corpus/sql/aggregate/having/having_without_groupby.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/having/having_without_groupby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 AS one FROM ( diff --git a/parser/testdata/corpus/sql/aggregate/having/test_having.test b/parser/testdata/corpus/sql/aggregate/having/test_having.test index b5fe4fad..985b86da 100644 --- a/parser/testdata/corpus/sql/aggregate/having/test_having.test +++ b/parser/testdata/corpus/sql/aggregate/having/test_having.test @@ -1,12 +1,16 @@ # source: test/sql/aggregate/having/test_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT b, SUM(a) AS sum FROM test GROUP BY b HAVING b=21 ORDER BY b; -- ok == +SELECT c FROM test GROUP BY b HAVING d > 1; +-- +ok +== SELECT b, SUM(a) FROM test GROUP BY b HAVING SUM(a) < 20 ORDER BY b; -- ok @@ -47,3 +51,19 @@ SELECT test.b, SUM(a) FROM test GROUP BY test.b ORDER BY (SELECT SUM(a) FROM tes -- ok == +SELECT g, sum(v) AS n, row_number() OVER (ORDER BY sum(v)) AS rn FROM (VALUES (1, 1), (2, 2), (3, 3)) t(g, v) GROUP BY g HAVING n >= 2 QUALIFY rn = 1; +-- +ok +== +SELECT row_number() OVER () AS rn FROM range(3) t(i) HAVING count(*) = 3 QUALIFY rn = 1; +-- +ok +== +SELECT row_number() OVER () AS rn FROM range(3) t(i) HAVING count(*) = 3 QUALIFY i = 0; +-- +ok +== +SELECT s, count(*), grouping(s) FROM (SELECT 'A' COLLATE NOCASE AS s) t GROUP BY ROLLUP(s) HAVING s IS NULL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/aggregate/having/test_scalar_having.test b/parser/testdata/corpus/sql/aggregate/having/test_scalar_having.test index c53325e8..6e1c270e 100644 --- a/parser/testdata/corpus/sql/aggregate/having/test_scalar_having.test +++ b/parser/testdata/corpus/sql/aggregate/having/test_scalar_having.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/having/test_scalar_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 HAVING 42 > 20 diff --git a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify.test b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify.test index cdf6c45f..6dc0bfdf 100644 --- a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify.test +++ b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/qualify/test_qualify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE qt (a INTEGER, b CHAR(1), c INTEGER); diff --git a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_macro.test b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_macro.test index 98413534..35da2b4b 100644 --- a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_macro.test +++ b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_macro.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/qualify/test_qualify_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disable_checkpoint_on_shutdown diff --git a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_view.test b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_view.test index 3da2dd91..c1f5aedf 100644 --- a/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_view.test +++ b/parser/testdata/corpus/sql/aggregate/qualify/test_qualify_view.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/qualify/test_qualify_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA test; diff --git a/parser/testdata/corpus/sql/aggregate/quantile_fun.test b/parser/testdata/corpus/sql/aggregate/quantile_fun.test index cdbe819b..bfb015fe 100644 --- a/parser/testdata/corpus/sql/aggregate/quantile_fun.test +++ b/parser/testdata/corpus/sql/aggregate/quantile_fun.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/quantile_fun.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantiles as select range r, random() FROM range(100) union all values (NULL, 0.1), (NULL, 0.5), (NULL, 0.9) order by 2; diff --git a/parser/testdata/corpus/sql/aggregate/sparse_clustered_aggregation.test b/parser/testdata/corpus/sql/aggregate/sparse_clustered_aggregation.test index f9950e30..bf54196f 100644 --- a/parser/testdata/corpus/sql/aggregate/sparse_clustered_aggregation.test +++ b/parser/testdata/corpus/sql/aggregate/sparse_clustered_aggregation.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/sparse_clustered_aggregation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET perfect_ht_threshold={threshold}; diff --git a/parser/testdata/corpus/sql/aggregate/variant/variant_group_object.test b/parser/testdata/corpus/sql/aggregate/variant/variant_group_object.test index 3d14a09a..6553f1ac 100644 --- a/parser/testdata/corpus/sql/aggregate/variant/variant_group_object.test +++ b/parser/testdata/corpus/sql/aggregate/variant/variant_group_object.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/variant/variant_group_object.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_group_object('duck', 'goose'::VARIANT); diff --git a/parser/testdata/corpus/sql/aggregate/variant/variant_group_object_shredded.test b/parser/testdata/corpus/sql/aggregate/variant/variant_group_object_shredded.test index ccb1cafb..1ff3d800 100644 --- a/parser/testdata/corpus/sql/aggregate/variant/variant_group_object_shredded.test +++ b/parser/testdata/corpus/sql/aggregate/variant/variant_group_object_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/aggregate/variant/variant_group_object_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET variant_minimum_shredding_size = 0; diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col.test index bbebee8f..7d809bc5 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_chain.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_chain.test index 8ea6b7f2..a64f744a 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_chain.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_chain.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (3, 3) diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_compression.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_compression.test index 3b3f4a49..4d2220e1 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_compression.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_compression.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE compression_test(i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_constraints.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_constraints.test index a1051438..b1b24b16 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_constraints.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_default.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_default.test index 1278c8bc..fe0cf23d 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_default.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_default.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD COLUMN l INTEGER DEFAULT 3 diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_default_seq.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_default_seq.test index 51b365d0..0de7c550 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_default_seq.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_default_seq.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_default_seq.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD COLUMN m INTEGER DEFAULT nextval('seq') diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_distinct_stats.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_distinct_stats.test index 1379b368..587d88af 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_distinct_stats.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_distinct_stats.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_distinct_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range AS i FROM range(100000); diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_if_not_exists_default.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_if_not_exists_default.test index 1227d24e..d6c02a5c 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_if_not_exists_default.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_if_not_exists_default.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_if_not_exists_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_incorrect.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_incorrect.test index f1ad171c..cd9bfacf 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_incorrect.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD COLUMN i INTEGER diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_index.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_index.test index adf3ade4..4cd0d534 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_index.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_index.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD COLUMN k INTEGER DEFAULT 2 diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_not_null.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_not_null.test index 309aa9d2..2bda9291 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_not_null.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER); diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_stats.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_stats.test index 6426fca4..499ab72b 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_stats.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_stats.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM test WHERE m=2 diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_transactions.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_transactions.test index 8132ed7d..0d5e644c 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_transactions.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TABLE test diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_unique.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_unique.test index e45c3eb0..e4521dff 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_unique.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_unique.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t ADD COLUMN b INTEGER UNIQUE; diff --git a/parser/testdata/corpus/sql/alter/add_col/test_add_col_user_type.test b/parser/testdata/corpus/sql/alter/add_col/test_add_col_user_type.test index 9903fe15..a4434979 100644 --- a/parser/testdata/corpus/sql/alter/add_col/test_add_col_user_type.test +++ b/parser/testdata/corpus/sql/alter/add_col/test_add_col_user_type.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_col/test_add_col_user_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA test_schema; diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_multi_column_pk.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_multi_column_pk.test index 2df3c5f9..e3f5fb57 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_multi_column_pk.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_multi_column_pk.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_multi_column_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (i INTEGER, j INTEGER, d TEXT); diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk.test index 74571b07..bcb165f0 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_alter_in_tx.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_alter_in_tx.test index 846af593..bc245988 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_alter_in_tx.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_alter_in_tx.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_alter_in_tx.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD PRIMARY KEY (j); diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_attach.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_attach.test index 584a1e3c..485ad48b 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_attach.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_attach.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_attach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' as memory diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_catalog_error.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_catalog_error.test index efaf0622..3ccfee85 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_catalog_error.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_catalog_error.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_catalog_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ADD PRIMARY KEY (i_do_not_exist) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_create_index.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_create_index.test new file mode 100644 index 00000000..c14f8058 --- /dev/null +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_create_index.test @@ -0,0 +1,33 @@ +# source: test/sql/alter/add_pk/test_add_pk_concurrent_create_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (id BIGINT, c INTEGER); +-- +ok +== +INSERT INTO t SELECT range, range % 10 FROM range(2000); +-- +ok +== +CREATE INDEX ix ON t(c); +-- +ok +== +ALTER TABLE t ADD PRIMARY KEY (id); +-- +ok +== +ALTER TABLE t ADD UNIQUE (id); +-- +ok +== +INSERT INTO t VALUES (5000, 1); +-- +ok +== +SELECT count(*) FROM t WHERE c = 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_null.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_null.test new file mode 100644 index 00000000..2df8b9ae --- /dev/null +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_concurrent_null.test @@ -0,0 +1,22 @@ +# source: test/sql/alter/add_pk/test_add_pk_concurrent_null.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE OR REPLACE TABLE t (id INTEGER); +-- +ok +== +INSERT INTO t SELECT i FROM range(1, 100001) tbl(i); +-- +ok +== +INSERT INTO t VALUES (NULL); +-- +ok +== +SELECT (SELECT count(*) FROM t WHERE id IS NULL) = 0 + OR (SELECT count(*) FROM duckdb_constraints() WHERE table_name = 't' AND constraint_type = 'PRIMARY KEY') = 0; +-- +ok +== diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_gaps_in_rowids.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_gaps_in_rowids.test index 0dce1f19..b890e683 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_gaps_in_rowids.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_gaps_in_rowids.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_gaps_in_rowids.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i integer) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_data.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_data.test index d6f80986..be2e5b71 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_data.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_data.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_invalid_data.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE duplicates (i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_type.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_type.test index a36b571a..e4470044 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_type.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_invalid_type.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_invalid_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER[], b INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_local_null.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_local_null.test index 2e9d3a0e..81f00e85 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_local_null.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_local_null.test @@ -1,12 +1,8 @@ # source: test/sql/alter/add_pk/test_add_pk_local_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -INSERT INTO t VALUES (NULL); --- -ok -== ALTER TABLE t ADD PRIMARY KEY (a); -- ok diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_naming_conflict.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_naming_conflict.test index 8da7a71b..49e7053f 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_naming_conflict.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_naming_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_naming_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_rollback.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_rollback.test index d277d44c..aa931f20 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_rollback.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal.test index 175861c4..a6f07c18 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (1, 2), (3, 4); diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal_generated.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal_generated.test index 45f0067f..c541f655 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal_generated.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_wal_generated.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_wal_generated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_lead(g INTEGER GENERATED ALWAYS AS (a + 1), a INTEGER); diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_with_generated_column.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_with_generated_column.test index e832fbd6..d74ab76f 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_with_generated_column.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_pk_with_generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_pk_with_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_simultaneously.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_simultaneously.test index 318cf248..28bc9f24 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_simultaneously.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_simultaneously.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_same_pk_simultaneously.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (1, 1), (1, 1) diff --git a/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_twice.test b/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_twice.test index a4aa6443..624ed459 100644 --- a/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_twice.test +++ b/parser/testdata/corpus/sql/alter/add_pk/test_add_same_pk_twice.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_pk/test_add_same_pk_twice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE other (i INTEGER PRIMARY KEY, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/add_unique/test_add_unique.test b/parser/testdata/corpus/sql/alter/add_unique/test_add_unique.test index f68afebf..08a96ce7 100644 --- a/parser/testdata/corpus/sql/alter/add_unique/test_add_unique.test +++ b/parser/testdata/corpus/sql/alter/add_unique/test_add_unique.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_unique/test_add_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(c INT); diff --git a/parser/testdata/corpus/sql/alter/add_unique/test_add_unique_wal.test b/parser/testdata/corpus/sql/alter/add_unique/test_add_unique_wal.test index 802fa9fb..50ea417c 100644 --- a/parser/testdata/corpus/sql/alter/add_unique/test_add_unique_wal.test +++ b/parser/testdata/corpus/sql/alter/add_unique/test_add_unique_wal.test @@ -1,6 +1,6 @@ # source: test/sql/alter/add_unique/test_add_unique_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i INTEGER, j INTEGER, k INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null.test b/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null.test index 3597a0b4..5b75285d 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_drop_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER NOT NULL) diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null_primary_key.test b/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null_primary_key.test index a4f7f6c3..fe230115 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null_primary_key.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_drop_not_null_primary_key.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_drop_not_null_primary_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pk_col(i INTEGER PRIMARY KEY, j INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_not_null_in_tran.test b/parser/testdata/corpus/sql/alter/alter_col/test_not_null_in_tran.test index ba4b99b1..917e4cf8 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_not_null_in_tran.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_not_null_in_tran.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_not_null_in_tran.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_not_null_multi_tran.test b/parser/testdata/corpus/sql/alter/alter_col/test_not_null_multi_tran.test index 5b984fa1..a3557979 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_not_null_multi_tran.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_not_null_multi_tran.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_not_null_multi_tran.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES(7777, NULL) diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_set_collate.test b/parser/testdata/corpus/sql/alter/alter_col/test_set_collate.test index bcfa5a1d..921c8356 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_set_collate.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_set_collate.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_set_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INT, s VARCHAR); diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null.test b/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null.test index 322cb29e..d251339c 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_set_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES (1, 1), (2, 2) diff --git a/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null_after_delete.test b/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null_after_delete.test index 87058448..0e4a6301 100644 --- a/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null_after_delete.test +++ b/parser/testdata/corpus/sql/alter/alter_col/test_set_not_null_after_delete.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_col/test_set_not_null_after_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_schema_set_schema_options.test b/parser/testdata/corpus/sql/alter/alter_schema_set_schema_options.test index 56a9835b..c9877162 100644 --- a/parser/testdata/corpus/sql/alter/alter_schema_set_schema_options.test +++ b/parser/testdata/corpus/sql/alter/alter_schema_set_schema_options.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_schema_set_schema_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set variable location='my/location/path'; diff --git a/parser/testdata/corpus/sql/alter/alter_table_if_exists_tostring.test b/parser/testdata/corpus/sql/alter/alter_table_if_exists_tostring.test new file mode 100644 index 00000000..3788dfc9 --- /dev/null +++ b/parser/testdata/corpus/sql/alter/alter_table_if_exists_tostring.test @@ -0,0 +1,41 @@ +# source: test/sql/alter/alter_table_if_exists_tostring.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET debug_verify_statement='reparse_statement'; +-- +ok +== +ALTER TABLE IF EXISTS nope ADD CONSTRAINT c CHECK (a > 0); +-- +ok +== +ALTER TABLE IF EXISTS nope ADD PRIMARY KEY (a); +-- +ok +== +ALTER TABLE IF EXISTS nope SET PARTITIONED BY (a); +-- +ok +== +ALTER TABLE IF EXISTS nope RESET PARTITIONED BY; +-- +ok +== +ALTER TABLE IF EXISTS nope SET SORTED BY (a); +-- +ok +== +ALTER TABLE IF EXISTS nope SET (opt = 1); +-- +ok +== +ALTER TABLE IF EXISTS nope RESET (opt); +-- +ok +== +ALTER TABLE nope ADD PRIMARY KEY (a); +-- +ok +== diff --git a/parser/testdata/corpus/sql/alter/alter_table_nullability_requires_column.test b/parser/testdata/corpus/sql/alter/alter_table_nullability_requires_column.test index 991c4edb..bef6a755 100644 --- a/parser/testdata/corpus/sql/alter/alter_table_nullability_requires_column.test +++ b/parser/testdata/corpus/sql/alter/alter_table_nullability_requires_column.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_table_nullability_requires_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_table_set_partitioned_by.test b/parser/testdata/corpus/sql/alter/alter_table_set_partitioned_by.test index ee4f49d2..fe039168 100644 --- a/parser/testdata/corpus/sql/alter/alter_table_set_partitioned_by.test +++ b/parser/testdata/corpus/sql/alter/alter_table_set_partitioned_by.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_table_set_partitioned_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_table_set_sorted_by.test b/parser/testdata/corpus/sql/alter/alter_table_set_sorted_by.test index d747e745..22c93557 100644 --- a/parser/testdata/corpus/sql/alter/alter_table_set_sorted_by.test +++ b/parser/testdata/corpus/sql/alter/alter_table_set_sorted_by.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_table_set_sorted_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE tbl SET SORTED BY (i DESC NULLS FIRST) diff --git a/parser/testdata/corpus/sql/alter/alter_table_set_table_options.test b/parser/testdata/corpus/sql/alter/alter_table_set_table_options.test index 8424443b..9e709269 100644 --- a/parser/testdata/corpus/sql/alter/alter_table_set_table_options.test +++ b/parser/testdata/corpus/sql/alter/alter_table_set_table_options.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_table_set_table_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_type/alter_type_concurrent_committed_update.test b/parser/testdata/corpus/sql/alter/alter_type/alter_type_concurrent_committed_update.test index de903773..24ff0957 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/alter_type_concurrent_committed_update.test +++ b/parser/testdata/corpus/sql/alter/alter_type/alter_type_concurrent_committed_update.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/alter_type_concurrent_committed_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INTEGER, v INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_type/alter_type_distinct_stats.test b/parser/testdata/corpus/sql/alter/alter_type/alter_type_distinct_stats.test index 1c98e4c0..77f12933 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/alter_type_distinct_stats.test +++ b/parser/testdata/corpus/sql/alter/alter_type/alter_type_distinct_stats.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/alter_type_distinct_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE c AS SELECT hash(range) % 2000 AS v FROM range(100000); diff --git a/parser/testdata/corpus/sql/alter/alter_type/alter_type_failed_cast_keeps_table_usable.test b/parser/testdata/corpus/sql/alter/alter_type/alter_type_failed_cast_keeps_table_usable.test index ea07d127..95a7df24 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/alter_type_failed_cast_keeps_table_usable.test +++ b/parser/testdata/corpus/sql/alter/alter_type/alter_type_failed_cast_keeps_table_usable.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/alter_type_failed_cast_keeps_table_usable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(v VARCHAR) diff --git a/parser/testdata/corpus/sql/alter/alter_type/alter_type_struct.test b/parser/testdata/corpus/sql/alter/alter_type/alter_type_struct.test index 9106528b..efc185da 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/alter_type_struct.test +++ b/parser/testdata/corpus/sql/alter/alter_type/alter_type_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/alter_type_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT {'t': 42} t diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type.test index d3005388..c08bd8c6 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER i SET DATA TYPE VARCHAR diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_active_transaction_visibility.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_active_transaction_visibility.test index fb80f807..6f46d349 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_active_transaction_visibility.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_active_transaction_visibility.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_active_transaction_visibility.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_check.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_check.test index dfc2dba5..d843afe2 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_check.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_check.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER CHECK(i < 10), j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_dependencies.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_dependencies.test index d9852ddb..36521878 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_dependencies.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT * FROM test diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_expression.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_expression.test index b166e394..0064ee46 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_expression.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_expression.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER i TYPE BIGINT USING i+100 diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_incorrect.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_incorrect.test index 9e5d2407..68534f68 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_incorrect.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER blabla SET TYPE VARCHAR diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_index.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_index.test index c1ccfe2f..d845e4d0 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_index.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_index.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i_index ON test(i) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_local.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_local.test index 77179138..23134ef8 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_local.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_local.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_local.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER i SET DATA TYPE BIGINT diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_multi_column.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_multi_column.test index cfec689b..da2f7d67 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_multi_column.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER i TYPE INTEGER USING 2*(i+j) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_not_null.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_not_null.test index a110192b..e3d479be 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_not_null.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER NOT NULL, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_rollback.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_rollback.test index 85847d94..1d467d91 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_rollback.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET i='hello' diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_transactions.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_transactions.test index adbb5257..c1dfc73c 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_transactions.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER j TYPE VARCHAR diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_unique.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_unique.test index 5f20fb58..cdfbb440 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_unique.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_unique.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER UNIQUE, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_using_not_null.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_using_not_null.test index 9a7225ff..7311b483 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_using_not_null.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_using_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_using_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER NOT NULL, b INTEGER); diff --git a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_with_generated_column.test b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_with_generated_column.test index 67c86d8f..51d0e4fc 100644 --- a/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_with_generated_column.test +++ b/parser/testdata/corpus/sql/alter/alter_type/test_alter_type_with_generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/alter/alter_type/test_alter_type_with_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i AS (1), j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/default/drop_default.test b/parser/testdata/corpus/sql/alter/default/drop_default.test index 47728cdf..08c45c4c 100644 --- a/parser/testdata/corpus/sql/alter/default/drop_default.test +++ b/parser/testdata/corpus/sql/alter/default/drop_default.test @@ -1,6 +1,6 @@ # source: test/sql/alter/default/drop_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE data(id INTEGER, x INTEGER); diff --git a/parser/testdata/corpus/sql/alter/default/test_set_default.test b/parser/testdata/corpus/sql/alter/default/test_set_default.test index 5cdaea72..2753afdf 100644 --- a/parser/testdata/corpus/sql/alter/default/test_set_default.test +++ b/parser/testdata/corpus/sql/alter/default/test_set_default.test @@ -1,6 +1,6 @@ # source: test/sql/alter/default/test_set_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER j SET DEFAULT 3 diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col.test index 014fe138..d333a43f 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN j diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check.test index 43ef7c7d..c3ad936f 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER CHECK(j < 10)) diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check_next.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check_next.test index 65a5742d..e4a6c3d1 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check_next.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_check_next.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_check_next.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN i diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_concurrent_dml_conflict.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_concurrent_dml_conflict.test index 62fd13bd..cdeca013 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_concurrent_dml_conflict.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_concurrent_dml_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_concurrent_dml_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET immediate_transaction_mode=true diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_dotted_name.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_dotted_name.test index 5273135f..aebd1912 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_dotted_name.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_dotted_name.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_dotted_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_blocks=true diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_failure.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_failure.test index 54831e16..0ebd4677 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_failure.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_failure.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN blabla diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_not_null_next.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_not_null_next.test index 6e296984..3c0527cf 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_not_null_next.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_not_null_next.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_not_null_next.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER, k INTEGER NOT NULL) diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_operations.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_operations.test index 03f46f75..28cee5e6 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_operations.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_operations.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_operations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT i, i FROM range(100) tbl(i); diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_pk.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_pk.test index 5d1de56b..e2b1ce8b 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_pk.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_pk.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER PRIMARY KEY, j INTEGER) diff --git a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_with_generated_cols.test b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_with_generated_cols.test index 2dcb1cf5..8e28fc2d 100644 --- a/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_with_generated_cols.test +++ b/parser/testdata/corpus/sql/alter/drop_col/test_drop_col_with_generated_cols.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_col/test_drop_col_with_generated_cols.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t(i int, j as (2), k int, m as (3), n int); diff --git a/parser/testdata/corpus/sql/alter/drop_constraint.test b/parser/testdata/corpus/sql/alter/drop_constraint.test index 2d90d4ce..cbddb045 100644 --- a/parser/testdata/corpus/sql/alter/drop_constraint.test +++ b/parser/testdata/corpus/sql/alter/drop_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/alter/drop_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t DROP CONSTRAINT pk; diff --git a/parser/testdata/corpus/sql/alter/list/add_column_in_struct.test b/parser/testdata/corpus/sql/alter/list/add_column_in_struct.test index 6a723cfc..beaaf965 100644 --- a/parser/testdata/corpus/sql/alter/list/add_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/list/add_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/list/add_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte AS ( diff --git a/parser/testdata/corpus/sql/alter/list/drop_column_in_struct.test b/parser/testdata/corpus/sql/alter/list/drop_column_in_struct.test index 9f269e8c..84fee244 100644 --- a/parser/testdata/corpus/sql/alter/list/drop_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/list/drop_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/list/drop_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN s.element diff --git a/parser/testdata/corpus/sql/alter/list/rename_column_in_struct.test b/parser/testdata/corpus/sql/alter/list/rename_column_in_struct.test index 1f544365..db239527 100644 --- a/parser/testdata/corpus/sql/alter/list/rename_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/list/rename_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/list/rename_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test( diff --git a/parser/testdata/corpus/sql/alter/map/add_column_in_struct.test b/parser/testdata/corpus/sql/alter/map/add_column_in_struct.test index 5fbbf0cd..120771b2 100644 --- a/parser/testdata/corpus/sql/alter/map/add_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/map/add_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/map/add_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte as ( diff --git a/parser/testdata/corpus/sql/alter/map/drop_column_in_struct.test b/parser/testdata/corpus/sql/alter/map/drop_column_in_struct.test index 8f161d86..6740b231 100644 --- a/parser/testdata/corpus/sql/alter/map/drop_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/map/drop_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/map/drop_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN s.key diff --git a/parser/testdata/corpus/sql/alter/map/rename_column_in_struct.test b/parser/testdata/corpus/sql/alter/map/rename_column_in_struct.test index 48e101d9..cc558233 100644 --- a/parser/testdata/corpus/sql/alter/map/rename_column_in_struct.test +++ b/parser/testdata/corpus/sql/alter/map/rename_column_in_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/map/rename_column_in_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME COLUMN s.key to anything diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col.test index d3e2aace..12329d55 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME COLUMN i TO k diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_check.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_check.test index 7750d669..101d2d30 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_check.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_check.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test (i, j) VALUES (1, 2), (2, 3) diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_dependencies.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_dependencies.test index 100cc50e..68c49c5d 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_dependencies.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT i, j FROM test diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_failure.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_failure.test index 7e7da9c6..c1c535e5 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_failure.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_failure.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME COLUMN blablabla TO k diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_not_null.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_not_null.test index b1316429..2d6e30de 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_not_null.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test (i, j) VALUES (NULL, 2) diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_rollback.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_rollback.test index 2102c373..855f3d6a 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_rollback.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET default_transaction_invalidation_policy='SYNTACTIC_ERRORS_DO_NOT_INVALIDATE'; diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_transactions.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_transactions.test index 21035cf3..f93b8754 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_transactions.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test( diff --git a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_unique.test b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_unique.test index f8d716a5..6b48744d 100644 --- a/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_unique.test +++ b/parser/testdata/corpus/sql/alter/rename_col/test_rename_col_unique.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_col/test_rename_col_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER, PRIMARY KEY(i, j)) diff --git a/parser/testdata/corpus/sql/alter/rename_schema/rename_schema.test b/parser/testdata/corpus/sql/alter/rename_schema/rename_schema.test index 6a298f81..61528590 100644 --- a/parser/testdata/corpus/sql/alter/rename_schema/rename_schema.test +++ b/parser/testdata/corpus/sql/alter/rename_schema/rename_schema.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_schema/rename_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER SCHEMA a RENAME TO b; diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_bug4455_schema.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_bug4455_schema.test index b9a3b8ba..fe7e3692 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_bug4455_schema.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_bug4455_schema.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_bug4455_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema public; diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table.test index 77dee749..87e2e4dc 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl VALUES (999), (100); diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_case.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_case.test index 34591315..2ea5d8d3 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_case.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_case.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table MY_TABLE (i integer); diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_chain_commit.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_chain_commit.test index 31cacafa..9a068584 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_chain_commit.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_chain_commit.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_chain_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE entry(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_collision.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_collision.test index 8b13bc7e..28781e20 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_collision.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_collision.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_collision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_conflict_storage_name.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_conflict_storage_name.test index d951a7c5..d6aa8a08 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_conflict_storage_name.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_conflict_storage_name.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_conflict_storage_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA wal_autocheckpoint='1TB' diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_constraints.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_constraints.test index 3f698318..70cabc48 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_constraints.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INTEGER PRIMARY KEY, j INTEGER CHECK(j < 10)) diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_incorrect.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_incorrect.test index db0a166a..2bee12b9 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_incorrect.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl2(i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_many_transactions.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_many_transactions.test index 2c660286..358a8857 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_many_transactions.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_many_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_many_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1(i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_transactions.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_transactions.test index b06c4f0f..1ba3c11c 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_transactions.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl VALUES (999), (100) diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_view.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_view.test index cf540fab..ba1ae7ca 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_view.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_view.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT * FROM tbl diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_dependency_check.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_dependency_check.test index aa075833..34eb5f18 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_dependency_check.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_dependency_check.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_with_dependency_check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX i1 ON t0 (c0); diff --git a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_insert_transaction.test b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_insert_transaction.test index 31909cf9..fb889ee8 100644 --- a/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_insert_transaction.test +++ b/parser/testdata/corpus/sql/alter/rename_table/test_rename_table_with_insert_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_table/test_rename_table_with_insert_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (i INTEGER) diff --git a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view.test b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view.test index ccd008a8..2d638beb 100644 --- a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view.test +++ b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_view/test_rename_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INTEGER); diff --git a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_incorrect.test b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_incorrect.test index fc047dd6..1927f11a 100644 --- a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_incorrect.test +++ b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_view/test_rename_view_incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vw AS SELECT * FROM tbl diff --git a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_many_transactions.test b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_many_transactions.test index 24e768eb..306cd7fd 100644 --- a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_many_transactions.test +++ b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_many_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_view/test_rename_view_many_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vw1 AS SELECT * FROM tbl1 diff --git a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_table.test b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_table.test index e7740304..47e7c6ee 100644 --- a/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_table.test +++ b/parser/testdata/corpus/sql/alter/rename_view/test_rename_view_table.test @@ -1,6 +1,6 @@ # source: test/sql/alter/rename_view/test_rename_view_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER VIEW tbl RENAME TO tbl2 diff --git a/parser/testdata/corpus/sql/alter/struct/add_col_nested_struct.test b/parser/testdata/corpus/sql/alter/struct/add_col_nested_struct.test index 9708afaa..73bb2bbc 100644 --- a/parser/testdata/corpus/sql/alter/struct/add_col_nested_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/add_col_nested_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/add_col_nested_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(s STRUCT(s2 STRUCT(v1 INT, v2 INT))) diff --git a/parser/testdata/corpus/sql/alter/struct/add_col_struct.test b/parser/testdata/corpus/sql/alter/struct/add_col_struct.test index a0c0ec77..2e99d121 100644 --- a/parser/testdata/corpus/sql/alter/struct/add_col_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/add_col_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/add_col_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(s STRUCT(i INTEGER, j INTEGER)) diff --git a/parser/testdata/corpus/sql/alter/struct/add_col_struct_column_default.test b/parser/testdata/corpus/sql/alter/struct/add_col_struct_column_default.test new file mode 100644 index 00000000..2ae13da8 --- /dev/null +++ b/parser/testdata/corpus/sql/alter/struct/add_col_struct_column_default.test @@ -0,0 +1,166 @@ +# source: test/sql/alter/struct/add_col_struct_column_default.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE d(i INT, s STRUCT(a INT, b INT) DEFAULT {'a': 0, 'b': 0}); +-- +ok +== +INSERT INTO d(i) VALUES (0); +-- +ok +== +ALTER TABLE d ADD COLUMN s.c INT DEFAULT 9; +-- +ok +== +INSERT INTO d(i) VALUES (1); +-- +ok +== +SELECT i, s FROM d ORDER BY i; +-- +ok +== +ALTER TABLE d ADD COLUMN s.e VARCHAR; +-- +ok +== +INSERT INTO d(i) VALUES (2); +-- +ok +== +INSERT INTO d(i) VALUES (3); +-- +ok +== +SELECT i, s FROM d WHERE i = 3; +-- +ok +== +CREATE TABLE n(i INT, s STRUCT(x STRUCT(a INT), b INT) DEFAULT {'x': {'a': 1}, 'b': 2}); +-- +ok +== +ALTER TABLE n ADD COLUMN s.x.c VARCHAR DEFAULT 'deep'; +-- +ok +== +INSERT INTO n(i) VALUES (1); +-- +ok +== +SELECT i, s FROM n; +-- +ok +== +CREATE TABLE l(i INT, v STRUCT(a INT)[] DEFAULT [{'a': 1}, {'a': 2}]); +-- +ok +== +ALTER TABLE l ADD COLUMN v.element.c INT DEFAULT 9; +-- +ok +== +INSERT INTO l(i) VALUES (1); +-- +ok +== +SELECT i, v FROM l; +-- +ok +== +CREATE TABLE t(i INT, s STRUCT(a INT, b INT)); +-- +ok +== +ALTER TABLE t ADD COLUMN s.c INT DEFAULT 9; +-- +ok +== +INSERT INTO t VALUES (1, {'a': 1, 'b': 2}); +-- +ok +== +INSERT INTO t(i) VALUES (2); +-- +ok +== +SELECT i, s FROM t ORDER BY i; +-- +ok +== +SELECT column_default IS NULL FROM duckdb_columns() WHERE table_name = 't' AND column_name = 's'; +-- +ok +== +CREATE TABLE c(i INT, s STRUCT(a INT) DEFAULT NULL, p STRUCT(a INT, b VARCHAR) DEFAULT {'a': 1}, + q STRUCT(a INT) DEFAULT '{a: 5}', l STRUCT(a INT)[] DEFAULT [], m MAP(VARCHAR, STRUCT(a INT)) DEFAULT MAP {}); +-- +ok +== +ALTER TABLE c ADD COLUMN s.c INT DEFAULT 9; +-- +ok +== +ALTER TABLE c ADD COLUMN p.c INT DEFAULT 9; +-- +ok +== +ALTER TABLE c ADD COLUMN q.c INT DEFAULT 9; +-- +ok +== +ALTER TABLE c ADD COLUMN l.element.c INT DEFAULT 9; +-- +ok +== +ALTER TABLE c ADD COLUMN m.value.c INT DEFAULT 9; +-- +ok +== +INSERT INTO c(i) VALUES (1); +-- +ok +== +SELECT * FROM c; +-- +ok +== +ALTER TABLE c RENAME s.c TO d; +-- +ok +== +ALTER TABLE c RENAME q.c TO d; +-- +ok +== +INSERT INTO c(i) VALUES (2); +-- +ok +== +SELECT i, s, q FROM c ORDER BY i; +-- +ok +== +CREATE TABLE r(i INT, s STRUCT(a INT) DEFAULT NULL, q STRUCT(a INT) DEFAULT '{a: 5}'); +-- +ok +== +ALTER TABLE r RENAME s.a TO b; +-- +ok +== +ALTER TABLE r RENAME q.a TO b; +-- +ok +== +INSERT INTO r(i) VALUES (1); +-- +ok +== +SELECT * FROM r; +-- +ok +== diff --git a/parser/testdata/corpus/sql/alter/struct/alter_nested_struct_field_not_implemented.test b/parser/testdata/corpus/sql/alter/struct/alter_nested_struct_field_not_implemented.test index 2a08a756..0d2d1980 100644 --- a/parser/testdata/corpus/sql/alter/struct/alter_nested_struct_field_not_implemented.test +++ b/parser/testdata/corpus/sql/alter/struct/alter_nested_struct_field_not_implemented.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/alter_nested_struct_field_not_implemented.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(s STRUCT(a INTEGER, b INTEGER)) diff --git a/parser/testdata/corpus/sql/alter/struct/drop_col_nested_struct.test b/parser/testdata/corpus/sql/alter/struct/drop_col_nested_struct.test index 7402fc28..2b313247 100644 --- a/parser/testdata/corpus/sql/alter/struct/drop_col_nested_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/drop_col_nested_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/drop_col_nested_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(s STRUCT(i INT, s2 STRUCT(v1 INT, v2 INT))) diff --git a/parser/testdata/corpus/sql/alter/struct/drop_col_struct.test b/parser/testdata/corpus/sql/alter/struct/drop_col_struct.test index a12664df..5fe36dfe 100644 --- a/parser/testdata/corpus/sql/alter/struct/drop_col_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/drop_col_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/drop_col_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN s.i diff --git a/parser/testdata/corpus/sql/alter/struct/rename_col_nested_struct.test b/parser/testdata/corpus/sql/alter/struct/rename_col_nested_struct.test index 50dedab3..972fc829 100644 --- a/parser/testdata/corpus/sql/alter/struct/rename_col_nested_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/rename_col_nested_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/rename_col_nested_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME s.s2.v1 TO i diff --git a/parser/testdata/corpus/sql/alter/struct/rename_col_struct.test b/parser/testdata/corpus/sql/alter/struct/rename_col_struct.test index 3c64e11e..6c63d368 100644 --- a/parser/testdata/corpus/sql/alter/struct/rename_col_struct.test +++ b/parser/testdata/corpus/sql/alter/struct/rename_col_struct.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/rename_col_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME s.i TO v1 diff --git a/parser/testdata/corpus/sql/alter/struct/rename_col_struct_case_insensitive.test b/parser/testdata/corpus/sql/alter/struct/rename_col_struct_case_insensitive.test index 6a0318ad..1b78084d 100644 --- a/parser/testdata/corpus/sql/alter/struct/rename_col_struct_case_insensitive.test +++ b/parser/testdata/corpus/sql/alter/struct/rename_col_struct_case_insensitive.test @@ -1,6 +1,6 @@ # source: test/sql/alter/struct/rename_col_struct_case_insensitive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(S STRUCT(i INTEGER, j INTEGER)) diff --git a/parser/testdata/corpus/sql/alter/test_alter_database_rename.test b/parser/testdata/corpus/sql/alter/test_alter_database_rename.test index d7dc95b5..09c2bf78 100644 --- a/parser/testdata/corpus/sql/alter/test_alter_database_rename.test +++ b/parser/testdata/corpus/sql/alter/test_alter_database_rename.test @@ -1,6 +1,6 @@ # source: test/sql/alter/test_alter_database_rename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS test_db; diff --git a/parser/testdata/corpus/sql/alter/test_alter_if_exists.test b/parser/testdata/corpus/sql/alter/test_alter_if_exists.test index 2e28e461..9cce1ee6 100644 --- a/parser/testdata/corpus/sql/alter/test_alter_if_exists.test +++ b/parser/testdata/corpus/sql/alter/test_alter_if_exists.test @@ -1,6 +1,6 @@ # source: test/sql/alter/test_alter_if_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER SEQUENCE IF EXISTS seq OWNED BY x; diff --git a/parser/testdata/corpus/sql/attach/attach_all_types.test b/parser/testdata/corpus/sql/attach/attach_all_types.test index 2bb0361c..75528e11 100644 --- a/parser/testdata/corpus/sql/attach/attach_all_types.test +++ b/parser/testdata/corpus/sql/attach/attach_all_types.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_all_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_all_types.db' AS db1 (STORAGE_VERSION 'v2.0.0') diff --git a/parser/testdata/corpus/sql/attach/attach_catalog_error_early_out.test b/parser/testdata/corpus/sql/attach/attach_catalog_error_early_out.test index fb84324c..22eda1d8 100644 --- a/parser/testdata/corpus/sql/attach/attach_catalog_error_early_out.test +++ b/parser/testdata/corpus/sql/attach/attach_catalog_error_early_out.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_catalog_error_early_out.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET catalog_error_max_schemas = 0; diff --git a/parser/testdata/corpus/sql/attach/attach_checkpoint_on_detach.test b/parser/testdata/corpus/sql/attach/attach_checkpoint_on_detach.test index b0709697..9c9d9e11 100644 --- a/parser/testdata/corpus/sql/attach/attach_checkpoint_on_detach.test +++ b/parser/testdata/corpus/sql/attach/attach_checkpoint_on_detach.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_checkpoint_on_detach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET wal_autocheckpoint = '1TB'; diff --git a/parser/testdata/corpus/sql/attach/attach_checkpoint_vacuum.test b/parser/testdata/corpus/sql/attach/attach_checkpoint_vacuum.test index 1925a3ab..4fe89cc1 100644 --- a/parser/testdata/corpus/sql/attach/attach_checkpoint_vacuum.test +++ b/parser/testdata/corpus/sql/attach/attach_checkpoint_vacuum.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_checkpoint_vacuum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_vacuum.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_conflicting_options.test b/parser/testdata/corpus/sql/attach/attach_conflicting_options.test index 6f266cf0..8b2d5d05 100644 --- a/parser/testdata/corpus/sql/attach/attach_conflicting_options.test +++ b/parser/testdata/corpus/sql/attach/attach_conflicting_options.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_conflicting_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH OR REPLACE IF NOT EXISTS ':memory:' AS conflicting_options; diff --git a/parser/testdata/corpus/sql/attach/attach_copy.test b/parser/testdata/corpus/sql/attach/attach_copy.test index b83b1e03..7e797da6 100644 --- a/parser/testdata/corpus/sql/attach/attach_copy.test +++ b/parser/testdata/corpus/sql/attach/attach_copy.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE ':memory:' AS db1; diff --git a/parser/testdata/corpus/sql/attach/attach_create_index.test b/parser/testdata/corpus/sql/attach/attach_create_index.test index 099d11cd..519aa916 100644 --- a/parser/testdata/corpus/sql/attach/attach_create_index.test +++ b/parser/testdata/corpus/sql/attach/attach_create_index.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_create_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '' AS tmp; diff --git a/parser/testdata/corpus/sql/attach/attach_cross_catalog.test b/parser/testdata/corpus/sql/attach/attach_cross_catalog.test index b341ef2d..df22ba19 100644 --- a/parser/testdata/corpus/sql/attach/attach_cross_catalog.test +++ b/parser/testdata/corpus/sql/attach/attach_cross_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_cross_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a INTEGER); diff --git a/parser/testdata/corpus/sql/attach/attach_custom_block_size.test b/parser/testdata/corpus/sql/attach/attach_custom_block_size.test index 5a21f7f0..a934785e 100644 --- a/parser/testdata/corpus/sql/attach/attach_custom_block_size.test +++ b/parser/testdata/corpus/sql/attach/attach_custom_block_size.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_custom_block_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/not_pow_of_two.db' (BLOCK_SIZE 123456); diff --git a/parser/testdata/corpus/sql/attach/attach_database_options.test b/parser/testdata/corpus/sql/attach/attach_database_options.test index 06f06e2a..e90f4420 100644 --- a/parser/testdata/corpus/sql/attach/attach_database_options.test +++ b/parser/testdata/corpus/sql/attach/attach_database_options.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_database_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE ':memory:' AS new_database (BLOCK_SIZE 262144, ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/attach/attach_database_size.test b/parser/testdata/corpus/sql/attach/attach_database_size.test index 88f3e7a8..5c5c0a1a 100644 --- a/parser/testdata/corpus/sql/attach/attach_database_size.test +++ b/parser/testdata/corpus/sql/attach/attach_database_size.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_database_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_database_size.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_dbname_quotes.test b/parser/testdata/corpus/sql/attach/attach_dbname_quotes.test index 3f0a95ff..e808b9f1 100644 --- a/parser/testdata/corpus/sql/attach/attach_dbname_quotes.test +++ b/parser/testdata/corpus/sql/attach/attach_dbname_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_dbname_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' as "my""db"; diff --git a/parser/testdata/corpus/sql/attach/attach_default_database_case.test b/parser/testdata/corpus/sql/attach/attach_default_database_case.test index 3d4a7332..1b30f74c 100644 --- a/parser/testdata/corpus/sql/attach/attach_default_database_case.test +++ b/parser/testdata/corpus/sql/attach/attach_default_database_case.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_default_database_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS MyDB; diff --git a/parser/testdata/corpus/sql/attach/attach_default_table.test b/parser/testdata/corpus/sql/attach/attach_default_table.test index 22b0afae..ead1f942 100644 --- a/parser/testdata/corpus/sql/attach/attach_default_table.test +++ b/parser/testdata/corpus/sql/attach/attach_default_table.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_default_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/test.db' as ddb (default_table 'my_table') diff --git a/parser/testdata/corpus/sql/attach/attach_defaults.test b/parser/testdata/corpus/sql/attach/attach_defaults.test index 8b42964c..67d7c999 100644 --- a/parser/testdata/corpus/sql/attach/attach_defaults.test +++ b/parser/testdata/corpus/sql/attach/attach_defaults.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_defaults.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE ':memory:' AS new_database; diff --git a/parser/testdata/corpus/sql/attach/attach_dependencies.test b/parser/testdata/corpus/sql/attach/attach_dependencies.test index 29235aa9..89356faf 100644 --- a/parser/testdata/corpus/sql/attach/attach_dependencies.test +++ b/parser/testdata/corpus/sql/attach/attach_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pk_tbl (id INTEGER PRIMARY KEY, name VARCHAR UNIQUE); diff --git a/parser/testdata/corpus/sql/attach/attach_detach_in_transaction.test b/parser/testdata/corpus/sql/attach/attach_detach_in_transaction.test new file mode 100644 index 00000000..c0bd10db --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_detach_in_transaction.test @@ -0,0 +1,73 @@ +# source: test/sql/attach/attach_detach_in_transaction.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/detach_in_transaction.db' AS other_db; +-- +ok +== +CREATE TABLE other_db.test (ts TIMESTAMP); +-- +ok +== +INSERT INTO other_db.test(ts) VALUES (now()); +-- +ok +== +DETACH other_db; +-- +ok +== +SELECT * FROM other_db.test; +-- +ok +== +SELECT count(*) FROM other_db.test; +-- +ok +== +ATTACH '{TEST_DIR}/detach_in_transaction.db' AS source_db (READ_ONLY); +-- +ok +== +CREATE TABLE copied AS SELECT * FROM source_db.test; +-- +ok +== +DETACH source_db; +-- +ok +== +SELECT count(*) FROM copied; +-- +ok +== +SELECT count(*) FROM duckdb_databases() WHERE database_name = 'source_db'; +-- +ok +== +ATTACH ':memory:' AS x; +-- +ok +== +CREATE TABLE x.original AS SELECT 1 AS i; +-- +ok +== +DETACH x; +-- +ok +== +CREATE TABLE x.replacement AS SELECT 2 AS i; +-- +ok +== +SELECT i FROM x.replacement; +-- +ok +== +SELECT count(*) FROM duckdb_databases() WHERE database_name = 'x'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_detach_reattach_transaction.test b/parser/testdata/corpus/sql/attach/attach_detach_reattach_transaction.test index b59ee410..382c65ce 100644 --- a/parser/testdata/corpus/sql/attach/attach_detach_reattach_transaction.test +++ b/parser/testdata/corpus/sql/attach/attach_detach_reattach_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_detach_reattach_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS a; diff --git a/parser/testdata/corpus/sql/attach/attach_detach_same_name_transaction.test b/parser/testdata/corpus/sql/attach/attach_detach_same_name_transaction.test new file mode 100644 index 00000000..f49eda3f --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_detach_same_name_transaction.test @@ -0,0 +1,73 @@ +# source: test/sql/attach/attach_detach_same_name_transaction.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS a +-- +ok +== +DETACH a +-- +ok +== +CREATE TABLE a.tbl AS SELECT 2 AS i +-- +ok +== +SELECT * FROM a.tbl +-- +ok +== +ATTACH '__TEST_DIR__/detach_same_name_modified.db' AS b +-- +ok +== +CREATE TABLE b.tbl AS SELECT 1 AS i +-- +ok +== +DETACH b +-- +ok +== +ATTACH ':memory:' AS b +-- +ok +== +CREATE TABLE b.tbl AS SELECT 2 AS i +-- +ok +== +ATTACH '__TEST_DIR__/detach_same_name_read.db' AS c +-- +ok +== +CREATE TABLE c.tbl AS SELECT 1 AS i +-- +ok +== +SELECT * FROM c.tbl +-- +ok +== +DETACH c +-- +ok +== +ATTACH ':memory:' AS c +-- +ok +== +CREATE TABLE c.tbl AS SELECT 2 AS i +-- +ok +== +ATTACH '{TEST_DIR}/detach_same_name_read.db' AS c_file +-- +ok +== +SELECT * FROM c_file.tbl +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_did_you_mean.test b/parser/testdata/corpus/sql/attach/attach_did_you_mean.test index 0e48926f..f427548c 100644 --- a/parser/testdata/corpus/sql/attach/attach_did_you_mean.test +++ b/parser/testdata/corpus/sql/attach/attach_did_you_mean.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_did_you_mean.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hello(i INTEGER); diff --git a/parser/testdata/corpus/sql/attach/attach_different_alias.test b/parser/testdata/corpus/sql/attach/attach_different_alias.test index 784b9110..15b1cd74 100644 --- a/parser/testdata/corpus/sql/attach/attach_different_alias.test +++ b/parser/testdata/corpus/sql/attach/attach_different_alias.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_different_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_alias.db' AS alias1 diff --git a/parser/testdata/corpus/sql/attach/attach_duckdb_type.test b/parser/testdata/corpus/sql/attach/attach_duckdb_type.test index 5f48c806..99d521e6 100644 --- a/parser/testdata/corpus/sql/attach/attach_duckdb_type.test +++ b/parser/testdata/corpus/sql/attach/attach_duckdb_type.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_duckdb_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/first.db' (TYPE DUCKDB); diff --git a/parser/testdata/corpus/sql/attach/attach_ducklake_metadata_warning.test b/parser/testdata/corpus/sql/attach/attach_ducklake_metadata_warning.test new file mode 100644 index 00000000..c0f6ce96 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_ducklake_metadata_warning.test @@ -0,0 +1,117 @@ +# source: test/sql/attach/attach_ducklake_metadata_warning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/lake.ducklake' AS lake +-- +ok +== +CREATE TABLE lake.ducklake_metadata(key VARCHAR NOT NULL, value VARCHAR NOT NULL) +-- +ok +== +DETACH lake +-- +ok +== +ATTACH '{TEST_DIR}/plain.db' AS plain +-- +ok +== +CREATE TABLE plain.t(i INTEGER) +-- +ok +== +DETACH plain +-- +ok +== +SET enable_logging = true +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE log_level = 'WARNING' AND contains(message, 'is a DuckLake metadata catalog') +-- +ok +== +CALL truncate_duckdb_logs() +-- +ok +== +ATTACH '{TEST_DIR}/lake.ducklake' AS lake (TYPE duckdb) +-- +ok +== +ATTACH 'duckdb:{TEST_DIR}/lake.ducklake' AS lake +-- +ok +== +ATTACH '{TEST_DIR}/lake.ducklake' AS lake (HIDDEN) +-- +ok +== +ATTACH '{TEST_DIR}/other_schema.db' AS other +-- +ok +== +CREATE SCHEMA other.s +-- +ok +== +CREATE TABLE other.s.ducklake_metadata(key VARCHAR, value VARCHAR) +-- +ok +== +DETACH other +-- +ok +== +ATTACH '{TEST_DIR}/nested_schema.db' AS nested (STORAGE_VERSION 'v2.0.0') +-- +ok +== +CREATE SCHEMA nested.s +-- +ok +== +CREATE SCHEMA nested.s.main +-- +ok +== +CREATE TABLE nested.s.main.ducklake_metadata(key VARCHAR, value VARCHAR) +-- +ok +== +DETACH nested +-- +ok +== +ATTACH '{TEST_DIR}/nested_schema.db' AS nested +-- +ok +== +ATTACH '{TEST_DIR}/view.db' AS v +-- +ok +== +CREATE VIEW v.ducklake_metadata AS SELECT 'version' AS key, '1' AS value +-- +ok +== +DETACH v +-- +ok +== +ATTACH IF NOT EXISTS '{TEST_DIR}/missing.db' AS lake +-- +ok +== +ATTACH IF NOT EXISTS '{TEST_DIR}/lake.ducklake' AS lake +-- +ok +== +SET warnings_as_errors = true +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_enable_external_access.test b/parser/testdata/corpus/sql/attach/attach_enable_external_access.test index d2617499..65a6d4cc 100644 --- a/parser/testdata/corpus/sql/attach/attach_enable_external_access.test +++ b/parser/testdata/corpus/sql/attach/attach_enable_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_enable_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_access1.db' AS a1 diff --git a/parser/testdata/corpus/sql/attach/attach_encrypted_db_key_test.test b/parser/testdata/corpus/sql/attach/attach_encrypted_db_key_test.test index 7781d245..9420a20e 100644 --- a/parser/testdata/corpus/sql/attach/attach_encrypted_db_key_test.test +++ b/parser/testdata/corpus/sql/attach/attach_encrypted_db_key_test.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_encrypted_db_key_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted.duckdb' AS encrypted (ENCRYPTION_KEY); diff --git a/parser/testdata/corpus/sql/attach/attach_encrypted_storage_version.test b/parser/testdata/corpus/sql/attach/attach_encrypted_storage_version.test new file mode 100644 index 00000000..58e0fc56 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_encrypted_storage_version.test @@ -0,0 +1,143 @@ +# source: test/sql/attach/attach_encrypted_storage_version.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET force_mbedtls_unsafe = true +-- +ok +== +RESET storage_compatibility_version +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_default.db' AS e (ENCRYPTION_KEY 'k') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_default_v0.db' AS e0 (ENCRYPTION_KEY 'k', debug_encryption_version 'v0') +-- +ok +== +ATTACH '{TEST_DIR}/unencrypted_default.db' AS u +-- +ok +== +SELECT database_name, tags['storage_version'] FROM duckdb_databases() +WHERE database_name IN ('e', 'e0', 'u') ORDER BY ALL +-- +ok +== +CREATE TABLE e.t AS SELECT 7 AS i +-- +ok +== +DETACH e +-- +ok +== +DETACH e0 +-- +ok +== +DETACH u +-- +ok +== +SELECT i, (SELECT tags['storage_version'] FROM duckdb_databases() WHERE database_name = 'e') FROM e.t +-- +ok +== +SET storage_compatibility_version = 'v1.5.0' +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_compat_v1_5.db' AS e (ENCRYPTION_KEY 'k') +-- +ok +== +SELECT tags['storage_version'] FROM duckdb_databases() WHERE database_name = 'e' +-- +ok +== +SET storage_compatibility_version = '{compat_version}' +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_compat_{compat_version}.db' AS e (ENCRYPTION_KEY 'k') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_compat_{compat_version}_v0.db' AS e0 (ENCRYPTION_KEY 'k', debug_encryption_version 'v0') +-- +ok +== +CREATE TABLE e.t AS SELECT 1 AS i +-- +ok +== +CREATE TABLE e0.t AS SELECT 2 AS i +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_compat_{compat_version}_v0.db' AS e0 (ENCRYPTION_KEY 'k') +-- +ok +== +SELECT (SELECT i FROM e.t), (SELECT i FROM e0.t), list(tags['storage_version'] ORDER BY database_name) +FROM duckdb_databases() WHERE database_name IN ('e', 'e0') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v2_0.db' AS e (ENCRYPTION_KEY 'k', STORAGE_VERSION 'v2.0.0') +-- +ok +== +CREATE TABLE e.t AS SELECT 42 AS i +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v2_0.db' AS e (ENCRYPTION_KEY 'k') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v2_0.db' AS e (ENCRYPTION_KEY 'k', READ_ONLY) +-- +ok +== +SELECT i FROM e.t +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v2_0.db' AS e (ENCRYPTION_KEY 'k', debug_encryption_version 'v0') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v2_0.db' AS e (ENCRYPTION_KEY 'k', STORAGE_VERSION 'v1.5.0') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v1_4.db' AS e (ENCRYPTION_KEY 'k', STORAGE_VERSION 'v1.4.0') +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v1_4.db' AS e (ENCRYPTION_KEY 'k') +-- +ok +== +INSERT INTO e.t VALUES (2) +-- +ok +== +CHECKPOINT e +-- +ok +== +SELECT sum(i), (SELECT tags['storage_version'] FROM duckdb_databases() WHERE database_name = 'e') FROM e.t +-- +ok +== +SET force_mbedtls_unsafe = false +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_encrypted_v1_4_file.test b/parser/testdata/corpus/sql/attach/attach_encrypted_v1_4_file.test new file mode 100644 index 00000000..1d534fe7 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_encrypted_v1_4_file.test @@ -0,0 +1,30 @@ +# source: test/sql/attach/attach_encrypted_v1_4_file.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT content FROM read_blob('data/attach_test/encrypted_gcm_key=abcde.db')) +TO '{TEST_DIR}/encrypted_v1_4.db' (FORMAT BLOB); +-- +ok +== +ATTACH '{TEST_DIR}/encrypted_v1_4.db' AS enc (ENCRYPTION_KEY 'abcde') +-- +ok +== +INSERT INTO enc.test VALUES (5) +-- +ok +== +CHECKPOINT enc +-- +ok +== +DETACH enc +-- +ok +== +SELECT sum(value), (SELECT tags['storage_version'] FROM duckdb_databases() WHERE database_name = 'enc') FROM enc.test +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_encryption_block_header.test b/parser/testdata/corpus/sql/attach/attach_encryption_block_header.test index cfffe922..d459eeb2 100644 --- a/parser/testdata/corpus/sql/attach/attach_encryption_block_header.test +++ b/parser/testdata/corpus/sql/attach/attach_encryption_block_header.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_encryption_block_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted.duckdb' AS encrypted (ENCRYPTION_KEY 42); diff --git a/parser/testdata/corpus/sql/attach/attach_encryption_downgrade_prevention.test b/parser/testdata/corpus/sql/attach/attach_encryption_downgrade_prevention.test index 2c07d322..650b8321 100644 --- a/parser/testdata/corpus/sql/attach/attach_encryption_downgrade_prevention.test +++ b/parser/testdata/corpus/sql/attach/attach_encryption_downgrade_prevention.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_encryption_downgrade_prevention.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH 'data/attach_test/encrypted_ctr_key=abcde.db' as enc (ENCRYPTION_KEY 'abcde'); diff --git a/parser/testdata/corpus/sql/attach/attach_encryption_fallback_readonly.test b/parser/testdata/corpus/sql/attach/attach_encryption_fallback_readonly.test index 0703a7a8..367105a3 100644 --- a/parser/testdata/corpus/sql/attach/attach_encryption_fallback_readonly.test +++ b/parser/testdata/corpus/sql/attach/attach_encryption_fallback_readonly.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_encryption_fallback_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set autoinstall_known_extensions=false @@ -32,10 +32,6 @@ SELECT count(*) FROM duckdb_extensions() WHERE extension_name='httpfs' AND loade -- ok == -DETACH enc --- -ok -== ATTACH '{TEST_DIR}/test_write_only.db' as enc (ENCRYPTION_KEY 'abcde', ENCRYPTION_CIPHER 'GCM'); -- ok diff --git a/parser/testdata/corpus/sql/attach/attach_enums.test b/parser/testdata/corpus/sql/attach/attach_enums.test index 9cc439d5..7bc6026e 100644 --- a/parser/testdata/corpus/sql/attach/attach_enums.test +++ b/parser/testdata/corpus/sql/attach/attach_enums.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_enums.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_enums.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_export_import.test b/parser/testdata/corpus/sql/attach/attach_export_import.test index f3599c90..53f5cbb7 100644 --- a/parser/testdata/corpus/sql/attach/attach_export_import.test +++ b/parser/testdata/corpus/sql/attach/attach_export_import.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_export_import.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_expr.test b/parser/testdata/corpus/sql/attach/attach_expr.test index bb8a2a93..55e6e682 100644 --- a/parser/testdata/corpus/sql/attach/attach_expr.test +++ b/parser/testdata/corpus/sql/attach/attach_expr.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_expr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE db_type='DUCKDB' diff --git a/parser/testdata/corpus/sql/attach/attach_external_access.test b/parser/testdata/corpus/sql/attach/attach_external_access.test index 9b57e927..a136abcb 100644 --- a/parser/testdata/corpus/sql/attach/attach_external_access.test +++ b/parser/testdata/corpus/sql/attach/attach_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH 'mydb.db' AS db2 diff --git a/parser/testdata/corpus/sql/attach/attach_filepath_roundtrip.test b/parser/testdata/corpus/sql/attach/attach_filepath_roundtrip.test index 740d3b79..9905f740 100644 --- a/parser/testdata/corpus/sql/attach/attach_filepath_roundtrip.test +++ b/parser/testdata/corpus/sql/attach/attach_filepath_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_filepath_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/concurrent.db'; diff --git a/parser/testdata/corpus/sql/attach/attach_foreign_key.test b/parser/testdata/corpus/sql/attach/attach_foreign_key.test index 97505cc9..0d13db58 100644 --- a/parser/testdata/corpus/sql/attach/attach_foreign_key.test +++ b/parser/testdata/corpus/sql/attach/attach_foreign_key.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_foreign_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE album(artistid INTEGER, albumname TEXT, albumcover TEXT, UNIQUE (artistid, albumname)); diff --git a/parser/testdata/corpus/sql/attach/attach_foreign_key_external_catalog.test b/parser/testdata/corpus/sql/attach/attach_foreign_key_external_catalog.test index 9d1389d8..45565c28 100644 --- a/parser/testdata/corpus/sql/attach/attach_foreign_key_external_catalog.test +++ b/parser/testdata/corpus/sql/attach/attach_foreign_key_external_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_foreign_key_external_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fk_external.duckdb' AS ext; diff --git a/parser/testdata/corpus/sql/attach/attach_fsspec.test b/parser/testdata/corpus/sql/attach/attach_fsspec.test index 58467768..5cb81398 100644 --- a/parser/testdata/corpus/sql/attach/attach_fsspec.test +++ b/parser/testdata/corpus/sql/attach/attach_fsspec.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_fsspec.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH 'dummy_extension:/hello.world'; diff --git a/parser/testdata/corpus/sql/attach/attach_hidden.test b/parser/testdata/corpus/sql/attach/attach_hidden.test index 6cbf5c34..07741f33 100644 --- a/parser/testdata/corpus/sql/attach/attach_hidden.test +++ b/parser/testdata/corpus/sql/attach/attach_hidden.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_hidden.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS hidden_db (HIDDEN true); diff --git a/parser/testdata/corpus/sql/attach/attach_home_directory.test b/parser/testdata/corpus/sql/attach/attach_home_directory.test index 4467e888..e72ef3c3 100644 --- a/parser/testdata/corpus/sql/attach/attach_home_directory.test +++ b/parser/testdata/corpus/sql/attach/attach_home_directory.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_home_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/home_dir.db' AS s1 diff --git a/parser/testdata/corpus/sql/attach/attach_huggingface_index.test b/parser/testdata/corpus/sql/attach/attach_huggingface_index.test index b7f6d5c6..57d73ac0 100644 --- a/parser/testdata/corpus/sql/attach/attach_huggingface_index.test +++ b/parser/testdata/corpus/sql/attach/attach_huggingface_index.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_huggingface_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/huggingface_index.db' diff --git a/parser/testdata/corpus/sql/attach/attach_icu_collation.test b/parser/testdata/corpus/sql/attach/attach_icu_collation.test index bdfc47e9..8320ed78 100644 --- a/parser/testdata/corpus/sql/attach/attach_icu_collation.test +++ b/parser/testdata/corpus/sql/attach/attach_icu_collation.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_icu_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/german_collation.db' AS db diff --git a/parser/testdata/corpus/sql/attach/attach_if_not_exists.test b/parser/testdata/corpus/sql/attach/attach_if_not_exists.test index 8fb45526..4a73b954 100644 --- a/parser/testdata/corpus/sql/attach/attach_if_not_exists.test +++ b/parser/testdata/corpus/sql/attach/attach_if_not_exists.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_if_not_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_if_not_exists.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_if_not_exists_detach.test b/parser/testdata/corpus/sql/attach/attach_if_not_exists_detach.test index fc0b02bf..fefb93b6 100644 --- a/parser/testdata/corpus/sql/attach/attach_if_not_exists_detach.test +++ b/parser/testdata/corpus/sql/attach/attach_if_not_exists_detach.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_if_not_exists_detach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_if_not_exists_detach.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_index.test b/parser/testdata/corpus/sql/attach/attach_index.test index f8a13fed..263a396a 100644 --- a/parser/testdata/corpus/sql/attach/attach_index.test +++ b/parser/testdata/corpus/sql/attach/attach_index.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_index_db.db' diff --git a/parser/testdata/corpus/sql/attach/attach_issue16122.test b/parser/testdata/corpus/sql/attach/attach_issue16122.test index e2b813ba..587144d3 100644 --- a/parser/testdata/corpus/sql/attach/attach_issue16122.test +++ b/parser/testdata/corpus/sql/attach/attach_issue16122.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_issue16122.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table mytable (C1 VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/attach/attach_issue7567.test b/parser/testdata/corpus/sql/attach/attach_issue7567.test index 3acf5251..e1e70877 100644 --- a/parser/testdata/corpus/sql/attach/attach_issue7567.test +++ b/parser/testdata/corpus/sql/attach/attach_issue7567.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_issue7567.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach ':memory:' as test; diff --git a/parser/testdata/corpus/sql/attach/attach_issue7711.test b/parser/testdata/corpus/sql/attach/attach_issue7711.test index 2567ec3f..4a6daa57 100644 --- a/parser/testdata/corpus/sql/attach/attach_issue7711.test +++ b/parser/testdata/corpus/sql/attach/attach_issue7711.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_issue7711.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit detach test; diff --git a/parser/testdata/corpus/sql/attach/attach_issue_21491.test b/parser/testdata/corpus/sql/attach/attach_issue_21491.test index e0204259..ec200e73 100644 --- a/parser/testdata/corpus/sql/attach/attach_issue_21491.test +++ b/parser/testdata/corpus/sql/attach/attach_issue_21491.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_issue_21491.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH unknown_scalar('test.db') AS db; diff --git a/parser/testdata/corpus/sql/attach/attach_issue_7660.test b/parser/testdata/corpus/sql/attach/attach_issue_7660.test index 014ef8fa..a38eaa49 100644 --- a/parser/testdata/corpus/sql/attach/attach_issue_7660.test +++ b/parser/testdata/corpus/sql/attach/attach_issue_7660.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_issue_7660.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl1 as select 1 as a; diff --git a/parser/testdata/corpus/sql/attach/attach_lambda_view.test b/parser/testdata/corpus/sql/attach/attach_lambda_view.test index 8c5dca6f..60ccff40 100644 --- a/parser/testdata/corpus/sql/attach/attach_lambda_view.test +++ b/parser/testdata/corpus/sql/attach/attach_lambda_view.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_lambda_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/version_1_{i}_0.db' (STORAGE_VERSION 'v1.{i}.0'); diff --git a/parser/testdata/corpus/sql/attach/attach_macros.test b/parser/testdata/corpus/sql/attach/attach_macros.test index e12a0727..2e46ea09 100644 --- a/parser/testdata/corpus/sql/attach/attach_macros.test +++ b/parser/testdata/corpus/sql/attach/attach_macros.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_macros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS db1; diff --git a/parser/testdata/corpus/sql/attach/attach_mmap_reserve_size_range.test b/parser/testdata/corpus/sql/attach/attach_mmap_reserve_size_range.test new file mode 100644 index 00000000..9f67aaf3 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/attach_mmap_reserve_size_range.test @@ -0,0 +1,13 @@ +# source: test/sql/attach/attach_mmap_reserve_size_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '__TEST_DIR__/mmap_reserve_range.db' AS x (IO_MODE 'MMAP', MMAP_RESERVE_SIZE '-1'); +-- +ok +== +ATTACH '__TEST_DIR__/mmap_reserve_range.db' AS x (IO_MODE 'MMAP', MMAP_RESERVE_SIZE 'none'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_modify_multiple_databases.test b/parser/testdata/corpus/sql/attach/attach_modify_multiple_databases.test index 8fe39059..9a017761 100644 --- a/parser/testdata/corpus/sql/attach/attach_modify_multiple_databases.test +++ b/parser/testdata/corpus/sql/attach/attach_modify_multiple_databases.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_modify_multiple_databases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE ':memory:' AS database; diff --git a/parser/testdata/corpus/sql/attach/attach_multi_identifiers.test b/parser/testdata/corpus/sql/attach/attach_multi_identifiers.test index 5e22fa5a..00fbc1d1 100644 --- a/parser/testdata/corpus/sql/attach/attach_multi_identifiers.test +++ b/parser/testdata/corpus/sql/attach/attach_multi_identifiers.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_multi_identifiers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS db2; diff --git a/parser/testdata/corpus/sql/attach/attach_nested_types.test b/parser/testdata/corpus/sql/attach/attach_nested_types.test index 22961552..9a303f51 100644 --- a/parser/testdata/corpus/sql/attach/attach_nested_types.test +++ b/parser/testdata/corpus/sql/attach/attach_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA database.schema; diff --git a/parser/testdata/corpus/sql/attach/attach_new_compression.test b/parser/testdata/corpus/sql/attach/attach_new_compression.test index 57607e6b..d205153b 100644 --- a/parser/testdata/corpus/sql/attach/attach_new_compression.test +++ b/parser/testdata/corpus/sql/attach/attach_new_compression.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_new_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_new_compression.db' AS db1 (STORAGE_VERSION 'v1.0.0'); diff --git a/parser/testdata/corpus/sql/attach/attach_no_wal_writes_mode.test b/parser/testdata/corpus/sql/attach/attach_no_wal_writes_mode.test index df868780..9110d485 100644 --- a/parser/testdata/corpus/sql/attach/attach_no_wal_writes_mode.test +++ b/parser/testdata/corpus/sql/attach/attach_no_wal_writes_mode.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_no_wal_writes_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads = 1; diff --git a/parser/testdata/corpus/sql/attach/attach_null.test b/parser/testdata/corpus/sql/attach/attach_null.test index ea645258..49da35b9 100644 --- a/parser/testdata/corpus/sql/attach/attach_null.test +++ b/parser/testdata/corpus/sql/attach/attach_null.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_new_compression.db' AS db1 (TYPE NULL); diff --git a/parser/testdata/corpus/sql/attach/attach_or_replace.test b/parser/testdata/corpus/sql/attach/attach_or_replace.test index a3d6323e..402e9af5 100644 --- a/parser/testdata/corpus/sql/attach/attach_or_replace.test +++ b/parser/testdata/corpus/sql/attach/attach_or_replace.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_or_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_or_replace.db' AS db1 (STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/attach/attach_persistent.test b/parser/testdata/corpus/sql/attach/attach_persistent.test index be30e9c9..c6390e73 100644 --- a/parser/testdata/corpus/sql/attach/attach_persistent.test +++ b/parser/testdata/corpus/sql/attach/attach_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/persistent_attach.db' diff --git a/parser/testdata/corpus/sql/attach/attach_pragma_storage_info.test b/parser/testdata/corpus/sql/attach/attach_pragma_storage_info.test index 3ac6f1bb..8d89ad05 100644 --- a/parser/testdata/corpus/sql/attach/attach_pragma_storage_info.test +++ b/parser/testdata/corpus/sql/attach/attach_pragma_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_pragma_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/database.db' as persistent; diff --git a/parser/testdata/corpus/sql/attach/attach_prefetch_header.test b/parser/testdata/corpus/sql/attach/attach_prefetch_header.test index 7fe04a1f..a8fe5c8a 100644 --- a/parser/testdata/corpus/sql/attach/attach_prefetch_header.test +++ b/parser/testdata/corpus/sql/attach/attach_prefetch_header.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_prefetch_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_prefetch_header.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_read_only.test b/parser/testdata/corpus/sql/attach/attach_read_only.test index 44b15641..e8667b7d 100644 --- a/parser/testdata/corpus/sql/attach/attach_read_only.test +++ b/parser/testdata/corpus/sql/attach/attach_read_only.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_read_only.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS db1 (READONLY 1) diff --git a/parser/testdata/corpus/sql/attach/attach_read_only_transaction.test b/parser/testdata/corpus/sql/attach/attach_read_only_transaction.test index dc2a0127..36d8cd42 100644 --- a/parser/testdata/corpus/sql/attach/attach_read_only_transaction.test +++ b/parser/testdata/corpus/sql/attach/attach_read_only_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_read_only_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO db1.integers VALUES (42); diff --git a/parser/testdata/corpus/sql/attach/attach_remote_http_logging.test b/parser/testdata/corpus/sql/attach/attach_remote_http_logging.test index 87fe3b61..b99d59e0 100644 --- a/parser/testdata/corpus/sql/attach/attach_remote_http_logging.test +++ b/parser/testdata/corpus/sql/attach/attach_remote_http_logging.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_remote_http_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('HTTP') diff --git a/parser/testdata/corpus/sql/attach/attach_replay_with_no_wal_writes.test b/parser/testdata/corpus/sql/attach/attach_replay_with_no_wal_writes.test index 5bfaa444..35aa03b2 100644 --- a/parser/testdata/corpus/sql/attach/attach_replay_with_no_wal_writes.test +++ b/parser/testdata/corpus/sql/attach/attach_replay_with_no_wal_writes.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_replay_with_no_wal_writes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_writes.db' AS wal_writes; diff --git a/parser/testdata/corpus/sql/attach/attach_reserved.test b/parser/testdata/corpus/sql/attach/attach_reserved.test index 58ec6fd3..9aed4ffa 100644 --- a/parser/testdata/corpus/sql/attach/attach_reserved.test +++ b/parser/testdata/corpus/sql/attach/attach_reserved.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_reserved.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE '{TEST_DIR}/temp.db'; diff --git a/parser/testdata/corpus/sql/attach/attach_row_group_size.test b/parser/testdata/corpus/sql/attach/attach_row_group_size.test index 3f9ac7c8..795f073f 100644 --- a/parser/testdata/corpus/sql/attach/attach_row_group_size.test +++ b/parser/testdata/corpus/sql/attach/attach_row_group_size.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_row_group_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_row_group_size.db' AS db1 (STORAGE_VERSION 'v1.0.0', ROW_GROUP_SIZE 245760); diff --git a/parser/testdata/corpus/sql/attach/attach_row_group_size_decreasing.test b/parser/testdata/corpus/sql/attach/attach_row_group_size_decreasing.test index eb62520c..b9466e08 100644 --- a/parser/testdata/corpus/sql/attach/attach_row_group_size_decreasing.test +++ b/parser/testdata/corpus/sql/attach/attach_row_group_size_decreasing.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_row_group_size_decreasing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_row_group_size_decreasing.db' as test (ROW_GROUP_SIZE 4096); diff --git a/parser/testdata/corpus/sql/attach/attach_same_db.test b/parser/testdata/corpus/sql/attach/attach_same_db.test index 4d400de1..f19680ac 100644 --- a/parser/testdata/corpus/sql/attach/attach_same_db.test +++ b/parser/testdata/corpus/sql/attach/attach_same_db.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_same_db.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_same_db.db' AS db1 diff --git a/parser/testdata/corpus/sql/attach/attach_schema.test b/parser/testdata/corpus/sql/attach/attach_schema.test index 3b2b538e..61cfc43f 100644 --- a/parser/testdata/corpus/sql/attach/attach_schema.test +++ b/parser/testdata/corpus/sql/attach/attach_schema.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA new_database.s1.xxx; diff --git a/parser/testdata/corpus/sql/attach/attach_sequence.test b/parser/testdata/corpus/sql/attach/attach_sequence.test index 4d802729..4a8325ee 100644 --- a/parser/testdata/corpus/sql/attach/attach_sequence.test +++ b/parser/testdata/corpus/sql/attach/attach_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE '{TEST_DIR}/attach_seq.db' AS db1; diff --git a/parser/testdata/corpus/sql/attach/attach_serialize_dependency.test b/parser/testdata/corpus/sql/attach/attach_serialize_dependency.test index 9ce60274..39e33ef4 100644 --- a/parser/testdata/corpus/sql/attach/attach_serialize_dependency.test +++ b/parser/testdata/corpus/sql/attach/attach_serialize_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_serialize_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set storage_compatibility_version='latest'; diff --git a/parser/testdata/corpus/sql/attach/attach_show_all_tables.test b/parser/testdata/corpus/sql/attach/attach_show_all_tables.test index 362b57bd..15430c91 100644 --- a/parser/testdata/corpus/sql/attach/attach_show_all_tables.test +++ b/parser/testdata/corpus/sql/attach/attach_show_all_tables.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_show_all_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a INTEGER); diff --git a/parser/testdata/corpus/sql/attach/attach_show_table.test b/parser/testdata/corpus/sql/attach/attach_show_table.test index 531a84f1..d57e14a5 100644 --- a/parser/testdata/corpus/sql/attach/attach_show_table.test +++ b/parser/testdata/corpus/sql/attach/attach_show_table.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_show_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE db1.table_in_db1(i int); diff --git a/parser/testdata/corpus/sql/attach/attach_storage_version.test b/parser/testdata/corpus/sql/attach/attach_storage_version.test index 3a9a5ec6..c76f9d63 100644 --- a/parser/testdata/corpus/sql/attach/attach_storage_version.test +++ b/parser/testdata/corpus/sql/attach/attach_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/version_1_2_0.db' (STORAGE_VERSION 'v1.2.0'); diff --git a/parser/testdata/corpus/sql/attach/attach_table_constraints.test b/parser/testdata/corpus/sql/attach/attach_table_constraints.test index c3b00445..83af5727 100644 --- a/parser/testdata/corpus/sql/attach/attach_table_constraints.test +++ b/parser/testdata/corpus/sql/attach/attach_table_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_table_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/constraint_test.db' as test diff --git a/parser/testdata/corpus/sql/attach/attach_table_ddl.test b/parser/testdata/corpus/sql/attach/attach_table_ddl.test index b94273a6..4085cd99 100644 --- a/parser/testdata/corpus/sql/attach/attach_table_ddl.test +++ b/parser/testdata/corpus/sql/attach/attach_table_ddl.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_table_ddl.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE {prefix}.integers(i INTEGER) diff --git a/parser/testdata/corpus/sql/attach/attach_table_info.test b/parser/testdata/corpus/sql/attach/attach_table_info.test index 84301788..d5f26c3e 100644 --- a/parser/testdata/corpus/sql/attach/attach_table_info.test +++ b/parser/testdata/corpus/sql/attach/attach_table_info.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_table_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE new_database.integers(i INTEGER) diff --git a/parser/testdata/corpus/sql/attach/attach_to_external_resource.test b/parser/testdata/corpus/sql/attach/attach_to_external_resource.test index 8e9980d5..5689c41a 100644 --- a/parser/testdata/corpus/sql/attach/attach_to_external_resource.test +++ b/parser/testdata/corpus/sql/attach/attach_to_external_resource.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_to_external_resource.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL quack_serve(token='test_token'); diff --git a/parser/testdata/corpus/sql/attach/attach_transactionality.test b/parser/testdata/corpus/sql/attach/attach_transactionality.test index 755c0989..c68996bb 100644 --- a/parser/testdata/corpus/sql/attach/attach_transactionality.test +++ b/parser/testdata/corpus/sql/attach/attach_transactionality.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_transactionality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_transaction.db' @@ -31,3 +31,7 @@ SELECT * FROM attach_transaction.integers ORDER BY 1 -- ok == +INSERT INTO attach_transaction.integers VALUES (126) +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/attach_use_rollback.test b/parser/testdata/corpus/sql/attach/attach_use_rollback.test index 63aaa841..f6e7428d 100644 --- a/parser/testdata/corpus/sql/attach/attach_use_rollback.test +++ b/parser/testdata/corpus/sql/attach/attach_use_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_use_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit begin; diff --git a/parser/testdata/corpus/sql/attach/attach_use_string_literal.test b/parser/testdata/corpus/sql/attach/attach_use_string_literal.test index d0e9d892..5379e9a6 100644 --- a/parser/testdata/corpus/sql/attach/attach_use_string_literal.test +++ b/parser/testdata/corpus/sql/attach/attach_use_string_literal.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_use_string_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA db2.s2; diff --git a/parser/testdata/corpus/sql/attach/attach_view_search_path.test b/parser/testdata/corpus/sql/attach/attach_view_search_path.test index 8a0f49da..cebf494b 100644 --- a/parser/testdata/corpus/sql/attach/attach_view_search_path.test +++ b/parser/testdata/corpus/sql/attach/attach_view_search_path.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_view_search_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE '{TEST_DIR}/view_search_path.db' AS view_search_path; diff --git a/parser/testdata/corpus/sql/attach/attach_views.test b/parser/testdata/corpus/sql/attach/attach_views.test index d928be84..0aa6d5e2 100644 --- a/parser/testdata/corpus/sql/attach/attach_views.test +++ b/parser/testdata/corpus/sql/attach/attach_views.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT 42 i diff --git a/parser/testdata/corpus/sql/attach/attach_volatile_expression.test b/parser/testdata/corpus/sql/attach/attach_volatile_expression.test index 5615bb10..3a224df9 100644 --- a/parser/testdata/corpus/sql/attach/attach_volatile_expression.test +++ b/parser/testdata/corpus/sql/attach/attach_volatile_expression.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_volatile_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH (CASE WHEN random() < 2 THEN ':memory:' END) AS volatile_db; diff --git a/parser/testdata/corpus/sql/attach/attach_wal_alter.test b/parser/testdata/corpus/sql/attach/attach_wal_alter.test index 61460800..70f0ff92 100644 --- a/parser/testdata/corpus/sql/attach/attach_wal_alter.test +++ b/parser/testdata/corpus/sql/attach/attach_wal_alter.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_wal_alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE '{TEST_DIR}/wal_crash.db' as db1; diff --git a/parser/testdata/corpus/sql/attach/attach_wal_alter_sequence.test b/parser/testdata/corpus/sql/attach/attach_wal_alter_sequence.test index 5461ba0e..a33a312d 100644 --- a/parser/testdata/corpus/sql/attach/attach_wal_alter_sequence.test +++ b/parser/testdata/corpus/sql/attach/attach_wal_alter_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/attach/attach_wal_alter_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/attach_wal_with_sequence.db' as db1; diff --git a/parser/testdata/corpus/sql/attach/detach_keyword.test b/parser/testdata/corpus/sql/attach/detach_keyword.test index 3ee194d8..94435b42 100644 --- a/parser/testdata/corpus/sql/attach/detach_keyword.test +++ b/parser/testdata/corpus/sql/attach/detach_keyword.test @@ -1,6 +1,6 @@ # source: test/sql/attach/detach_keyword.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH DATABASE ':memory:' AS varchar; diff --git a/parser/testdata/corpus/sql/attach/detach_manager_default_database.test b/parser/testdata/corpus/sql/attach/detach_manager_default_database.test index 1899b538..a208c1e3 100644 --- a/parser/testdata/corpus/sql/attach/detach_manager_default_database.test +++ b/parser/testdata/corpus/sql/attach/detach_manager_default_database.test @@ -1,6 +1,6 @@ # source: test/sql/attach/detach_manager_default_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS other; diff --git a/parser/testdata/corpus/sql/attach/external_resource_attach_failure.test b/parser/testdata/corpus/sql/attach/external_resource_attach_failure.test index 27388706..0e2bb1dd 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_attach_failure.test +++ b/parser/testdata/corpus/sql/attach/external_resource_attach_failure.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_attach_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('ExternalResource', storage='memory'); diff --git a/parser/testdata/corpus/sql/attach/external_resource_discovery.test b/parser/testdata/corpus/sql/attach/external_resource_discovery.test index dcd29f00..bc53fc49 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_discovery.test +++ b/parser/testdata/corpus/sql/attach/external_resource_discovery.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_discovery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO qk_status(h) AS TABLE @@ -10,9 +10,9 @@ ok == CREATE MACRO qk_list(p) AS TABLE SELECT * FROM (VALUES - (MAP {'id': 'q1'}, 'ref-q1', 'running'), - (MAP {'id': 'q2'}, 'ref-q2', 'running') - ) t(handle, reference, state); + (MAP {'id': 'q1'}, 'quack-one', 'ref-q1', 'running'), + (MAP {'id': 'q2'}, 'quack-two', 'ref-q2', 'running') + ) t(handle, name, reference, state); -- ok == diff --git a/parser/testdata/corpus/sql/attach/external_resource_external_access.test b/parser/testdata/corpus/sql/attach/external_resource_external_access.test new file mode 100644 index 00000000..e1271f01 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_external_access.test @@ -0,0 +1,67 @@ +# source: test/sql/attach/external_resource_external_access.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SEQUENCE create_calls; +-- +ok +== +CREATE MACRO mock_create(p) AS TABLE SELECT MAP {'id': 'r' || nextval('create_calls')} AS handle; +-- +ok +== +CREATE MACRO mock_status(h) AS TABLE + SELECT 'ready' AS state, MAP {'uri': 'quack:localhost:9494', 'attached_db_type': 'quack', 'token': 't1'} AS result; +-- +ok +== +CREATE MACRO mock_destroy(h) AS TABLE SELECT 'ok' AS status; +-- +ok +== +CALL register_external_resource_type('mock@local', kind := 'catalog', create_function := 'mock_create', + status_function := 'mock_status', destroy_function := 'mock_destroy'); +-- +ok +== +SET enable_external_access = false; +-- +ok +== +ATTACH TO NEW TEMPORARY EXTERNAL RESOURCE 'mock@local' AS res; +-- +ok +== +ATTACH TO EXTERNAL RESOURCE shared_res AS res; +-- +ok +== +CONNECT TO NEW TEMPORARY EXTERNAL RESOURCE 'mock@local'; +-- +ok +== +CREATE EXTERNAL RESOURCE 'mock@local' AS res; +-- +ok +== +REGISTER EXTERNAL RESOURCE 'mock@local' AS res FROM {'id': 'r1'}; +-- +ok +== +DESTROY EXTERNAL RESOURCE res; +-- +ok +== +SELECT last_value IS NULL FROM duckdb_sequences() WHERE sequence_name = 'create_calls'; +-- +ok +== +SELECT count(*) FROM duckdb_databases() WHERE database_name = 'res'; +-- +ok +== +SELECT count(*) FROM duckdb_external_resources(); +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/external_resource_lifecycle.test b/parser/testdata/corpus/sql/attach/external_resource_lifecycle.test index 61a604d1..5fae4477 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_lifecycle.test +++ b/parser/testdata/corpus/sql/attach/external_resource_lifecycle.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_lifecycle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO qk_destroy(h) AS TABLE SELECT 'gone' AS status; diff --git a/parser/testdata/corpus/sql/attach/external_resource_logging.test b/parser/testdata/corpus/sql/attach/external_resource_logging.test index 1e086cd5..d675af2c 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_logging.test +++ b/parser/testdata/corpus/sql/attach/external_resource_logging.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE EXTERNAL RESOURCE 'quack@local' AS yoooo; diff --git a/parser/testdata/corpus/sql/attach/external_resource_null_handle.test b/parser/testdata/corpus/sql/attach/external_resource_null_handle.test index f18905ef..b883b2ca 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_null_handle.test +++ b/parser/testdata/corpus/sql/attach/external_resource_null_handle.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_null_handle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE cseq; diff --git a/parser/testdata/corpus/sql/attach/external_resource_option_collision.test b/parser/testdata/corpus/sql/attach/external_resource_option_collision.test index fe20eddc..6c81b196 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_option_collision.test +++ b/parser/testdata/corpus/sql/attach/external_resource_option_collision.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_option_collision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/er_collision.db' AS seed; diff --git a/parser/testdata/corpus/sql/attach/external_resource_show_subquery.test b/parser/testdata/corpus/sql/attach/external_resource_show_subquery.test new file mode 100644 index 00000000..5594772e --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_show_subquery.test @@ -0,0 +1,87 @@ +# source: test/sql/attach/external_resource_show_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO list_s(opts) AS TABLE + SELECT MAP {'id': 'ext-1'} AS handle, 'ext-name' AS name, 'ext-ref' AS reference, 'running' AS state; +-- +ok +== +CALL register_external_resource_type('a@sq', kind := 'catalog', create_function := 'noop_create', list_function := 'list_s'); +-- +ok +== +CALL register_external_resource('a@sq', 'mine', MAP {'id': 'local-1'}); +-- +ok +== +SHOW ALL EXTERNAL RESOURCES; +-- +ok +== +SELECT name, managed FROM (SHOW ALL EXTERNAL RESOURCES); +-- +ok +== +SELECT count(*) FROM (SHOW EXTERNAL RESOURCES); +-- +ok +== +FROM (SHOW ALL EXTERNAL RESOURCES) SELECT type, state WHERE NOT managed; +-- +ok +== +FROM (SHOW ALL EXTERNAL RESOURCES) SELECT handle['id'] WHERE managed; +-- +ok +== +WITH r AS (SHOW ALL EXTERNAL RESOURCES) +SELECT r.type, t.name FROM r JOIN duckdb_external_resource_types() t ON t.name = r.type; +-- +ok +== +SELECT count(*) FROM ((SHOW ALL EXTERNAL RESOURCES) UNION ALL (SHOW EXTERNAL RESOURCES)); +-- +ok +== +SELECT name FROM (SHOW ALL EXTERNAL RESOURCES) ORDER BY 1 LIMIT 1; +-- +ok +== +(SHOW EXTERNAL RESOURCES); +-- +ok +== +DESCRIBE EXTERNAL RESOURCES; +-- +error: Parser Error: syntax error at or near "RESOURCES" +== +DESCRIBE ALL EXTERNAL RESOURCES; +-- +error: Parser Error: syntax error at or near "EXTERNAL" +== +SHOW ALL TABLES; +-- +ok +== +SHOW ALL; +-- +ok +== +SHOW TABLES; +-- +ok +== +CREATE TABLE external (i INTEGER); +-- +ok +== +SELECT count(*) FROM (SHOW external); +-- +ok +== +SHOW EXTERNAL RESOURCE; +-- +error: Parser Error: syntax error at or near ";" +== diff --git a/parser/testdata/corpus/sql/attach/external_resource_show_types.test b/parser/testdata/corpus/sql/attach/external_resource_show_types.test new file mode 100644 index 00000000..acf234c3 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_show_types.test @@ -0,0 +1,72 @@ +# source: test/sql/attach/external_resource_show_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SHOW EXTERNAL RESOURCE TYPES; +-- +ok +== +CALL register_external_resource_type('a@st', kind := 'catalog', create_function := 'a_create', + status_function := 'a_status', destroy_function := 'a_destroy', resolve_function := 'a_resolve', + list_function := 'a_list'); +-- +ok +== +CALL register_external_resource_type('b@st', kind := 'storage', create_function := 'b_create'); +-- +ok +== +SELECT * FROM duckdb_external_resource_types(); +-- +ok +== +SELECT name, kind FROM (SHOW EXTERNAL RESOURCE TYPES); +-- +ok +== +SELECT name FROM (SHOW EXTERNAL RESOURCE TYPES) WHERE list_function IS NOT NULL; +-- +ok +== +FROM (SHOW EXTERNAL RESOURCE TYPES) SELECT create_function WHERE kind = 'storage'; +-- +ok +== +CALL register_external_resource('b@st', 'mine', MAP {'id': 'local-1'}); +-- +ok +== +WITH t AS (SHOW EXTERNAL RESOURCE TYPES) +SELECT t.name, r.name FROM t JOIN (SHOW EXTERNAL RESOURCES) r ON r.type = t.name; +-- +ok +== +SELECT count(*) FROM ((SHOW EXTERNAL RESOURCE TYPES) UNION ALL (SHOW EXTERNAL RESOURCE TYPES)); +-- +ok +== +SELECT name FROM (SHOW EXTERNAL RESOURCE TYPES) ORDER BY name DESC LIMIT 1; +-- +ok +== +SELECT count(*) FROM ((SHOW EXTERNAL RESOURCE TYPES)); +-- +ok +== +DESCRIBE EXTERNAL RESOURCE TYPES; +-- +error: Parser Error: syntax error at or near "RESOURCE" +== +SHOW ALL EXTERNAL RESOURCE TYPES; +-- +error: Parser Error: syntax error at or near "RESOURCE" +== +SHOW EXTERNAL RESOURCE TYPES WITH TYPE 'a@st'; +-- +error: Parser Error: syntax error at or near "WITH" +== +SHOW EXTERNAL RESOURCE TYPE; +-- +error: Parser Error: syntax error at or near "TYPE" +== diff --git a/parser/testdata/corpus/sql/attach/external_resource_show_with_type.test b/parser/testdata/corpus/sql/attach/external_resource_show_with_type.test new file mode 100644 index 00000000..ea3dea3c --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_show_with_type.test @@ -0,0 +1,119 @@ +# source: test/sql/attach/external_resource_show_with_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SEQUENCE calls_a; +-- +ok +== +CREATE SEQUENCE calls_b; +-- +ok +== +CREATE MACRO list_a(opts) AS TABLE + SELECT MAP {'id': 'a' || nextval('calls_a')::VARCHAR} AS handle, 'bucket-a' AS name, 'a-ref' AS reference, 'running' AS state; +-- +ok +== +CREATE MACRO list_b(opts) AS TABLE + SELECT MAP {'id': 'b' || nextval('calls_b')::VARCHAR} AS handle, 'bucket-b' AS name, 'b-ref' AS reference, 'running' AS state; +-- +ok +== +CALL register_external_resource_type('a@st', kind := 'catalog', create_function := 'noop_create', list_function := 'list_a'); +-- +ok +== +CALL register_external_resource_type('b@st', kind := 'catalog', create_function := 'noop_create', list_function := 'list_b'); +-- +ok +== +CALL register_external_resource('a@st', 'local_a', MAP {'id': 'x'}); +-- +ok +== +SELECT nextval('calls_a'), nextval('calls_b'); +-- +ok +== +SELECT count(*) FROM (SHOW ALL EXTERNAL RESOURCES); +-- +ok +== +SELECT currval('calls_a'), currval('calls_b'); +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE 'a@st'; +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE 'b@st'; +-- +ok +== +SELECT count(*) FROM (SHOW ALL EXTERNAL RESOURCES WITH TYPE 'a@st'); +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE 'a@st'; +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE 'b@st'; +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE 'none@st'; +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE 'none@st'; +-- +ok +== +CALL register_external_resource('orphan@st', 'kept', MAP {'id': 'o'}); +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE 'orphan@st'; +-- +ok +== +CALL register_external_resource('it''s@st', 'quoted', MAP {'id': 'q'}); +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE 'it''s@st'; +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE '%@st'; +-- +ok +== +CALL register_external_resource('plain', 'bare', MAP {'id': 'p'}); +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE plain; +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE "it's@st"; +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE; +-- +error: Parser Error: syntax error at or near ";" +== +SHOW ALL EXTERNAL RESOURCES WITH 'a@st'; +-- +error: Parser Error: syntax error at or near "'a@st'" +== +SHOW ALL EXTERNAL RESOURCES 'a@st'; +-- +error: Parser Error: syntax error at or near "'a@st'" +== diff --git a/parser/testdata/corpus/sql/attach/external_resource_statements.test b/parser/testdata/corpus/sql/attach/external_resource_statements.test index 604b94a5..c19d838c 100644 --- a/parser/testdata/corpus/sql/attach/external_resource_statements.test +++ b/parser/testdata/corpus/sql/attach/external_resource_statements.test @@ -1,6 +1,6 @@ # source: test/sql/attach/external_resource_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE EXTERNAL RESOURCE 'aws:ec2:quack' AS x (SPOT, REGION 'eu-west-1'); @@ -15,10 +15,6 @@ DESTROY EXTERNAL RESOURCE nope; -- ok == -SHOW ALL EXTERNAL RESOURCES; --- -ok -== DESTROY EXTERNAL RESOURCE; -- error: Parser Error: syntax error at or near ";" @@ -27,7 +23,3 @@ REGISTER EXTERNAL RESOURCE 'aws:ec2:quack' AS x; -- error: Parser Error: syntax error at or near ";" == -SHOW ALL TABLES; --- -ok -== diff --git a/parser/testdata/corpus/sql/attach/external_resource_type_autoload.test b/parser/testdata/corpus/sql/attach/external_resource_type_autoload.test new file mode 100644 index 00000000..ee96b80d --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_type_autoload.test @@ -0,0 +1,41 @@ +# source: test/sql/attach/external_resource_type_autoload.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET autoload_known_extensions = false; +-- +ok +== +SET autoinstall_known_extensions = false; +-- +ok +== +REGISTER EXTERNAL RESOURCE 'nobody:provides:this' AS r FROM MAP {'id': 'x'}; +-- +ok +== +CREATE EXTERNAL RESOURCE 'nobody:provides:this' AS r; +-- +ok +== +REGISTER EXTERNAL RESOURCE 'aws.cloudformation.stack' AS r FROM MAP {'id': 'x'}; +-- +ok +== +SET extension_directory = '{TEST_DIR}/extensions'; +-- +ok +== +SET autoinstall_extension_repository = '{TEST_DIR}/no_such_repository'; +-- +ok +== +SET autoload_known_extensions = true; +-- +ok +== +SET autoinstall_known_extensions = true; +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/external_resource_type_dotted.test b/parser/testdata/corpus/sql/attach/external_resource_type_dotted.test new file mode 100644 index 00000000..f06aaac7 --- /dev/null +++ b/parser/testdata/corpus/sql/attach/external_resource_type_dotted.test @@ -0,0 +1,106 @@ +# source: test/sql/attach/external_resource_type_dotted.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE EXTERNAL RESOURCE nobody.provides.this AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE 'nobody.provides.this' AS r; +-- +ok +== +REGISTER EXTERNAL RESOURCE nobody.provides.this AS r FROM MAP {'id': 'x'}; +-- +ok +== +ATTACH TO NEW TEMPORARY EXTERNAL RESOURCE nobody.provides.this AS db; +-- +ok +== +SELECT * FROM (SHOW ALL EXTERNAL RESOURCES WITH TYPE nobody.provides.this); +-- +ok +== +CREATE EXTERNAL RESOURCE Nobody.Provides.THIS AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE 'Nobody.Provides.THIS' AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE nobody.table.2nd AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE nobody.provides-this.now AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE Nobody AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE nobody . provides.this AS r; +-- +error: Parser Error: syntax error at or near "." +== +CREATE EXTERNAL RESOURCE 'aws:cloudformation:stack' AS r; +-- +ok +== +CREATE EXTERNAL RESOURCE aws:cloudformation:stack AS r; +-- +error: Parser Error: syntax error at or near ":" +== +CREATE EXTERNAL RESOURCE nobody.provides. AS r; +-- +error: Parser Error: syntax error at or near "." +== +CREATE EXTERNAL RESOURCE nobody..provides AS r; +-- +error: Parser Error: syntax error at or near "." +== +CREATE MACRO dt_create(p) AS TABLE SELECT MAP {'id': 'd1'} AS handle; +-- +ok +== +CREATE MACRO dt_status(h) AS TABLE SELECT 'ready' AS state, MAP {'uri': 'memory:', 'attached_db_type': 'duckdb'} AS result; +-- +ok +== +CREATE MACRO dt_destroy(h) AS TABLE SELECT 'gone' AS status; +-- +ok +== +CALL register_external_resource_type('test.dotted.type', kind := 'catalog', create_function := 'dt_create', + status_function := 'dt_status', destroy_function := 'dt_destroy'); +-- +ok +== +CREATE EXTERNAL RESOURCE test.dotted.type AS created; +-- +ok +== +REGISTER EXTERNAL RESOURCE TEST.Dotted.Type AS registered FROM MAP {'id': 'd2'}; +-- +ok +== +SELECT name, type FROM (SHOW EXTERNAL RESOURCES WITH TYPE test.dotted.type); +-- +ok +== +SELECT name, type FROM (SHOW EXTERNAL RESOURCES WITH TYPE 'test.dotted.type'); +-- +ok +== +DESTROY EXTERNAL RESOURCE created; +-- +ok +== +DESTROY EXTERNAL RESOURCE registered; +-- +ok +== diff --git a/parser/testdata/corpus/sql/attach/in_memory_attach.test b/parser/testdata/corpus/sql/attach/in_memory_attach.test index 613c159f..3ad4af40 100644 --- a/parser/testdata/corpus/sql/attach/in_memory_attach.test +++ b/parser/testdata/corpus/sql/attach/in_memory_attach.test @@ -1,6 +1,6 @@ # source: test/sql/attach/in_memory_attach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO new_database.integers VALUES (42); diff --git a/parser/testdata/corpus/sql/attach/reattach_schema.test b/parser/testdata/corpus/sql/attach/reattach_schema.test index e320521d..62972c56 100644 --- a/parser/testdata/corpus/sql/attach/reattach_schema.test +++ b/parser/testdata/corpus/sql/attach/reattach_schema.test @@ -1,6 +1,6 @@ # source: test/sql/attach/reattach_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/reattach_schema.db' AS new_db; @@ -77,7 +77,7 @@ ok == USE new_name.my_schema.my_table -- -error: Parser Error: Expected "USE database" or "USE database.schema" +ok == SELECT * FROM my_table -- diff --git a/parser/testdata/corpus/sql/attach/remote_file_concurrently.test b/parser/testdata/corpus/sql/attach/remote_file_concurrently.test index 416ef345..50d8e7e2 100644 --- a/parser/testdata/corpus/sql/attach/remote_file_concurrently.test +++ b/parser/testdata/corpus/sql/attach/remote_file_concurrently.test @@ -1,6 +1,6 @@ # source: test/sql/attach/remote_file_concurrently.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH 'https://raw.githubusercontent.com/duckdb/duckdb/main/data/attach_test/attach.db' AS db; diff --git a/parser/testdata/corpus/sql/attach/searchpath_fallback.test b/parser/testdata/corpus/sql/attach/searchpath_fallback.test index 11b00c95..1bb7c223 100644 --- a/parser/testdata/corpus/sql/attach/searchpath_fallback.test +++ b/parser/testdata/corpus/sql/attach/searchpath_fallback.test @@ -1,6 +1,6 @@ # source: test/sql/attach/searchpath_fallback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS view_path_c1; diff --git a/parser/testdata/corpus/sql/attach/show_databases.test b/parser/testdata/corpus/sql/attach/show_databases.test index a859d551..b1992aad 100644 --- a/parser/testdata/corpus/sql/attach/show_databases.test +++ b/parser/testdata/corpus/sql/attach/show_databases.test @@ -1,6 +1,6 @@ # source: test/sql/attach/show_databases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SHOW DATABASES diff --git a/parser/testdata/corpus/sql/attach/show_schemas.test b/parser/testdata/corpus/sql/attach/show_schemas.test index 437166ba..5c64e6a2 100644 --- a/parser/testdata/corpus/sql/attach/show_schemas.test +++ b/parser/testdata/corpus/sql/attach/show_schemas.test @@ -1,6 +1,6 @@ # source: test/sql/attach/show_schemas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SHOW SCHEMAS diff --git a/parser/testdata/corpus/sql/attach/system_catalog.test b/parser/testdata/corpus/sql/attach/system_catalog.test index a9a6b706..faad2407 100644 --- a/parser/testdata/corpus/sql/attach/system_catalog.test +++ b/parser/testdata/corpus/sql/attach/system_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/attach/system_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DETACH DATABASE system diff --git a/parser/testdata/corpus/sql/binder/alias_error_10057.test b/parser/testdata/corpus/sql/binder/alias_error_10057.test index 4809d41a..d474132d 100644 --- a/parser/testdata/corpus/sql/binder/alias_error_10057.test +++ b/parser/testdata/corpus/sql/binder/alias_error_10057.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_error_10057.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with test_data as ( diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_errors.test b/parser/testdata/corpus/sql/binder/alias_qualification_errors.test index bf6253d3..4ae032f2 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_errors.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_errors.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT alias.x + 1 AS y, 1 AS x diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_group_by.test b/parser/testdata/corpus/sql/binder/alias_qualification_group_by.test index 5ab6e659..801d3c0e 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_group_by.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a % 2 AS x, COUNT(*) AS cnt diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_having.test b/parser/testdata/corpus/sql/binder/alias_qualification_having.test index 26aabea6..829c13f2 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_having.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_having.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a % 2 AS x, SUM(a) AS s diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_order_by.test b/parser/testdata/corpus/sql/binder/alias_qualification_order_by.test index dae734cd..4e08904f 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_order_by.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a AS x FROM (VALUES (3),(1),(2)) t(a) diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_qualify.test b/parser/testdata/corpus/sql/binder/alias_qualification_qualify.test index b1012b48..dd843c59 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_qualify.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_qualify.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_qualify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a, row_number() OVER (ORDER BY a) AS rn diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_select_projection.test b/parser/testdata/corpus/sql/binder/alias_qualification_select_projection.test index 37d13515..b66e416b 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_select_projection.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_select_projection.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_select_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/binder/alias_qualification_where.test b/parser/testdata/corpus/sql/binder/alias_qualification_where.test index 686e694d..02d0fcbe 100644 --- a/parser/testdata/corpus/sql/binder/alias_qualification_where.test +++ b/parser/testdata/corpus/sql/binder/alias_qualification_where.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_qualification_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a AS x FROM (VALUES (1),(2),(3)) t(a) diff --git a/parser/testdata/corpus/sql/binder/alias_where_side_effects.test b/parser/testdata/corpus/sql/binder/alias_where_side_effects.test index 404f1ebf..5cb55e32 100644 --- a/parser/testdata/corpus/sql/binder/alias_where_side_effects.test +++ b/parser/testdata/corpus/sql/binder/alias_where_side_effects.test @@ -1,6 +1,6 @@ # source: test/sql/binder/alias_where_side_effects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from (select random() as num from range(20) where num > 0.9) where num <= 0.9 diff --git a/parser/testdata/corpus/sql/binder/column_ref_as_alias.test b/parser/testdata/corpus/sql/binder/column_ref_as_alias.test index d2299aca..5bb996fc 100644 --- a/parser/testdata/corpus/sql/binder/column_ref_as_alias.test +++ b/parser/testdata/corpus/sql/binder/column_ref_as_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/column_ref_as_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table ss_items as select 1 item_id, 10 ss_item_rev; diff --git a/parser/testdata/corpus/sql/binder/column_value_alias_group.test b/parser/testdata/corpus/sql/binder/column_value_alias_group.test index b266159f..49cf818b 100644 --- a/parser/testdata/corpus/sql/binder/column_value_alias_group.test +++ b/parser/testdata/corpus/sql/binder/column_value_alias_group.test @@ -1,6 +1,6 @@ # source: test/sql/binder/column_value_alias_group.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test(a int); diff --git a/parser/testdata/corpus/sql/binder/default_expression_errors.test b/parser/testdata/corpus/sql/binder/default_expression_errors.test index 3c7364bd..1a682950 100644 --- a/parser/testdata/corpus/sql/binder/default_expression_errors.test +++ b/parser/testdata/corpus/sql/binder/default_expression_errors.test @@ -1,6 +1,6 @@ # source: test/sql/binder/default_expression_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 WHERE DEFAULT; diff --git a/parser/testdata/corpus/sql/binder/duplicate_alias.test b/parser/testdata/corpus/sql/binder/duplicate_alias.test index 4e310c08..64ae4544 100644 --- a/parser/testdata/corpus/sql/binder/duplicate_alias.test +++ b/parser/testdata/corpus/sql/binder/duplicate_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/duplicate_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t(i int); diff --git a/parser/testdata/corpus/sql/binder/empty_column_alias.test b/parser/testdata/corpus/sql/binder/empty_column_alias.test index b53f8296..544b7b88 100644 --- a/parser/testdata/corpus/sql/binder/empty_column_alias.test +++ b/parser/testdata/corpus/sql/binder/empty_column_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/empty_column_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH x('') AS (SELECT 1) SELECT * FROM x; diff --git a/parser/testdata/corpus/sql/binder/expression_binder_coverage.test b/parser/testdata/corpus/sql/binder/expression_binder_coverage.test index b21920f1..d29824f3 100644 --- a/parser/testdata/corpus/sql/binder/expression_binder_coverage.test +++ b/parser/testdata/corpus/sql/binder/expression_binder_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/binder/expression_binder_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE binder_values(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/binder/function_chaining_19035.test b/parser/testdata/corpus/sql/binder/function_chaining_19035.test index 21b4329f..ee18d73b 100644 --- a/parser/testdata/corpus/sql/binder/function_chaining_19035.test +++ b/parser/testdata/corpus/sql/binder/function_chaining_19035.test @@ -1,6 +1,6 @@ # source: test/sql/binder/function_chaining_19035.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with stage as ( diff --git a/parser/testdata/corpus/sql/binder/group_by_incremental_alias.test b/parser/testdata/corpus/sql/binder/group_by_incremental_alias.test index 77cff31a..78ce8f81 100644 --- a/parser/testdata/corpus/sql/binder/group_by_incremental_alias.test +++ b/parser/testdata/corpus/sql/binder/group_by_incremental_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/group_by_incremental_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table my_functions as select 'my_name' as function_name; diff --git a/parser/testdata/corpus/sql/binder/group_by_qualification.test b/parser/testdata/corpus/sql/binder/group_by_qualification.test index 847fbaa9..676c398f 100644 --- a/parser/testdata/corpus/sql/binder/group_by_qualification.test +++ b/parser/testdata/corpus/sql/binder/group_by_qualification.test @@ -1,6 +1,6 @@ # source: test/sql/binder/group_by_qualification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA IF NOT EXISTS prd; diff --git a/parser/testdata/corpus/sql/binder/integer_literal_binding.test b/parser/testdata/corpus/sql/binder/integer_literal_binding.test index 86065eac..e73f45ce 100644 --- a/parser/testdata/corpus/sql/binder/integer_literal_binding.test +++ b/parser/testdata/corpus/sql/binder/integer_literal_binding.test @@ -1,6 +1,6 @@ # source: test/sql/binder/integer_literal_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(100::{type} + 1) == '{type}'; diff --git a/parser/testdata/corpus/sql/binder/legacy_null_type.test b/parser/testdata/corpus/sql/binder/legacy_null_type.test index 27e59fe9..b1decc3a 100644 --- a/parser/testdata/corpus/sql/binder/legacy_null_type.test +++ b/parser/testdata/corpus/sql/binder/legacy_null_type.test @@ -1,6 +1,6 @@ # source: test/sql/binder/legacy_null_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET legacy_disable_null_type=true; @@ -15,3 +15,11 @@ SELECT TYPEOF(c) FROM t -- ok == +SELECT * FROM query(NULL); +-- +ok +== +SELECT * FROM query_table(NULL); +-- +ok +== diff --git a/parser/testdata/corpus/sql/binder/missing_column_error.test b/parser/testdata/corpus/sql/binder/missing_column_error.test index 315b81e9..745e6878 100644 --- a/parser/testdata/corpus/sql/binder/missing_column_error.test +++ b/parser/testdata/corpus/sql/binder/missing_column_error.test @@ -1,6 +1,6 @@ # source: test/sql/binder/missing_column_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table customers (name varchar, age integer, something_easy_to_type_wrong integer, city varchar); diff --git a/parser/testdata/corpus/sql/binder/named_parameter_cast.test b/parser/testdata/corpus/sql/binder/named_parameter_cast.test index a7338b2d..840fff7d 100644 --- a/parser/testdata/corpus/sql/binder/named_parameter_cast.test +++ b/parser/testdata/corpus/sql/binder/named_parameter_cast.test @@ -1,6 +1,6 @@ # source: test/sql/binder/named_parameter_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='America/Los_Angeles'; diff --git a/parser/testdata/corpus/sql/binder/not_similar_to.test b/parser/testdata/corpus/sql/binder/not_similar_to.test index c4960f24..b6227292 100644 --- a/parser/testdata/corpus/sql/binder/not_similar_to.test +++ b/parser/testdata/corpus/sql/binder/not_similar_to.test @@ -1,6 +1,6 @@ # source: test/sql/binder/not_similar_to.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table foo as select 'd' as a, 'e' as b, 'f' as c; diff --git a/parser/testdata/corpus/sql/binder/old_implicit_cast.test b/parser/testdata/corpus/sql/binder/old_implicit_cast.test index 31026362..6a754ca1 100644 --- a/parser/testdata/corpus/sql/binder/old_implicit_cast.test +++ b/parser/testdata/corpus/sql/binder/old_implicit_cast.test @@ -1,6 +1,6 @@ # source: test/sql/binder/old_implicit_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT 42 AS i, '5' AS v; diff --git a/parser/testdata/corpus/sql/binder/old_implicit_cast_template.test b/parser/testdata/corpus/sql/binder/old_implicit_cast_template.test index a4cd6889..f6f4f187 100644 --- a/parser/testdata/corpus/sql/binder/old_implicit_cast_template.test +++ b/parser/testdata/corpus/sql/binder/old_implicit_cast_template.test @@ -1,6 +1,6 @@ # source: test/sql/binder/old_implicit_cast_template.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select * from values ('1-2', '3-4', 'a-z', NULL) as r(v); diff --git a/parser/testdata/corpus/sql/binder/order_by_view.test b/parser/testdata/corpus/sql/binder/order_by_view.test index 37d70eed..0bdaf569 100644 --- a/parser/testdata/corpus/sql/binder/order_by_view.test +++ b/parser/testdata/corpus/sql/binder/order_by_view.test @@ -1,6 +1,6 @@ # source: test/sql/binder/order_by_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE src("Name" VARCHAR, CreatedAt TIMESTAMP, userID VARCHAR, "Version" VARCHAR, Clients BIGINT, HasDocumentation BOOLEAN, HasCustomAddress BOOLEAN, HasHostname BOOLEAN, RunningContainers BIGINT, HasActions BOOLEAN); diff --git a/parser/testdata/corpus/sql/binder/qualified_alias_method_call.test b/parser/testdata/corpus/sql/binder/qualified_alias_method_call.test index 87f570c2..afcb3f6c 100644 --- a/parser/testdata/corpus/sql/binder/qualified_alias_method_call.test +++ b/parser/testdata/corpus/sql/binder/qualified_alias_method_call.test @@ -1,6 +1,6 @@ # source: test/sql/binder/qualified_alias_method_call.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_alias(a INT, b VARCHAR); diff --git a/parser/testdata/corpus/sql/binder/separate_schema_tables.test b/parser/testdata/corpus/sql/binder/separate_schema_tables.test index 98dee488..f919da63 100644 --- a/parser/testdata/corpus/sql/binder/separate_schema_tables.test +++ b/parser/testdata/corpus/sql/binder/separate_schema_tables.test @@ -1,6 +1,6 @@ # source: test/sql/binder/separate_schema_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA IF NOT EXISTS s1; diff --git a/parser/testdata/corpus/sql/binder/similar_to.test b/parser/testdata/corpus/sql/binder/similar_to.test index 5fe03e29..321d725f 100644 --- a/parser/testdata/corpus/sql/binder/similar_to.test +++ b/parser/testdata/corpus/sql/binder/similar_to.test @@ -1,6 +1,6 @@ # source: test/sql/binder/similar_to.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE depdelay_minutes(depdelay_minutes INTEGER); diff --git a/parser/testdata/corpus/sql/binder/string_literal_binding.test b/parser/testdata/corpus/sql/binder/string_literal_binding.test index f4784a1b..5cc6904a 100644 --- a/parser/testdata/corpus/sql/binder/string_literal_binding.test +++ b/parser/testdata/corpus/sql/binder/string_literal_binding.test @@ -1,6 +1,6 @@ # source: test/sql/binder/string_literal_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '01'=1; diff --git a/parser/testdata/corpus/sql/binder/table_alias_single_quotes.test b/parser/testdata/corpus/sql/binder/table_alias_single_quotes.test index 88687084..19b677c9 100644 --- a/parser/testdata/corpus/sql/binder/table_alias_single_quotes.test +++ b/parser/testdata/corpus/sql/binder/table_alias_single_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/binder/table_alias_single_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT t.k FROM integers AS 't'('k') ORDER BY ALL diff --git a/parser/testdata/corpus/sql/binder/table_view_alias.test b/parser/testdata/corpus/sql/binder/table_view_alias.test index ad1d6fe7..5ac9f220 100644 --- a/parser/testdata/corpus/sql/binder/table_view_alias.test +++ b/parser/testdata/corpus/sql/binder/table_view_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/table_view_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW s1.v AS SELECT 42 c; diff --git a/parser/testdata/corpus/sql/binder/test_alias.test b/parser/testdata/corpus/sql/binder/test_alias.test index 2095ac0d..8ffc9881 100644 --- a/parser/testdata/corpus/sql/binder/test_alias.test +++ b/parser/testdata/corpus/sql/binder/test_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i % 2 AS p, SUM(i) AS sum_i FROM integers GROUP BY p ORDER BY 1 diff --git a/parser/testdata/corpus/sql/binder/test_alias_map_in_subquery.test b/parser/testdata/corpus/sql/binder/test_alias_map_in_subquery.test index 363c453b..d09bc1ec 100644 --- a/parser/testdata/corpus/sql/binder/test_alias_map_in_subquery.test +++ b/parser/testdata/corpus/sql/binder/test_alias_map_in_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_alias_map_in_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE tbl (example VARCHAR); diff --git a/parser/testdata/corpus/sql/binder/test_case_insensitive_binding.test b/parser/testdata/corpus/sql/binder/test_case_insensitive_binding.test index b8ab8668..585db3e0 100644 --- a/parser/testdata/corpus/sql/binder/test_case_insensitive_binding.test +++ b/parser/testdata/corpus/sql/binder/test_case_insensitive_binding.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_case_insensitive_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ("HeLlO" INTEGER) diff --git a/parser/testdata/corpus/sql/binder/test_duplicate_in_set_operation.test b/parser/testdata/corpus/sql/binder/test_duplicate_in_set_operation.test index 3eed239b..c53a6532 100644 --- a/parser/testdata/corpus/sql/binder/test_duplicate_in_set_operation.test +++ b/parser/testdata/corpus/sql/binder/test_duplicate_in_set_operation.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_duplicate_in_set_operation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(col1 varchar collate nocase); diff --git a/parser/testdata/corpus/sql/binder/test_function_chaining_alias.test b/parser/testdata/corpus/sql/binder/test_function_chaining_alias.test index 602fe204..5b77e3de 100644 --- a/parser/testdata/corpus/sql/binder/test_function_chaining_alias.test +++ b/parser/testdata/corpus/sql/binder/test_function_chaining_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_function_chaining_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'test' || ' more testing' AS added, added.substr(5) AS my_substr diff --git a/parser/testdata/corpus/sql/binder/test_having_alias.test b/parser/testdata/corpus/sql/binder/test_having_alias.test index 47a379ff..d11c0dea 100644 --- a/parser/testdata/corpus/sql/binder/test_having_alias.test +++ b/parser/testdata/corpus/sql/binder/test_having_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_having_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(5) tbl(i); diff --git a/parser/testdata/corpus/sql/binder/test_implicit_struct_pack.test b/parser/testdata/corpus/sql/binder/test_implicit_struct_pack.test index 00116e72..c1a77a38 100644 --- a/parser/testdata/corpus/sql/binder/test_implicit_struct_pack.test +++ b/parser/testdata/corpus/sql/binder/test_implicit_struct_pack.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_implicit_struct_pack.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select range i from range(3) diff --git a/parser/testdata/corpus/sql/binder/test_in_with_collate.test b/parser/testdata/corpus/sql/binder/test_in_with_collate.test index 0672710d..e085bae0 100644 --- a/parser/testdata/corpus/sql/binder/test_in_with_collate.test +++ b/parser/testdata/corpus/sql/binder/test_in_with_collate.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_in_with_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (str varchar); diff --git a/parser/testdata/corpus/sql/binder/test_null_type_propagation.test b/parser/testdata/corpus/sql/binder/test_null_type_propagation.test index b3ba4709..08b6f9a0 100644 --- a/parser/testdata/corpus/sql/binder/test_null_type_propagation.test +++ b/parser/testdata/corpus/sql/binder/test_null_type_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_null_type_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL diff --git a/parser/testdata/corpus/sql/binder/test_postitional_ref_order_binding.test b/parser/testdata/corpus/sql/binder/test_postitional_ref_order_binding.test index 352db187..f2bd7af9 100644 --- a/parser/testdata/corpus/sql/binder/test_postitional_ref_order_binding.test +++ b/parser/testdata/corpus/sql/binder/test_postitional_ref_order_binding.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_postitional_ref_order_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select * from (values (42, 43), (44, 45)) v(i, j); diff --git a/parser/testdata/corpus/sql/binder/test_select_clause_alias.test b/parser/testdata/corpus/sql/binder/test_select_clause_alias.test index 8a4c0988..eee70be9 100644 --- a/parser/testdata/corpus/sql/binder/test_select_clause_alias.test +++ b/parser/testdata/corpus/sql/binder/test_select_clause_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_select_clause_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (2), (3); diff --git a/parser/testdata/corpus/sql/binder/test_string_alias.test b/parser/testdata/corpus/sql/binder/test_string_alias.test index b84d72ad..bba0f392 100644 --- a/parser/testdata/corpus/sql/binder/test_string_alias.test +++ b/parser/testdata/corpus/sql/binder/test_string_alias.test @@ -1,6 +1,6 @@ # source: test/sql/binder/test_string_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i AS 'hello world' FROM integers diff --git a/parser/testdata/corpus/sql/cast/array_to_varchar_quoting.test b/parser/testdata/corpus/sql/cast/array_to_varchar_quoting.test index d89d0ec8..9a03c302 100644 --- a/parser/testdata/corpus/sql/cast/array_to_varchar_quoting.test +++ b/parser/testdata/corpus/sql/cast/array_to_varchar_quoting.test @@ -1,6 +1,6 @@ # source: test/sql/cast/array_to_varchar_quoting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ['a,b', 'x"y']::VARCHAR[2]::VARCHAR v, v::VARCHAR[2] = ['a,b', 'x"y']; diff --git a/parser/testdata/corpus/sql/cast/boolean_autocast.test b/parser/testdata/corpus/sql/cast/boolean_autocast.test index 4a31ec17..6f5767ea 100644 --- a/parser/testdata/corpus/sql/cast/boolean_autocast.test +++ b/parser/testdata/corpus/sql/cast/boolean_autocast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/boolean_autocast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT true=1; diff --git a/parser/testdata/corpus/sql/cast/boolean_to_decimal_cast.test b/parser/testdata/corpus/sql/cast/boolean_to_decimal_cast.test new file mode 100644 index 00000000..a8b5c30e --- /dev/null +++ b/parser/testdata/corpus/sql/cast/boolean_to_decimal_cast.test @@ -0,0 +1,59 @@ +# source: test/sql/cast/boolean_to_decimal_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT true::DECIMAL({width}, {width}) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT TRY_CAST(true AS DECIMAL({width}, {width})) IS NULL, false::DECIMAL({width}, {width}) = 0 +-- +error: Parser Error: syntax error at or near "}" +== +SELECT true::DECIMAL(2,1), true::DECIMAL(5,4), true::DECIMAL(10,9), true::DECIMAL(19,18), true::DECIMAL(38,37) +-- +ok +== +CREATE TABLE bools AS SELECT CASE WHEN i % 3 = 0 THEN NULL ELSE i % 3 = 1 END AS b FROM range(5000) t(i); +-- +ok +== +SELECT b::DECIMAL(4,4) FROM bools +-- +ok +== +SELECT count(*), count(TRY_CAST(b AS DECIMAL(4,4))), count(TRY_CAST(b AS DECIMAL(18,18))), + count(TRY_CAST(b AS DECIMAL(38,38))), sum(TRY_CAST(b AS DECIMAL(9,9))) = 0 +FROM bools +-- +ok +== +SELECT count(*), sum(b::DECIMAL(4,4)) = 0 FROM bools WHERE NOT b +-- +ok +== +SELECT count(*) FROM bools WHERE b::DECIMAL(4,3) = 1 +-- +ok +== +CREATE TABLE dt (x DECIMAL(2,2)); +-- +ok +== +INSERT INTO dt VALUES (true) +-- +ok +== +INSERT INTO dt SELECT b FROM bools +-- +ok +== +INSERT INTO dt VALUES (false), (NULL) +-- +ok +== +SELECT x = 0 FROM dt ORDER BY x NULLS LAST +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/cast_error_location.test b/parser/testdata/corpus/sql/cast/cast_error_location.test index e7a4e766..4f89c17f 100644 --- a/parser/testdata/corpus/sql/cast/cast_error_location.test +++ b/parser/testdata/corpus/sql/cast/cast_error_location.test @@ -1,6 +1,6 @@ # source: test/sql/cast/cast_error_location.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1::STRUCT(i INTEGER) diff --git a/parser/testdata/corpus/sql/cast/cast_error_logical_types.test b/parser/testdata/corpus/sql/cast/cast_error_logical_types.test index f14f00a2..2d8650ed 100644 --- a/parser/testdata/corpus/sql/cast/cast_error_logical_types.test +++ b/parser/testdata/corpus/sql/cast/cast_error_logical_types.test @@ -1,6 +1,6 @@ # source: test/sql/cast/cast_error_logical_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'x'::UUID; diff --git a/parser/testdata/corpus/sql/cast/cast_sign_only_whitespace.test b/parser/testdata/corpus/sql/cast/cast_sign_only_whitespace.test index e8602393..6fd368d7 100644 --- a/parser/testdata/corpus/sql/cast/cast_sign_only_whitespace.test +++ b/parser/testdata/corpus/sql/cast/cast_sign_only_whitespace.test @@ -1,6 +1,6 @@ # source: test/sql/cast/cast_sign_only_whitespace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('- ' AS BIGINT), TRY_CAST('+ ' AS INTEGER), TRY_CAST('-' || chr(9) AS SMALLINT), TRY_CAST('- ' AS HUGEINT) diff --git a/parser/testdata/corpus/sql/cast/common_operator_coverage.test b/parser/testdata/corpus/sql/cast/common_operator_coverage.test index 60e7b52d..29ed832e 100644 --- a/parser/testdata/corpus/sql/cast/common_operator_coverage.test +++ b/parser/testdata/corpus/sql/cast/common_operator_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/cast/common_operator_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE temporal_cast_input(id INTEGER, value VARCHAR) diff --git a/parser/testdata/corpus/sql/cast/decimal_cast.test b/parser/testdata/corpus/sql/cast/decimal_cast.test index 1e43541d..327177ce 100644 --- a/parser/testdata/corpus/sql/cast/decimal_cast.test +++ b/parser/testdata/corpus/sql/cast/decimal_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/decimal_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '9.90'::DECIMAL(4,3)::DECIMAL(3,2); diff --git a/parser/testdata/corpus/sql/cast/decimal_constexpr_limits.test b/parser/testdata/corpus/sql/cast/decimal_constexpr_limits.test index 7ce3c4ac..d78c6096 100644 --- a/parser/testdata/corpus/sql/cast/decimal_constexpr_limits.test +++ b/parser/testdata/corpus/sql/cast/decimal_constexpr_limits.test @@ -1,6 +1,6 @@ # source: test/sql/cast/decimal_constexpr_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('{sign}' || repeat('9', {width}) AS DECIMAL({width},0))::VARCHAR = diff --git a/parser/testdata/corpus/sql/cast/decimal_float_cast.test b/parser/testdata/corpus/sql/cast/decimal_float_cast.test index aabe4b3f..4d12bc73 100644 --- a/parser/testdata/corpus/sql/cast/decimal_float_cast.test +++ b/parser/testdata/corpus/sql/cast/decimal_float_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/decimal_float_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select cast(100000000000000000000 as double) < cast(99999999999999999999.99999 as double); diff --git a/parser/testdata/corpus/sql/cast/decimal_hugeint_zero_to_double.test b/parser/testdata/corpus/sql/cast/decimal_hugeint_zero_to_double.test new file mode 100644 index 00000000..62b14814 --- /dev/null +++ b/parser/testdata/corpus/sql/cast/decimal_hugeint_zero_to_double.test @@ -0,0 +1,25 @@ +# source: test/sql/cast/decimal_hugeint_zero_to_double.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM (SELECT (i*0)::DECIMAL(38,34)::DOUBLE d FROM range(5000) t(i)) WHERE d::VARCHAR LIKE '-%'; +-- +ok +== +SELECT count(*) FROM (SELECT (i*0)::DECIMAL(38,34)::FLOAT f FROM range(5000) t(i)) WHERE f::VARCHAR LIKE '-%'; +-- +ok +== +SELECT 0::DECIMAL(38,34)::DOUBLE; +-- +ok +== +SELECT 0::DECIMAL(38,0)::DOUBLE; +-- +ok +== +SELECT (-1.5)::DECIMAL(38,2)::DOUBLE; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/decimal_integer_cast.test b/parser/testdata/corpus/sql/cast/decimal_integer_cast.test index f601cc17..12a5284d 100644 --- a/parser/testdata/corpus/sql/cast/decimal_integer_cast.test +++ b/parser/testdata/corpus/sql/cast/decimal_integer_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/decimal_integer_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(0.55 AS {datatype}) as x; diff --git a/parser/testdata/corpus/sql/cast/dot_function_missing_error.test b/parser/testdata/corpus/sql/cast/dot_function_missing_error.test index a0f98787..83668f97 100644 --- a/parser/testdata/corpus/sql/cast/dot_function_missing_error.test +++ b/parser/testdata/corpus/sql/cast/dot_function_missing_error.test @@ -1,6 +1,6 @@ # source: test/sql/cast/dot_function_missing_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select file.replace('a', 'b') from (values ('xxxx')) t("filename"); diff --git a/parser/testdata/corpus/sql/cast/double_float_cast.test b/parser/testdata/corpus/sql/cast/double_float_cast.test index 55e470c7..e93c26b2 100644 --- a/parser/testdata/corpus/sql/cast/double_float_cast.test +++ b/parser/testdata/corpus/sql/cast/double_float_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/double_float_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1e308::float; diff --git a/parser/testdata/corpus/sql/cast/double_to_varchar_shortest.test b/parser/testdata/corpus/sql/cast/double_to_varchar_shortest.test new file mode 100644 index 00000000..178ef4f9 --- /dev/null +++ b/parser/testdata/corpus/sql/cast/double_to_varchar_shortest.test @@ -0,0 +1,61 @@ +# source: test/sql/cast/double_to_varchar_shortest.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT (2::DOUBLE ^ 81)::VARCHAR, (2::DOUBLE ^ 91)::VARCHAR, (2::DOUBLE ^ 807)::VARCHAR +-- +ok +== +SELECT (-(2::DOUBLE ^ 81))::VARCHAR, (-(2::DOUBLE ^ 91))::VARCHAR, (-(2::DOUBLE ^ 807))::VARCHAR +-- +ok +== +SELECT k, (2::DOUBLE ^ k)::VARCHAR, nextafter(2::DOUBLE ^ k, 0)::VARCHAR, nextafter(2::DOUBLE ^ k, 'inf'::DOUBLE)::VARCHAR +FROM (VALUES (80), (81), (82), (90), (91), (92), (806), (807), (808)) t(k) +ORDER BY k +-- +ok +== +SELECT count(*), count(*) FILTER (TRY_CAST(v::VARCHAR AS DOUBLE) IS DISTINCT FROM v) +FROM (SELECT s * (2::DOUBLE ^ k) AS v FROM range(-1074, 1024) t(k), (VALUES (1), (-1)) u(s)) +-- +ok +== +CREATE TABLE powers AS SELECT * FROM (VALUES (1, 2::DOUBLE ^ 81), (2, 2::DOUBLE ^ 91), (3, 2::DOUBLE ^ 807), (4, NULL)) t(id, v) +-- +ok +== +SELECT id, v::VARCHAR FROM powers ORDER BY id +-- +ok +== +SELECT format('{}', v) FROM powers WHERE v IS NOT NULL ORDER BY id +-- +ok +== +SELECT list(v ORDER BY id)::VARCHAR, {'a': max(v)}::VARCHAR, MAP {'a': max(v)}::VARCHAR FROM powers +-- +ok +== +COPY powers TO '{TEST_DIR}/double_powers_of_two.csv' +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/double_powers_of_two.csv', header = true, all_varchar = true) ORDER BY id +-- +ok +== +SELECT 'POINT(2.4178516392292583e+24 8.535058474086213e+242)'::GEOMETRY::VARCHAR +-- +ok +== +SELECT (2::DOUBLE ^ 81)::FLOAT::VARCHAR, (2::DOUBLE ^ 91)::FLOAT::VARCHAR, (2::DOUBLE ^ 127)::FLOAT::VARCHAR +-- +ok +== +SELECT count(*), count(*) FILTER (TRY_CAST(v::VARCHAR AS FLOAT) IS DISTINCT FROM v) +FROM (SELECT (s * (2::DOUBLE ^ k))::FLOAT AS v FROM range(-149, 128) t(k), (VALUES (1), (-1)) u(s)) +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/float_decimal_cast.test b/parser/testdata/corpus/sql/cast/float_decimal_cast.test index e289cd3f..ac2c4f6c 100644 --- a/parser/testdata/corpus/sql/cast/float_decimal_cast.test +++ b/parser/testdata/corpus/sql/cast/float_decimal_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/float_decimal_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1.35::{src}::decimal(3, 1), 1.45::{src}::decimal(3, 1) diff --git a/parser/testdata/corpus/sql/cast/float_integer_cast.test b/parser/testdata/corpus/sql/cast/float_integer_cast.test index 595b6564..e739ebdb 100644 --- a/parser/testdata/corpus/sql/cast/float_integer_cast.test +++ b/parser/testdata/corpus/sql/cast/float_integer_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/float_integer_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select cast(0.5::{src} as {dst}) as x; diff --git a/parser/testdata/corpus/sql/cast/nested_union_variant_to_varchar_quoting.test b/parser/testdata/corpus/sql/cast/nested_union_variant_to_varchar_quoting.test new file mode 100644 index 00000000..cd36087e --- /dev/null +++ b/parser/testdata/corpus/sql/cast/nested_union_variant_to_varchar_quoting.test @@ -0,0 +1,41 @@ +# source: test/sql/cast/nested_union_variant_to_varchar_quoting.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT ['a, b']::VARCHAR, ['a, b'::UNION(s VARCHAR, i INT)]::VARCHAR, ['a, b'::VARIANT]::VARCHAR +-- +ok +== +SELECT len(['a, b'::UNION(s VARCHAR, i INT)]::VARCHAR::UNION(s VARCHAR, i INT)[]), len(['a, b'::VARIANT]::VARCHAR::VARIANT[]) +-- +ok +== +SELECT {'k': 'x'', ''y'::UNION(s VARCHAR, i INT)}::VARCHAR, MAP{1: 'a, b'::UNION(s VARCHAR, i INT)}::VARCHAR, MAP{'a, b'::UNION(s VARCHAR, i INT): 1}::VARCHAR +-- +ok +== +SELECT {'k': 'x'', ''y'::UNION(s VARCHAR, i INT)}::VARCHAR::STRUCT(k UNION(s VARCHAR, i INT)) = {'k': 'x'', ''y'::UNION(s VARCHAR, i INT)} +-- +ok +== +SELECT [1::UNION(s VARCHAR, i INT), 'x'::UNION(s VARCHAR, i INT), NULL]::VARCHAR, [[1, 2]::UNION(l INT[], s VARCHAR)]::VARCHAR +-- +ok +== +SELECT [{'a': 1}::VARIANT, [1, 2]::VARIANT, 'q'::VARIANT, NULL::VARIANT, 'NULL'::VARIANT]::VARCHAR +-- +ok +== +SELECT ['a, b'::UNION(s VARCHAR, i INT), 'c'::UNION(s VARCHAR, i INT)]::UNION(s VARCHAR, i INT)[2]::VARCHAR +-- +ok +== +SELECT 'a, b'::UNION(s VARCHAR, i INT)::VARCHAR, 'a, b'::VARIANT::VARCHAR +-- +ok +== +SELECT [union_value(s := NULL::VARCHAR)::UNION(s VARCHAR, i INT), 'NULL'::UNION(s VARCHAR, i INT)]::VARCHAR +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/signed_cast_repro.test b/parser/testdata/corpus/sql/cast/signed_cast_repro.test index fda137ef..80a4d13c 100644 --- a/parser/testdata/corpus/sql/cast/signed_cast_repro.test +++ b/parser/testdata/corpus/sql/cast/signed_cast_repro.test @@ -1,6 +1,6 @@ # source: test/sql/cast/signed_cast_repro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) diff --git a/parser/testdata/corpus/sql/cast/string_to_integer_decimal_cast.test b/parser/testdata/corpus/sql/cast/string_to_integer_decimal_cast.test index 07e84a9b..15537400 100644 --- a/parser/testdata/corpus/sql/cast/string_to_integer_decimal_cast.test +++ b/parser/testdata/corpus/sql/cast/string_to_integer_decimal_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_integer_decimal_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '0.000005'::{type}; diff --git a/parser/testdata/corpus/sql/cast/string_to_integer_exponent_cast.test b/parser/testdata/corpus/sql/cast/string_to_integer_exponent_cast.test index d0d1b317..8da33268 100644 --- a/parser/testdata/corpus/sql/cast/string_to_integer_exponent_cast.test +++ b/parser/testdata/corpus/sql/cast/string_to_integer_exponent_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_integer_exponent_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '1e2'::{type}; diff --git a/parser/testdata/corpus/sql/cast/string_to_integer_many_decimals.test b/parser/testdata/corpus/sql/cast/string_to_integer_many_decimals.test index b2c27c03..48015f41 100644 --- a/parser/testdata/corpus/sql/cast/string_to_integer_many_decimals.test +++ b/parser/testdata/corpus/sql/cast/string_to_integer_many_decimals.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_integer_many_decimals.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('0.' || repeat('0', 65536) || '5' AS INT), CAST('0.' || repeat('0', 65536) || '5' AS HUGEINT), CAST('-0.' || repeat('0', 65536) || '5' AS BIGINT); diff --git a/parser/testdata/corpus/sql/cast/string_to_list_cast.test b/parser/testdata/corpus/sql/cast/string_to_list_cast.test index 9b197578..268dffed 100644 --- a/parser/testdata/corpus/sql/cast/string_to_list_cast.test +++ b/parser/testdata/corpus/sql/cast/string_to_list_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_list_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '[12,13,14]'::INT[]; diff --git a/parser/testdata/corpus/sql/cast/string_to_list_escapes.test b/parser/testdata/corpus/sql/cast/string_to_list_escapes.test index 9f9f78a5..8a5783cf 100644 --- a/parser/testdata/corpus/sql/cast/string_to_list_escapes.test +++ b/parser/testdata/corpus/sql/cast/string_to_list_escapes.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_list_escapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT $$[hello, world]$$::VARCHAR[]; diff --git a/parser/testdata/corpus/sql/cast/string_to_list_roundtrip.test b/parser/testdata/corpus/sql/cast/string_to_list_roundtrip.test index b46c3e86..14cf3917 100644 --- a/parser/testdata/corpus/sql/cast/string_to_list_roundtrip.test +++ b/parser/testdata/corpus/sql/cast/string_to_list_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_list_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select $$[\"abc\", def, ghi]$$::VARCHAR[] a, a::VARCHAR::VARCHAR[] b, a == b diff --git a/parser/testdata/corpus/sql/cast/string_to_map_escapes.test b/parser/testdata/corpus/sql/cast/string_to_map_escapes.test index 8122c032..7c4bcdc9 100644 --- a/parser/testdata/corpus/sql/cast/string_to_map_escapes.test +++ b/parser/testdata/corpus/sql/cast/string_to_map_escapes.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_map_escapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/cast/string_to_map_invalid_entries.test b/parser/testdata/corpus/sql/cast/string_to_map_invalid_entries.test index ea9bc3c6..bcb1811b 100644 --- a/parser/testdata/corpus/sql/cast/string_to_map_invalid_entries.test +++ b/parser/testdata/corpus/sql/cast/string_to_map_invalid_entries.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_map_invalid_entries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('{null=1,k=2}' AS MAP(VARCHAR, INTEGER)); diff --git a/parser/testdata/corpus/sql/cast/string_to_map_null_keys.test b/parser/testdata/corpus/sql/cast/string_to_map_null_keys.test index 6dde5fd4..45fe8ab3 100644 --- a/parser/testdata/corpus/sql/cast/string_to_map_null_keys.test +++ b/parser/testdata/corpus/sql/cast/string_to_map_null_keys.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_map_null_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 a, 2 b) TO '__TEST_DIR__/string_to_map_null_keys.csv'; diff --git a/parser/testdata/corpus/sql/cast/string_to_struct_cast.test b/parser/testdata/corpus/sql/cast/string_to_struct_cast.test index ac26cb91..886c5e03 100644 --- a/parser/testdata/corpus/sql/cast/string_to_struct_cast.test +++ b/parser/testdata/corpus/sql/cast/string_to_struct_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_struct_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{key_A:0}'::STRUCT(key_A INT); diff --git a/parser/testdata/corpus/sql/cast/string_to_struct_escapes.test b/parser/testdata/corpus/sql/cast/string_to_struct_escapes.test index dd84ce21..3ff42089 100644 --- a/parser/testdata/corpus/sql/cast/string_to_struct_escapes.test +++ b/parser/testdata/corpus/sql/cast/string_to_struct_escapes.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_struct_escapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select $$[{'a': test}, {'a': NULL}, {'a': 'null'}, {'a': 'nUlL'}, {'a': NULL}, {'a': NULLz}, {'a': 'NULL'}]$$::STRUCT(a VARCHAR)[] a, a::VARCHAR::STRUCT(a VARCHAR)[] b, a IS NOT DISTINCT FROM b diff --git a/parser/testdata/corpus/sql/cast/string_to_struct_variant_child.test b/parser/testdata/corpus/sql/cast/string_to_struct_variant_child.test index 8a36dd49..0cb5b6ea 100644 --- a/parser/testdata/corpus/sql/cast/string_to_struct_variant_child.test +++ b/parser/testdata/corpus/sql/cast/string_to_struct_variant_child.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_struct_variant_child.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{"v":"hello"}'::STRUCT(v VARIANT); diff --git a/parser/testdata/corpus/sql/cast/string_to_unnamed_struct.test b/parser/testdata/corpus/sql/cast/string_to_unnamed_struct.test index c17fa891..3948ea73 100644 --- a/parser/testdata/corpus/sql/cast/string_to_unnamed_struct.test +++ b/parser/testdata/corpus/sql/cast/string_to_unnamed_struct.test @@ -1,6 +1,6 @@ # source: test/sql/cast/string_to_unnamed_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select [row('a'), $$(abc)$$] diff --git a/parser/testdata/corpus/sql/cast/struct_cast_can_throw.test b/parser/testdata/corpus/sql/cast/struct_cast_can_throw.test new file mode 100644 index 00000000..49db400d --- /dev/null +++ b/parser/testdata/corpus/sql/cast/struct_cast_can_throw.test @@ -0,0 +1,165 @@ +# source: test/sql/cast/struct_cast_can_throw.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE structs(s STRUCT(a INTEGER, b TINYINT)); +-- +ok +== +INSERT INTO structs VALUES ({'a': 100000, 'b': 1}); +-- +ok +== +SELECT CAST(s AS STRUCT(b BIGINT, a SMALLINT)) FROM structs +-- +ok +== +SELECT CAST({'a': 100000, 'b': 1::TINYINT} AS STRUCT(b BIGINT, a SMALLINT)) +-- +ok +== +SELECT CAST(s AS STRUCT(a SMALLINT, b BIGINT)) FROM structs +-- +ok +== +SELECT TRY_CAST(s AS STRUCT(b BIGINT, a SMALLINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(b SMALLINT, a BIGINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(a BIGINT, b BIGINT, c BIGINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(b BIGINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(b SMALLINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(a SMALLINT, b BIGINT, c BIGINT)) FROM structs +-- +ok +== +SELECT CAST(s AS STRUCT(z INTEGER)) FROM structs +-- +ok +== +CREATE TABLE struct_lists(l STRUCT(a INTEGER, b TINYINT)[]); +-- +ok +== +INSERT INTO struct_lists VALUES ([{'a': 100000, 'b': 1}]); +-- +ok +== +SELECT CAST(l AS STRUCT(b BIGINT, a SMALLINT)[]) FROM struct_lists +-- +ok +== +SELECT CAST(l AS STRUCT(b SMALLINT, a BIGINT)[]) FROM struct_lists +-- +ok +== +CREATE TABLE struct_maps(m MAP(INTEGER, STRUCT(a INTEGER, b TINYINT))); +-- +ok +== +INSERT INTO struct_maps VALUES (MAP {1: {'a': 100000, 'b': 1}}); +-- +ok +== +SELECT CAST(m AS MAP(INTEGER, STRUCT(b BIGINT, a SMALLINT))) FROM struct_maps +-- +ok +== +SELECT CAST(m AS MAP(INTEGER, STRUCT(b SMALLINT, a BIGINT))) FROM struct_maps +-- +ok +== +CREATE TABLE merge_keys(m MAP(STRUCT(a INTEGER, b INTEGER), INTEGER)); +-- +ok +== +INSERT INTO merge_keys VALUES (map([{'a': 1, 'b': 10}, {'a': 1, 'b': 20}], [100, 200])); +-- +ok +== +SELECT CAST(m AS MAP(STRUCT(a BIGINT), INTEGER)) FROM merge_keys +-- +ok +== +SELECT CAST(m AS MAP(STRUCT(b BIGINT), INTEGER)) FROM merge_keys +-- +ok +== +CREATE TABLE double_keys(m MAP(BIGINT, INTEGER)); +-- +ok +== +INSERT INTO double_keys VALUES (map([9007199254740993, 9007199254740992], [1, 2])); +-- +ok +== +SELECT CAST(m AS MAP(DOUBLE, INTEGER)) FROM double_keys +-- +ok +== +SELECT CAST(m AS MAP(HUGEINT, INTEGER)) FROM double_keys +-- +ok +== +CREATE TABLE nested(s STRUCT(x STRUCT(a INTEGER, b TINYINT), y INTEGER)); +-- +ok +== +INSERT INTO nested VALUES ({'x': {'a': 100000, 'b': 1}, 'y': 1}); +-- +ok +== +SELECT CAST(s AS STRUCT(y BIGINT, x STRUCT(b BIGINT, a SMALLINT))) FROM nested +-- +ok +== +SELECT CAST(s AS STRUCT(y BIGINT, x STRUCT(b SMALLINT, a BIGINT))) FROM nested +-- +ok +== +CREATE TABLE unnamed(x INTEGER, y TINYINT); +-- +ok +== +INSERT INTO unnamed VALUES (100000, 1); +-- +ok +== +SELECT CAST(ROW(x, y) AS STRUCT(a SMALLINT, b BIGINT)) FROM unnamed +-- +ok +== +SELECT CAST(ROW(x, y) AS STRUCT(a BIGINT, b SMALLINT)) FROM unnamed +-- +ok +== +SELECT CAST(ROW(x, y) AS STRUCT(a BIGINT)) FROM unnamed +-- +ok +== +CREATE TABLE guarded(g VARCHAR, s STRUCT(a INTEGER, b TINYINT)); +-- +ok +== +INSERT INTO guarded VALUES ('keep', {'a': 1, 'b': 1}), ('keep', {'a': 100000, 'b': 2}); +-- +ok +== +SELECT g FROM guarded WHERE g LIKE 'ke%' OR CAST(s AS STRUCT(b BIGINT, a SMALLINT)) = {'b': 1, 'a': 1}::STRUCT(b BIGINT, a SMALLINT) +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/struct_from_string_duplicate_keys.test b/parser/testdata/corpus/sql/cast/struct_from_string_duplicate_keys.test new file mode 100644 index 00000000..15a7f587 --- /dev/null +++ b/parser/testdata/corpus/sql/cast/struct_from_string_duplicate_keys.test @@ -0,0 +1,25 @@ +# source: test/sql/cast/struct_from_string_duplicate_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT '{a: 1, a: 2}'::STRUCT(a INT); +-- +ok +== +SELECT '{a: x, a: 2}'::STRUCT(a INT); +-- +ok +== +SELECT TRY_CAST('{a: 1, a: 2}' AS STRUCT(a INT)); +-- +ok +== +SELECT '{b: 2, a: 1}'::STRUCT(a INT, b INT); +-- +ok +== +SELECT TRY_CAST(s AS STRUCT(a INT)) FROM (VALUES ('{a: 1}'), ('{a: 1, a: 2}'), ('{a: 3}')) t(s); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/struct_to_map.test b/parser/testdata/corpus/sql/cast/struct_to_map.test index f31b54c3..059ed274 100644 --- a/parser/testdata/corpus/sql/cast/struct_to_map.test +++ b/parser/testdata/corpus/sql/cast/struct_to_map.test @@ -1,6 +1,6 @@ # source: test/sql/cast/struct_to_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {"name": 'Alice', "city": 'NYC'}::MAP(VARCHAR, VARCHAR); diff --git a/parser/testdata/corpus/sql/cast/struct_to_map_null_cast.test b/parser/testdata/corpus/sql/cast/struct_to_map_null_cast.test new file mode 100644 index 00000000..1387ae3c --- /dev/null +++ b/parser/testdata/corpus/sql/cast/struct_to_map_null_cast.test @@ -0,0 +1,37 @@ +# source: test/sql/cast/struct_to_map_null_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT NULL::STRUCT(k VARCHAR, i BIGINT)::MAP(BIGINT, BIGINT); +-- +ok +== +SELECT list_extract([struct_pack(k := k, i := 1)], 5)::MAP(BIGINT, BIGINT) +FROM (VALUES ('a'),('b')) t(k); +-- +ok +== +CREATE TABLE t AS SELECT * FROM (VALUES (1::BIGINT, 'a', 10::BIGINT)) v(i, k, j); +-- +ok +== +SELECT min(struct_pack(k := k, i := i)) FILTER (WHERE j < 0)::MAP(BIGINT, BIGINT) +FROM t GROUP BY i; +-- +ok +== +SELECT (CASE WHEN i % 2 = 0 THEN NULL ELSE {'1': i, '2': i * 10} END)::MAP(INT, INT) +FROM range(1, 5) t(i) ORDER BY i; +-- +ok +== +SELECT list_extract([struct_pack(k := k, i := 1)], 5)::MAP(VARCHAR, BIGINT) +FROM (VALUES ('a'),('b')) t(k); +-- +ok +== +SELECT {'k': 1, 'i': 2}::MAP(BIGINT, BIGINT); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/test_bit_cast.test b/parser/testdata/corpus/sql/cast/test_bit_cast.test index d990e91a..26a24bf8 100644 --- a/parser/testdata/corpus/sql/cast/test_bit_cast.test +++ b/parser/testdata/corpus/sql/cast/test_bit_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_bit_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bits (b bit); diff --git a/parser/testdata/corpus/sql/cast/test_boolean_cast.test b/parser/testdata/corpus/sql/cast/test_boolean_cast.test index 82b88ba0..55eafa83 100644 --- a/parser/testdata/corpus/sql/cast/test_boolean_cast.test +++ b/parser/testdata/corpus/sql/cast/test_boolean_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_boolean_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(1=1 AS VARCHAR) diff --git a/parser/testdata/corpus/sql/cast/test_copy_constant_vector_offset.test b/parser/testdata/corpus/sql/cast/test_copy_constant_vector_offset.test index e392ce8d..0abd674c 100644 --- a/parser/testdata/corpus/sql/cast/test_copy_constant_vector_offset.test +++ b/parser/testdata/corpus/sql/cast/test_copy_constant_vector_offset.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_copy_constant_vector_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM (SELECT TRY_CAST(l AS MAP(VARCHAR, INTEGER)[]) x FROM (SELECT list({'a': [i::INT]}) l FROM range(3000) t(i))); diff --git a/parser/testdata/corpus/sql/cast/test_exponent_in_cast.test b/parser/testdata/corpus/sql/cast/test_exponent_in_cast.test index 1ad53b80..b0952dcf 100644 --- a/parser/testdata/corpus/sql/cast/test_exponent_in_cast.test +++ b/parser/testdata/corpus/sql/cast/test_exponent_in_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_exponent_in_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('e1' AS INTEGER); diff --git a/parser/testdata/corpus/sql/cast/test_string_binary_cast.test b/parser/testdata/corpus/sql/cast/test_string_binary_cast.test index 85ae1cc7..2e9301d6 100644 --- a/parser/testdata/corpus/sql/cast/test_string_binary_cast.test +++ b/parser/testdata/corpus/sql/cast/test_string_binary_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_string_binary_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{prefix}'::INT diff --git a/parser/testdata/corpus/sql/cast/test_string_cast.test b/parser/testdata/corpus/sql/cast/test_string_cast.test index 111b572d..6e9e6d79 100644 --- a/parser/testdata/corpus/sql/cast/test_string_cast.test +++ b/parser/testdata/corpus/sql/cast/test_string_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_string_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (1=1)::VARCHAR, (1=0)::VARCHAR, NULL::BOOLEAN::VARCHAR diff --git a/parser/testdata/corpus/sql/cast/test_try_cast.test b/parser/testdata/corpus/sql/cast/test_try_cast.test index 550aacdd..ce255c6c 100644 --- a/parser/testdata/corpus/sql/cast/test_try_cast.test +++ b/parser/testdata/corpus/sql/cast/test_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/test_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('hello' as INTEGER) diff --git a/parser/testdata/corpus/sql/cast/timestamp_casts.test b/parser/testdata/corpus/sql/cast/timestamp_casts.test index 11f476e5..84304baf 100644 --- a/parser/testdata/corpus/sql/cast/timestamp_casts.test +++ b/parser/testdata/corpus/sql/cast/timestamp_casts.test @@ -1,6 +1,6 @@ # source: test/sql/cast/timestamp_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tss AS diff --git a/parser/testdata/corpus/sql/cast/timestamp_casts_icu.test b/parser/testdata/corpus/sql/cast/timestamp_casts_icu.test index 35b0365e..be20efc9 100644 --- a/parser/testdata/corpus/sql/cast/timestamp_casts_icu.test +++ b/parser/testdata/corpus/sql/cast/timestamp_casts_icu.test @@ -1,6 +1,6 @@ # source: test/sql/cast/timestamp_casts_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tstz_us AS diff --git a/parser/testdata/corpus/sql/cast/timestamp_date_cast.test b/parser/testdata/corpus/sql/cast/timestamp_date_cast.test index b722640d..519d58b0 100644 --- a/parser/testdata/corpus/sql/cast/timestamp_date_cast.test +++ b/parser/testdata/corpus/sql/cast/timestamp_date_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/timestamp_date_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as diff --git a/parser/testdata/corpus/sql/cast/try_cast_blob_to_bit.test b/parser/testdata/corpus/sql/cast/try_cast_blob_to_bit.test index 0f4ccde5..f789f9b6 100644 --- a/parser/testdata/corpus/sql/cast/try_cast_blob_to_bit.test +++ b/parser/testdata/corpus/sql/cast/try_cast_blob_to_bit.test @@ -1,6 +1,6 @@ # source: test/sql/cast/try_cast_blob_to_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST(''::BLOB AS BIT); diff --git a/parser/testdata/corpus/sql/cast/try_cast_union_impossible.test b/parser/testdata/corpus/sql/cast/try_cast_union_impossible.test new file mode 100644 index 00000000..6889d2b1 --- /dev/null +++ b/parser/testdata/corpus/sql/cast/try_cast_union_impossible.test @@ -0,0 +1,29 @@ +# source: test/sql/cast/try_cast_union_impossible.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT TRY_CAST(u AS UNION(b INT)) FROM (SELECT union_value(a:=1) u); +-- +ok +== +SELECT TRY_CAST(1 AS UNION(b VARCHAR)); +-- +ok +== +SELECT TRY(CAST(union_value(a:=1) AS UNION(b INT))); +-- +ok +== +SELECT TRY_CAST(NULL::INT AS UNION(b VARCHAR)); +-- +ok +== +SELECT CAST(union_value(a:=1) AS UNION(b INT)); +-- +ok +== +SELECT CAST(1 AS UNION(b VARCHAR)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cast/union_cast.test b/parser/testdata/corpus/sql/cast/union_cast.test index 71f723b3..fc678c15 100644 --- a/parser/testdata/corpus/sql/cast/union_cast.test +++ b/parser/testdata/corpus/sql/cast/union_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/union_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (i UNION(a INT)); diff --git a/parser/testdata/corpus/sql/cast/union_member_variant_cast.test b/parser/testdata/corpus/sql/cast/union_member_variant_cast.test index 450b2c18..b2d4739e 100644 --- a/parser/testdata/corpus/sql/cast/union_member_variant_cast.test +++ b/parser/testdata/corpus/sql/cast/union_member_variant_cast.test @@ -1,6 +1,6 @@ # source: test/sql/cast/union_member_variant_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT union_value(a := 42)::UNION(a VARIANT); diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_alter.test b/parser/testdata/corpus/sql/catalog/case_insensitive_alter.test index cffa364e..33c1fb24 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_alter.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_alter.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "MyTable"(i integer, "BigColumn" integer); diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_binder.test b/parser/testdata/corpus/sql/catalog/case_insensitive_binder.test index 6528265c..4e02653c 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_binder.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_binder.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_binder.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "MyTable"(i integer); diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_caps.test b/parser/testdata/corpus/sql/catalog/case_insensitive_caps.test index aace8b93..cc80263f 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_caps.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_caps.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_caps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mytable(mycolumn INTEGER, myothercolumn INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_cte.test b/parser/testdata/corpus/sql/catalog/case_insensitive_cte.test index 9bdf59df..e61630fe 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_cte.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_cte.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte AS (SELECT 42 "A") diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_operations.test b/parser/testdata/corpus/sql/catalog/case_insensitive_operations.test index e74eda14..1c390006 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_operations.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_operations.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_operations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE INTEGERS(I INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/case_insensitive_using.test b/parser/testdata/corpus/sql/catalog/case_insensitive_using.test index 46a9f356..153ce5c3 100644 --- a/parser/testdata/corpus/sql/catalog/case_insensitive_using.test +++ b/parser/testdata/corpus/sql/catalog/case_insensitive_using.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/case_insensitive_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table A as select 1 as "X", 2 as "Y"; diff --git a/parser/testdata/corpus/sql/catalog/comment_on.test b/parser/testdata/corpus/sql/catalog/comment_on.test index d77db2d8..84e618d5 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on.test +++ b/parser/testdata/corpus/sql/catalog/comment_on.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COMMENT ON TABLE test IS 1337 diff --git a/parser/testdata/corpus/sql/catalog/comment_on_column.test b/parser/testdata/corpus/sql/catalog/comment_on_column.test index fd7b5d0c..fcb2afdd 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_column.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_column.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW test_view AS SELECT test_table_column as test_view_column FROM test_table; diff --git a/parser/testdata/corpus/sql/catalog/comment_on_column_remote_catalog.test b/parser/testdata/corpus/sql/catalog/comment_on_column_remote_catalog.test index 673ab490..78a9d918 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_column_remote_catalog.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_column_remote_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_column_remote_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH 'quack:localhost' AS qk (TOKEN 'test_token'); diff --git a/parser/testdata/corpus/sql/catalog/comment_on_dependencies.test b/parser/testdata/corpus/sql/catalog/comment_on_dependencies.test index cdf6ed95..0188e74a 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_dependencies.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT 1 as c1 diff --git a/parser/testdata/corpus/sql/catalog/comment_on_extended.test b/parser/testdata/corpus/sql/catalog/comment_on_extended.test index 95a7b420..6a7b3cec 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_extended.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_extended.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_extended.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/comment_on_extended_1.db' AS db1 @@ -93,7 +93,7 @@ error: Parser Error: Invalid column reference: col1 == COMMENT ON COLUMN galaxy.db.schema.table.col1 IS 'no bueno' -- -error: Parser Error: Too many qualifications found - expected [catalog.schema.name] or [schema.name] +ok == COMMENT ON COLUMN table_blablabla.col1 IS 'bla' -- diff --git a/parser/testdata/corpus/sql/catalog/comment_on_pg_description.test b/parser/testdata/corpus/sql/catalog/comment_on_pg_description.test index 2f7f5521..469f133d 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_pg_description.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_pg_description.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_pg_description.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT 1 as a; diff --git a/parser/testdata/corpus/sql/catalog/comment_on_sequence_counter.test b/parser/testdata/corpus/sql/catalog/comment_on_sequence_counter.test new file mode 100644 index 00000000..f10977b9 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/comment_on_sequence_counter.test @@ -0,0 +1,25 @@ +# source: test/sql/catalog/comment_on_sequence_counter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SEQUENCE s; +-- +ok +== +SELECT nextval('s'); +-- +ok +== +COMMENT ON SEQUENCE s IS 'a comment'; +-- +ok +== +SELECT comment FROM duckdb_sequences() WHERE sequence_name = 's'; +-- +ok +== +COMMENT ON SEQUENCE s IS 'rolled back'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/comment_on_wal.test b/parser/testdata/corpus/sql/catalog/comment_on_wal.test index d766434f..1d3bf981 100644 --- a/parser/testdata/corpus/sql/catalog/comment_on_wal.test +++ b/parser/testdata/corpus/sql/catalog/comment_on_wal.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/comment_on_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold = '10.0 GB'; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_fk.test b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_fk.test index 1966360c..a772946f 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_fk.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_fk.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/add_column_to_table_referenced_by_fk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(a varchar primary key); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_macro.test b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_macro.test index 4f5aa84b..715304f3 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_macro.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/add_column_to_table_referenced_by_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(a varchar default 'abc'); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_view.test b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_view.test index 0d91ec4a..4afcd388 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_view.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/add_column_to_table_referenced_by_view.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/add_column_to_table_referenced_by_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view vw as select * from tbl; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/alter_table_keeps_schema_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/alter_table_keeps_schema_dependency.test index b322b263..5307b5ca 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/alter_table_keeps_schema_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/alter_table_keeps_schema_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/alter_table_keeps_schema_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_skip_checkpoint_on_commit=true diff --git a/parser/testdata/corpus/sql/catalog/dependencies/change_type_of_table_column_referenced_by_index.test b/parser/testdata/corpus/sql/catalog/dependencies/change_type_of_table_column_referenced_by_index.test index 46e9f44e..2f91bb5a 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/change_type_of_table_column_referenced_by_index.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/change_type_of_table_column_referenced_by_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/change_type_of_table_column_referenced_by_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(a varchar, b integer); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/drop_recreate_schema_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/drop_recreate_schema_dependency.test index 519e6702..22a3db7b 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/drop_recreate_schema_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/drop_recreate_schema_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/drop_recreate_schema_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE documents(id VARCHAR, body VARCHAR); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/remove_table_column_referenced_by_index.test b/parser/testdata/corpus/sql/catalog/dependencies/remove_table_column_referenced_by_index.test index 63c4316c..6b103235 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/remove_table_column_referenced_by_index.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/remove_table_column_referenced_by_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/remove_table_column_referenced_by_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit alter table tbl drop column a; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/rename_table_column_referenced_by_index.test b/parser/testdata/corpus/sql/catalog/dependencies/rename_table_column_referenced_by_index.test index 7859b6d3..4b440e3f 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/rename_table_column_referenced_by_index.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/rename_table_column_referenced_by_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/rename_table_column_referenced_by_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(a varchar); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/rename_view_referenced_by_table_macro.test b/parser/testdata/corpus/sql/catalog/dependencies/rename_view_referenced_by_table_macro.test index 058fa74d..a848150e 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/rename_view_referenced_by_table_macro.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/rename_view_referenced_by_table_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/rename_view_referenced_by_table_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (a varchar); diff --git a/parser/testdata/corpus/sql/catalog/dependencies/set_default_of_table_column_referenced_by_index.test b/parser/testdata/corpus/sql/catalog/dependencies/set_default_of_table_column_referenced_by_index.test index c1ce636c..cf9c4fec 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/set_default_of_table_column_referenced_by_index.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/set_default_of_table_column_referenced_by_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/set_default_of_table_column_referenced_by_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit alter table tbl alter a set default 'test'; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_dependency_ownership.test b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_dependency_ownership.test index 1f63e5e2..8c4e2741 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_dependency_ownership.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_dependency_ownership.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_alter_dependency_ownership.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE sequence1; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owned_by.test b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owned_by.test index 6489dfa6..37a1c122 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owned_by.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owned_by.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_alter_owned_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 ( diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owning_table.test b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owning_table.test index b86585fd..c76e436a 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owning_table.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_alter_owning_table.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_alter_owning_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create sequence seq; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_alter.test b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_alter.test index 8bc1b8d3..8b6810a8 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_alter.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_alter.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_concurrent_alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit alter sequence seq owned by t2; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_drop.test b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_drop.test index 2646614c..e787aa67 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_drop.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_drop.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_concurrent_drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl{i} ( diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_index_creation.test b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_index_creation.test index 5af66f2c..095c23ef 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_index_creation.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_index_creation.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_concurrent_index_creation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/concurrent_index_creation.db' AS source; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_schema_creation.test b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_schema_creation.test index 439bb954..c16f1363 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_schema_creation.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_concurrent_schema_creation.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_concurrent_schema_creation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema schema{i}; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_default_value_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_default_value_dependency.test index 31075bd8..b77e1d86 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_default_value_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_default_value_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_default_value_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER DEFAULT nextval('seq'), j INTEGER) diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_drop_column_sequence_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_column_sequence_dependency.test index 06d44f98..e9dd5229 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_drop_column_sequence_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_column_sequence_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_drop_column_sequence_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE seq2 START 1; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_drop_default_referencing_sequence.test b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_default_referencing_sequence.test index c575cb12..90e02126 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_drop_default_referencing_sequence.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_default_referencing_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_drop_default_referencing_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set wal_autocheckpoint = '10gb'; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_drop_type_table_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_type_table_dependency.test new file mode 100644 index 00000000..b8ce2894 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_drop_type_table_dependency.test @@ -0,0 +1,45 @@ +# source: test/sql/catalog/dependencies/test_drop_type_table_dependency.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TYPE name_type AS VARCHAR; +-- +ok +== +CREATE TABLE person (name name_type, current_mood mood); +-- +ok +== +CREATE TABLE moods (history mood[], last STRUCT(m mood)); +-- +ok +== +INSERT INTO person VALUES ('a', 'ok'); +-- +ok +== +DROP TYPE mood; +-- +ok +== +DROP TYPE name_type; +-- +ok +== +DROP TABLE person; +-- +ok +== +DROP TYPE mood CASCADE; +-- +ok +== +SELECT * FROM moods; +-- +ok +== +SELECT count(*) FROM duckdb_types() WHERE type_name IN ('mood', 'name_type'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_prepare_dependencies_transactions.test b/parser/testdata/corpus/sql/catalog/dependencies/test_prepare_dependencies_transactions.test index c6fd7e63..01ac88d5 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_prepare_dependencies_transactions.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_prepare_dependencies_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_prepare_dependencies_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (2), (3), (4), (5) diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_prepared_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_prepared_dependency.test index 81b4249c..cecc436e 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_prepared_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_prepared_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_prepared_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v AS SELECT * FROM integers diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_schema_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_schema_dependency.test index 9f62f9c3..c1f096f7 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_schema_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_schema_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_schema_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s1 diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_set_default_sequence_dependency.test b/parser/testdata/corpus/sql/catalog/dependencies/test_set_default_sequence_dependency.test index a6052e2c..003b8fb7 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_set_default_sequence_dependency.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_set_default_sequence_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_set_default_sequence_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE id_sequence START 1; diff --git a/parser/testdata/corpus/sql/catalog/dependencies/test_write_after_rename.test b/parser/testdata/corpus/sql/catalog/dependencies/test_write_after_rename.test index abba0752..bdba0164 100644 --- a/parser/testdata/corpus/sql/catalog/dependencies/test_write_after_rename.test +++ b/parser/testdata/corpus/sql/catalog/dependencies/test_write_after_rename.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/dependencies/test_write_after_rename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (i integer); diff --git a/parser/testdata/corpus/sql/catalog/did_you_mean.test b/parser/testdata/corpus/sql/catalog/did_you_mean.test index bcaeff4b..25066c1b 100644 --- a/parser/testdata/corpus/sql/catalog/did_you_mean.test +++ b/parser/testdata/corpus/sql/catalog/did_you_mean.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/did_you_mean.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test.bye(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/drop_create_rollback.test b/parser/testdata/corpus/sql/catalog/drop_create_rollback.test index 8a9052ae..14f8a6a5 100644 --- a/parser/testdata/corpus/sql/catalog/drop_create_rollback.test +++ b/parser/testdata/corpus/sql/catalog/drop_create_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/drop_create_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 CHAR(5)); diff --git a/parser/testdata/corpus/sql/catalog/function/attached_macro.test b/parser/testdata/corpus/sql/catalog/function/attached_macro.test index b2927cb8..c5f22895 100644 --- a/parser/testdata/corpus/sql/catalog/function/attached_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/attached_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/attached_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS checksum_macro; diff --git a/parser/testdata/corpus/sql/catalog/function/builtin_macro_parser_settings.test b/parser/testdata/corpus/sql/catalog/function/builtin_macro_parser_settings.test index 6eca651f..e2c0699f 100644 --- a/parser/testdata/corpus/sql/catalog/function/builtin_macro_parser_settings.test +++ b/parser/testdata/corpus/sql/catalog/function/builtin_macro_parser_settings.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/builtin_macro_parser_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET integer_division = true; diff --git a/parser/testdata/corpus/sql/catalog/function/information_schema_macro.test b/parser/testdata/corpus/sql/catalog/function/information_schema_macro.test index 4782df24..4ed0374e 100644 --- a/parser/testdata/corpus/sql/catalog/function/information_schema_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/information_schema_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/information_schema_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create macro information_schema.foo(a) as a; diff --git a/parser/testdata/corpus/sql/catalog/function/macro_query_table.test b/parser/testdata/corpus/sql/catalog/function/macro_query_table.test index d72e9cdc..214b6a2a 100644 --- a/parser/testdata/corpus/sql/catalog/function/macro_query_table.test +++ b/parser/testdata/corpus/sql/catalog/function/macro_query_table.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/macro_query_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create macro min_from_tbl(tbl, col) as (select min(col) from query_table(tbl::VARCHAR)); diff --git a/parser/testdata/corpus/sql/catalog/function/python_style_macro_parameters.test b/parser/testdata/corpus/sql/catalog/function/python_style_macro_parameters.test index eccf0756..9f944f28 100644 --- a/parser/testdata/corpus/sql/catalog/function/python_style_macro_parameters.test +++ b/parser/testdata/corpus/sql/catalog/function/python_style_macro_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/python_style_macro_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace macro m(a := 'a', b := 'b') as a || b diff --git a/parser/testdata/corpus/sql/catalog/function/query_function.test b/parser/testdata/corpus/sql/catalog/function/query_function.test index 1e9127bc..4cedde42 100644 --- a/parser/testdata/corpus/sql/catalog/function/query_function.test +++ b/parser/testdata/corpus/sql/catalog/function/query_function.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/query_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM query('SELECT 42'); @@ -59,10 +59,6 @@ SELECT * FROM query('WITH a(i) AS (SELECT 1) SELECT a1.i AS i1, a2.i AS i2 FROM -- ok == -SELECT * FROM query(NULL); --- -error: Parser Error: syntax error at or near "NULL" -== SELECT * FROM query(' '); -- error: Parser Error: Expected a single SELECT statement diff --git a/parser/testdata/corpus/sql/catalog/function/query_function.test.metadata.json b/parser/testdata/corpus/sql/catalog/function/query_function.test.metadata.json index bda74b15..a778371b 100644 --- a/parser/testdata/corpus/sql/catalog/function/query_function.test.metadata.json +++ b/parser/testdata/corpus/sql/catalog/function/query_function.test.metadata.json @@ -1,7 +1,6 @@ { "skip": { "5f81be9e9bc42318": "nested parse at bind time: the inner SQL string is parsed by a function, the grammar never sees it", - "b239297cf4a74a7c": "nested parse at bind time: the inner SQL string is parsed by a function, the grammar never sees it", "f84558899aa09cea": "nested parse at bind time: the inner SQL string is parsed by a function, the grammar never sees it" }, "todo": { diff --git a/parser/testdata/corpus/sql/catalog/function/query_table_file_paths.test b/parser/testdata/corpus/sql/catalog/function/query_table_file_paths.test index cdac8c25..c71b95f6 100644 --- a/parser/testdata/corpus/sql/catalog/function/query_table_file_paths.test +++ b/parser/testdata/corpus/sql/catalog/function/query_table_file_paths.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/query_table_file_paths.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 AS x) TO '{TEST_DIR}/query_table_path.parquet' diff --git a/parser/testdata/corpus/sql/catalog/function/struct_extract_macro.test b/parser/testdata/corpus/sql/catalog/function/struct_extract_macro.test index 6b90b605..d513fb5c 100644 --- a/parser/testdata/corpus/sql/catalog/function/struct_extract_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/struct_extract_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/struct_extract_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO my_extract(x) AS x.a.b diff --git a/parser/testdata/corpus/sql/catalog/function/test_complex_macro.test b/parser/testdata/corpus/sql/catalog/function/test_complex_macro.test index 108ca901..f4f55b57 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_complex_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_complex_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_complex_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (a INT) diff --git a/parser/testdata/corpus/sql/catalog/function/test_cross_catalog_macros.test b/parser/testdata/corpus/sql/catalog/function/test_cross_catalog_macros.test index 8e3a1201..2fecf2c3 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_cross_catalog_macros.test +++ b/parser/testdata/corpus/sql/catalog/function/test_cross_catalog_macros.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_cross_catalog_macros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO my_first_macro() AS (84) diff --git a/parser/testdata/corpus/sql/catalog/function/test_cte_macro.test b/parser/testdata/corpus/sql/catalog/function/test_cte_macro.test index 19b324ef..7c3f318f 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_cte_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_cte_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_cte_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO parameterized_cte(a) AS (WITH cte AS (SELECT a AS answer) SELECT answer FROM cte) diff --git a/parser/testdata/corpus/sql/catalog/function/test_drop_macro.test b/parser/testdata/corpus/sql/catalog/function/test_drop_macro.test index 78db4df6..acca137f 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_drop_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_drop_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_drop_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create macro m() as 42; diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_correlated_cte.test b/parser/testdata/corpus/sql/catalog/function/test_macro_correlated_cte.test index af7f6aaf..c7c384f5 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_correlated_cte.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_correlated_cte.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_correlated_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE MACRO test_21890_macro(q) AS TABLE diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg.test b/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg.test index 7212bcbb..0a9e9207 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_default_arg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO f(x := NULL) AS x+1; diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg_with_dependencies.test b/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg_with_dependencies.test index c79f12ed..0596fd50 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg_with_dependencies.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_default_arg_with_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_default_arg_with_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/macro_default_arg.db' (STORAGE_VERSION 'v1.0.0'); diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_13104.test b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_13104.test index 0f6138cc..c1e8dfef 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_13104.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_13104.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_issue_13104.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace macro my_macro(a:=true) as a; diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_14276.test b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_14276.test index 9ee75945..bc28645b 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_14276.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_14276.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_issue_14276.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE MACRO extract_many(x, y) AS (SELECT struct_pack(*COLUMNS(z -> z in y)) FROM (SELECT unnest(x))); diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_18927.test b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_18927.test index 489d3d54..39d601de 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_18927.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_18927.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_issue_18927.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE MACRO my(s) AS s.lower().split('').aggregate('count'); diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_19119.test b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_19119.test index 238c6394..55181ab0 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_issue_19119.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_issue_19119.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_issue_19119.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (x INT); diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_overloads.test b/parser/testdata/corpus/sql/catalog/function/test_macro_overloads.test index f1d0f86e..7e35878c 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_overloads.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_overloads.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_overloads.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO multi_add diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_parameter_named_argument.test b/parser/testdata/corpus/sql/catalog/function/test_macro_parameter_named_argument.test new file mode 100644 index 00000000..deef85fd --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_parameter_named_argument.test @@ -0,0 +1,21 @@ +# source: test/sql/catalog/function/test_macro_parameter_named_argument.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO pivot_first(x) AS TABLE PIVOT (SELECT 1 k) ON k IN (1) USING first(struct_pack(a := x)); +-- +ok +== +FROM pivot_first(5) +-- +ok +== +CREATE MACRO pack_parameter(y) AS list_transform([1, 2], lambda x: struct_pack(x := y)); +-- +ok +== +SELECT pack_parameter(10) +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_positional_reference.test b/parser/testdata/corpus/sql/catalog/function/test_macro_positional_reference.test index 6499bf5c..a962ec24 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_positional_reference.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_positional_reference.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_positional_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO subtract_args(x, y) AS x - y; diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_relpersistence_conflict.test b/parser/testdata/corpus/sql/catalog/function/test_macro_relpersistence_conflict.test index fd75a18f..a2918f33 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_relpersistence_conflict.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_relpersistence_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_relpersistence_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create macro test(a, b) as a + b diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_type_overloads.test b/parser/testdata/corpus/sql/catalog/function/test_macro_type_overloads.test index 5c24a5ca..25824eec 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_type_overloads.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_type_overloads.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_type_overloads.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach ':memory:' AS inmemorydb diff --git a/parser/testdata/corpus/sql/catalog/function/test_macro_with_unknown_types.test b/parser/testdata/corpus/sql/catalog/function/test_macro_with_unknown_types.test index ff9d7a2e..0eab06b0 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_macro_with_unknown_types.test +++ b/parser/testdata/corpus/sql/catalog/function/test_macro_with_unknown_types.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_macro_with_unknown_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP MACRO m1(x, y) AS ( diff --git a/parser/testdata/corpus/sql/catalog/function/test_recursive_macro.test b/parser/testdata/corpus/sql/catalog/function/test_recursive_macro.test index 48275cb4..113f4d01 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_recursive_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_recursive_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_recursive_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO "sum"(x) AS (CASE WHEN sum(x) IS NULL THEN 0 ELSE sum(x) END); diff --git a/parser/testdata/corpus/sql/catalog/function/test_recursive_table_macro.test b/parser/testdata/corpus/sql/catalog/function/test_recursive_table_macro.test index 6b9bb415..6405730c 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_recursive_table_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_recursive_table_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_recursive_table_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO u(x) AS TABLE SELECT 1 a diff --git a/parser/testdata/corpus/sql/catalog/function/test_sequence_macro.test b/parser/testdata/corpus/sql/catalog/function/test_sequence_macro.test index f925c7fd..a03979bf 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_sequence_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_sequence_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_sequence_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (i INT) diff --git a/parser/testdata/corpus/sql/catalog/function/test_simple_macro.test b/parser/testdata/corpus/sql/catalog/function/test_simple_macro.test index 03e06d88..4c57b317 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_simple_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_simple_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_simple_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO one() AS (SELECT 1); diff --git a/parser/testdata/corpus/sql/catalog/function/test_subquery_macro.test b/parser/testdata/corpus/sql/catalog/function/test_subquery_macro.test index 7832b2fc..ca79ef0b 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_subquery_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_subquery_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_subquery_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO subquery(a) AS (SELECT a) diff --git a/parser/testdata/corpus/sql/catalog/function/test_table_macro.test b/parser/testdata/corpus/sql/catalog/function/test_table_macro.test index d2e0a664..a38709d7 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_table_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_table_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_table_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_tbl (id INT, name string); diff --git a/parser/testdata/corpus/sql/catalog/function/test_table_macro_args.test b/parser/testdata/corpus/sql/catalog/function/test_table_macro_args.test index 6ee973f1..7221a11e 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_table_macro_args.test +++ b/parser/testdata/corpus/sql/catalog/function/test_table_macro_args.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_table_macro_args.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cards_tbl (val int, name string, suit string); diff --git a/parser/testdata/corpus/sql/catalog/function/test_table_macro_complex.test b/parser/testdata/corpus/sql/catalog/function/test_table_macro_complex.test index 43b067ca..8e4adb9f 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_table_macro_complex.test +++ b/parser/testdata/corpus/sql/catalog/function/test_table_macro_complex.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_table_macro_complex.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO my_values(m,s) as TABLE select * from (values (1.0*m+s,'adam'), (2.0*m+s,'ben'), diff --git a/parser/testdata/corpus/sql/catalog/function/test_table_macro_copy.test b/parser/testdata/corpus/sql/catalog/function/test_table_macro_copy.test index a42b9821..456f3491 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_table_macro_copy.test +++ b/parser/testdata/corpus/sql/catalog/function/test_table_macro_copy.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_table_macro_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/table_macro2.db' diff --git a/parser/testdata/corpus/sql/catalog/function/test_table_macro_groups.test b/parser/testdata/corpus/sql/catalog/function/test_table_macro_groups.test index 78c460e3..83535f21 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_table_macro_groups.test +++ b/parser/testdata/corpus/sql/catalog/function/test_table_macro_groups.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_table_macro_groups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE car_pool ( diff --git a/parser/testdata/corpus/sql/catalog/function/test_window_macro.test b/parser/testdata/corpus/sql/catalog/function/test_window_macro.test index 41001e12..5b0e2f0a 100644 --- a/parser/testdata/corpus/sql/catalog/function/test_window_macro.test +++ b/parser/testdata/corpus/sql/catalog/function/test_window_macro.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/function/test_window_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE MACRO my_agg(x) AS SUM(CASE WHEN x THEN 1 END); diff --git a/parser/testdata/corpus/sql/catalog/identifier_embedded_nul.test b/parser/testdata/corpus/sql/catalog/identifier_embedded_nul.test index 54f07860..c7db592d 100644 --- a/parser/testdata/corpus/sql/catalog/identifier_embedded_nul.test +++ b/parser/testdata/corpus/sql/catalog/identifier_embedded_nul.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/identifier_embedded_nul.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE secret(x INT); diff --git a/parser/testdata/corpus/sql/catalog/information_schema_read_only.test b/parser/testdata/corpus/sql/catalog/information_schema_read_only.test index b71539e8..0f6354b0 100644 --- a/parser/testdata/corpus/sql/catalog/information_schema_read_only.test +++ b/parser/testdata/corpus/sql/catalog/information_schema_read_only.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/information_schema_read_only.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE system.information_schema.tbl(i INT) diff --git a/parser/testdata/corpus/sql/catalog/issue_9459.test b/parser/testdata/corpus/sql/catalog/issue_9459.test index d723db24..119a56f9 100644 --- a/parser/testdata/corpus/sql/catalog/issue_9459.test +++ b/parser/testdata/corpus/sql/catalog/issue_9459.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/issue_9459.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema """cursed_schema"; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/create_nested_schema.test b/parser/testdata/corpus/sql/catalog/nested_schema/create_nested_schema.test index 573446d7..3c0ec4da 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/create_nested_schema.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/create_nested_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/create_nested_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA memory.s2; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/deeply_nested_entries.test b/parser/testdata/corpus/sql/catalog/nested_schema/deeply_nested_entries.test index 9de5a239..4cf0852e 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/deeply_nested_entries.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/deeply_nested_entries.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/deeply_nested_entries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s1.s2; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema.test b/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema.test index db50d131..c7645812 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/drop_nested_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s1.sibling; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema_persist.test b/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema_persist.test index 5854b915..0f6f4c00 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema_persist.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/drop_nested_schema_persist.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/drop_nested_schema_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA parent; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_alter.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_alter.test index 66672687..bbba62b8 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_alter.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_alter.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.s2.t(i INTEGER, j INTEGER); @@ -167,3 +167,63 @@ SELECT database_name, schema_name, table_name FROM duckdb_tables() WHERE table_n -- ok == +CREATE SCHEMA deep; +-- +ok +== +CREATE SCHEMA deep.mid; +-- +ok +== +CREATE SCHEMA deep.mid.bottom; +-- +ok +== +CREATE TABLE deep.mid.bottom.t (id INTEGER); +-- +ok +== +CREATE VIEW deep.mid.v AS SELECT 1 AS id; +-- +ok +== +CREATE SEQUENCE deep.mid.seq; +-- +ok +== +COMMENT ON TABLE deep.mid.bottom.t IS 'deep table'; +-- +ok +== +SELECT comment FROM duckdb_tables() WHERE table_name = 't' AND schema_name = 'bottom'; +-- +ok +== +COMMENT ON COLUMN deep.mid.bottom.t.id IS 'deep column'; +-- +ok +== +SELECT comment FROM duckdb_columns() WHERE column_name = 'id' AND table_name = 't' AND schema_name = 'bottom'; +-- +ok +== +COMMENT ON VIEW memory.deep.mid.v IS 'deep view'; +-- +ok +== +SELECT comment FROM duckdb_views() WHERE view_name = 'v'; +-- +ok +== +COMMENT ON SEQUENCE deep.mid.seq IS 'deep sequence'; +-- +ok +== +SELECT comment FROM duckdb_sequences() WHERE sequence_name = 'seq' AND schema_name = 'mid'; +-- +ok +== +COMMENT ON TABLE deep.mid.nope.t IS 'x'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_constraints.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_constraints.test index a348050f..8f7a00bd 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_constraints.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.s2.pk(i INTEGER PRIMARY KEY, s VARCHAR UNIQUE); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_index.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_index.test new file mode 100644 index 00000000..52327861 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_index.test @@ -0,0 +1,77 @@ +# source: test/sql/catalog/nested_schema/nested_drop_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS lake; +-- +ok +== +USE lake; +-- +ok +== +CREATE SCHEMA lake.a; +-- +ok +== +CREATE SCHEMA lake.a.b; +-- +ok +== +CREATE SCHEMA lake.a.b.c; +-- +ok +== +CREATE TABLE lake.a.b.c.t(i INTEGER); +-- +ok +== +CREATE INDEX idx ON lake.a.b.c.t(i); +-- +ok +== +DROP INDEX lake.a.b.c.idx; +-- +ok +== +DROP INDEX IF EXISTS lake.a.b.c.idx; +-- +ok +== +DROP INDEX a.b.c.idx; +-- +ok +== +SELECT count(*) FROM duckdb_indexes() WHERE database_name = 'lake'; +-- +ok +== +CREATE SCHEMA lake.a.b.c."d.e"; +-- +ok +== +CREATE TABLE lake.a.b.c."d.e".t(i INTEGER); +-- +ok +== +CREATE INDEX "i""x" ON lake.a.b.c."d.e".t(i); +-- +ok +== +DROP INDEX lake.a.b.c."d.e"."i""x"; +-- +ok +== +CREATE TABLE lake.a.t(i INTEGER); +-- +ok +== +CREATE INDEX idx ON lake.a.t(i); +-- +ok +== +SELECT schema_name FROM duckdb_indexes() WHERE database_name = 'lake' AND index_name = 'idx'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_sequence.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_sequence.test new file mode 100644 index 00000000..e4c953fd --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_drop_sequence.test @@ -0,0 +1,45 @@ +# source: test/sql/catalog/nested_schema/nested_drop_sequence.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SEQUENCE lake.a.b.c.seq; +-- +ok +== +SELECT nextval('lake.a.b.c.seq'); +-- +ok +== +DROP SEQUENCE lake.a.b.c.seq; +-- +ok +== +DROP SEQUENCE IF EXISTS lake.a.b.c.seq; +-- +ok +== +DROP SEQUENCE a.b.c.seq; +-- +ok +== +SELECT count(*) FROM duckdb_sequences() WHERE database_name = 'lake'; +-- +ok +== +CREATE SEQUENCE lake.a.b.c."d.e"."s""q"; +-- +ok +== +DROP SEQUENCE lake.a.b.c."d.e"."s""q"; +-- +ok +== +CREATE SEQUENCE lake.a.seq START 7; +-- +ok +== +SELECT nextval('lake.a.seq'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries.test index 2d0b8f27..6d21f008 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_entries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.s2.t(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries_persist.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries_persist.test index 131d85c0..cbfba97a 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries_persist.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_entries_persist.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_entries_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent.child.t(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_export.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_export.test index f9863a71..1798618a 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_export.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_export.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.s2.t(i INTEGER PRIMARY KEY, s VARCHAR); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_foreign_key_paths.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_foreign_key_paths.test new file mode 100644 index 00000000..e04f3573 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_foreign_key_paths.test @@ -0,0 +1,122 @@ +# source: test/sql/catalog/nested_schema/nested_foreign_key_paths.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SCHEMA a.b.s; +-- +ok +== +CREATE TABLE a.b.s.pk(id INTEGER PRIMARY KEY); +-- +ok +== +CREATE TABLE s.pk(id INTEGER PRIMARY KEY); +-- +ok +== +INSERT INTO a.b.s.pk VALUES (1); +-- +ok +== +INSERT INTO s.pk VALUES (2); +-- +ok +== +CREATE TABLE s.fk(id INTEGER REFERENCES a.b.s.pk(id)); +-- +ok +== +CREATE TABLE a.b.s.fk(id INTEGER REFERENCES s.pk(id)); +-- +ok +== +CREATE TABLE a.b.s.fk(id INTEGER REFERENCES a.b.s.pk(id)); +-- +ok +== +CREATE TABLE a.b.s.fq(id INTEGER REFERENCES nested_foreign_key_paths.a.b.s.pk(id)); +-- +ok +== +CREATE TABLE a.b.s.local_fk(id INTEGER REFERENCES pk(id)); +-- +ok +== +INSERT INTO a.b.s.fk VALUES (1); +-- +ok +== +INSERT INTO a.b.s.fq VALUES (1); +-- +ok +== +INSERT INTO a.b.s.local_fk VALUES (1); +-- +ok +== +INSERT INTO a.b.s.fk VALUES (2); +-- +ok +== +SELECT count(*) FROM duckdb_tables() +WHERE table_name IN ('fk', 'fq', 'local_fk') AND sql LIKE '%REFERENCES a.b.s.pk(id)%'; +-- +ok +== +CREATE TABLE s.fk(id INTEGER PRIMARY KEY, parent INTEGER REFERENCES a.b.s.fk(id)); +-- +ok +== +CREATE TABLE a.b.s.self_ok(id INTEGER PRIMARY KEY, parent INTEGER REFERENCES a.b.s.self_ok(id)); +-- +ok +== +INSERT INTO a.b.s.self_ok VALUES (1, NULL); +-- +ok +== +INSERT INTO a.b.s.self_ok VALUES (2, 1); +-- +ok +== +SELECT sql LIKE '%REFERENCES a.b.s.self_ok(id)%' FROM duckdb_tables() WHERE table_name = 'self_ok'; +-- +ok +== +CREATE SCHEMA a.b."s.x"; +-- +ok +== +CREATE TABLE a.b."s.x".pk(id INTEGER PRIMARY KEY); +-- +ok +== +CREATE TABLE a.b."s.x".quoted_fk(id INTEGER REFERENCES a.b."s.x".pk(id)); +-- +ok +== +SELECT sql LIKE '%REFERENCES a.b."s.x".pk(id)%' FROM duckdb_tables() WHERE table_name = 'quoted_fk'; +-- +ok +== +SELECT * FROM a.b.s.fk; +-- +ok +== +SELECT * FROM a.b.s.self_ok ORDER BY id; +-- +ok +== +CREATE SCHEMA other.s; +-- +ok +== +CREATE TABLE other.s.pk(id INTEGER PRIMARY KEY); +-- +ok +== +CREATE TABLE s.cross_catalog(id INTEGER REFERENCES other.s.pk(id)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_main_schema.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_main_schema.test new file mode 100644 index 00000000..3734640d --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_main_schema.test @@ -0,0 +1,57 @@ +# source: test/sql/catalog/nested_schema/nested_main_schema.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_main_schema.db' AS nested_main_schema (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE nested_main_schema; +-- +ok +== +CREATE SCHEMA main.sub; +-- +ok +== +CREATE TABLE main.sub.t AS SELECT 7 AS i; +-- +ok +== +SELECT * FROM main.sub.t; +-- +ok +== +SELECT * FROM nested_main_schema.main.sub.t; +-- +ok +== +CREATE MACRO main.sub.f() AS 8; +-- +ok +== +SELECT main.sub.f(); +-- +ok +== +CREATE VIEW main.sub.v AS SELECT * FROM main.sub.t; +-- +ok +== +SELECT * FROM main.sub.v; +-- +ok +== +CREATE TABLE main.sub.t AS SELECT 9 AS i; +-- +ok +== +CREATE TABLE t AS SELECT 10 AS i; +-- +ok +== +CREATE TEMP TABLE t AS SELECT 99 AS i; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_missing_entries.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_missing_entries.test new file mode 100644 index 00000000..2f4d76fe --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_missing_entries.test @@ -0,0 +1,53 @@ +# source: test/sql/catalog/nested_schema/nested_missing_entries.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_missing_entries.db' AS nested_missing_entries (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE nested_missing_entries; +-- +ok +== +CREATE SCHEMA a.b.c; +-- +ok +== +SELECT a.b.c.nope(1); +-- +ok +== +CREATE TABLE a.b.c.nested_hint_table(i INTEGER); +-- +ok +== +SELECT * FROM nested_hint_tabl; +-- +ok +== +CREATE MACRO a.b.c.nested_hint_function(x) AS x; +-- +ok +== +SELECT nested_hint_functio(1); +-- +ok +== +SELECT a.b.c.nested_hint_functio(1); +-- +ok +== +CREATE MACRO a.b.c.tabular() AS TABLE SELECT 1 AS i; +-- +ok +== +SELECT a.b.c.tabular(); +-- +ok +== +SELECT nested_missing_entries.a.b.c.nested_hint_function(42); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_limits.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_limits.test index 9f9ec1a4..7c881398 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_limits.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_limits.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_schema_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO s1.s2.t VALUES (1); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_search_path.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_search_path.test new file mode 100644 index 00000000..3208e86b --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_search_path.test @@ -0,0 +1,229 @@ +# source: test/sql/catalog/nested_schema/nested_schema_search_path.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SCHEMA p; +-- +ok +== +CREATE SCHEMA p.s; +-- +ok +== +CREATE TABLE p.s.audit(x INTEGER); +-- +ok +== +CREATE TABLE s.audit(x INTEGER); +-- +ok +== +INSERT INTO p.s.audit VALUES (1); +-- +ok +== +INSERT INTO s.audit VALUES (2); +-- +ok +== +CREATE TABLE s.only_top(x INTEGER); +-- +ok +== +CREATE MACRO p.s.f() AS 1; +-- +ok +== +CREATE MACRO s.f() AS 2; +-- +ok +== +CREATE TYPE p.s.mood AS ENUM ('nested'); +-- +ok +== +CREATE TYPE s.mood AS ENUM ('top'); +-- +ok +== +CREATE VIEW p.s.v AS SELECT x FROM audit; +-- +ok +== +SELECT x FROM p.s.v +-- +ok +== +CREATE VIEW p.s.v_macro AS SELECT f() AS y; +-- +ok +== +SELECT y FROM p.s.v_macro +-- +ok +== +CREATE VIEW p.s.v_type AS SELECT 'nested'::mood AS m; +-- +ok +== +SELECT m FROM p.s.v_type +-- +ok +== +SELECT name, type FROM pragma_table_info('p.s.v_type') +-- +ok +== +CREATE VIEW p.s.v_top AS SELECT x FROM s.audit; +-- +ok +== +SELECT x FROM p.s.v_top +-- +ok +== +CREATE VIEW p.s.v_only_top AS SELECT x FROM only_top; +-- +ok +== +CREATE SCHEMA p.inner; +-- +ok +== +CREATE TABLE p.inner.t AS SELECT 5 AS x; +-- +ok +== +CREATE VIEW p.inner.v AS SELECT x FROM t; +-- +ok +== +SELECT x FROM p.inner.v +-- +ok +== +CREATE TABLE p.s.t(m mood); +-- +ok +== +INSERT INTO p.s.t VALUES ('nested'); +-- +ok +== +ALTER TABLE p.s.t ADD COLUMN m2 mood; +-- +ok +== +ALTER TABLE p.s.t ADD COLUMN c VARCHAR; +-- +ok +== +INSERT INTO p.s.t VALUES ('nested', 'nested', 'nested'); +-- +ok +== +ALTER TABLE p.s.t ALTER c TYPE mood; +-- +ok +== +SELECT DISTINCT typeof(m), typeof(m2), typeof(c) FROM p.s.t +-- +ok +== +CREATE TABLE p.s.d(id INTEGER, y INTEGER DEFAULT f()); +-- +ok +== +INSERT INTO p.s.d (id) VALUES (1); +-- +ok +== +INSERT INTO p.s.d VALUES (2, 0); +-- +ok +== +UPDATE p.s.d SET y = DEFAULT WHERE id = 2; +-- +ok +== +ALTER TABLE p.s.d ADD COLUMN z INTEGER DEFAULT f(); +-- +ok +== +SELECT id, y, z FROM p.s.d ORDER BY id +-- +ok +== +ATTACH ':memory:' AS nested_db; +-- +ok +== +CREATE SCHEMA nested_db.p; +-- +ok +== +CREATE SCHEMA nested_db.p.s; +-- +ok +== +CREATE SCHEMA nested_db.s; +-- +ok +== +CREATE TABLE nested_db.p.s.audit AS SELECT 1 AS x; +-- +ok +== +CREATE TABLE nested_db.s.audit AS SELECT 2 AS x; +-- +ok +== +CREATE TABLE nested_db.audit AS SELECT 3 AS x; +-- +ok +== +CREATE VIEW nested_db.p.s.v AS SELECT x FROM nested_db.audit; +-- +ok +== +SELECT x FROM nested_db.p.s.v +-- +ok +== +CREATE VIEW nested_db.s.v AS SELECT x FROM nested_db.audit; +-- +ok +== +SELECT x FROM nested_db.s.v +-- +ok +== +ATTACH '{TEST_DIR}/nested_schema_search_path_dt.db' AS dt (DEFAULT_TABLE 'my_table'); +-- +ok +== +CREATE TABLE dt.my_table AS SELECT 1 AS x; +-- +ok +== +CREATE TABLE p.s.dt AS SELECT 2 AS x; +-- +ok +== +CREATE VIEW p.s.v_dt AS SELECT x FROM dt; +-- +ok +== +SET checkpoint_threshold = '10GB'; +-- +ok +== +INSERT INTO p.s.d (id) VALUES (3); +-- +ok +== +SELECT y, z FROM p.s.d WHERE id = 3 +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_storage_version.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_storage_version.test index 7f592386..9c356021 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_storage_version.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_schema_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_schema_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS mem; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path.test new file mode 100644 index 00000000..4837599a --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path.test @@ -0,0 +1,253 @@ +# source: test/sql/catalog/nested_schema/nested_search_path.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_search_path.db' AS nested_search_path (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE nested_search_path; +-- +ok +== +CREATE SCHEMA lake.s3tablescatalog; +-- +ok +== +CREATE SCHEMA lake.s3tablescatalog.salesdemo; +-- +ok +== +CREATE SCHEMA lake.s3tablescatalog.salesdemo.retail; +-- +ok +== +CREATE SCHEMA lake.retail; +-- +ok +== +CREATE TABLE lake.retail.widget_sales AS SELECT 7 AS id; +-- +ok +== +CREATE TABLE lake.s3tablescatalog.salesdemo.retail.widget_sales AS SELECT 42 AS id; +-- +ok +== +PREPARE current_namespace AS SELECT database_name, schema_name FROM (SHOW SCHEMAS) WHERE current; +-- +ok +== +EXECUTE current_namespace; +-- +ok +== +USE lake.s3tablescatalog.salesdemo.retail; +-- +ok +== +SELECT * FROM widget_sales; +-- +ok +== +SELECT * FROM lake.widget_sales; +-- +ok +== +SELECT * FROM retail.widget_sales; +-- +ok +== +SELECT current_database(), current_schema(), current_setting('schema'); +-- +ok +== +SELECT current_setting('search_path'), current_schemas(false); +-- +ok +== +SELECT in_search_path('lake', 's3tablescatalog.salesdemo.retail'), in_search_path('lake', 'retail'); +-- +ok +== +CREATE TABLE created_here AS SELECT 'nested' AS value; +-- +ok +== +CREATE TABLE lake.catalog_qualified AS SELECT [1, NULL, 3] AS value; +-- +ok +== +SELECT * FROM lake.s3tablescatalog.salesdemo.retail.created_here; +-- +ok +== +SELECT * FROM lake.s3tablescatalog.salesdemo.retail.catalog_qualified; +-- +ok +== +CREATE SEQUENCE seq START 10; +-- +ok +== +CREATE TYPE mood AS ENUM ('happy'); +-- +ok +== +CREATE MACRO twice(x) AS x * 2; +-- +ok +== +CREATE VIEW nested_view AS SELECT twice(id) AS id FROM widget_sales; +-- +ok +== +SELECT nextval('seq'), 'happy'::mood, twice(21); +-- +ok +== +UPDATE widget_sales SET id = 43; +-- +ok +== +SELECT * FROM nested_view; +-- +ok +== +CREATE TEMP TABLE temp_table AS SELECT 99 AS id; +-- +ok +== +SELECT * FROM temp.main.temp_table; +-- +ok +== +USE lake.retail; +-- +ok +== +SELECT * FROM lake.s3tablescatalog.salesdemo.retail.nested_view; +-- +ok +== +SET schema = 'lake.s3tablescatalog.salesdemo.retail'; +-- +ok +== +SET schema = 's3tablescatalog.salesdemo.retail'; +-- +ok +== +USE s3tablescatalog.salesdemo; +-- +ok +== +CREATE TABLE parent_table AS SELECT 11 AS id; +-- +ok +== +SELECT * FROM lake.s3tablescatalog.salesdemo.parent_table; +-- +ok +== +SET search_path = 'lake.s3tablescatalog.salesdemo.retail,lake.retail'; +-- +ok +== +SET search_path = 'lake.retail,lake.s3tablescatalog.salesdemo.retail'; +-- +ok +== +SELECT twice(21); +-- +ok +== +SET schema = 'lake.s3tablescatalog.missing.retail'; +-- +ok +== +SET search_path = 'lake.retail,lake.s3tablescatalog.missing.retail'; +-- +ok +== +SELECT current_setting('search_path'); +-- +ok +== +CREATE SCHEMA lake."a.b"; +-- +ok +== +CREATE SCHEMA lake."a.b"."c,d"; +-- +ok +== +CREATE SCHEMA lake."a.b"."c,d"."e""f"; +-- +ok +== +USE lake."a.b"."c,d"."e""f"; +-- +ok +== +CREATE TABLE quoted_table AS SELECT 5 AS id; +-- +ok +== +SELECT * FROM lake."a.b"."c,d"."e""f".quoted_table; +-- +ok +== +SET schema = '"a.b"."c,d"."e""f"'; +-- +ok +== +SELECT * FROM quoted_table; +-- +ok +== +SET search_path = 'lake."a.b"."c,d"."e""f",lake.retail'; +-- +ok +== +ATTACH ':memory:' AS s3tablescatalog; +-- +ok +== +USE s3tablescatalog.salesdemo.retail; +-- +ok +== +DROP VIEW nested_view; +-- +ok +== +DROP MACRO twice; +-- +ok +== +DROP SCHEMA lake.retail CASCADE; +-- +ok +== +SELECT current_schema(); +-- +ok +== +DROP SCHEMA lake.s3tablescatalog.salesdemo CASCADE; +-- +ok +== +CREATE SCHEMA lake.s3tablescatalog.main; +-- +ok +== +USE lake.s3tablescatalog.main; +-- +ok +== +DROP SCHEMA lake.s3tablescatalog.main; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path_catalog.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path_catalog.test new file mode 100644 index 00000000..64a157cf --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_search_path_catalog.test @@ -0,0 +1,69 @@ +# source: test/sql/catalog/nested_schema/nested_search_path_catalog.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_search_path_other.db' AS other (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +CREATE SCHEMA other.a; +-- +ok +== +CREATE SCHEMA other.a.b; +-- +ok +== +SET search_path = 'nested_search_path_catalog.main,other.a'; +-- +ok +== +USE a.b; +-- +ok +== +SELECT current_database(), current_setting('search_path'); +-- +ok +== +SELECT * FROM other.a.b.t; +-- +ok +== +SET schema = 'a.b'; +-- +ok +== +SET search_path = 'a.b,nested_search_path_catalog.main'; +-- +ok +== +SET schema = 'a'; +-- +ok +== +SELECT current_database(), current_schema(); +-- +ok +== +CREATE TABLE main.local_table AS SELECT 7 AS i; +-- +ok +== +SET search_path = 'other.main,main'; +-- +ok +== +SELECT * FROM local_table; +-- +ok +== +SET schema = 'pg_catalog'; +-- +ok +== +SET search_path = 'pg_catalog'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_all_tables.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_all_tables.test new file mode 100644 index 00000000..865379ea --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_all_tables.test @@ -0,0 +1,33 @@ +# source: test/sql/catalog/nested_schema/nested_show_all_tables.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_show_all_tables.db' AS nested_show_all_tables (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE nested_show_all_tables; +-- +ok +== +CREATE SCHEMA c; +-- +ok +== +CREATE TABLE a.b.c.t(id INTEGER, v VARCHAR); +-- +ok +== +CREATE TABLE c.t(id INTEGER); +-- +ok +== +CREATE VIEW a.b.c.v AS SELECT 1 AS nested_column; +-- +ok +== +CREATE VIEW c.v AS SELECT 2 AS top_column; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_tables.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_tables.test new file mode 100644 index 00000000..472564cf --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_show_tables.test @@ -0,0 +1,97 @@ +# source: test/sql/catalog/nested_schema/nested_show_tables.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE lake.s3tablescatalog.salesdemo.retail.widget_sales(id INTEGER); +-- +ok +== +CREATE VIEW lake.s3tablescatalog.salesdemo.retail.widget_view AS SELECT 42 AS id; +-- +ok +== +CREATE TABLE lake.retail.other(id INTEGER); +-- +ok +== +SHOW TABLES FROM lake.s3tablescatalog.salesdemo.retail; +-- +ok +== +CREATE SCHEMA lake.recreated; +-- +ok +== +CREATE SCHEMA lake.recreated.child; +-- +ok +== +CREATE TABLE lake.recreated.child.old_table(i INTEGER); +-- +ok +== +PREPARE list_recreated AS SHOW TABLES FROM lake.recreated.child; +-- +ok +== +EXECUTE list_recreated; +-- +ok +== +DROP SCHEMA lake.recreated.child CASCADE; +-- +ok +== +CREATE TABLE lake.recreated.child.new_table(i INTEGER); +-- +ok +== +DROP SCHEMA lake.recreated CASCADE; +-- +ok +== +SHOW TABLES FROM s3tablescatalog.salesdemo.retail; +-- +ok +== +SHOW TABLES FROM lake.retail; +-- +ok +== +SHOW TABLES FROM retail; +-- +ok +== +SHOW TABLES FROM lake.s3tablescatalog.salesdemo; +-- +ok +== +SHOW TABLES FROM lake; +-- +ok +== +PRAGMA show_tables; +-- +ok +== +PREPARE list_tables AS SHOW TABLES; +-- +ok +== +EXECUTE list_tables; +-- +ok +== +SHOW TABLES FROM lake.s3tablescatalog.missing.retail; +-- +ok +== +CREATE TABLE lake."a.b"."c,d"."e""f".quoted_table(i INTEGER); +-- +ok +== +SHOW TABLES FROM lake."a.b"."c,d"."e""f"; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table.test index ca114bb0..b1add61f 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.child.t1(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_columnref.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_columnref.test index 8116355c..04958f2f 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_columnref.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_columnref.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_table_columnref.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.s2.tbl(i INTEGER, s STRUCT(a INTEGER, b INTEGER)); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml.test index b6307594..d76a3cf7 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_table_dml.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.child.t1(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml_persist.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml_persist.test index 773a2291..62fb8aa4 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml_persist.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_dml_persist.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_table_dml_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent.child.t1(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_persist.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_persist.test index 0ccd614b..3d19e310 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_persist.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_table_persist.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_table_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent.child.t1(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_attached.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_attached.test index 73f44e77..76eb92e8 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_attached.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_attached.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_view_attached.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE mem; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_attached.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_attached.test new file mode 100644 index 00000000..8482e91e --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_attached.test @@ -0,0 +1,93 @@ +# source: test/sql/catalog/nested_schema/nested_view_function_attached.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_view_function_attached.db' AS db (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +CREATE SCHEMA db.p; +-- +ok +== +CREATE SCHEMA db.p.s; +-- +ok +== +CREATE MACRO db.p.s.f() AS 11; +-- +ok +== +CREATE TABLE db.p.s.t AS SELECT 5 AS x; +-- +ok +== +CREATE VIEW db.p.s.v_table AS SELECT x FROM p.s.t; +-- +ok +== +CREATE VIEW db.p.s.v_function AS SELECT p.s.f() AS y; +-- +ok +== +CREATE MACRO db.p.s.tf() AS TABLE SELECT 7 AS z; +-- +ok +== +CREATE VIEW db.p.s.v_table_function AS SELECT z FROM p.s.tf(); +-- +ok +== +SELECT z FROM db.p.s.v_table_function; +-- +ok +== +SELECT (SELECT x FROM db.p.s.v_table), (SELECT y FROM db.p.s.v_function); +-- +ok +== +CREATE SCHEMA q; +-- +ok +== +CREATE SCHEMA q.r; +-- +ok +== +CREATE MACRO q.r.g() AS 33; +-- +ok +== +SELECT q.r.g(); +-- +ok +== +CREATE MACRO p.s.f() AS 101; +-- +ok +== +CREATE MACRO p.s.tf() AS TABLE SELECT 102 AS z; +-- +ok +== +CREATE TABLE p.s.t AS SELECT 103 AS x; +-- +ok +== +SELECT (SELECT x FROM db.p.s.v_table), (SELECT y FROM db.p.s.v_function), (SELECT z FROM db.p.s.v_table_function); +-- +ok +== +SELECT p.s.f(), (SELECT z FROM p.s.tf()); +-- +ok +== +ATTACH '{TEST_DIR}/nested_view_function_attached.db' AS other; +-- +ok +== +SELECT (SELECT x FROM other.p.s.v_table), (SELECT y FROM other.p.s.v_function), (SELECT z FROM other.p.s.v_table_function); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_catalog.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_catalog.test new file mode 100644 index 00000000..6329f78d --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_view_function_catalog.test @@ -0,0 +1,45 @@ +# source: test/sql/catalog/nested_schema/nested_view_function_catalog.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_view_function_catalog.db' AS db (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE db; +-- +ok +== +CREATE MACRO p.s.f() AS 11; +-- +ok +== +CREATE MACRO s.f() AS 22; +-- +ok +== +CREATE VIEW v_nested AS SELECT db.p.s.f() AS y; +-- +ok +== +CREATE VIEW v_top AS SELECT db.s.f() AS y; +-- +ok +== +CREATE VIEW v_window AS SELECT db.main.row_number() OVER () AS r; +-- +ok +== +SELECT view_name, sql FROM duckdb_views() WHERE database_name = 'db' AND view_name LIKE 'v\_%' ESCAPE '\' ORDER BY view_name; +-- +ok +== +SELECT (SELECT y FROM v_nested), (SELECT y FROM v_top), (SELECT r FROM v_window); +-- +ok +== +ATTACH '{TEST_DIR}/nested_view_function_catalog.db' AS other; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay.test index 8f016bd1..04a9c3c9 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_wal_replay.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO parent.child.tm() AS TABLE SELECT 42 AS x; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay_index.test b/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay_index.test index 49b51627..9f69428f 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay_index.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/nested_wal_replay_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/nested_wal_replay_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s1.x; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema/persist.test b/parser/testdata/corpus/sql/catalog/nested_schema/persist.test index 78d5c15b..d5a53c4c 100644 --- a/parser/testdata/corpus/sql/catalog/nested_schema/persist.test +++ b/parser/testdata/corpus/sql/catalog/nested_schema/persist.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/nested_schema/persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT schema_name, parent_schema FROM duckdb_schemas() WHERE schema_name IN ('parent','child','grandchild') ORDER BY schema_name; diff --git a/parser/testdata/corpus/sql/catalog/nested_schema_ctas.test b/parser/testdata/corpus/sql/catalog/nested_schema_ctas.test new file mode 100644 index 00000000..3841bfd1 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema_ctas.test @@ -0,0 +1,129 @@ +# source: test/sql/catalog/nested_schema_ctas.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS otherdb; +-- +ok +== +CREATE SCHEMA otherdb.frontier; +-- +ok +== +CREATE TABLE otherdb.frontier.t AS SELECT 99 AS n; +-- +ok +== +CREATE SCHEMA otherdb.p; +-- +ok +== +CREATE SCHEMA otherdb.p.frontier; +-- +ok +== +CREATE TABLE otherdb.p.frontier.t AS SELECT 42 AS n; +-- +ok +== +SELECT n FROM otherdb.p.frontier.t; +-- +ok +== +SELECT n FROM otherdb.frontier.t; +-- +ok +== +INSERT INTO otherdb.p.frontier.t VALUES (43); +-- +ok +== +SELECT n FROM otherdb.p.frontier.t ORDER BY n; +-- +ok +== +CREATE SCHEMA db2.q; +-- +ok +== +CREATE SCHEMA db2.q.leaf; +-- +ok +== +CREATE TABLE db2.q.leaf.t AS SELECT 1 AS n; +-- +ok +== +CREATE SCHEMA db2.leaf; +-- +ok +== +CREATE TABLE db2.leaf.t AS SELECT 2 AS n; +-- +ok +== +SELECT n FROM db2.q.leaf.t; +-- +ok +== +SELECT n FROM db2.leaf.t; +-- +ok +== +CREATE SCHEMA db2.leaf.leaf; +-- +ok +== +CREATE TABLE db2.leaf.leaf.t AS SELECT 3 AS n; +-- +ok +== +SELECT n FROM db2.leaf.leaf.t; +-- +ok +== +CREATE TABLE db2.leaf.s AS SELECT 99 AS n; +-- +ok +== +CREATE TABLE IF NOT EXISTS db2.q.leaf.s AS SELECT 7 AS n; +-- +ok +== +SELECT n FROM db2.leaf.s; +-- +ok +== +SELECT n FROM db2.q.leaf.s; +-- +ok +== +CREATE TABLE IF NOT EXISTS db2.q.leaf.s AS SELECT 8 AS n; +-- +ok +== +CREATE OR REPLACE TABLE db2.q.leaf.t AS SELECT 11 AS n; +-- +ok +== +CREATE TABLE db2.s2.u AS SELECT 99 AS n; +-- +ok +== +SET search_path='s1,s2'; +-- +ok +== +CREATE TABLE u AS SELECT 42 AS n; +-- +ok +== +SELECT n FROM db2.s1.u; +-- +ok +== +SELECT n FROM db2.s2.u; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema_ctas_persistence.test b/parser/testdata/corpus/sql/catalog/nested_schema_ctas_persistence.test new file mode 100644 index 00000000..7d5361c3 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema_ctas_persistence.test @@ -0,0 +1,45 @@ +# source: test/sql/catalog/nested_schema_ctas_persistence.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/nested_ctas.db' AS pdb (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +CREATE SCHEMA pdb.frontier; +-- +ok +== +CREATE TABLE pdb.frontier.t AS SELECT 99 AS n; +-- +ok +== +CREATE SCHEMA pdb.p; +-- +ok +== +CREATE SCHEMA pdb.p.frontier; +-- +ok +== +CREATE TABLE pdb.p.frontier.t AS SELECT 42 AS n; +-- +ok +== +SELECT n FROM pdb.p.frontier.t; +-- +ok +== +DETACH pdb; +-- +ok +== +ATTACH '{TEST_DIR}/nested_ctas.db' AS pdb; +-- +ok +== +SELECT n FROM pdb.frontier.t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/nested_schema_ctas_temp.test b/parser/testdata/corpus/sql/catalog/nested_schema_ctas_temp.test new file mode 100644 index 00000000..b07a8d58 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/nested_schema_ctas_temp.test @@ -0,0 +1,25 @@ +# source: test/sql/catalog/nested_schema_ctas_temp.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE tshadow AS SELECT 1 AS n; +-- +ok +== +CREATE TEMP TABLE tshadow AS SELECT 2 AS n; +-- +ok +== +SELECT n FROM tshadow; +-- +ok +== +SELECT n FROM temp.main.tshadow; +-- +ok +== +DROP TABLE temp.main.tshadow; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/quoted_search_path.test b/parser/testdata/corpus/sql/catalog/quoted_search_path.test index 0cd3450b..ae13698b 100644 --- a/parser/testdata/corpus/sql/catalog/quoted_search_path.test +++ b/parser/testdata/corpus/sql/catalog/quoted_search_path.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/quoted_search_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "sch,ema""name"; @@ -19,10 +19,6 @@ SELECT * FROM "sch,ema""name".t; -- ok == -SELECT current_schema(); --- -ok -== CREATE SCHEMA prequotedsuffix; -- ok diff --git a/parser/testdata/corpus/sql/catalog/sequence/prepared_currval_dropped_sequence.test b/parser/testdata/corpus/sql/catalog/sequence/prepared_currval_dropped_sequence.test index 633071b6..1bf6c481 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/prepared_currval_dropped_sequence.test +++ b/parser/testdata/corpus/sql/catalog/sequence/prepared_currval_dropped_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/prepared_currval_dropped_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE stmt AS SELECT currval(concat('se', 'q')); @@ -11,7 +11,3 @@ EXECUTE stmt; -- ok == -CREATE SEQUENCE seq START 10; --- -ok -== diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_supported.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_supported.test index 9d9faea9..bbf3627a 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_supported.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_supported.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_currval_before_nextval_supported.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version = 'v2.0.0'; diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_v1_5_storage.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_v1_5_storage.test index 528195db..39f922be 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_v1_5_storage.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_currval_before_nextval_v1_5_storage.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_currval_before_nextval_v1_5_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version = 'v1.5.2'; diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_cycle.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_cycle.test index fd4ad2c1..6d331a77 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_cycle.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_cycle.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_cycle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create sequence minseq INCREMENT BY -1 MINVALUE -5 MAXVALUE 5 CYCLE; diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_derive_last_value_v1_5_storage.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_derive_last_value_v1_5_storage.test index 39100097..689944c6 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_derive_last_value_v1_5_storage.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_derive_last_value_v1_5_storage.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_derive_last_value_v1_5_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '__TEST_DIR__/sequence_last_value_v1_5.db' AS v15 (STORAGE_VERSION 'v1.5.0'); diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_empty_name.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_empty_name.test index 52c95a1e..a12e6259 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_empty_name.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_empty_name.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_empty_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT nextval({name}); diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_int64_limit.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_int64_limit.test new file mode 100644 index 00000000..fb571412 --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_int64_limit.test @@ -0,0 +1,153 @@ +# source: test/sql/catalog/sequence/sequence_int64_limit.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SEQUENCE up INCREMENT BY 1 NO MAXVALUE START 9223372036854775806; +-- +ok +== +SELECT nextval('up'); +-- +ok +== +SELECT currval('up'); +-- +ok +== +CREATE SEQUENCE down INCREMENT BY -1 NO MINVALUE START -9223372036854775807; +-- +ok +== +SELECT nextval('down'); +-- +ok +== +CREATE SEQUENCE step INCREMENT BY 5 START 9223372036854775800; +-- +ok +== +SELECT nextval('step') FROM range(2); +-- +ok +== +SELECT nextval('step'); +-- +ok +== +CREATE TEMPORARY SEQUENCE temp_down INCREMENT BY -2 START -9223372036854775807; +-- +ok +== +SELECT nextval('temp_down'); +-- +ok +== +CREATE SEQUENCE edge; +-- +ok +== +SELECT setval('edge', 9223372036854775807, false); +-- +ok +== +SELECT nextval('edge'); +-- +ok +== +CREATE SEQUENCE edge_called; +-- +ok +== +SELECT setval('edge_called', 9223372036854775807); +-- +ok +== +SELECT currval('edge_called'); +-- +ok +== +SELECT nextval('edge_called'); +-- +ok +== +CREATE SEQUENCE edge_called_down INCREMENT BY -1; +-- +ok +== +SELECT setval('edge_called_down', -9223372036854775808); +-- +ok +== +SELECT currval('edge_called_down'); +-- +ok +== +SELECT nextval('edge_called_down'); +-- +ok +== +SELECT setval('up', 9223372036854775805); +-- +ok +== +CREATE SEQUENCE whole MINVALUE -9223372036854775808 MAXVALUE 9223372036854775807 START 9223372036854775807; +-- +ok +== +SELECT nextval('whole'); +-- +ok +== +CREATE SEQUENCE nearly_whole INCREMENT BY 2 MINVALUE -9223372036854775808 MAXVALUE 9223372036854775806 START 9223372036854775806; +-- +ok +== +SELECT nextval('nearly_whole'); +-- +ok +== +CREATE SEQUENCE nearly_whole_down INCREMENT BY -2 MINVALUE -9223372036854775807 MAXVALUE 9223372036854775807 START -9223372036854775807; +-- +ok +== +SELECT nextval('nearly_whole_down'); +-- +ok +== +CREATE SEQUENCE wal_up START 9223372036854775807; +-- +ok +== +SELECT nextval('wal_up'); +-- +ok +== +SELECT currval('edge'), currval('down'), currval('wal_up'); +-- +ok +== +SELECT sequence_name, last_value FROM duckdb_sequences() WHERE sequence_name IN ('edge', 'down', 'wal_up') ORDER BY sequence_name; +-- +ok +== +CREATE SEQUENCE up START 9223372036854775806; +-- +ok +== +CREATE TEMPORARY SEQUENCE temp_up START 9223372036854775807; +-- +ok +== +SELECT nextval('temp_up'); +-- +ok +== +CREATE SEQUENCE wal_up START 9223372036854775806; +-- +ok +== +SELECT currval('up'), currval('down'), currval('wal_up'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_offset_increment.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_offset_increment.test index 33afa0bf..b0ea79e5 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_offset_increment.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_offset_increment.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_offset_increment.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create sequence xx start 100 increment by 2; diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_overflow.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_overflow.test index 1b709641..a3ad72af 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/sequence_overflow.test +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/sequence_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create sequence seq1 INCREMENT BY 1 MINVALUE 9223372036854775800 MAXVALUE 9223372036854775807 CYCLE; diff --git a/parser/testdata/corpus/sql/catalog/sequence/sequence_wal_last_value_concurrent.test b/parser/testdata/corpus/sql/catalog/sequence/sequence_wal_last_value_concurrent.test new file mode 100644 index 00000000..35dda91a --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/sequence/sequence_wal_last_value_concurrent.test @@ -0,0 +1,13 @@ +# source: test/sql/catalog/sequence/sequence_wal_last_value_concurrent.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT nextval('s') FROM range(3) ORDER BY 1; +-- +ok +== +SELECT currval('s'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/sequence/setval.test b/parser/testdata/corpus/sql/catalog/sequence/setval.test index 09e069bc..2df30bf2 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/setval.test +++ b/parser/testdata/corpus/sql/catalog/sequence/setval.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/setval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE myseq; diff --git a/parser/testdata/corpus/sql/catalog/sequence/test_duckdb_sequences.test b/parser/testdata/corpus/sql/catalog/sequence/test_duckdb_sequences.test index 2fd869c9..16bd5f54 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/test_duckdb_sequences.test +++ b/parser/testdata/corpus/sql/catalog/sequence/test_duckdb_sequences.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/test_duckdb_sequences.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create sequence my_seq; diff --git a/parser/testdata/corpus/sql/catalog/sequence/test_sequence.test b/parser/testdata/corpus/sql/catalog/sequence/test_sequence.test index e85680b4..91e6769e 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/test_sequence.test +++ b/parser/testdata/corpus/sql/catalog/sequence/test_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/test_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE IF NOT EXISTS seq; diff --git a/parser/testdata/corpus/sql/catalog/sequence/test_sequence_dependency.test b/parser/testdata/corpus/sql/catalog/sequence/test_sequence_dependency.test index fc1c81b8..b3b0eb55 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/test_sequence_dependency.test +++ b/parser/testdata/corpus/sql/catalog/sequence/test_sequence_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/test_sequence_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(i integer default nextval('seq')); diff --git a/parser/testdata/corpus/sql/catalog/sequence/test_sequence_google_fuzz.test b/parser/testdata/corpus/sql/catalog/sequence/test_sequence_google_fuzz.test index 8e003803..cc87201b 100644 --- a/parser/testdata/corpus/sql/catalog/sequence/test_sequence_google_fuzz.test +++ b/parser/testdata/corpus/sql/catalog/sequence/test_sequence_google_fuzz.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/sequence/test_sequence_google_fuzz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ;creAte diff --git a/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_entry_pushdown.test b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_entry_pushdown.test new file mode 100644 index 00000000..3f80436b --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_entry_pushdown.test @@ -0,0 +1,198 @@ +# source: test/sql/catalog/system_functions/system_catalog_entry_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE memory.main.mem_t(i INTEGER); +-- +ok +== +CREATE SCHEMA {db}.s1; +-- +error: Parser Error: syntax error at or near "{" +== +CREATE SCHEMA {db}.s2; +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE {db}.s1.t1(i INTEGER); +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE {db}.s1.t1b(i INTEGER, j VARCHAR); +-- +error: Parser Error: syntax error at or near "{" +== +CREATE VIEW {db}.s1.v1 AS SELECT 1 AS c1; +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE {db}.s2.t2(i INTEGER); +-- +error: Parser Error: syntax error at or near "{" +== +CREATE VIEW {db}.s2.v2 AS SELECT 2 AS c2; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT database_name, schema_name, table_name FROM duckdb_tables() WHERE table_name = 't1' ORDER BY ALL; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE database_name = 'db1' AND schema_name = 's1' AND table_name = 't1'; +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE lower(table_name) = 't1'; +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE table_name IN ('t1', 't1b'); +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE table_name LIKE 't1%'; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE database_name = 'db1' AND table_name <> 't1' ORDER BY ALL; +-- +ok +== +SELECT database_name, table_name FROM duckdb_tables() +WHERE table_oid = (SELECT table_oid FROM duckdb_tables() WHERE database_name = 'db1' AND schema_name = 's1' AND table_name = 't1'); +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE table_name = 't1' AND table_name = 't1b'; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE table_name = NULL; +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE table_name = 't1' AND NOT temporary; +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE table_name = 'v1'; +-- +ok +== +SELECT database_name, schema_name, view_name FROM duckdb_views() WHERE view_name = 'v1' ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM duckdb_views() WHERE lower(view_name) = 'v1'; +-- +ok +== +SELECT count(*) FROM duckdb_views() WHERE view_name IN ('v1', 'v2'); +-- +ok +== +SELECT database_name, view_name FROM duckdb_views() +WHERE view_oid = (SELECT view_oid FROM duckdb_views() WHERE database_name = 'db1' AND schema_name = 's1' AND view_name = 'v1'); +-- +ok +== +SELECT view_name FROM duckdb_views() WHERE view_name = 'v1' AND view_name = 'v2'; +-- +ok +== +SELECT view_name FROM duckdb_views() WHERE view_name = NULL; +-- +ok +== +SELECT count(*) FROM duckdb_views() WHERE view_name = 't1'; +-- +ok +== +SELECT column_name, data_type FROM duckdb_columns() +WHERE database_name = 'db1' AND schema_name = 's1' AND table_name = 't1b' ORDER BY column_index; +-- +ok +== +SELECT table_name, column_name FROM duckdb_columns() WHERE database_name = 'db1' AND schema_name = 's2' ORDER BY ALL; +-- +ok +== +SELECT database_name, schema_name, column_name FROM duckdb_columns() WHERE table_name = 't1' ORDER BY ALL; +-- +ok +== +SELECT column_name, data_type FROM duckdb_columns() WHERE database_name = 'db1' AND table_name = 'v1'; +-- +ok +== +SELECT count(*) FROM duckdb_columns() WHERE column_name = 'j'; +-- +ok +== +SELECT database_name FROM duckdb_columns() WHERE table_name = 't1b' AND data_type = 'VARCHAR' ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM duckdb_columns WHERE table_name = 't1b'; +-- +ok +== +SELECT column_name FROM information_schema.columns +WHERE table_catalog = 'db1' AND table_schema = 's1' AND table_name = 't1b' ORDER BY ordinal_position; +-- +ok +== +SHOW TABLES FROM db1.s1; +-- +ok +== +SELECT name FROM (SHOW ALL TABLES) WHERE database = 'db1' ORDER BY name; +-- +ok +== +SELECT t.table_name FROM duckdb_tables t JOIN duckdb_columns c ON t.table_oid = c.table_oid +WHERE t.database_name = 'db1' AND c.column_name = 'i' ORDER BY t.table_name; +-- +ok +== +SELECT table_name FROM duckdb_tables() WITH ORDINALITY WHERE table_name = 't1' ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM duckdb_tables() WHERE table_name = uuid()::VARCHAR; +-- +ok +== +EXPLAIN SELECT schema_name FROM duckdb_tables() WHERE table_name = 't1'; +-- +ok +== +EXPLAIN SELECT schema_name FROM duckdb_tables() WHERE lower(table_name) = 't1'; +-- +ok +== +EXPLAIN SELECT column_name FROM duckdb_columns() WHERE schema_name = 's1'; +-- +ok +== +EXPLAIN SELECT column_name FROM duckdb_columns() WHERE table_name = 't1'; +-- +ok +== +EXPLAIN SELECT table_name FROM duckdb_columns() WHERE column_name = 'i'; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables() WHERE database_name = 'db1' AND schema_name = 's1' AND table_name = 't1'; +-- +ok +== +EXPLAIN ANALYZE SELECT view_name FROM duckdb_views() WHERE database_name = 'db1' AND schema_name = 's1' AND view_name = 'v1'; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables() WHERE database_name = 'db1' AND schema_name = 's1'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner.test b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner.test new file mode 100644 index 00000000..8b1685ce --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner.test @@ -0,0 +1,187 @@ +# source: test/sql/catalog/system_functions/system_catalog_scanner.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE VIEW {db}.s1.v1 AS SELECT 1; +-- +error: Parser Error: syntax error at or near "{" +== +CREATE VIEW {db}.s2.v2 AS SELECT 2; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 's1' ORDER BY database_name, table_name; +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE lower(schema_name) = lower('S1') ORDER BY database_name, table_name; +-- +ok +== +SELECT DISTINCT table_name FROM duckdb_tables WHERE schema_name IN ('s1','s2') AND database_name = 'db1' ORDER BY table_name; +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name LIKE 's1' AND database_name = 'db1'; +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name <> 's1' AND database_name = 'db1' ORDER BY table_name; +-- +ok +== +SELECT table_name FROM duckdb_tables +WHERE database_oid = (SELECT database_oid FROM duckdb_databases WHERE database_name = 'db1') + AND schema_oid = (SELECT oid FROM duckdb_schemas WHERE database_name = 'db1' AND schema_name = 's2'); +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 's1' AND schema_name = 's2'; +-- +ok +== +SELECT DISTINCT database_name FROM duckdb_tables WHERE database_name = current_database(); +-- +ok +== +SELECT schema_name FROM duckdb_tables WHERE table_name = 't1' ORDER BY database_name; +-- +ok +== +SELECT database_name, table_name FROM duckdb_tables WHERE schema_name = 's1' AND table_name = 't1' AND database_name = 'db1'; +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = gen_random_uuid()::VARCHAR; +-- +ok +== +SELECT table_name FROM duckdb_tables() WITH ORDINALITY WHERE schema_name = 's1' ORDER BY database_name, table_name; +-- +ok +== +SELECT view_name FROM duckdb_views WHERE schema_name = 's1' AND NOT internal ORDER BY database_name; +-- +ok +== +SELECT comment FROM duckdb_views WHERE view_name = 'v1' ORDER BY database_name; +-- +ok +== +SELECT database_name, view_name FROM duckdb_views WHERE view_name = 'v2' AND schema_name = 's2' AND database_name = 'db2'; +-- +ok +== +EXPLAIN SELECT table_name FROM duckdb_tables WHERE schema_name = 's1'; +-- +ok +== +EXPLAIN SELECT table_name FROM duckdb_tables WHERE lower(schema_name) = 's1'; +-- +ok +== +EXPLAIN SELECT schema_name FROM duckdb_tables WHERE table_name = 't1'; +-- +ok +== +EXPLAIN SELECT schema_name FROM duckdb_tables WHERE comment = 'x'; +-- +ok +== +EXPLAIN SELECT * FROM duckdb_tables() WITH ORDINALITY WHERE schema_name = 's1'; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables WHERE schema_name = 's1'; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables WHERE lower(schema_name) = 's1'; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables WHERE database_name = 'db1' AND schema_name = 's1'; +-- +ok +== +PREPARE p AS SELECT table_name FROM duckdb_tables WHERE schema_name = $1 ORDER BY database_name; +-- +ok +== +EXECUTE p('s1'); +-- +ok +== +EXECUTE p('s2'); +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 's3' AND database_name = 'db1'; +-- +ok +== +CREATE SCHEMA db1.s3; +-- +ok +== +CREATE TABLE db1.s3.t3(i INTEGER); +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 'nope'; +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 'S1'; +-- +ok +== +CREATE SCHEMA db3."A"; +-- +ok +== +CREATE SCHEMA db3."b"; +-- +ok +== +CREATE SCHEMA db3."C"; +-- +ok +== +CREATE TABLE db3."A".ta(i INTEGER); +-- +ok +== +CREATE TABLE db3."b".tb(i INTEGER); +-- +ok +== +CREATE TABLE db3."C".tc(i INTEGER); +-- +ok +== +SELECT schema_name, table_name FROM duckdb_tables WHERE database_name = 'db3'; +-- +ok +== +CREATE SCHEMA db1."O'Brien"; +-- +ok +== +CREATE TABLE db1."O'Brien".t(i INTEGER); +-- +ok +== +SELECT table_name FROM duckdb_tables WHERE schema_name = 'O''Brien' AND database_name = 'db1'; +-- +ok +== +SHOW TABLES FROM DB1.S1; +-- +ok +== +SHOW TABLES FROM db1."O'Brien"; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner_fallible_filters.test b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner_fallible_filters.test new file mode 100644 index 00000000..d6b8e4ab --- /dev/null +++ b/parser/testdata/corpus/sql/catalog/system_functions/system_catalog_scanner_fallible_filters.test @@ -0,0 +1,61 @@ +# source: test/sql/catalog/system_functions/system_catalog_scanner_fallible_filters.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS "2"; +-- +ok +== +CREATE SCHEMA "2"."1"; +-- +ok +== +CREATE TABLE "2"."1"."3"(j INTEGER); +-- +ok +== +SELECT database_name, table_name FROM duckdb_tables() WHERE database_name::INTEGER = 2; +-- +ok +== +CREATE SCHEMA "1"; +-- +ok +== +CREATE TABLE "1"."2"(i INTEGER); +-- +ok +== +CREATE VIEW "1".v AS SELECT 1 AS c1; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE schema_name::INTEGER = 1 ORDER BY ALL; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE table_name::INTEGER = 2; +-- +ok +== +EXPLAIN SELECT database_name FROM {function}() WHERE schema_name::INTEGER = 1; +-- +error: Parser Error: syntax error at or near "{" +== +EXPLAIN SELECT database_name FROM {function}() WHERE TRY_CAST(schema_name AS INTEGER) = 1; +-- +error: Parser Error: syntax error at or near "{" +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables() WHERE schema_name::INTEGER = 1; +-- +ok +== +EXPLAIN ANALYZE SELECT table_name FROM duckdb_tables() WHERE TRY_CAST(schema_name AS INTEGER) = 1; +-- +ok +== +SELECT table_name FROM duckdb_tables() WHERE TRY_CAST(schema_name AS INTEGER) = 1 ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/catalog/table/create_table_parameters.test b/parser/testdata/corpus/sql/catalog/table/create_table_parameters.test index 894fcd68..525711c7 100644 --- a/parser/testdata/corpus/sql/catalog/table/create_table_parameters.test +++ b/parser/testdata/corpus/sql/catalog/table/create_table_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/create_table_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 ( c1 INT DEFAULT ? ); diff --git a/parser/testdata/corpus/sql/catalog/table/long_identifier.test b/parser/testdata/corpus/sql/catalog/table/long_identifier.test index 11246467..8407a82a 100644 --- a/parser/testdata/corpus/sql/catalog/table/long_identifier.test +++ b/parser/testdata/corpus/sql/catalog/table/long_identifier.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/long_identifier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" integer); diff --git a/parser/testdata/corpus/sql/catalog/table/test_create_table_parallelism.test b/parser/testdata/corpus/sql/catalog/table/test_create_table_parallelism.test index 8da159f3..f46ccfb3 100644 --- a/parser/testdata/corpus/sql/catalog/table/test_create_table_parallelism.test +++ b/parser/testdata/corpus/sql/catalog/table/test_create_table_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/test_create_table_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS (SELECT string_agg(range::VARCHAR, '🦆 ') AS s, mod(range, 10000) xx FROM range(50000) GROUP BY xx) diff --git a/parser/testdata/corpus/sql/catalog/table/test_default.test b/parser/testdata/corpus/sql/catalog/table/test_default.test index 6713da98..ffbcfcb2 100644 --- a/parser/testdata/corpus/sql/catalog/table/test_default.test +++ b/parser/testdata/corpus/sql/catalog/table/test_default.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/test_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test (b) VALUES (3); diff --git a/parser/testdata/corpus/sql/catalog/table/test_default_not_null.test b/parser/testdata/corpus/sql/catalog/table/test_default_not_null.test index a3df2776..98aca197 100644 --- a/parser/testdata/corpus/sql/catalog/table/test_default_not_null.test +++ b/parser/testdata/corpus/sql/catalog/table/test_default_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/test_default_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uuids(u UUID DEFAULT gen_random_uuid() NOT NULL, a INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/table/test_default_values.test b/parser/testdata/corpus/sql/catalog/table/test_default_values.test index 53914dd4..5715b386 100644 --- a/parser/testdata/corpus/sql/catalog/table/test_default_values.test +++ b/parser/testdata/corpus/sql/catalog/table/test_default_values.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/test_default_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table x (i int default 1, j int default 2) diff --git a/parser/testdata/corpus/sql/catalog/table/test_many_columns.test b/parser/testdata/corpus/sql/catalog/table/test_many_columns.test index d167e4e8..dc81f10c 100644 --- a/parser/testdata/corpus/sql/catalog/table/test_many_columns.test +++ b/parser/testdata/corpus/sql/catalog/table/test_many_columns.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/table/test_many_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers (i0, j) VALUES (2, 3), (3, 4), (5, 6) diff --git a/parser/testdata/corpus/sql/catalog/test_alter_oid_stability.test b/parser/testdata/corpus/sql/catalog/test_alter_oid_stability.test index 71ba5f52..d04d4187 100644 --- a/parser/testdata/corpus/sql/catalog/test_alter_oid_stability.test +++ b/parser/testdata/corpus/sql/catalog/test_alter_oid_stability.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_alter_oid_stability.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE oid_ref AS SELECT table_oid AS id FROM duckdb_tables() WHERE table_name='t'; diff --git a/parser/testdata/corpus/sql/catalog/test_catalog_errors.test b/parser/testdata/corpus/sql/catalog/test_catalog_errors.test index 3007f072..2a0386b4 100644 --- a/parser/testdata/corpus/sql/catalog/test_catalog_errors.test +++ b/parser/testdata/corpus/sql/catalog/test_catalog_errors.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_catalog_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vintegers AS SELECT 42; diff --git a/parser/testdata/corpus/sql/catalog/test_create_from_select.test b/parser/testdata/corpus/sql/catalog/test_create_from_select.test index 2346cbfe..4960113b 100644 --- a/parser/testdata/corpus/sql/catalog/test_create_from_select.test +++ b/parser/testdata/corpus/sql/catalog/test_create_from_select.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_create_from_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (3), (4), (5) diff --git a/parser/testdata/corpus/sql/catalog/test_extension_suggestion.test b/parser/testdata/corpus/sql/catalog/test_extension_suggestion.test index 13b4c643..b87aa069 100644 --- a/parser/testdata/corpus/sql/catalog/test_extension_suggestion.test +++ b/parser/testdata/corpus/sql/catalog/test_extension_suggestion.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_extension_suggestion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT from_json('{DATA_DIR}/json/array_of_empty_arrays.json'); diff --git a/parser/testdata/corpus/sql/catalog/test_if_not_exists.test b/parser/testdata/corpus/sql/catalog/test_if_not_exists.test index 80aff252..b5cc7f1a 100644 --- a/parser/testdata/corpus/sql/catalog/test_if_not_exists.test +++ b/parser/testdata/corpus/sql/catalog/test_if_not_exists.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_if_not_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS integers(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/catalog/test_incorrect_table_creation.test b/parser/testdata/corpus/sql/catalog/test_incorrect_table_creation.test index 5fb3df5c..42c54549 100644 --- a/parser/testdata/corpus/sql/catalog/test_incorrect_table_creation.test +++ b/parser/testdata/corpus/sql/catalog/test_incorrect_table_creation.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_incorrect_table_creation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, PRIMARY KEY(j)) @@ -9,7 +9,7 @@ ok == CREATE TABLE integers(i INTEGER, PRIMARY KEY(i, i)) -- -error: Parser Error: column ""i"" appears twice in primary key constraint +error: Parser Error: column "i" appears twice in primary key constraint == CREATE TABLE integers(i INTEGER, PRIMARY KEY(i), PRIMARY KEY(i)) -- diff --git a/parser/testdata/corpus/sql/catalog/test_querying_from_detached_catalog.test b/parser/testdata/corpus/sql/catalog/test_querying_from_detached_catalog.test index 9c46fdb0..e1a91ec0 100644 --- a/parser/testdata/corpus/sql/catalog/test_querying_from_detached_catalog.test +++ b/parser/testdata/corpus/sql/catalog/test_querying_from_detached_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_querying_from_detached_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE db2.tbl (i INTEGER, j INTEGER); @@ -31,7 +31,3 @@ FROM db2.non_existent_table; -- ok == -SHOW TABLES; --- -ok -== diff --git a/parser/testdata/corpus/sql/catalog/test_quoted_column_name.test b/parser/testdata/corpus/sql/catalog/test_quoted_column_name.test index 36227a07..d080e2ba 100644 --- a/parser/testdata/corpus/sql/catalog/test_quoted_column_name.test +++ b/parser/testdata/corpus/sql/catalog/test_quoted_column_name.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_quoted_column_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers("42" INTEGER) diff --git a/parser/testdata/corpus/sql/catalog/test_schema.test b/parser/testdata/corpus/sql/catalog/test_schema.test index f597e07b..fe25bf53 100644 --- a/parser/testdata/corpus/sql/catalog/test_schema.test +++ b/parser/testdata/corpus/sql/catalog/test_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE SCHEMA test; diff --git a/parser/testdata/corpus/sql/catalog/test_set_schema.test b/parser/testdata/corpus/sql/catalog/test_set_schema.test index 8c750710..68fc6b5a 100644 --- a/parser/testdata/corpus/sql/catalog/test_set_schema.test +++ b/parser/testdata/corpus/sql/catalog/test_set_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_set_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA out_of_path; diff --git a/parser/testdata/corpus/sql/catalog/test_set_search_path.test b/parser/testdata/corpus/sql/catalog/test_set_search_path.test index 5b9e7471..0282f186 100644 --- a/parser/testdata/corpus/sql/catalog/test_set_search_path.test +++ b/parser/testdata/corpus/sql/catalog/test_set_search_path.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_set_search_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE main_table(i INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/test_standard_schema.test b/parser/testdata/corpus/sql/catalog/test_standard_schema.test index e987fac1..f1817cf9 100644 --- a/parser/testdata/corpus/sql/catalog/test_standard_schema.test +++ b/parser/testdata/corpus/sql/catalog/test_standard_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_standard_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP SCHEMA main CASCADE; diff --git a/parser/testdata/corpus/sql/catalog/test_temporary.test b/parser/testdata/corpus/sql/catalog/test_temporary.test index 94e93c9c..abe01bc3 100644 --- a/parser/testdata/corpus/sql/catalog/test_temporary.test +++ b/parser/testdata/corpus/sql/catalog/test_temporary.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_temporary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE integers(i INTEGER) ON COMMIT PRESERVE ROWS diff --git a/parser/testdata/corpus/sql/catalog/test_temporary_index.test b/parser/testdata/corpus/sql/catalog/test_temporary_index.test index 68e33eda..0121ccf5 100644 --- a/parser/testdata/corpus/sql/catalog/test_temporary_index.test +++ b/parser/testdata/corpus/sql/catalog/test_temporary_index.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_temporary_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE tmp(i INTEGER) diff --git a/parser/testdata/corpus/sql/catalog/test_temporary_schema.test b/parser/testdata/corpus/sql/catalog/test_temporary_schema.test index a3476cad..55750ba0 100644 --- a/parser/testdata/corpus/sql/catalog/test_temporary_schema.test +++ b/parser/testdata/corpus/sql/catalog/test_temporary_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_temporary_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY SCHEMA zzz diff --git a/parser/testdata/corpus/sql/catalog/test_unicode_schema.test b/parser/testdata/corpus/sql/catalog/test_unicode_schema.test index 78d53459..ee7292a7 100644 --- a/parser/testdata/corpus/sql/catalog/test_unicode_schema.test +++ b/parser/testdata/corpus/sql/catalog/test_unicode_schema.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/test_unicode_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE 👤(🔑 INTEGER PRIMARY KEY, 🗣 varchar(64), 🗓 DATE); diff --git a/parser/testdata/corpus/sql/catalog/view/deferred_binding.test b/parser/testdata/corpus/sql/catalog/view/deferred_binding.test index 94efffe8..641f3e45 100644 --- a/parser/testdata/corpus/sql/catalog/view/deferred_binding.test +++ b/parser/testdata/corpus/sql/catalog/view/deferred_binding.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/deferred_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 WITH (DEFER_BINDING) AS SELECT * FROM tbl; diff --git a/parser/testdata/corpus/sql/catalog/view/nested_view_search_path.test b/parser/testdata/corpus/sql/catalog/view/nested_view_search_path.test index 981d1d1c..11a0d02d 100644 --- a/parser/testdata/corpus/sql/catalog/view/nested_view_search_path.test +++ b/parser/testdata/corpus/sql/catalog/view/nested_view_search_path.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/nested_view_search_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS nested_view_db; diff --git a/parser/testdata/corpus/sql/catalog/view/recursive_view.test b/parser/testdata/corpus/sql/catalog/view/recursive_view.test index 6ae5afd1..ce7b7e5a 100644 --- a/parser/testdata/corpus/sql/catalog/view/recursive_view.test +++ b/parser/testdata/corpus/sql/catalog/view/recursive_view.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/recursive_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS test (val INTEGER); diff --git a/parser/testdata/corpus/sql/catalog/view/recursive_view_with_dependencies.test b/parser/testdata/corpus/sql/catalog/view/recursive_view_with_dependencies.test index 2002e0bf..3a2e52f3 100644 --- a/parser/testdata/corpus/sql/catalog/view/recursive_view_with_dependencies.test +++ b/parser/testdata/corpus/sql/catalog/view/recursive_view_with_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/recursive_view_with_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set storage_compatibility_version='v1.0.0' diff --git a/parser/testdata/corpus/sql/catalog/view/secure_view.test b/parser/testdata/corpus/sql/catalog/view/secure_view.test index 30e5ae75..82177cd3 100644 --- a/parser/testdata/corpus/sql/catalog/view/secure_view.test +++ b/parser/testdata/corpus/sql/catalog/view/secure_view.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/secure_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 10), (2, 20), (3, 30); diff --git a/parser/testdata/corpus/sql/catalog/view/secure_view_persistence.test b/parser/testdata/corpus/sql/catalog/view/secure_view_persistence.test index 2b4a017d..79407bc5 100644 --- a/parser/testdata/corpus/sql/catalog/view/secure_view_persistence.test +++ b/parser/testdata/corpus/sql/catalog/view/secure_view_persistence.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/secure_view_persistence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i, i % 10 AS j FROM range(10000) t(i); diff --git a/parser/testdata/corpus/sql/catalog/view/test_loosely_qualified_view_sql.test b/parser/testdata/corpus/sql/catalog/view/test_loosely_qualified_view_sql.test index 60155bce..1a40e532 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_loosely_qualified_view_sql.test +++ b/parser/testdata/corpus/sql/catalog/view/test_loosely_qualified_view_sql.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_loosely_qualified_view_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach ':memory:' as db1; diff --git a/parser/testdata/corpus/sql/catalog/view/test_stacked_view.test b/parser/testdata/corpus/sql/catalog/view/test_stacked_view.test index a358f13a..16943f9f 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_stacked_view.test +++ b/parser/testdata/corpus/sql/catalog/view/test_stacked_view.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_stacked_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1 VALUES (41), (42), (43), (44) diff --git a/parser/testdata/corpus/sql/catalog/view/test_view.test b/parser/testdata/corpus/sql/catalog/view/test_view.test index 90054a8c..cd8d9087 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1 VALUES (41), (42), (43) diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_alias.test b/parser/testdata/corpus/sql/catalog/view/test_view_alias.test index 281b666c..88829186 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_alias.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_alias.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 (j, "j2") AS SELECT * FROM t1 diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_delete_update.test b/parser/testdata/corpus/sql/catalog/view/test_view_delete_update.test index bd41e7af..094f4829 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_delete_update.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_delete_update.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_delete_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT i AS j FROM t1 WHERE i < 43 diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_drop_concurrent.test b/parser/testdata/corpus/sql/catalog/view/test_view_drop_concurrent.test index e7821934..7fce3195 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_drop_concurrent.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_drop_concurrent.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_drop_concurrent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY VIEW df AS select 0,0,0 from range(10); diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_duplicate_columns.test b/parser/testdata/corpus/sql/catalog/view/test_view_duplicate_columns.test index ce015b3e..2268d182 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_duplicate_columns.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_duplicate_columns.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_duplicate_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table basic_table_a as select 42 as column_a; diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_schema_change.test b/parser/testdata/corpus/sql/catalog/view/test_view_schema_change.test index 967cea4d..70e0e2ff 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_schema_change.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_schema_change.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_schema_change.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT * FROM t1 diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_schema_change_with_dependencies.test b/parser/testdata/corpus/sql/catalog/view/test_view_schema_change_with_dependencies.test index 818fcab8..d60de8b7 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_schema_change_with_dependencies.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_schema_change_with_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_schema_change_with_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TABLE t1 CASCADE diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_sql.test b/parser/testdata/corpus/sql/catalog/view/test_view_sql.test index 203e22aa..8ee79ee7 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_sql.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_sql.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema my_schema; diff --git a/parser/testdata/corpus/sql/catalog/view/test_view_sql_with_dependencies.test b/parser/testdata/corpus/sql/catalog/view/test_view_sql_with_dependencies.test index 379f2909..e4800964 100644 --- a/parser/testdata/corpus/sql/catalog/view/test_view_sql_with_dependencies.test +++ b/parser/testdata/corpus/sql/catalog/view/test_view_sql_with_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/test_view_sql_with_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vw AS SELECT * FROM tbl; diff --git a/parser/testdata/corpus/sql/catalog/view/view_catalog_alias.test b/parser/testdata/corpus/sql/catalog/view/view_catalog_alias.test index 024127be..2f175f13 100644 --- a/parser/testdata/corpus/sql/catalog/view/view_catalog_alias.test +++ b/parser/testdata/corpus/sql/catalog/view/view_catalog_alias.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/view_catalog_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/view_catalog_alias.db' AS db1; diff --git a/parser/testdata/corpus/sql/catalog/view/view_if_not_exists.test b/parser/testdata/corpus/sql/catalog/view/view_if_not_exists.test index 693e3105..bb72f615 100644 --- a/parser/testdata/corpus/sql/catalog/view/view_if_not_exists.test +++ b/parser/testdata/corpus/sql/catalog/view/view_if_not_exists.test @@ -1,6 +1,6 @@ # source: test/sql/catalog/view/view_if_not_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT 42 diff --git a/parser/testdata/corpus/sql/collate/collate_distinct_aggregate.test b/parser/testdata/corpus/sql/collate/collate_distinct_aggregate.test index a707fc08..111180ff 100644 --- a/parser/testdata/corpus/sql/collate/collate_distinct_aggregate.test +++ b/parser/testdata/corpus/sql/collate/collate_distinct_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_distinct_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(g INTEGER, s VARCHAR); @@ -127,10 +127,6 @@ SELECT list_sort(list(DISTINCT s COLLATE NOCASE)) FROM (VALUES ('x'), (NULL), (' -- ok == -SET default_collation='nocase' --- -ok -== SELECT count(DISTINCT s), len(list(DISTINCT s)), len(list(DISTINCT lower(s))) FROM tbl; -- diff --git a/parser/testdata/corpus/sql/collate/collate_distinct_aggregate_icu.test b/parser/testdata/corpus/sql/collate/collate_distinct_aggregate_icu.test index 566c4a5b..57f75a9f 100644 --- a/parser/testdata/corpus/sql/collate/collate_distinct_aggregate_icu.test +++ b/parser/testdata/corpus/sql/collate/collate_distinct_aggregate_icu.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_distinct_aggregate_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(DISTINCT s COLLATE de), len(list(DISTINCT s COLLATE de)), len(list(DISTINCT s)) diff --git a/parser/testdata/corpus/sql/collate/collate_filter_pushdown.test b/parser/testdata/corpus/sql/collate/collate_filter_pushdown.test index b49b6b6c..0f0f4ac6 100644 --- a/parser/testdata/corpus/sql/collate/collate_filter_pushdown.test +++ b/parser/testdata/corpus/sql/collate/collate_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 BOOLEAN, PRIMARY KEY(c0)); diff --git a/parser/testdata/corpus/sql/collate/collate_group_by_all.test b/parser/testdata/corpus/sql/collate/collate_group_by_all.test new file mode 100644 index 00000000..270b73db --- /dev/null +++ b/parser/testdata/corpus/sql/collate/collate_group_by_all.test @@ -0,0 +1,97 @@ +# source: test/sql/collate/collate_group_by_all.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (id BIGINT, c0 VARCHAR COLLATE NOCASE); +-- +ok +== +INSERT INTO t VALUES (0, 'A'), (1, 'a'), (2, 'b'), (3, NULL), (4, NULL); +-- +ok +== +SELECT c0, count(*) AS n FROM t GROUP BY ALL ORDER BY n DESC, c0 NULLS LAST; +-- +ok +== +SELECT c0 AS k, count(*) FROM t GROUP BY ALL ORDER BY k NULLS LAST; +-- +ok +== +SELECT id > 1 AS big, c0, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +SELECT c0 || 'x' AS c, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +SELECT (SELECT t) AS s, count(*) FROM (VALUES ('10:00:00+00'::TIMETZ)) v(t) GROUP BY ALL; +-- +ok +== +SELECT (SELECT c0) AS k, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +SELECT id > 1 AS big, (SELECT c0) || 'x' AS k, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +SELECT c0 AS x, (SELECT x) AS k, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +PREPARE p AS SELECT (SELECT c0 || $1::VARCHAR) AS k, count(*) FROM t GROUP BY ALL ORDER BY ALL; +-- +ok +== +EXECUTE p('x'); +-- +ok +== +EXECUTE p('y'); +-- +ok +== +SELECT (SELECT c0) AS k, count(*) FROM t GROUP BY ALL ORDER BY id; +-- +ok +== +SELECT ((nextval('seq') % 2) + i * 0)::VARCHAR COLLATE NOCASE AS k, count(*) FROM range(3) v(i) GROUP BY ALL ORDER BY k; +-- +ok +== +SELECT (SELECT c0 || (nextval('seq2') * 0)) AS k, count(*) FROM t WHERE id < 2 GROUP BY ALL; +-- +ok +== +SELECT currval('seq2'); +-- +ok +== +CREATE TABLE u (c VARCHAR COLLATE NOACCENT.NOCASE); +-- +ok +== +INSERT INTO u VALUES ('é'), ('E'), ('e'); +-- +ok +== +SELECT count(*) FROM (SELECT c, count(*) FROM u GROUP BY ALL); +-- +ok +== +SELECT s, count(*) FROM (SELECT CASE WHEN id = 4 THEN NULL ELSE {'k': c0} END AS s FROM t) GROUP BY ALL ORDER BY ALL; +-- +ok +== +SELECT typeof(t), t, count(*) FROM (VALUES ('10:00:00+00'::TIMETZ)) v(t) GROUP BY ALL; +-- +ok +== +SELECT (c0 || NULL)::VARCHAR COLLATE NOCASE AS n, count(*) FROM t GROUP BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/collate_group_subquery.test b/parser/testdata/corpus/sql/collate/collate_group_subquery.test new file mode 100644 index 00000000..a0cef44f --- /dev/null +++ b/parser/testdata/corpus/sql/collate/collate_group_subquery.test @@ -0,0 +1,103 @@ +# source: test/sql/collate/collate_group_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(v TIMETZ); +-- +ok +== +INSERT INTO t VALUES (TIMETZ '01:02:03'); +-- +ok +== +SELECT (SELECT max(v) FROM t) AS g +FROM range(2) +GROUP BY (SELECT max(v) FROM t); +-- +ok +== +SELECT (SELECT max(v) FROM t) AS g +FROM range(2) +GROUP BY g; +-- +ok +== +SELECT (SELECT max(v) FROM t) AS g +FROM range(2) +GROUP BY 1; +-- +ok +== +CREATE TABLE t2(a TIMETZ, k INT); +-- +ok +== +INSERT INTO t2 VALUES (TIMETZ '01:02:03', 5), (TIMETZ '04:05:06+02', 6); +-- +ok +== +CREATE TABLE nums(n INT); +-- +ok +== +INSERT INTO nums VALUES (5); +-- +ok +== +SELECT CASE WHEN k IN (SELECT n FROM nums) THEN a ELSE NULL END AS g +FROM t2 +GROUP BY CASE WHEN k IN (SELECT n FROM nums) THEN a ELSE NULL END +ORDER BY ALL; +-- +ok +== +SELECT (SELECT max(a) FROM t2 WHERE t2.k = r.k) AS g, count(*) +FROM (SELECT range % 2 + 5 AS k FROM range(4)) r +GROUP BY (SELECT max(a) FROM t2 WHERE t2.k = r.k) +ORDER BY ALL; +-- +ok +== +SELECT (SELECT max(v) FROM t) AS g +FROM range(2) +GROUP BY (SELECT max(v) FROM t) +HAVING (SELECT max(v) FROM t) = TIMETZ '01:02:03' +ORDER BY (SELECT max(v) FROM t); +-- +ok +== +SELECT (SELECT max(v) FROM t) AS g, count(*) +FROM range(2) +GROUP BY GROUPING SETS (((SELECT max(v) FROM t)), ()) +ORDER BY ALL; +-- +ok +== +CREATE TABLE s(v VARCHAR COLLATE NOCASE); +-- +ok +== +INSERT INTO s VALUES ('UPPERCASE'); +-- +ok +== +SELECT (SELECT max(v) FROM s) AS g +FROM range(2) +GROUP BY (SELECT max(v) FROM s); +-- +ok +== +SELECT (SELECT max(v) FROM s) AS g +FROM range(2) +GROUP BY (SELECT max(v) FROM s) +HAVING (SELECT max(v) FROM s) = 'uppercase'; +-- +ok +== +SELECT (SELECT 'MiXeD') AS g +FROM range(2) +GROUP BY (SELECT 'MiXeD'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/collate_in_subquery.test b/parser/testdata/corpus/sql/collate/collate_in_subquery.test index 31ef9b1a..02813c53 100644 --- a/parser/testdata/corpus/sql/collate/collate_in_subquery.test +++ b/parser/testdata/corpus/sql/collate/collate_in_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_in_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 'ABC' collate nocase in (select 'aBc'); diff --git a/parser/testdata/corpus/sql/collate/collate_json_ordered_aggregate.test b/parser/testdata/corpus/sql/collate/collate_json_ordered_aggregate.test new file mode 100644 index 00000000..05c227c4 --- /dev/null +++ b/parser/testdata/corpus/sql/collate/collate_json_ordered_aggregate.test @@ -0,0 +1,37 @@ +# source: test/sql/collate/collate_json_ordered_aggregate.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE tbl(id INT, val JSON); +-- +ok +== +INSERT INTO tbl VALUES (1, '"b"'), (2, '"A"'), (3, '"c"'); +-- +ok +== +SELECT list(id ORDER BY val COLLATE nocase) FROM tbl; +-- +ok +== +SELECT string_agg(id::VARCHAR, ',' ORDER BY val COLLATE nocase) FROM tbl; +-- +ok +== +SELECT id, row_number() OVER (ORDER BY val COLLATE nocase) FROM tbl; +-- +ok +== +SELECT id FROM tbl ORDER BY val COLLATE nocase; +-- +ok +== +SELECT list(id ORDER BY val::VARCHAR COLLATE nocase) FROM tbl; +-- +ok +== +SELECT list(1 ORDER BY v COLLATE nocase) FROM (SELECT 'x'::VARIANT v); +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/collate_like.test b/parser/testdata/corpus/sql/collate/collate_like.test index 2c8a9203..34edfba3 100644 --- a/parser/testdata/corpus/sql/collate/collate_like.test +++ b/parser/testdata/corpus/sql/collate/collate_like.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_like.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'a' LIKE 'A' COLLATE NOCASE diff --git a/parser/testdata/corpus/sql/collate/collate_nested.test b/parser/testdata/corpus/sql/collate/collate_nested.test index 4ed8a590..fa449da0 100644 --- a/parser/testdata/corpus/sql/collate/collate_nested.test +++ b/parser/testdata/corpus/sql/collate/collate_nested.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL::STRUCT(x VARCHAR) = {'x': 'a' COLLATE NOCASE} diff --git a/parser/testdata/corpus/sql/collate/collate_non_varchar.test b/parser/testdata/corpus/sql/collate/collate_non_varchar.test index 8b158e82..216f3c34 100644 --- a/parser/testdata/corpus/sql/collate/collate_non_varchar.test +++ b/parser/testdata/corpus/sql/collate/collate_non_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_non_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA default_collation=NOCASE; diff --git a/parser/testdata/corpus/sql/collate/collate_order_by_alias.test b/parser/testdata/corpus/sql/collate/collate_order_by_alias.test index 67d08301..00d6bb10 100644 --- a/parser/testdata/corpus/sql/collate/collate_order_by_alias.test +++ b/parser/testdata/corpus/sql/collate/collate_order_by_alias.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_order_by_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE CreditCardTable(id BIGINT, creditCard_number VARCHAR); diff --git a/parser/testdata/corpus/sql/collate/collate_ordered_aggregate.test b/parser/testdata/corpus/sql/collate/collate_ordered_aggregate.test index 1cd4657b..cc3cafca 100644 --- a/parser/testdata/corpus/sql/collate/collate_ordered_aggregate.test +++ b/parser/testdata/corpus/sql/collate/collate_ordered_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_ordered_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(id int, val varchar); diff --git a/parser/testdata/corpus/sql/collate/collate_string_col.test b/parser/testdata/corpus/sql/collate/collate_string_col.test index cade04ed..796345bf 100644 --- a/parser/testdata/corpus/sql/collate/collate_string_col.test +++ b/parser/testdata/corpus/sql/collate/collate_string_col.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_string_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/collate/collate_struct_minmax.test b/parser/testdata/corpus/sql/collate/collate_struct_minmax.test index 290fbc35..6e7010e5 100644 --- a/parser/testdata/corpus/sql/collate/collate_struct_minmax.test +++ b/parser/testdata/corpus/sql/collate/collate_struct_minmax.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_struct_minmax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tuples AS SELECT * FROM (VALUES ('a' COLLATE NOCASE, 0), ('B', 0)) v(s, i) diff --git a/parser/testdata/corpus/sql/collate/collate_subquery.test b/parser/testdata/corpus/sql/collate/collate_subquery.test index dd10105b..9b3c81b3 100644 --- a/parser/testdata/corpus/sql/collate/collate_subquery.test +++ b/parser/testdata/corpus/sql/collate/collate_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collate_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t0(c1 varchar); diff --git a/parser/testdata/corpus/sql/collate/collation_invalid_utf8.test b/parser/testdata/corpus/sql/collate/collation_invalid_utf8.test index e986dabd..7b61c4ce 100644 --- a/parser/testdata/corpus/sql/collate/collation_invalid_utf8.test +++ b/parser/testdata/corpus/sql/collate/collation_invalid_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collation_invalid_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verification_mode='none'; @@ -23,15 +23,11 @@ SELECT s2 COLLATE de = 'x' COLLATE de FROM t -- ok == -SELECT s1 COLLATE de = s1 COLLATE de FROM t +SELECT icu_sort_key(s1, 'en') FROM t -- ok == -SELECT s2 COLLATE de = s2 COLLATE de FROM t --- -ok -== -SELECT s1 COLLATE de = s2 COLLATE de FROM t +SELECT icu_sort_key(s2, 'en') FROM t -- ok == diff --git a/parser/testdata/corpus/sql/collate/collation_sort_keys.test b/parser/testdata/corpus/sql/collate/collation_sort_keys.test index 26d5d3c0..10eb219a 100644 --- a/parser/testdata/corpus/sql/collate/collation_sort_keys.test +++ b/parser/testdata/corpus/sql/collate/collation_sort_keys.test @@ -1,6 +1,6 @@ # source: test/sql/collate/collation_sort_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT icu_sort_key('a', 'en') diff --git a/parser/testdata/corpus/sql/collate/count_distinct_collation.test b/parser/testdata/corpus/sql/collate/count_distinct_collation.test index 524e6a19..185dae4e 100644 --- a/parser/testdata/corpus/sql/collate/count_distinct_collation.test +++ b/parser/testdata/corpus/sql/collate/count_distinct_collation.test @@ -1,6 +1,6 @@ # source: test/sql/collate/count_distinct_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(g INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/collate/icu_collation_propagation.test b/parser/testdata/corpus/sql/collate/icu_collation_propagation.test index e98c782e..b0ab8272 100644 --- a/parser/testdata/corpus/sql/collate/icu_collation_propagation.test +++ b/parser/testdata/corpus/sql/collate/icu_collation_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/collate/icu_collation_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (a varchar, b varchar); diff --git a/parser/testdata/corpus/sql/collate/icu_sort_key_language_tags.test b/parser/testdata/corpus/sql/collate/icu_sort_key_language_tags.test new file mode 100644 index 00000000..a8168938 --- /dev/null +++ b/parser/testdata/corpus/sql/collate/icu_sort_key_language_tags.test @@ -0,0 +1,26 @@ +# source: test/sql/collate/icu_sort_key_language_tags.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT icu_sort_key('Ab', 'und-u-ks-level1') = icu_sort_key('ab', 'und-u-ks-level1'), + icu_sort_key('a-b', 'en-u-ka-shifted') = icu_sort_key('ab', 'en-u-ka-shifted'); +-- +ok +== +SELECT string_agg(s, ' ' ORDER BY s) FILTER (WHERE icu_sort_key(s, 'en-u-ka-shifted-kv-space') = icu_sort_key('ab', 'en-u-ka-shifted-kv-space')), + string_agg(s, ' ' ORDER BY s) FILTER (WHERE icu_sort_key(s, 'en-u-ka-shifted') = icu_sort_key('ab', 'en-u-ka-shifted')), + string_agg(s, ' ' ORDER BY s) FILTER (WHERE icu_sort_key(s, 'en-u-ka-shifted-kv-symbol') = icu_sort_key('ab', 'en-u-ka-shifted-kv-symbol')), + string_agg(s, ' ' ORDER BY s) FILTER (WHERE icu_sort_key(s, 'en-u-ka-shifted-kv-currency') = icu_sort_key('ab', 'en-u-ka-shifted-kv-currency')) +FROM (VALUES ('a b'), ('a-b'), ('a+b'), ('a$b'), ('a1b')) t(s); +-- +ok +== +SELECT string_agg(s, ',' ORDER BY icu_sort_key(s, 'sv_SE')) FROM (VALUES ('z'), ('ä'), ('a')) t(s); +-- +ok +== +SELECT icu_sort_key('a10', 'en-u-kn-true'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/nop_collation_join_filter_pushdown.test b/parser/testdata/corpus/sql/collate/nop_collation_join_filter_pushdown.test index 733ab4e4..82285e43 100644 --- a/parser/testdata/corpus/sql/collate/nop_collation_join_filter_pushdown.test +++ b/parser/testdata/corpus/sql/collate/nop_collation_join_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/collate/nop_collation_join_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA explain_output='optimized_only' diff --git a/parser/testdata/corpus/sql/collate/test_collate_accent_insensitive.test b/parser/testdata/corpus/sql/collate/test_collate_accent_insensitive.test index 2c03d082..aa6db85a 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_accent_insensitive.test +++ b/parser/testdata/corpus/sql/collate/test_collate_accent_insensitive.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_accent_insensitive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR COLLATE NOACCENT) diff --git a/parser/testdata/corpus/sql/collate/test_collate_and_grouping_sets.test b/parser/testdata/corpus/sql/collate/test_collate_and_grouping_sets.test index 16156e9a..63d6db2d 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_and_grouping_sets.test +++ b/parser/testdata/corpus/sql/collate/test_collate_and_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_and_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set default_collation=c; diff --git a/parser/testdata/corpus/sql/collate/test_collate_between.test b/parser/testdata/corpus/sql/collate/test_collate_between.test index d3c4b96d..05adc105 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_between.test +++ b/parser/testdata/corpus/sql/collate/test_collate_between.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_between.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR, t VARCHAR) diff --git a/parser/testdata/corpus/sql/collate/test_collate_case_insensitive.test b/parser/testdata/corpus/sql/collate/test_collate_case_insensitive.test index 23f7c4a1..418addce 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_case_insensitive.test +++ b/parser/testdata/corpus/sql/collate/test_collate_case_insensitive.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_case_insensitive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR COLLATE NOCASE) diff --git a/parser/testdata/corpus/sql/collate/test_collate_expression.test b/parser/testdata/corpus/sql/collate/test_collate_expression.test index cfc52417..bd2f9bb0 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_expression.test +++ b/parser/testdata/corpus/sql/collate/test_collate_expression.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR) diff --git a/parser/testdata/corpus/sql/collate/test_collate_list.test b/parser/testdata/corpus/sql/collate/test_collate_list.test index 309229ef..f3ab55e8 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_list.test +++ b/parser/testdata/corpus/sql/collate/test_collate_list.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA collations diff --git a/parser/testdata/corpus/sql/collate/test_collate_list_contains.test b/parser/testdata/corpus/sql/collate/test_collate_list_contains.test index 186f33d6..22f27307 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_list_contains.test +++ b/parser/testdata/corpus/sql/collate/test_collate_list_contains.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_list_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_contains(['hello', 'world'], 'HELLO' COLLATE NOCASE) diff --git a/parser/testdata/corpus/sql/collate/test_collate_list_has_any_all.test b/parser/testdata/corpus/sql/collate/test_collate_list_has_any_all.test new file mode 100644 index 00000000..f2d4fb7a --- /dev/null +++ b/parser/testdata/corpus/sql/collate/test_collate_list_has_any_all.test @@ -0,0 +1,58 @@ +# source: test/sql/collate/test_collate_list_has_any_all.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT list_has_any(['A' COLLATE NOCASE, 'b'], ['B', 'z']), list_has_any(['A', 'b'], ['B' COLLATE NOCASE]), + list_has_all(['A' COLLATE NOCASE, 'b'], ['a', 'B']), list_has_all(['A', 'b'], ['B' COLLATE NOCASE, 'c']) +-- +ok +== +SELECT list_has_any(['A', 'b'], ['a', 'B']), list_has_all(['A', 'b'], ['a']) +-- +ok +== +SELECT list_has_any(['héllo'], ['HELLO' COLLATE NOACCENT.NOCASE]), list_has_all(['HÉLLO', 'x'], ['hello' COLLATE NOACCENT.NOCASE]) +-- +ok +== +SELECT list_has_any([NULL, 'BB'], ['bb' COLLATE NOCASE]), list_has_all([NULL, 'BB'], ['bb' COLLATE NOCASE, NULL]), + list_has_any([]::VARCHAR[], ['a' COLLATE NOCASE]), list_has_all(['A' COLLATE NOCASE], []::VARCHAR[]) +-- +ok +== +SELECT array_has_any(['A' COLLATE NOCASE], ['a']), array_has_all(['A' COLLATE NOCASE], ['a']), + ['A' COLLATE NOCASE] && ['a'], ['A' COLLATE NOCASE] @> ['a'], ['a'] <@ ['A' COLLATE NOCASE], + ['A'] <@ ['a' COLLATE NOCASE, 'b'] +-- +ok +== +SELECT list_has_any(['A', 'B']::VARCHAR[2], ['b' COLLATE NOCASE]), list_has_all(['A', 'B']::VARCHAR[2], ['b' COLLATE NOCASE, 'a']), + list_has_any(['A', 'B']::VARCHAR[2], ['b']) +-- +ok +== +SELECT list_has_any([{'s': 'A' COLLATE NOCASE}], [{'s': 'a'}]), + list_has_any([{'v': 1::TINYINT::VARIANT}], [{'v': 1::BIGINT::VARIANT}]), + list_has_all([{'v': 1::TINYINT::VARIANT}, {'v': 'x'::VARIANT}], [{'v': 1::BIGINT::VARIANT}]) +-- +ok +== +SELECT list_has_any(['A' COLLATE NOCASE], ['a' COLLATE NOACCENT]) +-- +ok +== +CREATE TABLE t AS SELECT i AS id, ['A' || (i % 7), 'B'] AS tags, ('a' || (i % 3))::VARCHAR COLLATE NOCASE AS needle +FROM range(5000) r(i); +-- +ok +== +SELECT count(*) FILTER (WHERE list_has_any(tags, [needle])), count(*) FILTER (WHERE list_has_all(tags, [needle, 'b'])) +FROM t +-- +ok +== +SELECT count(*) FROM t WHERE list_has_any(tags, [needle]) = list_contains(tags, needle) +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/test_collate_null_constant.test b/parser/testdata/corpus/sql/collate/test_collate_null_constant.test index d40b29a3..8dfec76b 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_null_constant.test +++ b/parser/testdata/corpus/sql/collate/test_collate_null_constant.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_null_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT AGE(NULL, NULL) GROUP BY AGE(NULL, NULL); diff --git a/parser/testdata/corpus/sql/collate/test_collate_orderby_column_number.test b/parser/testdata/corpus/sql/collate/test_collate_orderby_column_number.test index ad7af7af..15779e71 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_orderby_column_number.test +++ b/parser/testdata/corpus/sql/collate/test_collate_orderby_column_number.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_orderby_column_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'a' AS c1 ORDER BY 1 COLLATE NOCASE; diff --git a/parser/testdata/corpus/sql/collate/test_collate_pivot.test b/parser/testdata/corpus/sql/collate/test_collate_pivot.test index 028dd4c0..9b375af3 100644 --- a/parser/testdata/corpus/sql/collate/test_collate_pivot.test +++ b/parser/testdata/corpus/sql/collate/test_collate_pivot.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collate_pivot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA default_collation=NOACCENT; diff --git a/parser/testdata/corpus/sql/collate/test_collation_propagation.test b/parser/testdata/corpus/sql/collate/test_collation_propagation.test index b534212a..e99cbe08 100644 --- a/parser/testdata/corpus/sql/collate/test_collation_propagation.test +++ b/parser/testdata/corpus/sql/collate/test_collation_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_collation_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select a from tbl where contains(b collate nocase, 'O') order by all diff --git a/parser/testdata/corpus/sql/collate/test_combined_collation.test b/parser/testdata/corpus/sql/collate/test_combined_collation.test index d468119e..816b148d 100644 --- a/parser/testdata/corpus/sql/collate/test_combined_collation.test +++ b/parser/testdata/corpus/sql/collate/test_combined_collation.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_combined_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR COLLATE NOACCENT.NOCASE) diff --git a/parser/testdata/corpus/sql/collate/test_default_collation_functions.test b/parser/testdata/corpus/sql/collate/test_default_collation_functions.test new file mode 100644 index 00000000..90baac46 --- /dev/null +++ b/parser/testdata/corpus/sql/collate/test_default_collation_functions.test @@ -0,0 +1,56 @@ +# source: test/sql/collate/test_default_collation_functions.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE strings AS SELECT i, CASE WHEN i % 2 = 0 THEN 'ABC' ELSE 'xyz' END AS s FROM range(5000) t(i); +-- +ok +== +SELECT contains('ABC', 'b'), 'ABC' LIKE '%b%', starts_with('ABC', 'a'), 'ABC' GLOB '*b*', instr('ABC', 'b'), list_contains(['A'], 'a') +-- +ok +== +PREPARE contains_b AS SELECT contains(?, 'b'); +-- +ok +== +EXECUTE contains_b('ABC') +-- +ok +== +SELECT contains('ABC', 'b'), 'ABC' LIKE '%b%', starts_with('ABC', 'a'), 'ABC' GLOB '*b*', instr('ABC', 'b'), list_contains(['A'], 'a'), 'A' = 'a' +-- +ok +== +SELECT count(*) FILTER (WHERE contains(s, 'b')), count(*) FILTER (WHERE s LIKE 'a%'), count(*) FILTER (WHERE starts_with(s, 'XY')), + count(*) FILTER (WHERE contains(s, 'b') = contains(s COLLATE NOCASE, 'b')) +FROM strings +-- +ok +== +SELECT count(*) FROM strings WHERE list_contains(['abc'], s) +-- +ok +== +SELECT list_position(['x', 'A'], 'a'), 'ABC' NOT LIKE '%b%', 'ABC' NOT ILIKE '%b%', 'A_C' LIKE 'aX_c' ESCAPE 'X', + ('A_C' LIKE 'aX_c' ESCAPE 'X') = ('A_C' COLLATE NOCASE LIKE 'aX_c' ESCAPE 'X') +-- +ok +== +SET default_collation = 'noaccent.nocase'; +-- +ok +== +SELECT contains('HÉLLO', 'e'), list_contains(['héllo'], 'HELLO') +-- +ok +== +RESET default_collation; +-- +ok +== +SELECT contains('ABC', 'b'), list_contains(['A'], 'a') +-- +ok +== diff --git a/parser/testdata/corpus/sql/collate/test_default_collations.test b/parser/testdata/corpus/sql/collate/test_default_collations.test index 6ec27507..5a387f94 100644 --- a/parser/testdata/corpus/sql/collate/test_default_collations.test +++ b/parser/testdata/corpus/sql/collate/test_default_collations.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_default_collations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA default_collation='NOCASE' diff --git a/parser/testdata/corpus/sql/collate/test_icu_collate.test b/parser/testdata/corpus/sql/collate/test_icu_collate.test index 49bfd639..3db598dc 100644 --- a/parser/testdata/corpus/sql/collate/test_icu_collate.test +++ b/parser/testdata/corpus/sql/collate/test_icu_collate.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_icu_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO strings VALUES ('Gabel'), ('Göbel'), ('Goethe'), ('Goldmann'), ('Göthe'), ('Götz'); diff --git a/parser/testdata/corpus/sql/collate/test_pragma_collations.test b/parser/testdata/corpus/sql/collate/test_pragma_collations.test index 3b5c19ba..76329cec 100644 --- a/parser/testdata/corpus/sql/collate/test_pragma_collations.test +++ b/parser/testdata/corpus/sql/collate/test_pragma_collations.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_pragma_collations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from pragma_collations() diff --git a/parser/testdata/corpus/sql/collate/test_strpos_collate.test b/parser/testdata/corpus/sql/collate/test_strpos_collate.test index 302bd218..114c6868 100644 --- a/parser/testdata/corpus/sql/collate/test_strpos_collate.test +++ b/parser/testdata/corpus/sql/collate/test_strpos_collate.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_strpos_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strpos('HELLO' COLLATE NOCASE, 'el') diff --git a/parser/testdata/corpus/sql/collate/test_unsupported_collations.test b/parser/testdata/corpus/sql/collate/test_unsupported_collations.test index 08fd8c3a..9b6b0f3b 100644 --- a/parser/testdata/corpus/sql/collate/test_unsupported_collations.test +++ b/parser/testdata/corpus/sql/collate/test_unsupported_collations.test @@ -1,6 +1,6 @@ # source: test/sql/collate/test_unsupported_collations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collate_test(s VARCHAR COLLATE blabla) diff --git a/parser/testdata/corpus/sql/conjunction/or_between.test b/parser/testdata/corpus/sql/conjunction/or_between.test index 6cb87543..8b95e1ed 100644 --- a/parser/testdata/corpus/sql/conjunction/or_between.test +++ b/parser/testdata/corpus/sql/conjunction/or_between.test @@ -1,6 +1,6 @@ # source: test/sql/conjunction/or_between.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tab0(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 VARCHAR, col3 INTEGER, col4 FLOAT, col5 VARCHAR); diff --git a/parser/testdata/corpus/sql/conjunction/or_comparison.test b/parser/testdata/corpus/sql/conjunction/or_comparison.test index 8e69c9ea..d87c5f2c 100644 --- a/parser/testdata/corpus/sql/conjunction/or_comparison.test +++ b/parser/testdata/corpus/sql/conjunction/or_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/conjunction/or_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tab0(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 VARCHAR, col3 INTEGER, col4 FLOAT, col5 VARCHAR);; diff --git a/parser/testdata/corpus/sql/conjunction/or_select_order.test b/parser/testdata/corpus/sql/conjunction/or_select_order.test new file mode 100644 index 00000000..28651f9f --- /dev/null +++ b/parser/testdata/corpus/sql/conjunction/or_select_order.test @@ -0,0 +1,86 @@ +# source: test/sql/conjunction/or_select_order.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE ints AS +SELECT + i, + CASE WHEN i % 13 = 0 THEN NULL ELSE i % 1000 END AS v, + CASE WHEN i % 17 = 0 THEN NULL ELSE i % 7 END AS w +FROM range(10000) t(i); +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE v < 250 OR v >= 750), sum(((v < 250 OR v >= 750) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE v < 250 OR v >= 750 +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE v < 250 OR v >= 750) = sum(CASE WHEN (v < 250 OR v >= 750) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE v < 100 OR v BETWEEN 300 AND 400 OR w = 3), sum(((v < 100 OR v BETWEEN 300 AND 400 OR w = 3) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE v < 100 OR v BETWEEN 300 AND 400 OR w = 3 +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE v < 100 OR v BETWEEN 300 AND 400 OR w = 3) = sum(CASE WHEN (v < 100 OR v BETWEEN 300 AND 400 OR w = 3) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE (v < 500 AND w = 1) OR (v >= 500 AND w = 2)), sum((((v < 500 AND w = 1) OR (v >= 500 AND w = 2)) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE (v < 500 AND w = 1) OR (v >= 500 AND w = 2) +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE (v < 500 AND w = 1) OR (v >= 500 AND w = 2)) = sum(CASE WHEN ((v < 500 AND w = 1) OR (v >= 500 AND w = 2)) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE (w = 1 AND v < 300) OR v % 9 = 0 OR (w = 4 AND v > 900)), sum((((w = 1 AND v < 300) OR v % 9 = 0 OR (w = 4 AND v > 900)) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE (w = 1 AND v < 300) OR v % 9 = 0 OR (w = 4 AND v > 900) +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE (w = 1 AND v < 300) OR v % 9 = 0 OR (w = 4 AND v > 900)) = sum(CASE WHEN ((w = 1 AND v < 300) OR v % 9 = 0 OR (w = 4 AND v > 900)) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE ((v < 200 OR w = 6) AND i % 2 = 0) OR (v > 800 AND (w = 0 OR w IS NULL))), sum(((((v < 200 OR w = 6) AND i % 2 = 0) OR (v > 800 AND (w = 0 OR w IS NULL))) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE ((v < 200 OR w = 6) AND i % 2 = 0) OR (v > 800 AND (w = 0 OR w IS NULL)) +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE ((v < 200 OR w = 6) AND i % 2 = 0) OR (v > 800 AND (w = 0 OR w IS NULL))) = sum(CASE WHEN (((v < 200 OR w = 6) AND i % 2 = 0) OR (v > 800 AND (w = 0 OR w IS NULL))) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== +SELECT (SELECT count(*) FROM ints WHERE v IS NULL OR w IS NULL OR (v + w) % 11 = 0), sum(((v IS NULL OR w IS NULL OR (v + w) % 11 = 0) IS TRUE)::INT) FROM ints +-- +ok +== +SELECT list(i) = list(i ORDER BY i) FROM ints WHERE v IS NULL OR w IS NULL OR (v + w) % 11 = 0 +-- +ok +== +SELECT (SELECT sum(i) FROM ints WHERE v IS NULL OR w IS NULL OR (v + w) % 11 = 0) = sum(CASE WHEN (v IS NULL OR w IS NULL OR (v + w) % 11 = 0) IS TRUE THEN i ELSE 0 END) FROM ints +-- +ok +== diff --git a/parser/testdata/corpus/sql/connect/concurrent_connect_detach.test b/parser/testdata/corpus/sql/connect/concurrent_connect_detach.test index 31cf3afc..47f2fa42 100644 --- a/parser/testdata/corpus/sql/connect/concurrent_connect_detach.test +++ b/parser/testdata/corpus/sql/connect/concurrent_connect_detach.test @@ -1,8 +1,16 @@ # source: test/sql/connect/concurrent_connect_detach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit +SET VARIABLE server_uri = (SELECT concat('''', listen_uri, '''') FROM quack_serve('quack:localhost:0', token='test_token')); +-- +ok +== +ATTACH {server_uri} AS qk (TOKEN 'test_token'); +-- +error: Parser Error: syntax error at or near "}" +== CONNECT qk; -- ok diff --git a/parser/testdata/corpus/sql/connect/connect_failure_keeps_local_transaction.test b/parser/testdata/corpus/sql/connect/connect_failure_keeps_local_transaction.test new file mode 100644 index 00000000..ecee4954 --- /dev/null +++ b/parser/testdata/corpus/sql/connect/connect_failure_keeps_local_transaction.test @@ -0,0 +1,57 @@ +# source: test/sql/connect/connect_failure_keeps_local_transaction.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET VARIABLE server_uri = (SELECT concat('''', listen_uri, '''') FROM quack_serve('quack:127.0.0.1:0', token='test_token')); +-- +ok +== +SET GLOBAL quack_prepare_inline_rows = 0; +-- +ok +== +CREATE TABLE local_t AS SELECT 1 AS i; +-- +ok +== +INSERT INTO local_t VALUES (2); +-- +ok +== +CREATE GRANT; +-- +error: Parser Error: syntax error at or near "GRANT" +== +SELECT CASE WHEN i < 3 THEN i ELSE error('late failure') END FROM range(10) t(i); +-- +ok +== +SELECT 'unterminated +-- +error: Parser Error: unterminated string literal +== +SELECT sum(i) FROM local_t; +-- +ok +== +INSERT INTO local_t VALUES (3); +-- +ok +== +INSERT INTO local_t VALUES (4); +-- +ok +== +CONNECT {server_uri} (TOKEN 'test_token'); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT * FROM no_such_table; +-- +ok +== +CALL quack_stop({server_uri}); +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/connect/connect_passthrough_quack.test b/parser/testdata/corpus/sql/connect/connect_passthrough_quack.test index 77499d8c..c4bf06a8 100644 --- a/parser/testdata/corpus/sql/connect/connect_passthrough_quack.test +++ b/parser/testdata/corpus/sql/connect/connect_passthrough_quack.test @@ -1,6 +1,6 @@ # source: test/sql/connect/connect_passthrough_quack.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD quack; @@ -11,10 +11,6 @@ CALL enable_logging('Quack'); -- ok == -CREATE GRANT; --- -error: Parser Error: syntax error at or near "GRANT" -== CONNECT no_such_db; -- ok diff --git a/parser/testdata/corpus/sql/connect/connect_quack.test b/parser/testdata/corpus/sql/connect/connect_quack.test index 86c660de..88577489 100644 --- a/parser/testdata/corpus/sql/connect/connect_quack.test +++ b/parser/testdata/corpus/sql/connect/connect_quack.test @@ -1,6 +1,6 @@ # source: test/sql/connect/connect_quack.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT range AS x, range * 2 AS y FROM range(3); @@ -35,15 +35,11 @@ SELECT getvariable('v'); -- ok == -CONNECT 'quack:localhost' (TOKEN 'test_token'); --- -ok -== SELECT count(*) FROM pragma_database_list WHERE name LIKE '__connect%'; -- ok == -CONNECT 'quack:localhost' (TOKEN 'wrong_token'); +CONNECT {server_uri} (TOKEN 'wrong_token'); -- -ok +error: Parser Error: syntax error at or near "{" == diff --git a/parser/testdata/corpus/sql/connect/connect_string_ephemeral.test b/parser/testdata/corpus/sql/connect/connect_string_ephemeral.test index 3b59a311..3c099343 100644 --- a/parser/testdata/corpus/sql/connect/connect_string_ephemeral.test +++ b/parser/testdata/corpus/sql/connect/connect_string_ephemeral.test @@ -1,9 +1,13 @@ # source: test/sql/connect/connect_string_ephemeral.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CONNECT ':memory:'; -- ok == +SELECT error('boom'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/connect/connect_syntax.test b/parser/testdata/corpus/sql/connect/connect_syntax.test index 1d73343d..1c4d379e 100644 --- a/parser/testdata/corpus/sql/connect/connect_syntax.test +++ b/parser/testdata/corpus/sql/connect/connect_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/connect/connect_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CONNECT; diff --git a/parser/testdata/corpus/sql/connect/disconnect_aborted_transaction.test b/parser/testdata/corpus/sql/connect/disconnect_aborted_transaction.test new file mode 100644 index 00000000..87d418c2 --- /dev/null +++ b/parser/testdata/corpus/sql/connect/disconnect_aborted_transaction.test @@ -0,0 +1,33 @@ +# source: test/sql/connect/disconnect_aborted_transaction.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE remote_t (i INT); +-- +ok +== +CREATE TABLE local_t (i INT); +-- +ok +== +INSERT INTO qk.remote_t VALUES (1); +-- +ok +== +INSERT INTO local_t VALUES (1); +-- +ok +== +SELECT count(*) FROM remote_t; +-- +ok +== +SELECT count(*) FROM local_t; +-- +ok +== +SELECT (SELECT count(*) FROM local_t), (SELECT count(*) FROM remote_t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/constraints/check/check_qualified_names.test b/parser/testdata/corpus/sql/constraints/check/check_qualified_names.test index 8a010af9..644f91c9 100644 --- a/parser/testdata/corpus/sql/constraints/check/check_qualified_names.test +++ b/parser/testdata/corpus/sql/constraints/check/check_qualified_names.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/check/check_qualified_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE c(x STRUCT(y INT), y STRUCT(x INT), CHECK (x.y < 10)); diff --git a/parser/testdata/corpus/sql/constraints/check/check_struct.test b/parser/testdata/corpus/sql/constraints/check/check_struct.test index 70c52ae7..dc91d74f 100644 --- a/parser/testdata/corpus/sql/constraints/check/check_struct.test +++ b/parser/testdata/corpus/sql/constraints/check/check_struct.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/check/check_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(t ROW(t INTEGER) CHECK(t.t=42)); diff --git a/parser/testdata/corpus/sql/constraints/check/test_check.test b/parser/testdata/corpus/sql/constraints/check/test_check.test index 1745a68d..48082341 100644 --- a/parser/testdata/corpus/sql/constraints/check/test_check.test +++ b/parser/testdata/corpus/sql/constraints/check/test_check.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/check/test_check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER CHECK(i < 5)) diff --git a/parser/testdata/corpus/sql/constraints/check/test_update_check_non_updated_columns.test b/parser/testdata/corpus/sql/constraints/check/test_update_check_non_updated_columns.test index e8b4745f..e0eea5cc 100644 --- a/parser/testdata/corpus/sql/constraints/check/test_update_check_non_updated_columns.test +++ b/parser/testdata/corpus/sql/constraints/check/test_update_check_non_updated_columns.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/check/test_update_check_non_updated_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 ( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_19469.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_19469.test index 71bb94fd..0b9fe12a 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_19469.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_19469.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_19469.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE B (b1 INTEGER, diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_20530.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_20530.test index 545deb86..ac2c45d9 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_20530.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_20530.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_20530.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA freddy; diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_4309.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_4309.test index c5b81fbb..0713be6d 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_4309.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_4309.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_4309.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tf_1 ( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_4365.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_4365.test index 0dbc571a..abd2d625 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_4365.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_4365.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_4365.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table x (c1 integer, primary key (c1)); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_alter_preserves_parent_dependency.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_alter_preserves_parent_dependency.test new file mode 100644 index 00000000..cb608b06 --- /dev/null +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_alter_preserves_parent_dependency.test @@ -0,0 +1,113 @@ +# source: test/sql/constraints/foreignkey/fk_alter_preserves_parent_dependency.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE parent(id INTEGER PRIMARY KEY, val TEXT); +-- +ok +== +CREATE TABLE child(id INTEGER, pid INTEGER REFERENCES parent(id)); +-- +ok +== +INSERT INTO parent VALUES (1, 'a'), (2, 'b'); +-- +ok +== +INSERT INTO child VALUES (10, 1); +-- +ok +== +ALTER TABLE parent RENAME TO parent2 +-- +ok +== +ALTER TABLE child ADD COLUMN extra INTEGER; +-- +ok +== +ALTER TABLE child RENAME COLUMN extra TO extra2; +-- +ok +== +ALTER TABLE child ALTER COLUMN extra2 SET DEFAULT 5; +-- +ok +== +UPDATE child SET extra2 = 0 WHERE extra2 IS NULL; +-- +ok +== +ALTER TABLE child ALTER COLUMN extra2 SET NOT NULL; +-- +ok +== +ALTER TABLE child ALTER COLUMN extra2 DROP DEFAULT; +-- +ok +== +INSERT INTO child VALUES (11, 2, 7); +-- +ok +== +SELECT count(*) FROM child; +-- +ok +== +CREATE TABLE selfref(id INTEGER PRIMARY KEY, pid INTEGER REFERENCES selfref(id)); +-- +ok +== +ALTER TABLE selfref ADD COLUMN x INTEGER; +-- +ok +== +INSERT INTO selfref VALUES (1, NULL, 9); +-- +ok +== +INSERT INTO selfref VALUES (2, 42, 9); +-- +ok +== +ATTACH '__TEST_DIR__/fk_dep.db' AS fkdb +-- +ok +== +CREATE TABLE fkdb.parent(id INTEGER PRIMARY KEY, val TEXT) +-- +ok +== +CREATE TABLE fkdb.child(id INTEGER, pid INTEGER REFERENCES parent(id)) +-- +ok +== +ALTER TABLE fkdb.child ADD COLUMN extra INTEGER +-- +ok +== +CHECKPOINT fkdb +-- +ok +== +DETACH fkdb +-- +ok +== +ALTER TABLE fkdb.parent RENAME TO parent2 +-- +ok +== +INSERT INTO fkdb.parent VALUES (1, 'a') +-- +ok +== +INSERT INTO fkdb.child VALUES (10, 1, 5) +-- +ok +== +INSERT INTO fkdb.child VALUES (11, 99, 5) +-- +ok +== diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_case_insensitivity.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_case_insensitivity.test index 720c69d7..5c9fe6c2 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_case_insensitivity.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_case_insensitivity.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_case_insensitivity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a (a int not null, constraint pk_a primary key (A)); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_implicit_primary_key.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_implicit_primary_key.test index 41bd3598..6d1360e0 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_implicit_primary_key.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_implicit_primary_key.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_implicit_primary_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table b (i int references a); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/fk_self_reference_tostring.test b/parser/testdata/corpus/sql/constraints/foreignkey/fk_self_reference_tostring.test index 162caab0..d8c28b27 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/fk_self_reference_tostring.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/fk_self_reference_tostring.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/fk_self_reference_tostring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INT PRIMARY KEY, parent INT REFERENCES t(id)); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/foreign_key_matching_columns.test b/parser/testdata/corpus/sql/constraints/foreignkey/foreign_key_matching_columns.test index 9aa2a47f..e398a98f 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/foreign_key_matching_columns.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/foreign_key_matching_columns.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/foreign_key_matching_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE routes ( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_action.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_action.test index b4321856..a6502340 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_action.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_action.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_action.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(id INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_alter.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_alter.test index 2319a48f..06d05668 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_alter.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_alter.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE departments ( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_chain.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_chain.test index 67552bac..b0a5d7ad 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_chain.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_chain.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(i1 INTEGER UNIQUE) diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_concurrency_conflicts.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_concurrency_conflicts.test index bdf924dd..ea08bfcd 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_concurrency_conflicts.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_concurrency_conflicts.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_concurrency_conflicts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pk_integers(i INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_or_replace.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_or_replace.test index 3850345e..46beacb1 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_or_replace.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_or_replace.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_create_or_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent (id INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_type.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_type.test index 2aca9f7e..e9bc56f7 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_type.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_create_type.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_create_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create type custom_type as integer; diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_cross_schema.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_cross_schema.test index ba1f08cd..9dd61cc9 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_cross_schema.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_cross_schema.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_cross_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s2 diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_eager_constraint_checking.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_eager_constraint_checking.test index d73b0b19..113818b2 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_eager_constraint_checking.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_eager_constraint_checking.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_eager_constraint_checking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version = 'v0.10.3'; diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_export.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_export.test index e64a3434..8948879f 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_export.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_export.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPORT DATABASE '{TEST_DIR}/fk_constraint' diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_key_multiple_key_actions.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_key_multiple_key_actions.test index 75100bc5..0afb8d4b 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_key_multiple_key_actions.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_key_multiple_key_actions.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_key_multiple_key_actions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent (id INT PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_multiple.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_multiple.test index 6ed950aa..0298ea36 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_multiple.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_multiple.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_multiple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pkt1( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_on_view_error.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_on_view_error.test index 8cf93d35..a8cd8aba 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_on_view_error.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_on_view_error.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_on_view_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vdata AS SELECT * FROM (VALUES ('v2',)) v(id); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_pk_multi_transaction_delete.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_pk_multi_transaction_delete.test index a22b6609..339f92db 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_pk_multi_transaction_delete.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_pk_multi_transaction_delete.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_pk_multi_transaction_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE primary_table (id INT PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_rollback.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_rollback.test index df2c41ba..51648e9f 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_rollback.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO pk_integers VALUES (1); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_reference_export.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_reference_export.test index dbb20500..231fc7dc 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_reference_export.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_reference_export.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_self_reference_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE self_ref(id INTEGER PRIMARY KEY, parent_id INTEGER REFERENCES self_ref(id)); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_referencing.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_referencing.test index 64676d1b..c509035e 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_referencing.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_self_referencing.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_self_referencing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE employee( diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_temporary.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_temporary.test index ddcedaa0..a75c4a4b 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_temporary.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_temporary.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_temporary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE album (artistid INTEGER, albumname TEXT, albumcover TEXT, UNIQUE (artistid, albumname)); diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_transaction.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_transaction.test index 878af8f0..7649934a 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_transaction.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pkt(i INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_with_attached_db.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_with_attached_db.test index eea2264f..8fffdd03 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_with_attached_db.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_fk_with_attached_db.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_fk_with_attached_db.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_fk_db.db' AS db1; diff --git a/parser/testdata/corpus/sql/constraints/foreignkey/test_foreignkey.test b/parser/testdata/corpus/sql/constraints/foreignkey/test_foreignkey.test index d3a30e2a..66a4b12a 100644 --- a/parser/testdata/corpus/sql/constraints/foreignkey/test_foreignkey.test +++ b/parser/testdata/corpus/sql/constraints/foreignkey/test_foreignkey.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/foreignkey/test_foreignkey.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE song(songid INTEGER, songartist INTEGER, songalbum TEXT, songname TEXT, FOREIGN KEY(songartist, songalbum) REFERENCES album(artistid)); diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_bool.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_bool.test index 11733541..7142cd84 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_bool.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_bool.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j BOOLEAN, PRIMARY KEY(i, j)) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_col_subset.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_col_subset.test index 571c69a1..782c2ed5 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_col_subset.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_col_subset.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_col_subset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(a integer, b integer, c integer, d integer, e integer, PRIMARY KEY(a,b)) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_concurrency_conflicts.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_concurrency_conflicts.test index 8c298691..cf4e6671 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_concurrency_conflicts.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_concurrency_conflicts.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_concurrency_conflicts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_many_columns.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_many_columns.test index cad0a47b..d24edf06 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_many_columns.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_many_columns.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_many_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(a integer, b integer, c integer, d integer, e integer, PRIMARY KEY(a,b,c,d,e)) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_column.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_column.test index e3059610..63dabd11 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_column.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j VARCHAR, PRIMARY KEY(i, j)) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_string.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_string.test index eaa9a4bc..2086eaa9 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_string.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_multi_string.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_multi_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tst(a varchar, b varchar,PRIMARY KEY(a,b)) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_rollback.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_rollback.test index 9a04ecb0..320ff3b2 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_rollback.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1); diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_string.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_string.test index 79288404..a016bd35 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_string.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_string.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(i varchar PRIMARY KEY, j INTEGER) diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_update_delete.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_update_delete.test index c17b6f70..f44e9337 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_update_delete.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_update_delete.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_update_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER PRIMARY KEY, b INTEGER); diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_local.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_local.test index 6c8a87e4..2e2dea35 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_local.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_local.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_updel_local.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=33; diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_multi_column.test b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_multi_column.test index 4f9ba235..97695734 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_multi_column.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_pk_updel_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_pk_updel_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b VARCHAR, PRIMARY KEY(a, b)); diff --git a/parser/testdata/corpus/sql/constraints/primarykey/test_primary_key.test b/parser/testdata/corpus/sql/constraints/primarykey/test_primary_key.test index 006d716e..da485d95 100644 --- a/parser/testdata/corpus/sql/constraints/primarykey/test_primary_key.test +++ b/parser/testdata/corpus/sql/constraints/primarykey/test_primary_key.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/primarykey/test_primary_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER PRIMARY KEY, j INTEGER) diff --git a/parser/testdata/corpus/sql/constraints/test_constraint_with_updates.test b/parser/testdata/corpus/sql/constraints/test_constraint_with_updates.test index b877a78d..f5b929e9 100644 --- a/parser/testdata/corpus/sql/constraints/test_constraint_with_updates.test +++ b/parser/testdata/corpus/sql/constraints/test_constraint_with_updates.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/test_constraint_with_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER CHECK(i + j < 5), k INTEGER) diff --git a/parser/testdata/corpus/sql/constraints/test_named_column_constraints.test b/parser/testdata/corpus/sql/constraints/test_named_column_constraints.test index b1bf559e..94c8f09f 100644 --- a/parser/testdata/corpus/sql/constraints/test_named_column_constraints.test +++ b/parser/testdata/corpus/sql/constraints/test_named_column_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/test_named_column_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE p(id INT PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/constraints/test_not_null.test b/parser/testdata/corpus/sql/constraints/test_not_null.test index ed2ac076..29b39a43 100644 --- a/parser/testdata/corpus/sql/constraints/test_not_null.test +++ b/parser/testdata/corpus/sql/constraints/test_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/test_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER NOT NULL) diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique.test b/parser/testdata/corpus/sql/constraints/unique/test_unique.test index 17d86a87..5dfa9eba 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER UNIQUE, j INTEGER) diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique_error.test b/parser/testdata/corpus/sql/constraints/unique/test_unique_error.test index 8d457d37..a5f39b70 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique_error.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique_error.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE integers(i INTEGER, j VARCHAR) diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_column.test b/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_column.test index d31ca8e1..82f1e6a3 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_column.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE integers(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_constraint.test b/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_constraint.test index c64f802e..2febe1e9 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_constraint.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique_multi_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique_multi_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER PRIMARY KEY, j INTEGER UNIQUE) diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique_string.test b/parser/testdata/corpus/sql/constraints/unique/test_unique_string.test index 5eb3aba9..3857f21f 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique_string.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique_string.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX "uidx" ON "integers" ("j") diff --git a/parser/testdata/corpus/sql/constraints/unique/test_unique_temp.test b/parser/testdata/corpus/sql/constraints/unique/test_unique_temp.test index e5f3c88d..25221bbb 100644 --- a/parser/testdata/corpus/sql/constraints/unique/test_unique_temp.test +++ b/parser/testdata/corpus/sql/constraints/unique/test_unique_temp.test @@ -1,6 +1,6 @@ # source: test/sql/constraints/unique/test_unique_temp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX uidx ON integers (i) diff --git a/parser/testdata/corpus/sql/copy/async_file_character_device.test b/parser/testdata/corpus/sql/copy/async_file_character_device.test index b08894c1..22a2d883 100644 --- a/parser/testdata/corpus/sql/copy/async_file_character_device.test +++ b/parser/testdata/corpus/sql/copy/async_file_character_device.test @@ -1,6 +1,6 @@ # source: test/sql/copy/async_file_character_device.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42) TO '/dev/null' (FORMAT CSV); diff --git a/parser/testdata/corpus/sql/copy/async_file_lifecycle.test b/parser/testdata/corpus/sql/copy/async_file_lifecycle.test index 7cfaf016..5f1b3294 100644 --- a/parser/testdata/corpus/sql/copy/async_file_lifecycle.test +++ b/parser/testdata/corpus/sql/copy/async_file_lifecycle.test @@ -1,6 +1,6 @@ # source: test/sql/copy/async_file_lifecycle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET async_threads=2; diff --git a/parser/testdata/corpus/sql/copy/copy_blob.test b/parser/testdata/corpus/sql/copy/copy_blob.test index 8639aad5..bd23d0d3 100644 --- a/parser/testdata/corpus/sql/copy/copy_blob.test +++ b/parser/testdata/corpus/sql/copy/copy_blob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (select 'foo') TO '{TEST_DIR}/test.blob' (FORMAT BLOB); diff --git a/parser/testdata/corpus/sql/copy/copy_blob_options.test b/parser/testdata/corpus/sql/copy/copy_blob_options.test index 80b2e7f6..fe868540 100644 --- a/parser/testdata/corpus/sql/copy/copy_blob_options.test +++ b/parser/testdata/corpus/sql/copy/copy_blob_options.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_blob_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'duck'::BLOB) TO '{TEST_DIR}/blob_list_compression.gz' diff --git a/parser/testdata/corpus/sql/copy/copy_column_identifier_conversion.test b/parser/testdata/corpus/sql/copy/copy_column_identifier_conversion.test index 16761154..9912ed44 100644 --- a/parser/testdata/corpus/sql/copy/copy_column_identifier_conversion.test +++ b/parser/testdata/corpus/sql/copy/copy_column_identifier_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_column_identifier_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET enable_logging = true; diff --git a/parser/testdata/corpus/sql/copy/copy_cte.test b/parser/testdata/corpus/sql/copy/copy_cte.test index 269f5403..e639820a 100644 --- a/parser/testdata/corpus/sql/copy/copy_cte.test +++ b/parser/testdata/corpus/sql/copy/copy_cte.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE copy_cte_source (i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/copy_legacy_options.test b/parser/testdata/corpus/sql/copy/copy_legacy_options.test index 0c6caec9..297bdf39 100644 --- a/parser/testdata/corpus/sql/copy/copy_legacy_options.test +++ b/parser/testdata/corpus/sql/copy/copy_legacy_options.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_legacy_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INT, b INT, c INT); diff --git a/parser/testdata/corpus/sql/copy/copy_order_by_collation.test b/parser/testdata/corpus/sql/copy/copy_order_by_collation.test index d6153bb3..c0533979 100644 --- a/parser/testdata/corpus/sql/copy/copy_order_by_collation.test +++ b/parser/testdata/corpus/sql/copy/copy_order_by_collation.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_order_by_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM (VALUES ('B'), ('a'), ('C')) v(s)) TO '{TEST_DIR}/copy_order_by_collation.parquet' (FORMAT parquet, ORDER_BY (s COLLATE nocase)) diff --git a/parser/testdata/corpus/sql/copy/copy_order_by_subquery.test b/parser/testdata/corpus/sql/copy/copy_order_by_subquery.test index 270b3c3f..174eb6ab 100644 --- a/parser/testdata/corpus/sql/copy/copy_order_by_subquery.test +++ b/parser/testdata/corpus/sql/copy/copy_order_by_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_order_by_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM (VALUES (2), (1)) t(p)) TO '{TEST_DIR}/copy_order_by_subquery.parquet' (FORMAT parquet, ORDER_BY (p + (SELECT 0))) diff --git a/parser/testdata/corpus/sql/copy/copy_to_attached_database_path.test b/parser/testdata/corpus/sql/copy/copy_to_attached_database_path.test new file mode 100644 index 00000000..62842fa7 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/copy_to_attached_database_path.test @@ -0,0 +1,41 @@ +# source: test/sql/copy/copy_to_attached_database_path.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/copy_over_attached.db' AS ca; +-- +ok +== +CREATE TABLE ca.t AS SELECT range i FROM range(1000); +-- +ok +== +COPY (SELECT 1 a) TO '{TEST_DIR}/copy_over_attached.db' (FORMAT csv, USE_TMP_FILE false); +-- +ok +== +COPY (SELECT 1 a) TO '{TEST_DIR}/copy_over_attached.db'; +-- +ok +== +SELECT sum(i) FROM ca.t; +-- +ok +== +COPY (SELECT 1 a) TO '{TEST_DIR}/copy_not_attached.csv' (FORMAT csv); +-- +ok +== +CREATE TABLE m AS SELECT 42 i; +-- +ok +== +COPY (SELECT 1 a) TO '{TEST_DIR}/copy_over_main.db' (FORMAT csv); +-- +ok +== +SELECT i FROM m; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/copy_to_parameter_filename.test b/parser/testdata/corpus/sql/copy/copy_to_parameter_filename.test index 85037f26..cbe45ae3 100644 --- a/parser/testdata/corpus/sql/copy/copy_to_parameter_filename.test +++ b/parser/testdata/corpus/sql/copy/copy_to_parameter_filename.test @@ -1,6 +1,6 @@ # source: test/sql/copy/copy_to_parameter_filename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE q AS COPY (SELECT 42 AS x) TO $1 (FORMAT csv); diff --git a/parser/testdata/corpus/sql/copy/csv/14512.test b/parser/testdata/corpus/sql/copy/csv/14512.test index 63b6632e..1dd8e748 100644 --- a/parser/testdata/corpus/sql/copy/csv/14512.test +++ b/parser/testdata/corpus/sql/copy/csv/14512.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/14512.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/14512.csv', strict_mode=TRUE); diff --git a/parser/testdata/corpus/sql/copy/csv/14874.test b/parser/testdata/corpus/sql/copy/csv/14874.test index b4593f4f..bdbcef9b 100644 --- a/parser/testdata/corpus/sql/copy/csv/14874.test +++ b/parser/testdata/corpus/sql/copy/csv/14874.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/14874.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_csv('{DATA_DIR}/csv/drug_exposure.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/17738.test b/parser/testdata/corpus/sql/copy/csv/17738.test index 99fe2292..9b5f7f5d 100644 --- a/parser/testdata/corpus/sql/copy/csv/17738.test +++ b/parser/testdata/corpus/sql/copy/csv/17738.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/17738.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/17738_rn.csv',header=False,skip=3, delim = ';'); diff --git a/parser/testdata/corpus/sql/copy/csv/17744.test b/parser/testdata/corpus/sql/copy/csv/17744.test index b61a396f..9aba8ecf 100644 --- a/parser/testdata/corpus/sql/copy/csv/17744.test +++ b/parser/testdata/corpus/sql/copy/csv/17744.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/17744.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/csv/18579.test b/parser/testdata/corpus/sql/copy/csv/18579.test index 1fd336ab..ecda6dfd 100644 --- a/parser/testdata/corpus/sql/copy/csv/18579.test +++ b/parser/testdata/corpus/sql/copy/csv/18579.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/18579.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DESCRIBE FROM read_csv('{DATA_DIR}/csv/18579/*.csv', union_by_name = true); diff --git a/parser/testdata/corpus/sql/copy/csv/19578.test b/parser/testdata/corpus/sql/copy/csv/19578.test index 21c0a70a..97a7d785 100644 --- a/parser/testdata/corpus/sql/copy/csv/19578.test +++ b/parser/testdata/corpus/sql/copy/csv/19578.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/19578.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT Delimiter, Quote, Escape FROM sniff_csv("data/19578.csv"); diff --git a/parser/testdata/corpus/sql/copy/csv/21248.test b/parser/testdata/corpus/sql/copy/csv/21248.test index 1962eeb5..75d87112 100644 --- a/parser/testdata/corpus/sql/copy/csv/21248.test +++ b/parser/testdata/corpus/sql/copy/csv/21248.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/21248.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv(['data/csv/unionbyname_21248_*.csv'], union_by_name = true, ignore_errors = true, all_varchar = true); diff --git a/parser/testdata/corpus/sql/copy/csv/25268.test b/parser/testdata/corpus/sql/copy/csv/25268.test index 7b100946..6697f61a 100644 --- a/parser/testdata/corpus/sql/copy/csv/25268.test +++ b/parser/testdata/corpus/sql/copy/csv/25268.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/25268.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT CASE WHEN i = 2 THEN NULL ELSE '0123456789' END AS a FROM range(1, 4) t(i)) TO '{TEST_DIR}/empty_line.csv' (HEADER false); diff --git a/parser/testdata/corpus/sql/copy/csv/26049.test b/parser/testdata/corpus/sql/copy/csv/26049.test index fff18344..7a3b30c4 100644 --- a/parser/testdata/corpus/sql/copy/csv/26049.test +++ b/parser/testdata/corpus/sql/copy/csv/26049.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/26049.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT col1 FROM read_csv('data/csv/26049.csv', columns={'col1': 'VARCHAR', 'col2': 'VARCHAR'}, escape='\', header=true, auto_detect=false, strict_mode=false); diff --git a/parser/testdata/corpus/sql/copy/csv/7702.test b/parser/testdata/corpus/sql/copy/csv/7702.test index fa6e8fe5..525d7e08 100644 --- a/parser/testdata/corpus/sql/copy/csv/7702.test +++ b/parser/testdata/corpus/sql/copy/csv/7702.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/7702.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_csv_auto( ['{DATA_DIR}/csv/error/mismatch/half1.csv', '{DATA_DIR}/csv/error/mismatch/half2.csv'], ignore_errors=true, sample_size=1); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250211_crash.test b/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250211_crash.test index 6cade388..9c8a265f 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250211_crash.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250211_crash.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/fuzz_20250211_crash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/20250211_csv_fuzz_crash/case_53.csv', buffer_size=42); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250226.test b/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250226.test index 244ab6cd..2155a0fe 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250226.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/fuzz_20250226.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/fuzz_20250226.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(file) from glob('./data/csv/afl/20250226_csv_fuzz_error/*'); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_ignore_errors.test b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_ignore_errors.test index 7b58d04e..367170bc 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_ignore_errors.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_ignore_errors.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_afl_ignore_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/ignore_errors/{i}.csv', ignore_errors = true) diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_no_parameter.test b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_no_parameter.test index 01c22a11..7550a199 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_no_parameter.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_no_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_afl_no_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/afl/no_parameter/{i}.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_null_padding.test b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_null_padding.test index 213647a0..a75400c8 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_null_padding.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_null_padding.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_afl_null_padding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/null_padding/{i}.csv', null_padding=true) diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_skip.test b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_skip.test index 380ba87c..4d6b5873 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_afl_skip.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_afl_skip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_afl_skip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/skip/{i}.csv', skip=1) diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_3977.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_3977.test index 7efa53dd..43674c12 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_3977.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_3977.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_3977.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(file) from glob('./data/csv/afl/3977/*'); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4086.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4086.test index 290abd27..9ef84c5c 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4086.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4086.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4086.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4086/case_1.csv', auto_detect=false, columns={'json': 'JSON'}, delim=NULL, buffer_size=42, store_rejects=true, rejects_limit=658694493994253607); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4172.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4172.test index 4172bfb5..ce0174d9 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4172.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4172.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4172.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4172/case_4.csv', ignore_errors=true, buffer_size=1, store_rejects=false); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4234.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4234.test index 4887a095..432b6fb9 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4234.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4234.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4234.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4234/test_fuzz_4234.csv', buffer_size=30, delim=';', header=false, null_padding=true, union_by_name=false); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4329.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4329.test index 30247d38..8963f6a8 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4329.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4329.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4329.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4329/case_1.csv', escape='\', buffer_size=42, skip=42, strict_mode=false); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4379.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4379.test index caabae08..7120080c 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4379.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4379.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4379.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4496.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4496.test index b52b1b83..7414fd70 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4496.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4496.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4496.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4496/crashes/case_0.csv', auto_detect=false, buffer_size=42, columns={'json': 'JSON'}, delim=NULL, rejects_limit=658694493994253607, store_rejects=true); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4793.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4793.test index 65928d0a..a9be67b1 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4793.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_4793.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_4793.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/4793/crashes/case_0.csv', auto_detect=false, columns={'a':'varchar'}, delim='', encoding='latin-1', header=false, quote=''); diff --git a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_5194.test b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_5194.test index 92378b1c..66534102 100644 --- a/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_5194.test +++ b/parser/testdata/corpus/sql/copy/csv/afl/test_fuzz_5194.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/afl/test_fuzz_5194.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/5194/crashes/case_0.csv', auto_detect=false, buffer_size=8, columns={'a': 'integer','b': 'integer','c': 'integer'}, header=true, maximum_line_size=0); diff --git a/parser/testdata/corpus/sql/copy/csv/allow_empty.test b/parser/testdata/corpus/sql/copy/csv/allow_empty.test index 8e96e7b6..b451b869 100644 --- a/parser/testdata/corpus/sql/copy/csv/allow_empty.test +++ b/parser/testdata/corpus/sql/copy/csv/allow_empty.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/allow_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv('{TEST_DIR}/allow_empty_missing.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_14177.test b/parser/testdata/corpus/sql/copy/csv/auto/test_14177.test index cb718486..8b27e495 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_14177.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_14177.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_14177.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) FROM (FROM read_csv('{DATA_DIR}/csv/auto/14177.csv', buffer_size=80, ignore_errors = true)) as t diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5250.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5250.test index 5678e0cd..72ee3806 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5250.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5250.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_5250.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from read_csv_auto('{DATA_DIR}/csv/page_namespacepage_title_sample.csv', SAMPLE_SIZE = -1) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5378.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5378.test index 3184171e..c4e2eb57 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5378.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_5378.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_5378.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_csv_auto ('{DATA_DIR}/csv/auto/titlebasicsdebug.tsv', nullstr='\N', sample_size = -1); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8231.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8231.test index 5d0f74fd..1281a8b9 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8231.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8231.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_8231.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view locations_header_trailing_comma as SELECT * from read_csv_auto('{DATA_DIR}/csv/locations_row_trailing_comma.csv', null_padding=True) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8573.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8573.test index 81c301e5..11690dc5 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8573.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8573.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_8573.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(bignumber), typeof(bignumber::DECIMAL(25,3)) FROM read_csv('{DATA_DIR}/csv/big_number.csv', COLUMNS={'bignumber': 'DECIMAL(25,3)'}, QUOTE='"', DELIM=','); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8649.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8649.test index 8f187b83..a1e9ec08 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8649.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8649.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_8649.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv_auto("{DATA_DIR}/csv/dim0.csv") ; diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8860.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8860.test index 9640f9ee..b77c592f 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8860.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_8860.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_8860.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_csv_auto("{DATA_DIR}/csv/auto/product_codes_HS17_V202301.csv.gz", quote = '"', comment='', delim = ',') ; diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_column_type_opt.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_column_type_opt.test index 3b0daddd..ceb51646 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_column_type_opt.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_column_type_opt.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_column_type_opt.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_csv('{DATA_DIR}/csv/test/multi_column_string.csv', COLUMN_TYPES=STRUCT_PACK(a := 'INTEGER')) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_cranlogs.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_cranlogs.test index 0b016ae0..c463ed44 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_cranlogs.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_cranlogs.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_cranlogs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cranlogs AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/real/tmp2013-06-15.csv.gz'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_ncvoter.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_ncvoter.test index daf0cfb8..8e514945 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_ncvoter.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_ncvoter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_greek_ncvoter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS ncvoters(county_id INTEGER, county_desc STRING, voter_reg_num STRING,status_cd STRING, voter_status_desc STRING, reason_cd STRING, voter_status_reason_desc STRING, absent_ind STRING, name_prefx_cd STRING,last_name STRING, first_name STRING, midl_name STRING, name_sufx_cd STRING, full_name_rep STRING,full_name_mail STRING, house_num STRING, half_code STRING, street_dir STRING, street_name STRING, street_type_cd STRING, street_sufx_cd STRING, unit_designator STRING, unit_num STRING, res_city_desc STRING,state_cd STRING, zip_code STRING, res_street_address STRING, res_city_state_zip STRING, mail_addr1 STRING, mail_addr2 STRING, mail_addr3 STRING, mail_addr4 STRING, mail_city STRING, mail_state STRING, mail_zipcode STRING, mail_city_state_zip STRING, area_cd STRING, phone_num STRING, full_phone_number STRING, drivers_lic STRING, race_code STRING, race_desc STRING, ethnic_code STRING, ethnic_desc STRING, party_cd STRING, party_desc STRING, sex_code STRING, sex STRING, birth_age STRING, birth_place STRING, registr_dt STRING, precinct_abbrv STRING, precinct_desc STRING,municipality_abbrv STRING, municipality_desc STRING, ward_abbrv STRING, ward_desc STRING, cong_dist_abbrv STRING, cong_dist_desc STRING, super_court_abbrv STRING, super_court_desc STRING, judic_dist_abbrv STRING, judic_dist_desc STRING, nc_senate_abbrv STRING, nc_senate_desc STRING, nc_house_abbrv STRING, nc_house_desc STRING,county_commiss_abbrv STRING, county_commiss_desc STRING, township_abbrv STRING, township_desc STRING,school_dist_abbrv STRING, school_dist_desc STRING, fire_dist_abbrv STRING, fire_dist_desc STRING, water_dist_abbrv STRING, water_dist_desc STRING, sewer_dist_abbrv STRING, sewer_dist_desc STRING, sanit_dist_abbrv STRING, sanit_dist_desc STRING, rescue_dist_abbrv STRING, rescue_dist_desc STRING, munic_dist_abbrv STRING, munic_dist_desc STRING, dist_1_abbrv STRING, dist_1_desc STRING, dist_2_abbrv STRING, dist_2_desc STRING, confidential_ind STRING, age STRING, ncid STRING, vtd_abbrv STRING, vtd_desc STRING); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_utf8.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_utf8.test index d1f47e37..5f5a4ad3 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_utf8.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_greek_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_greek_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE greek_utf8 AS SELECT i, nfc_normalize(j) j, k FROM read_csv_auto ('{DATA_DIR}/csv/real/greek_utf8.csv') t(i, j, k) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_imdb.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_imdb.test index 3e234fb1..da372315 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_imdb.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_imdb.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_imdb.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE movie_info AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/real/imdb_movie_info_escaped.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_lineitem.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_lineitem.test index 7b89acdc..3cbcfe5a 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_lineitem.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_lineitem.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_lineitem.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(l_orderkey INT NOT NULL, l_partkey INT NOT NULL, l_suppkey INT NOT NULL, l_linenumber INT NOT NULL, l_quantity INTEGER NOT NULL, l_extendedprice DECIMAL(15,2) NOT NULL, l_discount DECIMAL(15,2) NOT NULL, l_tax DECIMAL(15,2) NOT NULL, l_returnflag VARCHAR(1) NOT NULL, l_linestatus VARCHAR(1) NOT NULL, l_shipdate DATE NOT NULL, l_commitdate DATE NOT NULL, l_receiptdate DATE NOT NULL, l_shipinstruct VARCHAR(25) NOT NULL, l_shipmode VARCHAR(10) NOT NULL, l_comment VARCHAR(44) NOT NULL); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_ontime.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_ontime.test index 88949b69..ed6ba0f1 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_ontime.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_ontime.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_ontime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ontime(year SMALLINT, quarter SMALLINT, month SMALLINT, dayofmonth SMALLINT, dayofweek SMALLINT, flightdate DATE, uniquecarrier CHAR(7), airlineid DECIMAL(8,2), carrier CHAR(2), tailnum VARCHAR(50), flightnum VARCHAR(10), originairportid INTEGER, originairportseqid INTEGER, origincitymarketid INTEGER, origin CHAR(5), origincityname VARCHAR(100), originstate CHAR(2), originstatefips VARCHAR(10), originstatename VARCHAR(100), originwac DECIMAL(8,2), destairportid INTEGER, destairportseqid INTEGER, destcitymarketid INTEGER, dest CHAR(5), destcityname VARCHAR(100), deststate CHAR(2), deststatefips VARCHAR(10), deststatename VARCHAR(100), destwac DECIMAL(8,2), crsdeptime DECIMAL(8,2), deptime DECIMAL(8,2), depdelay DECIMAL(8,2), depdelayminutes DECIMAL(8,2), depdel15 DECIMAL(8,2), departuredelaygroups DECIMAL(8,2), deptimeblk VARCHAR(20), taxiout DECIMAL(8,2), wheelsoff DECIMAL(8,2), wheelson DECIMAL(8,2), taxiin DECIMAL(8,2), crsarrtime DECIMAL(8,2), arrtime DECIMAL(8,2), arrdelay DECIMAL(8,2), arrdelayminutes DECIMAL(8,2), arrdel15 DECIMAL(8,2), arrivaldelaygroups DECIMAL(8,2), arrtimeblk VARCHAR(20), cancelled DECIMAL(8,2), cancellationcode CHAR(1), diverted DECIMAL(8,2), crselapsedtime DECIMAL(8,2), actualelapsedtime DECIMAL(8,2), airtime DECIMAL(8,2), flights DECIMAL(8,2), distance DECIMAL(8,2), distancegroup DECIMAL(8,2), carrierdelay DECIMAL(8,2), weatherdelay DECIMAL(8,2), nasdelay DECIMAL(8,2), securitydelay DECIMAL(8,2), lateaircraftdelay DECIMAL(8,2), firstdeptime VARCHAR(10), totaladdgtime VARCHAR(10), longestaddgtime VARCHAR(10), divairportlandings VARCHAR(10), divreacheddest VARCHAR(10), divactualelapsedtime VARCHAR(10), divarrdelay VARCHAR(10), divdistance VARCHAR(10), div1airport VARCHAR(10), div1aiportid INTEGER, div1airportseqid INTEGER, div1wheelson VARCHAR(10), div1totalgtime VARCHAR(10), div1longestgtime VARCHAR(10), div1wheelsoff VARCHAR(10), div1tailnum VARCHAR(10), div2airport VARCHAR(10), div2airportid INTEGER, div2airportseqid INTEGER, div2wheelson VARCHAR(10), div2totalgtime VARCHAR(10), div2longestgtime VARCHAR(10), div2wheelsoff VARCHAR(10), div2tailnum VARCHAR(10), div3airport VARCHAR(10), div3airportid INTEGER, div3airportseqid INTEGER, div3wheelson VARCHAR(10), div3totalgtime VARCHAR(10), div3longestgtime VARCHAR(10), div3wheelsoff VARCHAR(10), div3tailnum VARCHAR(10), div4airport VARCHAR(10), div4airportid INTEGER, div4airportseqid INTEGER, div4wheelson VARCHAR(10), div4totalgtime VARCHAR(10), div4longestgtime VARCHAR(10), div4wheelsoff VARCHAR(10), div4tailnum VARCHAR(10), div5airport VARCHAR(10), div5airportid INTEGER, div5airportseqid INTEGER, div5wheelson VARCHAR(10), div5totalgtime VARCHAR(10), div5longestgtime VARCHAR(10), div5wheelsoff VARCHAR(10), div5tailnum VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_web_page.test b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_web_page.test index e8e207e2..dbb3e983 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_auto_web_page.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_auto_web_page.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_auto_web_page.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE web_page AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/real/web_page.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_csv_auto.test b/parser/testdata/corpus/sql/copy/csv/auto/test_csv_auto.test index ec00570b..8b0b4fb7 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_csv_auto.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_csv_auto.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_csv_auto.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/repromarket.csv', diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_date_format_bug_linux.test b/parser/testdata/corpus/sql/copy/csv/auto/test_date_format_bug_linux.test index a5396315..2716ddc7 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_date_format_bug_linux.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_date_format_bug_linux.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_date_format_bug_linux.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv_auto('{DATA_DIR}/csv/auto/date_format_bug_linux.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_describe_order.test b/parser/testdata/corpus/sql/copy/csv/auto/test_describe_order.test index b8848d47..dfe4d8a3 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_describe_order.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_describe_order.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_describe_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view v as select * from read_csv_auto('{DATA_DIR}/csv/who.csv.gz'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_double_quoted_header.test b/parser/testdata/corpus/sql/copy/csv/auto/test_double_quoted_header.test index 3e9a0b1f..a729c8d2 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_double_quoted_header.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_double_quoted_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_double_quoted_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit describe from '{DATA_DIR}/csv/double_quoted_header.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_early_out.test b/parser/testdata/corpus/sql/copy/csv/auto/test_early_out.test index a66133dd..d583c407 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_early_out.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_early_out.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_early_out.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_header_completion.test b/parser/testdata/corpus/sql/copy/csv/auto/test_header_completion.test index 3e1fdbca..840c4157 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_header_completion.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_header_completion.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_header_completion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/auto/missing_header_col.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_header_detection.test b/parser/testdata/corpus/sql/copy/csv/auto/test_header_detection.test index e59c0145..c2dea1bc 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_header_detection.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_header_detection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_header_detection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/auto/no_header.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_large_integer_detection.test b/parser/testdata/corpus/sql/copy/csv/auto/test_large_integer_detection.test index 853c9dba..892dc696 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_large_integer_detection.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_large_integer_detection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_large_integer_detection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE large_integer_detection AS diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_normalize_names.test b/parser/testdata/corpus/sql/copy/csv/auto/test_normalize_names.test index 83b1d187..2139a179 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_normalize_names.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_normalize_names.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_normalize_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns from sniff_csv('{DATA_DIR}/csv/test_commit_rollback.csv', normalize_names = true) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_sample_size.test b/parser/testdata/corpus/sql/copy/csv/auto/test_sample_size.test index 90917625..c5e59ff9 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_sample_size.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_sample_size.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_sample_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/auto/issue_811.csv', SAMPLE_SIZE=1); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_blob.test b/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_blob.test index 819023ea..487cd845 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_blob.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_blob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_sniffer_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from read_csv('{DATA_DIR}/csv/test/blob.csv',auto_type_candidates=['blob']) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_empty_start_value.test b/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_empty_start_value.test index baeca2f3..f7d585a9 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_empty_start_value.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_sniffer_empty_start_value.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_sniffer_empty_start_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/empty_space_start_value.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_timings_csv.test b/parser/testdata/corpus/sql/copy/csv/auto/test_timings_csv.test index 2d51435a..268a8978 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_timings_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_timings_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_timings_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE timings(tool string, sf float, day string, batch_type string, q string, parameters string, time float); diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_type_candidates.test b/parser/testdata/corpus/sql/copy/csv/auto/test_type_candidates.test index b104b4cd..e9e8f22e 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_type_candidates.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_type_candidates.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_type_candidates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (a integer, b double, c varchar) diff --git a/parser/testdata/corpus/sql/copy/csv/auto/test_type_detection.test b/parser/testdata/corpus/sql/copy/csv/auto/test_type_detection.test index 9fd75f6e..c4f29a3d 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto/test_type_detection.test +++ b/parser/testdata/corpus/sql/copy/csv/auto/test_type_detection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto/test_type_detection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT * FROM read_csv_auto ('{DATA_DIR}/csv/auto/large_mixed_data.csv', SAMPLE_SIZE=-1); diff --git a/parser/testdata/corpus/sql/copy/csv/auto_glob_directory.test b/parser/testdata/corpus/sql/copy/csv/auto_glob_directory.test index eb4e4e0e..9ee135cb 100644 --- a/parser/testdata/corpus/sql/copy/csv/auto_glob_directory.test +++ b/parser/testdata/corpus/sql/copy/csv/auto_glob_directory.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/auto_glob_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i%2 AS grp, i FROM range(1000) t(i)) TO '{TEST_DIR}/partitioned_glob_csv' (FORMAT csv, PARTITION_BY (grp)); diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/buffer_manager_finalize.test b/parser/testdata/corpus/sql/copy/csv/code_cov/buffer_manager_finalize.test index 29ff337c..2c23e691 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/buffer_manager_finalize.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/buffer_manager_finalize.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/buffer_manager_finalize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS select i, (i+1) as j from range(0,3000) tbl(i) diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_core_encodings.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_core_encodings.test index e4483205..31405b7b 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_core_encodings.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_core_encodings.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_core_encodings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_dialect_detection.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_dialect_detection.test index 3a4f9e50..6c61b602 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_dialect_detection.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_dialect_detection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_dialect_detection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * from read_csv_auto('{DATA_DIR}/csv/escape.csv', escape=']', header = 0) diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_exact_buffer_size.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_exact_buffer_size.test index 025cd2cb..824b22e7 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_exact_buffer_size.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_exact_buffer_size.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_exact_buffer_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/auto/issue_1254_rn.csv', buffer_size=10) diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_scanner_conversion.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_scanner_conversion.test index 3bba6bc0..29e5aede 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_scanner_conversion.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_scanner_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_scanner_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_sniffer_header.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_sniffer_header.test index d44b40c6..2eb284cf 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_sniffer_header.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_sniffer_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_sniffer_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) from read_csv_auto('{DATA_DIR}/csv/header_left_space.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_state_machine_invalid_utf.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_state_machine_invalid_utf.test index efe0fad7..6dd22597 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_state_machine_invalid_utf.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_state_machine_invalid_utf.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_state_machine_invalid_utf.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv_auto('{DATA_DIR}/csv/test/invalid_utf.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_detection.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_detection.test index e8cedd2c..fef1ffb3 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_detection.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_detection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_type_detection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv_auto('{DATA_DIR}/csv/invalid_utf8.csv', auto_detect = false, columns={'c01': 'VARCHAR'} ) diff --git a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_refinement.test b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_refinement.test index af720e0e..4f740546 100644 --- a/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_refinement.test +++ b/parser/testdata/corpus/sql/copy/csv/code_cov/csv_type_refinement.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/code_cov/csv_type_refinement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from read_csv_auto('{DATA_DIR}/csv/borked_date.csv', header = 0) diff --git a/parser/testdata/corpus/sql/copy/csv/column_names.test b/parser/testdata/corpus/sql/copy/csv/column_names.test index 11481c26..c1188e10 100644 --- a/parser/testdata/corpus/sql/copy/csv/column_names.test +++ b/parser/testdata/corpus/sql/copy/csv/column_names.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/column_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/test/issue2518.csv', header=False, columns={'rsID':'INT', 'CHR': 'VARCHAR', 'POS': 'INT','REFB': 'VARCHAR','ALTB':'VARCHAR'}, auto_detect = false) diff --git a/parser/testdata/corpus/sql/copy/csv/comment_quoting.test b/parser/testdata/corpus/sql/copy/csv/comment_quoting.test index f124c484..2943ec87 100644 --- a/parser/testdata/corpus/sql/copy/csv/comment_quoting.test +++ b/parser/testdata/corpus/sql/copy/csv/comment_quoting.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/comment_quoting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'a#b' AS x, 'p!q' AS y, 'plain' AS z) diff --git a/parser/testdata/corpus/sql/copy/csv/compressed_read_size.test b/parser/testdata/corpus/sql/copy/csv/compressed_read_size.test index 87300d74..c8c1a635 100644 --- a/parser/testdata/corpus/sql/copy/csv/compressed_read_size.test +++ b/parser/testdata/corpus/sql/copy/csv/compressed_read_size.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/compressed_read_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i, md5(i::VARCHAR) AS h FROM range(200000) t(i)) TO '{TEST_DIR}/read_size.csv.gz' (COMPRESSION gzip) diff --git a/parser/testdata/corpus/sql/copy/csv/copy_disable_parallelism.test b/parser/testdata/corpus/sql/copy/csv/copy_disable_parallelism.test index 096cdd01..301cb5c0 100644 --- a/parser/testdata/corpus/sql/copy/csv/copy_disable_parallelism.test +++ b/parser/testdata/corpus/sql/copy/csv/copy_disable_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/copy_disable_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b INTEGER, c VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/copy_expression.test b/parser/testdata/corpus/sql/copy/csv/copy_expression.test index cb7b578c..4a96330b 100644 --- a/parser/testdata/corpus/sql/copy/csv/copy_expression.test +++ b/parser/testdata/corpus/sql/copy/csv/copy_expression.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/copy_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE copy_target = '{TEST_DIR}/copy_expression_target.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/copy_to_overwrite.test b/parser/testdata/corpus/sql/copy/csv/copy_to_overwrite.test index aa625d55..29a80243 100644 --- a/parser/testdata/corpus/sql/copy/csv/copy_to_overwrite.test +++ b/parser/testdata/corpus/sql/copy/csv/copy_to_overwrite.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/copy_to_overwrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM range(5) t(i)) TO '{TEST_DIR}/copy_to_overwrite.csv' (HEADER) diff --git a/parser/testdata/corpus/sql/copy/csv/csv_comment_quoted_sniff.test b/parser/testdata/corpus/sql/copy/csv/csv_comment_quoted_sniff.test new file mode 100644 index 00000000..4141a326 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/csv_comment_quoted_sniff.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/csv/csv_comment_quoted_sniff.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT l FROM (VALUES (1, '# c'), (2, 'object,polygon'), (3, '1,"a, b"'), (4, '2,"c, d"')) t(i, l) ORDER BY i) TO '{TEST_DIR}/comment_quote.csv' (HEADER false, QUOTE ''); +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/comment_quote.csv', header = true, comment = '#') +-- +ok +== +SELECT Quote, SkipRows, Columns FROM sniff_csv('{TEST_DIR}/comment_quote.csv', header = true, comment = '#') +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/comment_quote.csv', comment = '#') +-- +ok +== +COPY (SELECT l FROM (VALUES (1, 'object,polygon'), (2, '1,"a, b"'), (3, '# c'), (4, '2,"c, d"'), (5, '3,"e, f" # g')) t(i, l) ORDER BY i) TO '{TEST_DIR}/comment_quote_middle.csv' (HEADER false, QUOTE ''); +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/comment_quote_middle.csv', comment = '#') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/csv_copy_sniffer.test b/parser/testdata/corpus/sql/copy/csv/csv_copy_sniffer.test index 4bbefb03..e5bafbd9 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_copy_sniffer.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_copy_sniffer.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_copy_sniffer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE sales ( diff --git a/parser/testdata/corpus/sql/copy/csv/csv_decimal_separator.test b/parser/testdata/corpus/sql/copy/csv/csv_decimal_separator.test index aa890513..910e749b 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_decimal_separator.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_decimal_separator.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_decimal_separator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimal_separators AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/decimal_separators/decimal_separators.csv', column_types={'commas': 'double', 'periods': 'double'}, delim=';', decimal_separator=',') diff --git a/parser/testdata/corpus/sql/copy/csv/csv_dtypes.test b/parser/testdata/corpus/sql/copy/csv/csv_dtypes.test index 8034c80a..cd08bff2 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_dtypes.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_dtypes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_dtypes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof(Year), typeof(Quarter) from '{DATA_DIR}/csv/real/ontime_sample.csv' LIMIT 1; diff --git a/parser/testdata/corpus/sql/copy/csv/csv_dtypes_union_by_name.test b/parser/testdata/corpus/sql/copy/csv/csv_dtypes_union_by_name.test index 07169db0..f00f384a 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_dtypes_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_dtypes_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_dtypes_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ubn1(a BIGINT); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_duck_fuzz.test b/parser/testdata/corpus/sql/copy/csv/csv_duck_fuzz.test index 46d09500..c0f72cd9 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_duck_fuzz.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_duck_fuzz.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_duck_fuzz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL FROM sniff_csv('{DATA_DIR}/csv/14512.csv', {parameter} := NULL) diff --git a/parser/testdata/corpus/sql/copy/csv/csv_enum.test b/parser/testdata/corpus/sql/copy/csv/csv_enum.test index eb38af71..683d24a0 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_enum.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_enum.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE bla AS ENUM ('Y', 'N'); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_error_message.test b/parser/testdata/corpus/sql/copy/csv/csv_error_message.test index bcaeffd4..e5467da6 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_error_message.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_error_message.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_error_message.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/15473.csv', delim = ',', columns = {'A' : 'VARCHAR','B' : 'VARCHAR','C' : 'VARCHAR','D' : 'VARCHAR'}) diff --git a/parser/testdata/corpus/sql/copy/csv/csv_external_access.test b/parser/testdata/corpus/sql/copy/csv/csv_external_access.test index f13303a1..bd3b0d3a 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_external_access.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE date_test(d date); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_glob_fallback.test b/parser/testdata/corpus/sql/copy/csv/csv_glob_fallback.test index 470d6902..5731fab6 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_glob_fallback.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_glob_fallback.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_glob_fallback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/csv/[avalon]_daily-avg.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/csv_hive.test b/parser/testdata/corpus/sql/copy/csv/csv_hive.test index 733687a1..bd255344 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_hive.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_hive.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_hive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT 1 as id, 'value1' as value; diff --git a/parser/testdata/corpus/sql/copy/csv/csv_hive_filename_union.test b/parser/testdata/corpus/sql/copy/csv/csv_hive_filename_union.test index 28ab8e1e..88a02a5b 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_hive_filename_union.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_hive_filename_union.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_hive_filename_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select filename.replace('\', '/').split('/')[-2] from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', HIVE_PARTITIONING=1, FILENAME=1) order by 1 diff --git a/parser/testdata/corpus/sql/copy/csv/csv_home_directory.test b/parser/testdata/corpus/sql/copy/csv/csv_home_directory.test index a9a6e59c..3c8e297d 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_home_directory.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_home_directory.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_home_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(10) diff --git a/parser/testdata/corpus/sql/copy/csv/csv_last_value_error_no_newline.test b/parser/testdata/corpus/sql/copy/csv/csv_last_value_error_no_newline.test new file mode 100644 index 00000000..11d13235 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/csv_last_value_error_no_newline.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/csv/csv_last_value_error_no_newline.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT a FROM read_csv('data/csv/last_value_error_no_newline.csv', auto_detect=false, columns={'a': 'INTEGER'}, buffer_size=32, parallel={parallel}, ignore_errors=true) ORDER BY a; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT a FROM read_csv('data/csv/last_value_error_no_newline.csv', auto_detect=false, columns={'a': 'INTEGER'}, buffer_size=32, parallel={parallel}, store_rejects=true) ORDER BY a; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT * EXCLUDE (scan_id) FROM reject_errors; +-- +ok +== +DROP TABLE reject_errors; +-- +ok +== +DROP TABLE reject_scans; +-- +ok +== +SELECT * FROM read_csv('data/csv/last_value_error_no_newline.csv', auto_detect=false, columns={'a': 'INTEGER'}, buffer_size=32, parallel={parallel}); +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/copy/csv/csv_limit_copy.test b/parser/testdata/corpus/sql/copy/csv/csv_limit_copy.test index b64c40f4..1142bbd8 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_limit_copy.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_limit_copy.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_limit_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS FROM range(1000000) t(i); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_line_too_long.test b/parser/testdata/corpus/sql/copy/csv/csv_line_too_long.test index b6a8c0a2..5f9f055c 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_line_too_long.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_line_too_long.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_line_too_long.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T1 (name VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_multibyte_delimiter_escapes.test b/parser/testdata/corpus/sql/copy/csv/csv_multibyte_delimiter_escapes.test index a4b5087b..28fbec48 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_multibyte_delimiter_escapes.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_multibyte_delimiter_escapes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_multibyte_delimiter_escapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '"a""b"||x' FROM range(60)) TO '__TEST_DIR__/mb_esc.csv' (FORMAT CSV, HEADER false, QUOTE '', ESCAPE '', DELIMITER E'\t') diff --git a/parser/testdata/corpus/sql/copy/csv/csv_names.test b/parser/testdata/corpus/sql/copy/csv/csv_names.test index 6a554fd6..16e2218f 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_names.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_names.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/header_bug.csv', names=['col1', 'col1']) LIMIT 1; diff --git a/parser/testdata/corpus/sql/copy/csv/csv_null_byte.test b/parser/testdata/corpus/sql/copy/csv/csv_null_byte.test index 328ebdfb..3c665970 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_null_byte.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_null_byte.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_null_byte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/csv/nullbyte.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/csv_null_padding.test b/parser/testdata/corpus/sql/copy/csv/csv_null_padding.test index 866bfa53..f204ec81 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_null_padding.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_null_padding.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_null_padding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv_auto('{DATA_DIR}/csv/nullpadding_header.csv', null_padding=True, comment = '') diff --git a/parser/testdata/corpus/sql/copy/csv/csv_nullstr_list.test b/parser/testdata/corpus/sql/copy/csv/csv_nullstr_list.test index dd647a75..55eea2d9 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_nullstr_list.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_nullstr_list.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_nullstr_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/null/multiple_nulls.csv', auto_detect=false, delim=',', quote='"', escape='"', skip=0, header=true, columns={'name': 'VARCHAR', 'age': 'VARCHAR', 'height': 'VARCHAR'}, nullstr = ['','none','null']); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_projection_pushdown.test b/parser/testdata/corpus/sql/copy/csv/csv_projection_pushdown.test index 86c9634a..86245554 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_projection_pushdown.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INT, j VARCHAR, k DATE); diff --git a/parser/testdata/corpus/sql/copy/csv/csv_quoted_buffer_boundary.test b/parser/testdata/corpus/sql/copy/csv/csv_quoted_buffer_boundary.test new file mode 100644 index 00000000..c7ed203e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/csv_quoted_buffer_boundary.test @@ -0,0 +1,13 @@ +# source: test/sql/copy/csv/csv_quoted_buffer_boundary.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET threads=8 +-- +ok +== +COPY (SELECT i, 'v' || i AS s, i % 7 AS k FROM range(5000) r(i)) TO '__TEST_DIR__/quoted_boundary.csv' (FORCE_QUOTE (s)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_after_boundary.test b/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_after_boundary.test index a9e7f8f7..c38faf66 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_after_boundary.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_after_boundary.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_quoted_newline_after_boundary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'a,b' || chr(10) || repeat('y', 26) || ',1' || chr(10) || repeat('z', 31) || ',2' || chr(10) || '"' || chr(10) || 'ab",3' || chr(10) || '"c",4') TO '__TEST_DIR__/qnl.csv' (FORMAT CSV, HEADER false, QUOTE '', ESCAPE '', DELIMITER E'\t') diff --git a/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_incorrect.test b/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_incorrect.test index 1bc0a7c9..2a3153f2 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_incorrect.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_quoted_newline_incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_quoted_newline_incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/csv/csv_quoted_newline_odd.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/csv_roundtrip_single_null.test b/parser/testdata/corpus/sql/copy/csv/csv_roundtrip_single_null.test index cda599a5..03428196 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_roundtrip_single_null.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_roundtrip_single_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_roundtrip_single_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT NULL) TO '{TEST_DIR}/single_null.csv' (HEADER 0) diff --git a/parser/testdata/corpus/sql/copy/csv/csv_unterminated_quote_cast_error_eof.test b/parser/testdata/corpus/sql/copy/csv/csv_unterminated_quote_cast_error_eof.test new file mode 100644 index 00000000..c4c12d31 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/csv_unterminated_quote_cast_error_eof.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/csv/csv_unterminated_quote_cast_error_eof.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*), sum(a) FROM read_csv('data/csv/unterminated_quote_cast_error_eof.csv', auto_detect=false, header=false, columns={'a': 'INTEGER'}, buffer_size=4096, parallel={parallel}, strict_mode=true, store_rejects=true); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT line, column_idx, error_type, csv_line FROM reject_errors ORDER BY error_type; +-- +ok +== +SELECT * FROM read_csv('data/csv/unterminated_quote_cast_error_eof.csv', auto_detect=false, header=false, columns={'a': 'INTEGER'}, buffer_size=4096, parallel={parallel}, strict_mode=true); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*), sum(a) FROM read_csv('data/csv/unterminated_quote_cast_error_eof.csv', auto_detect=false, header=false, columns={'a': 'INTEGER'}, buffer_size=4096, parallel={parallel}, strict_mode=false, ignore_errors=true); +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/copy/csv/csv_windows_mixed_separators.test b/parser/testdata/corpus/sql/copy/csv/csv_windows_mixed_separators.test index fee0406a..8a135742 100644 --- a/parser/testdata/corpus/sql/copy/csv/csv_windows_mixed_separators.test +++ b/parser/testdata/corpus/sql/copy/csv/csv_windows_mixed_separators.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/csv_windows_mixed_separators.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}\csv/test/date.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/duck_fuzz/test_internal_4048.test b/parser/testdata/corpus/sql/copy/csv/duck_fuzz/test_internal_4048.test index bcb3e953..5be8491d 100644 --- a/parser/testdata/corpus/sql/copy/csv/duck_fuzz/test_internal_4048.test +++ b/parser/testdata/corpus/sql/copy/csv/duck_fuzz/test_internal_4048.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/duck_fuzz/test_internal_4048.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM sniff_csv('{DATA_DIR}/csv/14512.csv', names := [NULL]); diff --git a/parser/testdata/corpus/sql/copy/csv/empty_first_line.test b/parser/testdata/corpus/sql/copy/csv/empty_first_line.test index b95110a3..f9586d10 100644 --- a/parser/testdata/corpus/sql/copy/csv/empty_first_line.test +++ b/parser/testdata/corpus/sql/copy/csv/empty_first_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/empty_first_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv_auto('{DATA_DIR}/csv/empty_first_line.csv', delim=' '); diff --git a/parser/testdata/corpus/sql/copy/csv/empty_string_quote.test b/parser/testdata/corpus/sql/copy/csv/empty_string_quote.test index a1f5bf16..b6641064 100644 --- a/parser/testdata/corpus/sql/copy/csv/empty_string_quote.test +++ b/parser/testdata/corpus/sql/copy/csv/empty_string_quote.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/empty_string_quote.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE customer(c_customer_sk INTEGER, c_customer_id VARCHAR, c_current_cdemo_sk INTEGER, c_current_hdemo_sk INTEGER, c_current_addr_sk INTEGER, c_first_shipto_date_sk INTEGER, c_first_sales_date_sk INTEGER, c_salutation VARCHAR, c_first_name VARCHAR, c_last_name VARCHAR, c_preferred_cust_flag VARCHAR, c_birth_day INTEGER, c_birth_month INTEGER, c_birth_year INTEGER, c_birth_country VARCHAR, c_login VARCHAR, c_email_address VARCHAR, c_last_review_date_sk INTEGER); diff --git a/parser/testdata/corpus/sql/copy/csv/except.test b/parser/testdata/corpus/sql/copy/csv/except.test index d0b2d13c..34ddbbf4 100644 --- a/parser/testdata/corpus/sql/copy/csv/except.test +++ b/parser/testdata/corpus/sql/copy/csv/except.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/except.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 a, 2 b) TO '{TEST_DIR}/mismatch_types_except.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/glob/copy_csv_glob.test b/parser/testdata/corpus/sql/copy/csv/glob/copy_csv_glob.test index 99b9ef70..4668f6b5 100644 --- a/parser/testdata/corpus/sql/copy/csv/glob/copy_csv_glob.test +++ b/parser/testdata/corpus/sql/copy/csv/glob/copy_csv_glob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/glob/copy_csv_glob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(d DATE); diff --git a/parser/testdata/corpus/sql/copy/csv/glob/read_csv_glob.test b/parser/testdata/corpus/sql/copy/csv/glob/read_csv_glob.test index 9c68ae36..67b79db7 100644 --- a/parser/testdata/corpus/sql/copy/csv/glob/read_csv_glob.test +++ b/parser/testdata/corpus/sql/copy/csv/glob/read_csv_glob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/glob/read_csv_glob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof(#1),typeof(#2),typeof(#3),typeof(#4),typeof(#5) FROM read_csv('{DATA_DIR}/csv/per_thread/*.csv') limit 1 diff --git a/parser/testdata/corpus/sql/copy/csv/glob/test_unmatch_globs.test b/parser/testdata/corpus/sql/copy/csv/glob/test_unmatch_globs.test index 668e17f0..91e07e4d 100644 --- a/parser/testdata/corpus/sql/copy/csv/glob/test_unmatch_globs.test +++ b/parser/testdata/corpus/sql/copy/csv/glob/test_unmatch_globs.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/glob/test_unmatch_globs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/glob_dif_dialect/14166/__200*.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/inconsistent_cells_error.test b/parser/testdata/corpus/sql/copy/csv/inconsistent_cells_error.test index e2c03d06..c12ae9f5 100644 --- a/parser/testdata/corpus/sql/copy/csv/inconsistent_cells_error.test +++ b/parser/testdata/corpus/sql/copy/csv/inconsistent_cells_error.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/inconsistent_cells_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/csv/inconsistent_cells.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/integer_exponent.test b/parser/testdata/corpus/sql/copy/csv/integer_exponent.test index 8821198b..c2e22c7e 100644 --- a/parser/testdata/corpus/sql/copy/csv/integer_exponent.test +++ b/parser/testdata/corpus/sql/copy/csv/integer_exponent.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/integer_exponent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/csv/integer_exponent.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/issue_22153.test b/parser/testdata/corpus/sql/copy/csv/issue_22153.test index 92f00fe9..d481c4ee 100644 --- a/parser/testdata/corpus/sql/copy/csv/issue_22153.test +++ b/parser/testdata/corpus/sql/copy/csv/issue_22153.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/issue_22153.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'hello "world"' AS a, 42 AS b) TO '{TEST_DIR}/test_escape_default.csv' (HEADER false); diff --git a/parser/testdata/corpus/sql/copy/csv/issue_6690.test b/parser/testdata/corpus/sql/copy/csv/issue_6690.test index 6dc5db80..54b76fad 100644 --- a/parser/testdata/corpus/sql/copy/csv/issue_6690.test +++ b/parser/testdata/corpus/sql/copy/csv/issue_6690.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/issue_6690.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv_auto('{DATA_DIR}/csv/comma_decimal_null.csv',SEP=',',SAMPLE_SIZE=-1,decimal_separator=',') diff --git a/parser/testdata/corpus/sql/copy/csv/issue_6764.test b/parser/testdata/corpus/sql/copy/csv/issue_6764.test index 1af7d973..ca948c80 100644 --- a/parser/testdata/corpus/sql/copy/csv/issue_6764.test +++ b/parser/testdata/corpus/sql/copy/csv/issue_6764.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/issue_6764.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv_auto('{DATA_DIR}/csv/issue6764.csv', all_varchar=true, skip=1, null_padding=True) diff --git a/parser/testdata/corpus/sql/copy/csv/leading_zeros_autodetect.test b/parser/testdata/corpus/sql/copy/csv/leading_zeros_autodetect.test index 54986a85..e0fec89a 100644 --- a/parser/testdata/corpus/sql/copy/csv/leading_zeros_autodetect.test +++ b/parser/testdata/corpus/sql/copy/csv/leading_zeros_autodetect.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/leading_zeros_autodetect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE leading_zeros AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/leading_zeros.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_2_byte_delimiter.test b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_2_byte_delimiter.test index 7abea113..8e1e57ac 100644 --- a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_2_byte_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_2_byte_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/multidelimiter/test_2_byte_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/multidelimiter/aa_delim_small.csv', delim = 'aa', header = False, buffer_size = 8) diff --git a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_3_4_byte_delimiter.test b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_3_4_byte_delimiter.test index 06aa1e89..25e19697 100644 --- a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_3_4_byte_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_3_4_byte_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/multidelimiter/test_3_4_byte_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/multidelimiter/aaa_delim.csv', delim = 'aaa', header = False, buffer_size = {buffer_size}) diff --git a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_abac.test b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_abac.test index 23f3b6e6..79ab617c 100644 --- a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_abac.test +++ b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_abac.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/multidelimiter/test_abac.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/multidelimiter/aaab_delim.csv', delim = 'AAAB') diff --git a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_options_inconsistencies.test b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_options_inconsistencies.test index 72d89a64..8cc5a591 100644 --- a/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_options_inconsistencies.test +++ b/parser/testdata/corpus/sql/copy/csv/multidelimiter/test_options_inconsistencies.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/multidelimiter/test_options_inconsistencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/multidelimiter/aaa_delim.csv', delim = '"\', quote ='"') diff --git a/parser/testdata/corpus/sql/copy/csv/null_padding_big.test b/parser/testdata/corpus/sql/copy/csv/null_padding_big.test index 17f004d2..c4b056c5 100644 --- a/parser/testdata/corpus/sql/copy/csv/null_padding_big.test +++ b/parser/testdata/corpus/sql/copy/csv/null_padding_big.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/null_padding_big.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a VARCHAR, b INTEGER, c INTEGER); diff --git a/parser/testdata/corpus/sql/copy/csv/null_terminator.test b/parser/testdata/corpus/sql/copy/csv/null_terminator.test index b30973b8..93233072 100644 --- a/parser/testdata/corpus/sql/copy/csv/null_terminator.test +++ b/parser/testdata/corpus/sql/copy/csv/null_terminator.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/null_terminator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/null_terminator.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/null_value_wrong_type.test b/parser/testdata/corpus/sql/copy/csv/null_value_wrong_type.test index f9f51dd5..64de9b8a 100644 --- a/parser/testdata/corpus/sql/copy/csv/null_value_wrong_type.test +++ b/parser/testdata/corpus/sql/copy/csv/null_value_wrong_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/null_value_wrong_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit describe from '{DATA_DIR}/csv/null_mismatch.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/overwrite/test_copy_overwrite.test b/parser/testdata/corpus/sql/copy/csv/overwrite/test_copy_overwrite.test index 248e30e6..0b63e75c 100644 --- a/parser/testdata/corpus/sql/copy/csv/overwrite/test_copy_overwrite.test +++ b/parser/testdata/corpus/sql/copy/csv/overwrite/test_copy_overwrite.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/overwrite/test_copy_overwrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/overwrite/test_overwrite_pipe_windows.test b/parser/testdata/corpus/sql/copy/csv/overwrite/test_overwrite_pipe_windows.test index d69dfac6..d1bbd5e9 100644 --- a/parser/testdata/corpus/sql/copy/csv/overwrite/test_overwrite_pipe_windows.test +++ b/parser/testdata/corpus/sql/copy/csv/overwrite/test_overwrite_pipe_windows.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/overwrite/test_overwrite_pipe_windows.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42) to 'con:' diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_buffer_size.test b/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_buffer_size.test index c5506dfa..25408ff2 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_buffer_size.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_buffer_size.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/csv_parallel_buffer_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(a), sum(b), sum(c) FROM read_csv('{DATA_DIR}/csv/test/multi_column_integer.csv', COLUMNS=STRUCT_PACK(a := 'INTEGER', b := 'INTEGER', c := 'INTEGER'), auto_detect='true', delim = '|', buffer_size=30) diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_null_option.test b/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_null_option.test index 1c92ae6d..31e56e72 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_null_option.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/csv_parallel_null_option.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/csv_parallel_null_option.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_profiling diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_hive_partitioning.test b/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_hive_partitioning.test index 1afe1c59..5bf09ea2 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_hive_partitioning.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_hive_partitioning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/parallel_csv_hive_partitioning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select id, value, filename.replace('\', '/').split('/')[-2], filename.replace('\', '/').split('/')[-3] from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', FILENAME=1) order by id diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_union_by_name.test b/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_union_by_name.test index 9f0f14f0..6deb9f46 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/parallel_csv_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/parallel_csv_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id, value, a, part diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_5438.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_5438.test index 8686794a..18715795 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_5438.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_5438.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_5438.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT j->>'duck' FROM read_csv_auto('{DATA_DIR}/csv/test/5438.csv', delim='', columns={'j': 'JSON'}, auto_detect = false) diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_5566.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_5566.test index cce0125c..e74bff27 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_5566.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_5566.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_5566.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_csv_auto('{DATA_DIR}/csv/auto/test_single_column.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_7578.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_7578.test index 0e20f943..810c748d 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_7578.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_7578.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_7578.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE explicit_quote AS select * diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_multiple_files.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_multiple_files.test index 74f5fe2f..42819f16 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_multiple_files.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_multiple_files.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_multiple_files.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_csv_auto('{DATA_DIR}/csv/auto/glob/[0-9].csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_csv.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_csv.test index 55ed7195..ca3e8d9a 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_parallel_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/14512_og.csv', buffer_size = 473, strict_mode = false, delim = ',', quote = '"', escape = '"') diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_error_messages.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_error_messages.test index 284ca0c6..49da5319 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_error_messages.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_parallel_error_messages.test @@ -1,12 +1,8 @@ # source: test/sql/copy/csv/parallel/test_parallel_error_messages.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET threads=4 --- -ok -== SET preserve_insertion_order={batched} -- error: Parser Error: syntax error at or near "}" diff --git a/parser/testdata/corpus/sql/copy/csv/parallel/test_rrrn_parallel.test b/parser/testdata/corpus/sql/copy/csv/parallel/test_rrrn_parallel.test index 04a02664..242ba39e 100644 --- a/parser/testdata/corpus/sql/copy/csv/parallel/test_rrrn_parallel.test +++ b/parser/testdata/corpus/sql/copy/csv/parallel/test_rrrn_parallel.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/parallel/test_rrrn_parallel.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/csv/plus_autodetect.test b/parser/testdata/corpus/sql/copy/csv/plus_autodetect.test index 86331155..ad649393 100644 --- a/parser/testdata/corpus/sql/copy/csv/plus_autodetect.test +++ b/parser/testdata/corpus/sql/copy/csv/plus_autodetect.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/plus_autodetect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE phone_numbers AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/phonenumbers.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/pollock/test_field_delimiter.test b/parser/testdata/corpus/sql/copy/csv/pollock/test_field_delimiter.test index 26286d9d..deb731cd 100644 --- a/parser/testdata/corpus/sql/copy/csv/pollock/test_field_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/pollock/test_field_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/pollock/test_field_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/pollock/file_field_delimiter_0x20.csv', delim = ' ', escape = '"', quote='"', header = false, skip=1, diff --git a/parser/testdata/corpus/sql/copy/csv/pollock/test_quotation_char.test b/parser/testdata/corpus/sql/copy/csv/pollock/test_quotation_char.test index 117e6a0a..772dbe56 100644 --- a/parser/testdata/corpus/sql/copy/csv/pollock/test_quotation_char.test +++ b/parser/testdata/corpus/sql/copy/csv/pollock/test_quotation_char.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/pollock/test_quotation_char.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/pollock/file_quotation_char_0x27.csv', delim = ',', escape = '"', quote='''', diff --git a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_gzip.test b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_gzip.test index 853a1630..f96b31fc 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_gzip.test +++ b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_gzip.test @@ -1,12 +1,8 @@ # source: test/sql/copy/csv/read_ahead/csv_readahead_gzip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET threads=8 --- -ok -== COPY (SELECT range AS i FROM range(0, 100000)) TO '{TEST_DIR}/csv_ra_0.csv.gz' (FORMAT csv, COMPRESSION gzip) -- ok diff --git a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_multi_file.test b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_multi_file.test index f1b353c4..b47b8538 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_multi_file.test +++ b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_multi_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_ahead/csv_readahead_multi_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i FROM range(0, 100000)) TO '{TEST_DIR}/csv_ra_0.csv' (FORMAT csv) diff --git a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_rejects.test b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_rejects.test index fb2b2fc9..486b18bc 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_rejects.test +++ b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_rejects.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_ahead/csv_readahead_rejects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range::VARCHAR AS i FROM range(0, 100000)) TO '{TEST_DIR}/csv_ra_rejects_0.csv' (FORMAT csv, HEADER false) diff --git a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_single_file.test b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_single_file.test index 1e72a5d4..3e20c830 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_single_file.test +++ b/parser/testdata/corpus/sql/copy/csv/read_ahead/csv_readahead_single_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_ahead/csv_readahead_single_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i FROM range(0, 500000)) TO '{TEST_DIR}/csv_ra_single.csv' (FORMAT csv) diff --git a/parser/testdata/corpus/sql/copy/csv/read_csv_subquery.test b/parser/testdata/corpus/sql/copy/csv/read_csv_subquery.test index a1f6b068..85050dfc 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_csv_subquery.test +++ b/parser/testdata/corpus/sql/copy/csv/read_csv_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_csv_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH urls AS ( diff --git a/parser/testdata/corpus/sql/copy/csv/read_csv_variable.test b/parser/testdata/corpus/sql/copy/csv/read_csv_variable.test index 66884431..fd4a908c 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_csv_variable.test +++ b/parser/testdata/corpus/sql/copy/csv/read_csv_variable.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_csv_variable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE globbed_files AS FROM glob('{DATA_DIR}/csv/glob/a?/*.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/read_single_csv_file.test b/parser/testdata/corpus/sql/copy/csv/read_single_csv_file.test index 7c572111..362c0fe5 100644 --- a/parser/testdata/corpus/sql/copy/csv/read_single_csv_file.test +++ b/parser/testdata/corpus/sql/copy/csv/read_single_csv_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/read_single_csv_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_single_csv_file('data/csv/tpcds_14.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/recursive_csv_union_by_name.test b/parser/testdata/corpus/sql/copy/csv/recursive_csv_union_by_name.test index f08de80e..a8460885 100644 --- a/parser/testdata/corpus/sql/copy/csv/recursive_csv_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/csv/recursive_csv_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/recursive_csv_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view r AS from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/mismatching_contents/*/*.csv', UNION_BY_NAME=1, HIVE_PARTITIONING=1) diff --git a/parser/testdata/corpus/sql/copy/csv/recursive_read_csv.test b/parser/testdata/corpus/sql/copy/csv/recursive_read_csv.test index 21d33d27..18d5136a 100644 --- a/parser/testdata/corpus/sql/copy/csv/recursive_read_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/recursive_read_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/recursive_read_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table r AS SELECT * FROM read_csv('{DATA_DIR}/csv/test/date.csv', columns=STRUCT_PACK(d := 'DATE'), header=0, auto_detect=0); diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_incorrect_columns_amount_rejects.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_incorrect_columns_amount_rejects.test index 5e0da914..52f66023 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_incorrect_columns_amount_rejects.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_incorrect_columns_amount_rejects.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_incorrect_columns_amount_rejects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( @@ -14,14 +14,6 @@ SELECT * EXCLUDE (scan_id) FROM reject_errors order by all; -- ok == -DROP TABLE reject_errors; --- -ok -== -DROP TABLE reject_scans; --- -ok -== SELECT * FROM read_csv( '{DATA_DIR}/csv/rejects/incorrect_columns/many_columns.csv', columns = {'a': 'INTEGER', 'b': 'INTEGER', 'c': 'INTEGER', 'd': 'INTEGER'}, diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_auto.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_auto.test index c1306354..5758aaec 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_auto.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_auto.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_auto.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(first(column0)), typeof(first(column1)), COUNT(*), SUM(column0), MAX(len(column1)) FROM read_csv_auto( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_cache_key_collision.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_cache_key_collision.test index 8e7d5024..9912df9f 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_cache_key_collision.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_cache_key_collision.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_cache_key_collision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '42' UNION ALL SELECT 'bad_A') TO '{TEMP_DIR}/rejects_a.csv' (HEADER false); diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_cast.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_cast.test index 4ece65c4..c279b0e9 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_cast.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_cast.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_flush_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT first(a), first(b), typeof(first(a)), typeof(first(b)), COUNT(*) FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_message.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_message.test index 9fe97ef2..e2ac5194 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_message.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_flush_message.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_flush_message.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_invalid_utf8_nested.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_invalid_utf8_nested.test new file mode 100644 index 00000000..1ee225c1 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_invalid_utf8_nested.test @@ -0,0 +1,14 @@ +# source: test/sql/copy/csv/rejects/csv_rejects_invalid_utf8_nested.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM read_csv('{DATA_DIR}/csv/test/invalid_utf_nested.csv', columns={'a': 'VARCHAR[]', 'b': 'VARCHAR[]'}, + header=true, store_rejects=true); +-- +ok +== +SELECT line, column_idx, error_type FROM reject_errors ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_maximum_line.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_maximum_line.test index 3c34329a..7d81923d 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_maximum_line.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_maximum_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_maximum_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_read.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_read.test index 1c0479a2..8f3af71f 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_read.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_read.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_read.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( @@ -10,10 +10,6 @@ SELECT * FROM read_csv( -- ok == -SELECT * EXCLUDE (scan_id) FROM reject_errors; --- -ok -== SELECT * FROM read_csv( '{DATA_DIR}/csv/error/mismatch/bad2.csv', columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'INTEGER'}, diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_truncate_line_invalid_utf8.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_truncate_line_invalid_utf8.test index 896c9ee2..7744c2c5 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_truncate_line_invalid_utf8.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_truncate_line_invalid_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_truncate_line_invalid_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_csv('data/csv/test/no_newline_unicode.csv', sep='🦆', names=['a','b','c'], types=['date','int','int'], header=false, ignore_errors=true, store_rejects=true, rejects_line_size_limit=4); diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_two_tables.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_two_tables.test index e4e3820f..66ca0d65 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_two_tables.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_rejects_two_tables.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_rejects_two_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * EXCLUDE (scan_id) FROM reject_scans order by all; diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/csv_unquoted_rejects.test b/parser/testdata/corpus/sql/copy/csv/rejects/csv_unquoted_rejects.test index d6668b78..c63d3904 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/csv_unquoted_rejects.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/csv_unquoted_rejects.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/csv_unquoted_rejects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_parameters.test b/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_parameters.test index 356b3cfc..b945cbe5 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_parameters.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/test_invalid_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_utf_rejects.test b/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_utf_rejects.test index 3d28ad70..da4f40ab 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_utf_rejects.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/test_invalid_utf_rejects.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/test_invalid_utf_rejects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/test/invalid_utf_big.csv',columns = {'col1': 'VARCHAR','col2': 'VARCHAR','col3': 'VARCHAR'}, diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/test_mixed.test b/parser/testdata/corpus/sql/copy/csv/rejects/test_mixed.test index 6bf05880..aa73ec49 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/test_mixed.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/test_mixed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/test_mixed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/rejects/test_multiple_errors_same_line.test b/parser/testdata/corpus/sql/copy/csv/rejects/test_multiple_errors_same_line.test index 429ee631..bd8d2c6e 100644 --- a/parser/testdata/corpus/sql/copy/csv/rejects/test_multiple_errors_same_line.test +++ b/parser/testdata/corpus/sql/copy/csv/rejects/test_multiple_errors_same_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/rejects/test_multiple_errors_same_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/cast_and_more_col.csv', diff --git a/parser/testdata/corpus/sql/copy/csv/relaxed_quotes.test b/parser/testdata/corpus/sql/copy/csv/relaxed_quotes.test index b530159a..ccc79612 100644 --- a/parser/testdata/corpus/sql/copy/csv/relaxed_quotes.test +++ b/parser/testdata/corpus/sql/copy/csv/relaxed_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/relaxed_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/unescaped_quotes/stops.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/sniff_csv_skip_overflow.test b/parser/testdata/corpus/sql/copy/csv/sniff_csv_skip_overflow.test new file mode 100644 index 00000000..cdb14e1e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/sniff_csv_skip_overflow.test @@ -0,0 +1,17 @@ +# source: test/sql/copy/csv/sniff_csv_skip_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT * FROM (VALUES ('Vendor','Test',NULL,NULL),('Start','06/02/2024',NULL,NULL),('A','B','C','D'),('1','2','3','4'),('5','6','7','8'))) TO '{TEST_DIR}/skip_overflow.csv' (FORMAT csv, DELIMITER E'\t', HEADER false); +-- +ok +== +SELECT SkipRows FROM sniff_csv('{TEST_DIR}/skip_overflow.csv', skip=9223372036854775807); +-- +ok +== +FROM sniff_csv('{TEST_DIR}/skip_overflow.csv', skip=2); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/struct.test b/parser/testdata/corpus/sql/copy/csv/struct.test index bbc4d02a..7e9e0ee0 100644 --- a/parser/testdata/corpus/sql/copy/csv/struct.test +++ b/parser/testdata/corpus/sql/copy/csv/struct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/struct.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/struct_padding.test b/parser/testdata/corpus/sql/copy/csv/struct_padding.test index 75fe055c..43e3da0b 100644 --- a/parser/testdata/corpus/sql/copy/csv/struct_padding.test +++ b/parser/testdata/corpus/sql/copy/csv/struct_padding.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/struct_padding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv('{DATA_DIR}/csv/test/struct_padding.csv', columns={'col': 'STRUCT(val VARCHAR)'}) ORDER BY 1; diff --git a/parser/testdata/corpus/sql/copy/csv/test_11403.test b/parser/testdata/corpus/sql/copy/csv/test_11403.test index 6ca55624..b5d53f88 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_11403.test +++ b/parser/testdata/corpus/sql/copy/csv/test_11403.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_11403.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM '{DATA_DIR}/csv/quoted_newline.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_11840.test b/parser/testdata/corpus/sql/copy/csv/test_11840.test index 4df9b177..64c881a4 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_11840.test +++ b/parser/testdata/corpus/sql/copy/csv/test_11840.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_11840.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/date_specificity.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_12596.test b/parser/testdata/corpus/sql/copy/csv/test_12596.test index 8e86ac7a..83e53633 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_12596.test +++ b/parser/testdata/corpus/sql/copy/csv/test_12596.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_12596.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/bug_12596.csv', skip=1, delim=',', header=false, columns={'c1': 'INTEGER', 'c2': 'INTEGER', 'column2': 'VARCHAR'}, null_padding = true); diff --git a/parser/testdata/corpus/sql/copy/csv/test_15473.test b/parser/testdata/corpus/sql/copy/csv/test_15473.test index 49d2c980..a938e551 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_15473.test +++ b/parser/testdata/corpus/sql/copy/csv/test_15473.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_15473.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns from sniff_csv('{DATA_DIR}/csv/15473.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_8890.test b/parser/testdata/corpus/sql/copy/csv/test_8890.test index ced362c8..50917faf 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_8890.test +++ b/parser/testdata/corpus/sql/copy/csv/test_8890.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_8890.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select diff --git a/parser/testdata/corpus/sql/copy/csv/test_9005.test b/parser/testdata/corpus/sql/copy/csv/test_9005.test index 0fd1e6bd..ffa25489 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_9005.test +++ b/parser/testdata/corpus/sql/copy/csv/test_9005.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_9005.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv_auto('{DATA_DIR}/csv/bug_9005/teste*.csv',filename=true,union_by_name=True) where filename='{DATA_DIR}/csv/bug_9005/teste1.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/test_afl.test b/parser/testdata/corpus/sql/copy/csv/test_afl.test index 478ba26a..b26e7399 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_afl.test +++ b/parser/testdata/corpus/sql/copy/csv/test_afl.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_afl.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/afl/1.csv', force_not_null=012%0); diff --git a/parser/testdata/corpus/sql/copy/csv/test_all_quotes.test b/parser/testdata/corpus/sql/copy/csv/test_all_quotes.test index 9091fd6e..9708ea59 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_all_quotes.test +++ b/parser/testdata/corpus/sql/copy/csv/test_all_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_all_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT quote FROM sniff_csv('{DATA_DIR}/csv/all_quotes.csv', ignore_errors = 1) diff --git a/parser/testdata/corpus/sql/copy/csv/test_allow_quoted_nulls_option.test b/parser/testdata/corpus/sql/copy/csv/test_allow_quoted_nulls_option.test index baa4655c..85c9b9f7 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_allow_quoted_nulls_option.test +++ b/parser/testdata/corpus/sql/copy/csv/test_allow_quoted_nulls_option.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_allow_quoted_nulls_option.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv_auto('{DATA_DIR}/csv/null_comparison.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_auto_date.test b/parser/testdata/corpus/sql/copy/csv/test_auto_date.test index 6c59e9f6..47f94dbc 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_auto_date.test +++ b/parser/testdata/corpus/sql/copy/csv/test_auto_date.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_auto_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE date_tests (a DATE) diff --git a/parser/testdata/corpus/sql/copy/csv/test_auto_detection_headers.test b/parser/testdata/corpus/sql/copy/csv/test_auto_detection_headers.test index 17217332..4710ebb6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_auto_detection_headers.test +++ b/parser/testdata/corpus/sql/copy/csv/test_auto_detection_headers.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_auto_detection_headers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/headers/undetected_type.csv', delim = ';') diff --git a/parser/testdata/corpus/sql/copy/csv/test_bgzf_read.test b/parser/testdata/corpus/sql/copy/csv/test_bgzf_read.test index abc8b436..26e95fab 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_bgzf_read.test +++ b/parser/testdata/corpus/sql/copy/csv/test_bgzf_read.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_bgzf_read.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bgzf AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/test/bgzf.gz'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_big_header.test b/parser/testdata/corpus/sql/copy/csv/test_big_header.test index c9baecb6..f22ed204 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_big_header.test +++ b/parser/testdata/corpus/sql/copy/csv/test_big_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_big_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (foo INTEGER, bar VARCHAR(10), baz VARCHAR(10), bam VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_blob.test b/parser/testdata/corpus/sql/copy/csv/test_blob.test index 6ec57a43..383f0400 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_blob.test +++ b/parser/testdata/corpus/sql/copy/csv/test_blob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE blobs (b BYTEA); diff --git a/parser/testdata/corpus/sql/copy/csv/test_bug_10273.test b/parser/testdata/corpus/sql/copy/csv/test_bug_10273.test index 350ef8fe..75b5f986 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_bug_10273.test +++ b/parser/testdata/corpus/sql/copy/csv/test_bug_10273.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_bug_10273.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/bug_10273.csv', header=0) diff --git a/parser/testdata/corpus/sql/copy/csv/test_column_inconsistencies.test b/parser/testdata/corpus/sql/copy/csv/test_column_inconsistencies.test index beba1f70..9a0053ce 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_column_inconsistencies.test +++ b/parser/testdata/corpus/sql/copy/csv/test_column_inconsistencies.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_column_inconsistencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/inconsistencies/inconsistent_columns_3.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/test_comment_midline.test b/parser/testdata/corpus/sql/copy/csv/test_comment_midline.test index 26aca889..6dd4cefd 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_comment_midline.test +++ b/parser/testdata/corpus/sql/copy/csv/test_comment_midline.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_comment_midline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/comments/14648.csv', diff --git a/parser/testdata/corpus/sql/copy/csv/test_comment_option.test b/parser/testdata/corpus/sql/copy/csv/test_comment_option.test index 4b985dcd..db8bbece 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_comment_option.test +++ b/parser/testdata/corpus/sql/copy/csv/test_comment_option.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_comment_option.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/comments/17226.csv', comment='#', all_varchar=True, skip=0, ignore_errors=True) diff --git a/parser/testdata/corpus/sql/copy/csv/test_compression_flag.test b/parser/testdata/corpus/sql/copy/csv/test_compression_flag.test index 6afe9a68..68a5ab7b 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_compression_flag.test +++ b/parser/testdata/corpus/sql/copy/csv/test_compression_flag.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_compression_flag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(a INT NOT NULL, diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy.test b/parser/testdata/corpus/sql/copy/csv/test_copy.test index a2a4be0d..6d42b17c 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(a), SUM(a) FROM test; diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy_csv_multibyte_delimiter.test b/parser/testdata/corpus/sql/copy/csv/test_copy_csv_multibyte_delimiter.test index ef3463cc..e18a0c8a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy_csv_multibyte_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy_csv_multibyte_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy_csv_multibyte_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 a, 'xéy' b, 'z' c) TO '{TEST_DIR}/multibyte_delimiter.csv' (DELIMITER 'é'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy_default.test b/parser/testdata/corpus/sql/copy/csv/test_copy_default.test index 6b4419e3..32018028 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy_default.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy_default.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b VARCHAR DEFAULT('hello'), c INTEGER DEFAULT(3+4)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy_gzip.test b/parser/testdata/corpus/sql/copy/csv/test_copy_gzip.test index 92fe849c..873933cd 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy_gzip.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy_gzip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy_gzip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(l_orderkey INT NOT NULL, diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy_many_empty_lines.test b/parser/testdata/corpus/sql/copy/csv/test_copy_many_empty_lines.test index 2b43dcc6..d7c3d5ed 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy_many_empty_lines.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy_many_empty_lines.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy_many_empty_lines.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER); diff --git a/parser/testdata/corpus/sql/copy/csv/test_copy_null.test b/parser/testdata/corpus/sql/copy/csv/test_copy_null.test index 3edb3f2f..a45979fe 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_copy_null.test +++ b/parser/testdata/corpus/sql/copy/csv/test_copy_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_copy_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_null_option (col_a INTEGER, col_b VARCHAR(10), col_c VARCHAR(10), col_d VARCHAR(10), col_e VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_duplicate_columns.test b/parser/testdata/corpus/sql/copy/csv/test_csv_duplicate_columns.test index 66be723f..e283f50b 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_duplicate_columns.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_duplicate_columns.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_duplicate_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 as a, 2 as a, 3 as a) TO '{TEST_DIR}/dupe_cols.csv' (FORMAT CSV, HEADER); diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_error_message_type.test b/parser/testdata/corpus/sql/copy/csv/test_csv_error_message_type.test index ff55a745..aba5bfae 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_error_message_type.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_error_message_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_error_message_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE venue ( diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_error_projection.test b/parser/testdata/corpus/sql/copy/csv/test_csv_error_projection.test index a529f9f4..0dc63d92 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_error_projection.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_error_projection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_error_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(b) FROM read_csv('data/csv/invalid_utf8_projected.csv', sample_size=1) diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_json.test b/parser/testdata/corpus/sql/copy/csv/test_csv_json.test index 427adb3f..9b665bfc 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_json.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_json.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/error/json.csv', columns={'a':'JSON'}) diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_mixed_casts.test b/parser/testdata/corpus/sql/copy/csv/test_csv_mixed_casts.test index 40927a1b..1529c794 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_mixed_casts.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_mixed_casts.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_mixed_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv( diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_no_trailing_newline.test b/parser/testdata/corpus/sql/copy/csv/test_csv_no_trailing_newline.test index 4ac403f8..d709c58d 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_no_trailing_newline.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_no_trailing_newline.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_no_trailing_newline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE no_newline (a INTEGER, b INTEGER, c VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_options_typed_null.test b/parser/testdata/corpus/sql/copy/csv/test_csv_options_typed_null.test index 46e929ba..7b67eee1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_options_typed_null.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_options_typed_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_options_typed_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 i, 'x' s) TO '{TEMP_DIR}/typed_null_options.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown.test b/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown.test index 3384ca8c..9e6e79e0 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select l_returnflag, l_linenumber from read_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', delim='|', header=False, columns={ diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown_glob.test b/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown_glob.test index 71529a46..7090d2d1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown_glob.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_projection_pushdown_glob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_projection_pushdown_glob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT DATE '1992-01-01' d, 42 i, 'hello' s) TO '{TEST_DIR}/projection_pushdown_f1.csv' (HEADER, DELIMITER '|') diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz.test b/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz.test index 44300080..0f05d758 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_timestamp_tz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy ( diff --git a/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz_icu.test b/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz_icu.test index 5a2c4836..38b2e56c 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz_icu.test +++ b/parser/testdata/corpus/sql/copy/csv/test_csv_timestamp_tz_icu.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_csv_timestamp_tz_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/csv/test_date.test b/parser/testdata/corpus/sql/copy/csv/test_date.test index 17de7abe..73861512 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_date.test +++ b/parser/testdata/corpus/sql/copy/csv/test_date.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cast(d as string) FROM date_test; diff --git a/parser/testdata/corpus/sql/copy/csv/test_date_sniffer.test b/parser/testdata/corpus/sql/copy/csv/test_date_sniffer.test index 889d4ef2..f0f438cb 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_date_sniffer.test +++ b/parser/testdata/corpus/sql/copy/csv/test_date_sniffer.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_date_sniffer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/bad_date.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_dateformat.test b/parser/testdata/corpus/sql/copy/csv/test_dateformat.test index 4f7595e7..0fd1524e 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_dateformat.test +++ b/parser/testdata/corpus/sql/copy/csv/test_dateformat.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_dateformat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates (d DATE); diff --git a/parser/testdata/corpus/sql/copy/csv/test_decimal.test b/parser/testdata/corpus/sql/copy/csv/test_decimal.test index bf1ee5d6..e6c87e44 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_decimal.test +++ b/parser/testdata/corpus/sql/copy/csv/test_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/decimal.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_double_sniffer.test b/parser/testdata/corpus/sql/copy/csv/test_double_sniffer.test index fa131abb..9130ca1a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_double_sniffer.test +++ b/parser/testdata/corpus/sql/copy/csv/test_double_sniffer.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_double_sniffer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(number) FROM read_csv('{DATA_DIR}/csv/double_trouble.csv', decimal_separator=',') limit 1; diff --git a/parser/testdata/corpus/sql/copy/csv/test_empty_header.test b/parser/testdata/corpus/sql/copy/csv/test_empty_header.test index 33a45114..4907bdb2 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_empty_header.test +++ b/parser/testdata/corpus/sql/copy/csv/test_empty_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_empty_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns[1].name,columns[2].name,columns[3].name,columns[4].name,columns[5].name diff --git a/parser/testdata/corpus/sql/copy/csv/test_empty_quote.test b/parser/testdata/corpus/sql/copy/csv/test_empty_quote.test index 23df5fb6..395f0255 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_empty_quote.test +++ b/parser/testdata/corpus/sql/copy/csv/test_empty_quote.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_empty_quote.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE no_quote(a VARCHAR, b VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/csv/test_encoding_straddle_compressed.test b/parser/testdata/corpus/sql/copy/csv/test_encoding_straddle_compressed.test index 04e6e42d..def68e24 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_encoding_straddle_compressed.test +++ b/parser/testdata/corpus/sql/copy/csv/test_encoding_straddle_compressed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_encoding_straddle_compressed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT right(value, 8) FROM read_csv('{DATA_DIR}/csv/encodings/straddle_cp932_1k.csv.gz', header=true, all_varchar=true, encoding='ibm-943_P15A-2003', buffer_size=1024) WHERE key='z' diff --git a/parser/testdata/corpus/sql/copy/csv/test_enum_csv.test b/parser/testdata/corpus/sql/copy/csv/test_enum_csv.test index 1451cef6..51f5735f 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_enum_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/test_enum_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_enum_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM ('happy', 'sad', 'angry') diff --git a/parser/testdata/corpus/sql/copy/csv/test_escape_long_value.test b/parser/testdata/corpus/sql/copy/csv/test_escape_long_value.test index 6775f00e..f6efdd90 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_escape_long_value.test +++ b/parser/testdata/corpus/sql/copy/csv/test_escape_long_value.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_escape_long_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T AS FROM read_csv('{DATA_DIR}/csv/big_escape.csv', buffer_size = {buffer_size}, quote = '"', escape = '"', delim = ';', columns = {'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, auto_detect = false) diff --git a/parser/testdata/corpus/sql/copy/csv/test_export_force_quotes.test b/parser/testdata/corpus/sql/copy/csv/test_export_force_quotes.test index 8a77594d..c89440da 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_export_force_quotes.test +++ b/parser/testdata/corpus/sql/copy/csv/test_export_force_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_export_force_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit export database '{TEST_DIR}/test_export' (force_quote *); diff --git a/parser/testdata/corpus/sql/copy/csv/test_export_not_null.test b/parser/testdata/corpus/sql/copy/csv/test_export_not_null.test index a50a8c3c..37f8a2dc 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_export_not_null.test +++ b/parser/testdata/corpus/sql/copy/csv/test_export_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_export_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(a VARCHAR NOT NULL) diff --git a/parser/testdata/corpus/sql/copy/csv/test_extra_delimiters_rfc.test b/parser/testdata/corpus/sql/copy/csv/test_extra_delimiters_rfc.test index 5fdcf09f..741d4f56 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_extra_delimiters_rfc.test +++ b/parser/testdata/corpus/sql/copy/csv/test_extra_delimiters_rfc.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_extra_delimiters_rfc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/extra_delimiters.csv', strict_mode = false, columns={'a':'VARCHAR','b':'VARCHAR','c':'VARCHAR'}, auto_detect = false, delim = ',', header = true) diff --git a/parser/testdata/corpus/sql/copy/csv/test_filename_filter.test b/parser/testdata/corpus/sql/copy/csv/test_filename_filter.test index 5378840a..337d0cc1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_filename_filter.test +++ b/parser/testdata/corpus/sql/copy/csv/test_filename_filter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_filename_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column1, column2, column3, parse_filename(filename) FROM read_csv('{DATA_DIR}/csv/filename_filter/*.csv', filename=true); diff --git a/parser/testdata/corpus/sql/copy/csv/test_force_not_null.test b/parser/testdata/corpus/sql/copy/csv/test_force_not_null.test index e27c79f8..eb38a537 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_force_not_null.test +++ b/parser/testdata/corpus/sql/copy/csv/test_force_not_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_force_not_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (col_a INTEGER, col_b VARCHAR(10), col_c VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_force_quote.test b/parser/testdata/corpus/sql/copy/csv/test_force_quote.test index 72374dc1..3984ee98 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_force_quote.test +++ b/parser/testdata/corpus/sql/copy/csv/test_force_quote.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_force_quote.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY test FROM '{DATA_DIR}/csv/test/force_quote.csv' (HEADER 0); diff --git a/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_lineitem.test b/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_lineitem.test index 80296f2b..13a48f7a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_lineitem.test +++ b/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_lineitem.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_glob_reorder_lineitem.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select l_orderkey,l_partkey,l_suppkey,l_linenumber,l_quantity,l_extendedprice,l_discount,l_tax,l_returnflag,l_linestatus,l_shipdate,l_commitdate,l_receiptdate,l_shipinstruct,l_shipmode,l_comment from lineitem limit 10000 offset 0) diff --git a/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_null.test b/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_null.test index 840a3c39..114f69bc 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_null.test +++ b/parser/testdata/corpus/sql/copy/csv/test_glob_reorder_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_glob_reorder_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select 1 as a,1 as b from range(3); diff --git a/parser/testdata/corpus/sql/copy/csv/test_glob_type.test b/parser/testdata/corpus/sql/copy/csv/test_glob_type.test index 6edeae8e..4d60f631 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_glob_type.test +++ b/parser/testdata/corpus/sql/copy/csv/test_glob_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_glob_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(bar) FROM '{DATA_DIR}/csv/17451/*.csv' limit 1 diff --git a/parser/testdata/corpus/sql/copy/csv/test_greek_utf8.test b/parser/testdata/corpus/sql/copy/csv/test_greek_utf8.test index e79bb790..70955901 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_greek_utf8.test +++ b/parser/testdata/corpus/sql/copy/csv/test_greek_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_greek_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE greek_utf8 AS SELECT i, nfc_normalize(j) j, k FROM read_csv('{DATA_DIR}/csv/real/greek_utf8.csv', columns=STRUCT_PACK(i := 'INTEGER', j := 'VARCHAR', k := 'INTEGER'), delim='|') diff --git a/parser/testdata/corpus/sql/copy/csv/test_gzip_large_member_header.test b/parser/testdata/corpus/sql/copy/csv/test_gzip_large_member_header.test index d5683b55..038f6290 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_gzip_large_member_header.test +++ b/parser/testdata/corpus/sql/copy/csv/test_gzip_large_member_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_gzip_large_member_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv('data/csv/gzip_large_extra_field.csv.gz'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_header_only.test b/parser/testdata/corpus/sql/copy/csv/test_header_only.test index 5443fab2..d604957e 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_header_only.test +++ b/parser/testdata/corpus/sql/copy/csv/test_header_only.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_header_only.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT columns from sniff_csv('{DATA_DIR}/csv/header_only.csv', header=True, ignore_errors=True) diff --git a/parser/testdata/corpus/sql/copy/csv/test_headers_12089.test b/parser/testdata/corpus/sql/copy/csv/test_headers_12089.test index caac30ff..bce1324b 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_headers_12089.test +++ b/parser/testdata/corpus/sql/copy/csv/test_headers_12089.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_headers_12089.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns FROM sniff_csv('{DATA_DIR}/csv/headers/escaped_quote.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_hits_problematic.test b/parser/testdata/corpus/sql/copy/csv/test_hits_problematic.test index f5242ac6..ca9745f1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_hits_problematic.test +++ b/parser/testdata/corpus/sql/copy/csv/test_hits_problematic.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_hits_problematic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/hits_problematic.csv', auto_detect=false, delim=',', quote='"', escape='\', new_line='\n', skip=0, comment='', header=false, columns={'column000': 'BIGINT', 'column001': 'BIGINT', 'column002': 'VARCHAR', 'column003': 'BIGINT', 'column004': 'TIMESTAMP', 'column005': 'DATE', 'column006': 'BIGINT', 'column007': 'BIGINT', 'column008': 'BIGINT', 'column009': 'BIGINT', 'column010': 'BIGINT', 'column011': 'BIGINT', 'column012': 'BIGINT', 'column013': 'VARCHAR', 'column014': 'VARCHAR', 'column015': 'BIGINT', 'column016': 'BIGINT', 'column017': 'BIGINT', 'column018': 'BIGINT', 'column019': 'BIGINT', 'column020': 'BIGINT', 'column021': 'BIGINT', 'column022': 'BIGINT', 'column023': 'BIGINT', 'column024': 'BIGINT', 'column025': 'DOUBLE', 'column026': 'BIGINT', 'column027': 'BIGINT', 'column028': 'BIGINT', 'column029': 'VARCHAR', 'column030': 'BIGINT', 'column031': 'BIGINT', 'column032': 'BIGINT', 'column033': 'BIGINT', 'column034': 'VARCHAR', 'column035': 'VARCHAR', 'column036': 'BIGINT', 'column037': 'BIGINT', 'column038': 'BIGINT', 'column039': 'VARCHAR', 'column040': 'BIGINT', 'column041': 'BIGINT', 'column042': 'BIGINT', 'column043': 'BIGINT', 'column044': 'BIGINT', 'column045': 'TIMESTAMP', 'column046': 'BIGINT', 'column047': 'BIGINT', 'column048': 'BIGINT', 'column049': 'BIGINT', 'column050': 'VARCHAR', 'column051': 'BIGINT', 'column052': 'BIGINT', 'column053': 'BIGINT', 'column054': 'BIGINT', 'column055': 'BIGINT', 'column056': 'VARCHAR', 'column057': 'BIGINT', 'column058': 'BIGINT', 'column059': 'BIGINT', 'column060': 'BIGINT', 'column061': 'BIGINT', 'column062': 'BIGINT', 'column063': 'VARCHAR', 'column064': 'TIMESTAMP', 'column065': 'BIGINT', 'column066': 'BIGINT', 'column067': 'BIGINT', 'column068': 'BIGINT', 'column069': 'BIGINT', 'column070': 'BIGINT', 'column071': 'BIGINT', 'column072': 'BIGINT', 'column073': 'BIGINT', 'column074': 'VARCHAR', 'column075': 'VARCHAR', 'column076': 'VARCHAR', 'column077': 'VARCHAR', 'column078': 'BIGINT', 'column079': 'BIGINT', 'column080': 'BIGINT', 'column081': 'BIGINT', 'column082': 'BIGINT', 'column083': 'BIGINT', 'column084': 'BIGINT', 'column085': 'BIGINT', 'column086': 'VARCHAR', 'column087': 'BIGINT', 'column088': 'VARCHAR', 'column089': 'VARCHAR', 'column090': 'BIGINT', 'column091': 'VARCHAR', 'column092': 'VARCHAR', 'column093': 'VARCHAR', 'column094': 'VARCHAR', 'column095': 'VARCHAR', 'column096': 'VARCHAR', 'column097': 'VARCHAR', 'column098': 'VARCHAR', 'column099': 'VARCHAR', 'column100': 'VARCHAR', 'column101': 'BIGINT', 'column102': 'BIGINT', 'column103': 'BIGINT', 'column104': 'BIGINT'}, dateformat='%Y-%m-%d'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_ignore_errors.test b/parser/testdata/corpus/sql/copy/csv/test_ignore_errors.test index ccc586ff..0a0743b1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_ignore_errors.test +++ b/parser/testdata/corpus/sql/copy/csv/test_ignore_errors.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_ignore_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY integers FROM '{DATA_DIR}/csv/test/error_too_little.csv' (HEADER, IGNORE_ERRORS, NULL_PADDING FALSE) diff --git a/parser/testdata/corpus/sql/copy/csv/test_ignore_errors_end_of_chunk.test b/parser/testdata/corpus/sql/copy/csv/test_ignore_errors_end_of_chunk.test index 522fc36c..6db98b25 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_ignore_errors_end_of_chunk.test +++ b/parser/testdata/corpus/sql/copy/csv/test_ignore_errors_end_of_chunk.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_ignore_errors_end_of_chunk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY integers FROM '{DATA_DIR}/csv/test/error_too_little_end_of_filled_chunk.csv' (HEADER, IGNORE_ERRORS, NULL_PADDING 0, AUTO_DETECT 0) diff --git a/parser/testdata/corpus/sql/copy/csv/test_ignore_mid_null_line.test b/parser/testdata/corpus/sql/copy/csv/test_ignore_mid_null_line.test index 36254b1b..4c8db0b6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_ignore_mid_null_line.test +++ b/parser/testdata/corpus/sql/copy/csv/test_ignore_mid_null_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_ignore_mid_null_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/error/mid_null.csv', delim = ';', diff --git a/parser/testdata/corpus/sql/copy/csv/test_imdb.test b/parser/testdata/corpus/sql/copy/csv/test_imdb.test index fac452c9..f7a55ba8 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_imdb.test +++ b/parser/testdata/corpus/sql/copy/csv/test_imdb.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_imdb.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE movie_info (id integer NOT NULL PRIMARY KEY, movie_id integer NOT NULL, info_type_id integer NOT NULL, info text NOT NULL, note text); diff --git a/parser/testdata/corpus/sql/copy/csv/test_infinite_loop_escape.test b/parser/testdata/corpus/sql/copy/csv/test_infinite_loop_escape.test index 8755db53..6f829149 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_infinite_loop_escape.test +++ b/parser/testdata/corpus/sql/copy/csv/test_infinite_loop_escape.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_infinite_loop_escape.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE trigger_loop (a VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/csv/test_insert_into_types.test b/parser/testdata/corpus/sql/copy/csv/test_insert_into_types.test index d11ee8e0..318b5516 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_insert_into_types.test +++ b/parser/testdata/corpus/sql/copy/csv/test_insert_into_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_insert_into_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE users ( diff --git a/parser/testdata/corpus/sql/copy/csv/test_issue3562_assertion.test b/parser/testdata/corpus/sql/copy/csv/test_issue3562_assertion.test index 42968d83..555074cd 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_issue3562_assertion.test +++ b/parser/testdata/corpus/sql/copy/csv/test_issue3562_assertion.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_issue3562_assertion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as SELECT * FROM read_csv('{DATA_DIR}/csv/test/issue3562_assertion.csv.gz', columns={'OBJECTID': 'DECIMAL(18,3)', 'URL': 'TEXT', 'NAME': 'TEXT', 'the_geom':'TEXT', 'LINE': 'TEXT'}); diff --git a/parser/testdata/corpus/sql/copy/csv/test_issue5077.test b/parser/testdata/corpus/sql/copy/csv/test_issue5077.test index 312917fa..0dd8fe2d 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_issue5077.test +++ b/parser/testdata/corpus/sql/copy/csv/test_issue5077.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_issue5077.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/csv/issue5077_aligned.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_lineitem.test b/parser/testdata/corpus/sql/copy/csv/test_lineitem.test index 6634edc0..0d9860fd 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_lineitem.test +++ b/parser/testdata/corpus/sql/copy/csv/test_lineitem.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_lineitem.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY lineitem FROM '{DATA_DIR}/csv/real/lineitem_sample.csv' DELIMITER '|' diff --git a/parser/testdata/corpus/sql/copy/csv/test_lineitem_gz.test b/parser/testdata/corpus/sql/copy/csv/test_lineitem_gz.test index 4d95ef5a..6a82c094 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_lineitem_gz.test +++ b/parser/testdata/corpus/sql/copy/csv/test_lineitem_gz.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_lineitem_gz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads=2; diff --git a/parser/testdata/corpus/sql/copy/csv/test_linesize.test b/parser/testdata/corpus/sql/copy/csv/test_linesize.test index 316815ae..1d5f7099 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_linesize.test +++ b/parser/testdata/corpus/sql/copy/csv/test_linesize.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_linesize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/15473.csv', max_line_size = 10) diff --git a/parser/testdata/corpus/sql/copy/csv/test_long_line.test b/parser/testdata/corpus/sql/copy/csv/test_long_line.test index 87206ba1..518de884 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_long_line.test +++ b/parser/testdata/corpus/sql/copy/csv/test_long_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_long_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b VARCHAR, c INTEGER); diff --git a/parser/testdata/corpus/sql/copy/csv/test_many_columns.test b/parser/testdata/corpus/sql/copy/csv/test_many_columns.test index 63fae46b..ff68decb 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_many_columns.test +++ b/parser/testdata/corpus/sql/copy/csv/test_many_columns.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_many_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT * FROM read_csv_auto('{DATA_DIR}/csv/manycolumns.csv'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_mismatch_schemas.test b/parser/testdata/corpus/sql/copy/csv/test_mismatch_schemas.test index d21f30ec..d9b47656 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_mismatch_schemas.test +++ b/parser/testdata/corpus/sql/copy/csv/test_mismatch_schemas.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_mismatch_schemas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv(['{DATA_DIR}/csv/multiple_files/more_columns/file_1.csv','{DATA_DIR}/csv/multiple_files/more_columns/file_2.csv', diff --git a/parser/testdata/corpus/sql/copy/csv/test_missing_row.test b/parser/testdata/corpus/sql/copy/csv/test_missing_row.test index c531f35e..74edbc04 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_missing_row.test +++ b/parser/testdata/corpus/sql/copy/csv/test_missing_row.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_missing_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/customer.4.csv', auto_detect=false, delim='|', quote='"', escape='"', new_line='\n', skip=0, header=false, columns = {'c_custkey': 'BIGINT', 'c_name': 'VARCHAR', 'c_address': 'VARCHAR', 'c_nationkey': 'INTEGER', 'c_phone': 'VARCHAR', 'c_acctbal': 'DECIMAL(15, 2)', 'c_mktsegment': 'VARCHAR', 'c_comment': 'VARCHAR'}, parallel=true, buffer_size = 300); diff --git a/parser/testdata/corpus/sql/copy/csv/test_mixed_line_endings.test b/parser/testdata/corpus/sql/copy/csv/test_mixed_line_endings.test index 8ba2d859..cfbb05a4 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_mixed_line_endings.test +++ b/parser/testdata/corpus/sql/copy/csv/test_mixed_line_endings.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_mixed_line_endings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into test select * from read_csv_auto('{DATA_DIR}/csv/test/mixed_line_endings.csv', strict_mode=false); diff --git a/parser/testdata/corpus/sql/copy/csv/test_mixed_new_line.test b/parser/testdata/corpus/sql/copy/csv/test_mixed_new_line.test index b7d4675a..007968dc 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_mixed_new_line.test +++ b/parser/testdata/corpus/sql/copy/csv/test_mixed_new_line.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_mixed_new_line.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/mixed_new_line.csv', strict_mode=false) diff --git a/parser/testdata/corpus/sql/copy/csv/test_ncvoter.test b/parser/testdata/corpus/sql/copy/csv/test_ncvoter.test index 667c7316..a8bdd916 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_ncvoter.test +++ b/parser/testdata/corpus/sql/copy/csv/test_ncvoter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_ncvoter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ncvoters FROM '{DATA_DIR}/csv/real/ncvoter.csv' DELIMITER ' '; diff --git a/parser/testdata/corpus/sql/copy/csv/test_nfc.test b/parser/testdata/corpus/sql/copy/csv/test_nfc.test index cf8f4870..ab50cac1 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_nfc.test +++ b/parser/testdata/corpus/sql/copy/csv/test_nfc.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_nfc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nfcstrings (s STRING); diff --git a/parser/testdata/corpus/sql/copy/csv/test_nfc_suite.test b/parser/testdata/corpus/sql/copy/csv/test_nfc_suite.test index 80da60b2..6a17dfaf 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_nfc_suite.test +++ b/parser/testdata/corpus/sql/copy/csv/test_nfc_suite.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_nfc_suite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nfcstrings (source STRING, nfc STRING, nfd STRING); diff --git a/parser/testdata/corpus/sql/copy/csv/test_non_unicode_header.test b/parser/testdata/corpus/sql/copy/csv/test_non_unicode_header.test index 5b8c8dcf..845aa1d4 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_non_unicode_header.test +++ b/parser/testdata/corpus/sql/copy/csv/test_non_unicode_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_non_unicode_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit drop table if exists reject_errors; diff --git a/parser/testdata/corpus/sql/copy/csv/test_null_padding_projection.test b/parser/testdata/corpus/sql/copy/csv/test_null_padding_projection.test index 127ab0ae..0f62c97b 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_null_padding_projection.test +++ b/parser/testdata/corpus/sql/copy/csv/test_null_padding_projection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_null_padding_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/nullpadding.csv',null_padding=true, columns={ diff --git a/parser/testdata/corpus/sql/copy/csv/test_null_padding_union.test b/parser/testdata/corpus/sql/copy/csv/test_null_padding_union.test index cb6af64a..d71aed75 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_null_padding_union.test +++ b/parser/testdata/corpus/sql/copy/csv/test_null_padding_union.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_null_padding_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view v as diff --git a/parser/testdata/corpus/sql/copy/csv/test_ontime.test b/parser/testdata/corpus/sql/copy/csv/test_ontime.test index 158fcc65..7e623eb6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_ontime.test +++ b/parser/testdata/corpus/sql/copy/csv/test_ontime.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_ontime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ontime(year SMALLINT, quarter SMALLINT, month SMALLINT, dayofmonth SMALLINT, dayofweek SMALLINT, flightdate DATE, uniquecarrier CHAR(7), airlineid DECIMAL(8,2), carrier CHAR(2), tailnum VARCHAR(50), flightnum VARCHAR(10), originairportid INTEGER, originairportseqid INTEGER, origincitymarketid INTEGER, origin CHAR(5), origincityname VARCHAR(100), originstate CHAR(2), originstatefips VARCHAR(10), originstatename VARCHAR(100), originwac DECIMAL(8,2), destairportid INTEGER, destairportseqid INTEGER, destcitymarketid INTEGER, dest CHAR(5), destcityname VARCHAR(100), deststate CHAR(2), deststatefips VARCHAR(10), deststatename VARCHAR(100), destwac DECIMAL(8,2), crsdeptime DECIMAL(8,2), deptime DECIMAL(8,2), depdelay DECIMAL(8,2), depdelayminutes DECIMAL(8,2), depdel15 DECIMAL(8,2), departuredelaygroups DECIMAL(8,2), deptimeblk VARCHAR(20), taxiout DECIMAL(8,2), wheelsoff DECIMAL(8,2), wheelson DECIMAL(8,2), taxiin DECIMAL(8,2), crsarrtime DECIMAL(8,2), arrtime DECIMAL(8,2), arrdelay DECIMAL(8,2), arrdelayminutes DECIMAL(8,2), arrdel15 DECIMAL(8,2), arrivaldelaygroups DECIMAL(8,2), arrtimeblk VARCHAR(20), cancelled SMALLINT, cancellationcode CHAR(1), diverted SMALLINT, crselapsedtime DECIMAL(8,2), actualelapsedtime DECIMAL(8,2), airtime DECIMAL(8,2), flights DECIMAL(8,2), distance DECIMAL(8,2), distancegroup SMALLINT, carrierdelay DECIMAL(8,2), weatherdelay DECIMAL(8,2), nasdelay DECIMAL(8,2), securitydelay DECIMAL(8,2), lateaircraftdelay DECIMAL(8,2), firstdeptime VARCHAR(10), totaladdgtime VARCHAR(10), longestaddgtime VARCHAR(10), divairportlandings VARCHAR(10), divreacheddest VARCHAR(10), divactualelapsedtime VARCHAR(10), divarrdelay VARCHAR(10), divdistance VARCHAR(10), div1airport VARCHAR(10), div1aiportid INTEGER, div1airportseqid INTEGER, div1wheelson VARCHAR(10), div1totalgtime VARCHAR(10), div1longestgtime VARCHAR(10), div1wheelsoff VARCHAR(10), div1tailnum VARCHAR(10), div2airport VARCHAR(10), div2airportid INTEGER, div2airportseqid INTEGER, div2wheelson VARCHAR(10), div2totalgtime VARCHAR(10), div2longestgtime VARCHAR(10), div2wheelsoff VARCHAR(10), div2tailnum VARCHAR(10), div3airport VARCHAR(10), div3airportid INTEGER, div3airportseqid INTEGER, div3wheelson VARCHAR(10), div3totalgtime VARCHAR(10), div3longestgtime VARCHAR(10), div3wheelsoff VARCHAR(10), div3tailnum VARCHAR(10), div4airport VARCHAR(10), div4airportid INTEGER, div4airportseqid INTEGER, div4wheelson VARCHAR(10), div4totalgtime VARCHAR(10), div4longestgtime VARCHAR(10), div4wheelsoff VARCHAR(10), div4tailnum VARCHAR(10), div5airport VARCHAR(10), div5airportid INTEGER, div5airportseqid INTEGER, div5wheelson VARCHAR(10), div5totalgtime VARCHAR(10), div5longestgtime VARCHAR(10), div5wheelsoff VARCHAR(10), div5tailnum VARCHAR(10)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_parallel_nullpadding.test b/parser/testdata/corpus/sql/copy/csv/test_parallel_nullpadding.test index 0a3824bd..e9f41b85 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_parallel_nullpadding.test +++ b/parser/testdata/corpus/sql/copy/csv/test_parallel_nullpadding.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_parallel_nullpadding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from read_csv('{DATA_DIR}/csv/evil_nullpadding.csv', delim = ';', quote = '"', null_padding = True, header = 0) diff --git a/parser/testdata/corpus/sql/copy/csv/test_partition_compression.test b/parser/testdata/corpus/sql/copy/csv/test_partition_compression.test index b6ee3c62..fefdfe7a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_partition_compression.test +++ b/parser/testdata/corpus/sql/copy/csv/test_partition_compression.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_partition_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS VALUES ('a', 'foo', 1), ('a', 'foo', 2), ('a', 'bar', 1), ('b', 'bar', 1); diff --git a/parser/testdata/corpus/sql/copy/csv/test_prefix_suffix.test b/parser/testdata/corpus/sql/copy/csv/test_prefix_suffix.test index a54f0dce..e0a79f3a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_prefix_suffix.test +++ b/parser/testdata/corpus/sql/copy/csv/test_prefix_suffix.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_prefix_suffix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42) to '{TEST_DIR}/file.csv' (prefix 'a'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_quote_default.test b/parser/testdata/corpus/sql/copy/csv/test_quote_default.test index d80e2008..5235bc72 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_quote_default.test +++ b/parser/testdata/corpus/sql/copy/csv/test_quote_default.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_quote_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/test_default_option.csv', columns = {'a':'varchar', 'b':'integer'}, auto_detect = false, header = true) where b = 1 diff --git a/parser/testdata/corpus/sql/copy/csv/test_quoted_later_escaped.test b/parser/testdata/corpus/sql/copy/csv/test_quoted_later_escaped.test index c0a60dc7..b7387744 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_quoted_later_escaped.test +++ b/parser/testdata/corpus/sql/copy/csv/test_quoted_later_escaped.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_quoted_later_escaped.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T as select '1, "Oogie Boogie"' from range (100000) diff --git a/parser/testdata/corpus/sql/copy/csv/test_quoted_newline.test b/parser/testdata/corpus/sql/copy/csv/test_quoted_newline.test index 453c9cad..37411f1f 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_quoted_newline.test +++ b/parser/testdata/corpus/sql/copy/csv/test_quoted_newline.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_quoted_newline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY test FROM '{DATA_DIR}/csv/test/quoted_newline.csv' (DELIMITER ',', AUTO_DETECT 0); diff --git a/parser/testdata/corpus/sql/copy/csv/test_read_csv.test b/parser/testdata/corpus/sql/copy/csv/test_read_csv.test index dae286b6..926fd9f6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_read_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/test_read_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_read_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select delimiter, quote FROM sniff_csv('{DATA_DIR}/csv/stats_3_muta_10_21.csv') diff --git a/parser/testdata/corpus/sql/copy/csv/test_replacement_scan_alias.test b/parser/testdata/corpus/sql/copy/csv/test_replacement_scan_alias.test index f7709e38..1de8da08 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_replacement_scan_alias.test +++ b/parser/testdata/corpus/sql/copy/csv/test_replacement_scan_alias.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_replacement_scan_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/csv/test/dateformat.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/test_segfault.test b/parser/testdata/corpus/sql/copy/csv/test_segfault.test index 7cf03d29..4bab0cbd 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_segfault.test +++ b/parser/testdata/corpus/sql/copy/csv/test_segfault.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_segfault.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/csv/fuzzing/{i}.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_skip_bom.test b/parser/testdata/corpus/sql/copy/csv/test_skip_bom.test index 2c0fbb2a..b3af2ce7 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_skip_bom.test +++ b/parser/testdata/corpus/sql/copy/csv/test_skip_bom.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_skip_bom.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE people AS SELECT * FROM read_csv('{DATA_DIR}/csv/people.csv', columns=STRUCT_PACK(a := 'VARCHAR', b := 'VARCHAR'), sep=',', auto_detect='false'); diff --git a/parser/testdata/corpus/sql/copy/csv/test_skip_header.test b/parser/testdata/corpus/sql/copy/csv/test_skip_header.test index c5d6db76..a97932cb 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_skip_header.test +++ b/parser/testdata/corpus/sql/copy/csv/test_skip_header.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_skip_header.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/csv/skip_header.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_sniff_csv.test b/parser/testdata/corpus/sql/copy/csv/test_sniff_csv.test index 75582475..d5dd63bf 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_sniff_csv.test +++ b/parser/testdata/corpus/sql/copy/csv/test_sniff_csv.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_sniff_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT quote, escape from sniff_csv('{DATA_DIR}/csv/16857.csv', ignore_errors = true); diff --git a/parser/testdata/corpus/sql/copy/csv/test_sniff_csv_options.test b/parser/testdata/corpus/sql/copy/csv/test_sniff_csv_options.test index 2246e883..2f7617ee 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_sniff_csv_options.test +++ b/parser/testdata/corpus/sql/copy/csv/test_sniff_csv_options.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_sniff_csv_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM sniff_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', delim = ','); diff --git a/parser/testdata/corpus/sql/copy/csv/test_sniffer_hang.test b/parser/testdata/corpus/sql/copy/csv/test_sniffer_hang.test index def914dd..d4f8b8e0 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_sniffer_hang.test +++ b/parser/testdata/corpus/sql/copy/csv/test_sniffer_hang.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_sniffer_hang.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/bad_csv_file_2047.csv', sample_size = -1) diff --git a/parser/testdata/corpus/sql/copy/csv/test_sniffer_tab_delimiter.test b/parser/testdata/corpus/sql/copy/csv/test_sniffer_tab_delimiter.test index 66db4f75..5972524d 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_sniffer_tab_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/test_sniffer_tab_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_sniffer_tab_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns from sniff_csv('{DATA_DIR}/csv/test_apple_financial.csv.gz', header = 1, skip=3, delim = '\t') diff --git a/parser/testdata/corpus/sql/copy/csv/test_soccer_kaggle.test b/parser/testdata/corpus/sql/copy/csv/test_soccer_kaggle.test index c22d970d..6fcbd2b6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_soccer_kaggle.test +++ b/parser/testdata/corpus/sql/copy/csv/test_soccer_kaggle.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_soccer_kaggle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from '{DATA_DIR}/csv/soccer_kaggle.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/test_thijs_unquoted_file.test b/parser/testdata/corpus/sql/copy/csv/test_thijs_unquoted_file.test index a49699bc..a35e8864 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_thijs_unquoted_file.test +++ b/parser/testdata/corpus/sql/copy/csv/test_thijs_unquoted_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_thijs_unquoted_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/thijs_unquoted.csv', quote='"', sep='|', escape='"', columns={'a':'varchar', 'b': 'varchar', 'c': 'integer'}, auto_detect=false); diff --git a/parser/testdata/corpus/sql/copy/csv/test_thousands_separator.test b/parser/testdata/corpus/sql/copy/csv/test_thousands_separator.test index e546b4e1..0a0a16d6 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_thousands_separator.test +++ b/parser/testdata/corpus/sql/copy/csv/test_thousands_separator.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_thousands_separator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/thousands_separator/simple.csv', thousands = NULL, delim = NULL) diff --git a/parser/testdata/corpus/sql/copy/csv/test_time.test b/parser/testdata/corpus/sql/copy/csv/test_time.test index 46164e6a..c8c72e44 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_time.test +++ b/parser/testdata/corpus/sql/copy/csv/test_time.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from read_csv('{DATA_DIR}/csv/auto/invalid_time.csv', header = 0) diff --git a/parser/testdata/corpus/sql/copy/csv/test_timestamp_offset.test b/parser/testdata/corpus/sql/copy/csv/test_timestamp_offset.test index 52183315..ffaa9684 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_timestamp_offset.test +++ b/parser/testdata/corpus/sql/copy/csv/test_timestamp_offset.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_timestamp_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT col1, typeof(col1) FROM '{DATA_DIR}/csv/test/timestampoffset.csv' t1(col1); diff --git a/parser/testdata/corpus/sql/copy/csv/test_timestamptz_12926.test b/parser/testdata/corpus/sql/copy/csv/test_timestamptz_12926.test index a74f06ed..59d8e813 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_timestamptz_12926.test +++ b/parser/testdata/corpus/sql/copy/csv/test_timestamptz_12926.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_timestamptz_12926.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/timestamp_tz.csv', dtypes = [TIMESTAMPTZ]); diff --git a/parser/testdata/corpus/sql/copy/csv/test_union_by_name.test b/parser/testdata/corpus/sql/copy/csv/test_union_by_name.test index 633b4b68..5ce9d7aa 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/csv/test_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ubn1 TO '{TEMP_DIR}/ubn1.csv' WITH ( DELIMITER ','); diff --git a/parser/testdata/corpus/sql/copy/csv/test_union_by_name_types.test b/parser/testdata/corpus/sql/copy/csv/test_union_by_name_types.test index c252c163..1094839e 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_union_by_name_types.test +++ b/parser/testdata/corpus/sql/copy/csv/test_union_by_name_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_union_by_name_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(#1), typeof(#2), typeof(#3), typeof(#4), typeof(#5), typeof(#6), typeof(#7), typeof(#8), typeof(#9), typeof(#10), typeof(#11), typeof(#12), typeof(#13) diff --git a/parser/testdata/corpus/sql/copy/csv/test_unregistered_compression.test b/parser/testdata/corpus/sql/copy/csv/test_unregistered_compression.test new file mode 100644 index 00000000..8c6f21af --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/test_unregistered_compression.test @@ -0,0 +1,57 @@ +# source: test/sql/copy/csv/test_unregistered_compression.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 42 AS i) TO '{TEMP_DIR}/plain.csv'; +-- +ok +== +COPY (SELECT 42 AS i) TO '{TEMP_DIR}/data.csv.{extension}' (COMPRESSION none); +-- +ok +== +SELECT * FROM read_csv('{TEMP_DIR}/data.csv.{extension}'); +-- +ok +== +SELECT * FROM read_csv('{TEMP_DIR}/data.csv.{extension}', compression = 'none'); +-- +ok +== +SELECT * FROM read_csv('{TEMP_DIR}/data.csv.bz2'); +-- +ok +== +SELECT * FROM read_csv('{TEMP_DIR}/plain.csv'); +-- +ok +== +COPY (SELECT 42 AS i) TO '{TEMP_DIR}/data.json.xz' (FORMAT json, COMPRESSION none); +-- +ok +== +SELECT * FROM read_json('{TEMP_DIR}/data.json.xz'); +-- +ok +== +SELECT i FROM read_json('{TEMP_DIR}/data.json.xz', compression = 'none'); +-- +ok +== +COPY (SELECT 'already compressed'::BLOB AS content) TO '{TEMP_DIR}/payload.tar.xz' (FORMAT BLOB); +-- +ok +== +SELECT content FROM read_blob('{TEMP_DIR}/payload.tar.xz'); +-- +ok +== +COPY (SELECT 42 AS i) TO '{TEMP_DIR}/written.csv.bz2'; +-- +ok +== +SELECT * FROM read_csv('{TEMP_DIR}/written.csv.bz2', compression = 'none'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/test_utf16_odd_length.test b/parser/testdata/corpus/sql/copy/csv/test_utf16_odd_length.test index 46a18a37..57ebe38a 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_utf16_odd_length.test +++ b/parser/testdata/corpus/sql/copy/csv/test_utf16_odd_length.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_utf16_odd_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('data/csv/encodings/utf16_odd_length.csv', encoding = 'utf-16', header = false); diff --git a/parser/testdata/corpus/sql/copy/csv/test_utf16_surrogate_pairs.test b/parser/testdata/corpus/sql/copy/csv/test_utf16_surrogate_pairs.test new file mode 100644 index 00000000..1f69ac5a --- /dev/null +++ b/parser/testdata/corpus/sql/copy/csv/test_utf16_surrogate_pairs.test @@ -0,0 +1,49 @@ +# source: test/sql/copy/csv/test_utf16_surrogate_pairs.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT from_hex('fffe760061006c00750065000a006100620063006400650066006700680069006a006b006c006d003dd800de0a00')) TO '{TEST_DIR}/utf16_pair.csv' (FORMAT BLOB) +-- +ok +== +SELECT value FROM read_csv('{TEST_DIR}/utf16_pair.csv', encoding = 'utf-16') +-- +ok +== +SELECT value FROM read_csv('{TEST_DIR}/utf16_pair.csv', encoding = 'utf-16', buffer_size = {bs}) +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT from_hex('fffe760061006c00750065000a003dd800de3dd800de780079007a003dd800de0a00')) TO '{TEST_DIR}/utf16_pair2.csv' (FORMAT BLOB) +-- +ok +== +SELECT value FROM read_csv('{TEST_DIR}/utf16_pair2.csv', encoding = 'utf-16', buffer_size = {bs}) +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT from_hex('fffe760061006c00750065000a00610062003dd863000a00')) TO '{TEST_DIR}/utf16_lone_high.csv' (FORMAT BLOB) +-- +ok +== +FROM read_csv('{TEST_DIR}/utf16_lone_high.csv', encoding = 'utf-16') +-- +ok +== +COPY (SELECT from_hex('fffe760061006c00750065000a006100620000de63000a00')) TO '{TEST_DIR}/utf16_lone_low.csv' (FORMAT BLOB) +-- +ok +== +FROM read_csv('{TEST_DIR}/utf16_lone_low.csv', encoding = 'utf-16') +-- +ok +== +COPY (SELECT from_hex('fffe760061006c00750065000a00610062003dd8')) TO '{TEST_DIR}/utf16_truncated.csv' (FORMAT BLOB) +-- +ok +== +FROM read_csv('{TEST_DIR}/utf16_truncated.csv', encoding = 'utf-16') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/csv/test_validator.test b/parser/testdata/corpus/sql/copy/csv/test_validator.test index 1af1b2ed..6819f831 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_validator.test +++ b/parser/testdata/corpus/sql/copy/csv/test_validator.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_validator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/evil_nullpadding.csv', buffer_size=20, quote = '"') diff --git a/parser/testdata/corpus/sql/copy/csv/test_web_page.test b/parser/testdata/corpus/sql/copy/csv/test_web_page.test index bcc23b75..4e64d426 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_web_page.test +++ b/parser/testdata/corpus/sql/copy/csv/test_web_page.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_web_page.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE web_page(wp_web_page_sk integer not null, wp_web_page_id char(16) not null, wp_rec_start_date date, wp_rec_end_date date, wp_creation_date_sk integer, wp_access_date_sk integer, wp_autogen_flag char(1), wp_customer_sk integer, wp_url varchar(100), wp_type char(50), wp_char_count integer, wp_link_count integer, wp_image_count integer, wp_max_ad_count integer, primary key (wp_web_page_sk)); diff --git a/parser/testdata/corpus/sql/copy/csv/test_windows_newline.test b/parser/testdata/corpus/sql/copy/csv/test_windows_newline.test index 200e005f..b565ecc7 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_windows_newline.test +++ b/parser/testdata/corpus/sql/copy/csv/test_windows_newline.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_windows_newline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY test FROM '{DATA_DIR}/csv/test/windows_newline.csv'; diff --git a/parser/testdata/corpus/sql/copy/csv/test_wrong_newline_delimiter.test b/parser/testdata/corpus/sql/copy/csv/test_wrong_newline_delimiter.test index 5cc07a36..5fc1c45d 100644 --- a/parser/testdata/corpus/sql/copy/csv/test_wrong_newline_delimiter.test +++ b/parser/testdata/corpus/sql/copy/csv/test_wrong_newline_delimiter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/test_wrong_newline_delimiter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_csv('{DATA_DIR}/csv/timestamp.csv', columns = {'a': 'BIGINT'}, new_line= '\r', strict_mode=false) diff --git a/parser/testdata/corpus/sql/copy/csv/timestamp_with_tz.test b/parser/testdata/corpus/sql/copy/csv/timestamp_with_tz.test index f7bcb027..04b5b163 100644 --- a/parser/testdata/corpus/sql/copy/csv/timestamp_with_tz.test +++ b/parser/testdata/corpus/sql/copy/csv/timestamp_with_tz.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/timestamp_with_tz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(id int, ts timestamp); diff --git a/parser/testdata/corpus/sql/copy/csv/tsv_copy.test b/parser/testdata/corpus/sql/copy/csv/tsv_copy.test index 754be0f0..3a3218f2 100644 --- a/parser/testdata/corpus/sql/copy/csv/tsv_copy.test +++ b/parser/testdata/corpus/sql/copy/csv/tsv_copy.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/tsv_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE people(id INTEGER, name VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/csv/unicode_filename.test b/parser/testdata/corpus/sql/copy/csv/unicode_filename.test index a634b688..ae517d82 100644 --- a/parser/testdata/corpus/sql/copy/csv/unicode_filename.test +++ b/parser/testdata/corpus/sql/copy/csv/unicode_filename.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/unicode_filename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/csv/issue2628_中文.csv' diff --git a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/basic.test b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/basic.test index 91fd2df5..be84b751 100644 --- a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/basic.test +++ b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/basic.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/unquoted_escape/basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv('{DATA_DIR}/csv/unquoted_escape/plain.csv', escape = '\', sep = ',', strict_mode = false, nullstr = '\N'); diff --git a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/human_eval.test b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/human_eval.test index a7f255ae..b2adde15 100644 --- a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/human_eval.test +++ b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/human_eval.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/unquoted_escape/human_eval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE human_eval_jsonl AS diff --git a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/identical.test b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/identical.test index 73078d70..13d146d5 100644 --- a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/identical.test +++ b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/identical.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/unquoted_escape/identical.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT concat('#', columns(*), '#') FROM read_csv('{DATA_DIR}/csv/unquoted_escape/identical.csv', quote = '"', escape = '"', sep = ',', strict_mode = false); diff --git a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/mixed.test b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/mixed.test index 233d4a7c..992a63fe 100644 --- a/parser/testdata/corpus/sql/copy/csv/unquoted_escape/mixed.test +++ b/parser/testdata/corpus/sql/copy/csv/unquoted_escape/mixed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/unquoted_escape/mixed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/copy/csv/write_header_default.test b/parser/testdata/corpus/sql/copy/csv/write_header_default.test index 66eb2a78..587295c1 100644 --- a/parser/testdata/corpus/sql/copy/csv/write_header_default.test +++ b/parser/testdata/corpus/sql/copy/csv/write_header_default.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/write_header_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (a integer) diff --git a/parser/testdata/corpus/sql/copy/csv/zstd_crash.test b/parser/testdata/corpus/sql/copy/csv/zstd_crash.test index dc6d1b5b..0d7141c6 100644 --- a/parser/testdata/corpus/sql/copy/csv/zstd_crash.test +++ b/parser/testdata/corpus/sql/copy/csv/zstd_crash.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/zstd_crash.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_zst AS SELECT * FROM read_csv('{DATA_DIR}/csv/broken/test.csv.zst', AUTO_DETECT=TRUE); diff --git a/parser/testdata/corpus/sql/copy/csv/zstd_fs.test b/parser/testdata/corpus/sql/copy/csv/zstd_fs.test index a814c26d..76aa227a 100644 --- a/parser/testdata/corpus/sql/copy/csv/zstd_fs.test +++ b/parser/testdata/corpus/sql/copy/csv/zstd_fs.test @@ -1,6 +1,6 @@ # source: test/sql/copy/csv/zstd_fs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY lineitem FROM '{DATA_DIR}/csv/zstd/lineitem1k.tbl.zst' DELIMITER '|'; diff --git a/parser/testdata/corpus/sql/copy/encryption/concurrent_encrypted_attach.test b/parser/testdata/corpus/sql/copy/encryption/concurrent_encrypted_attach.test index 85b3725b..3d2c0deb 100644 --- a/parser/testdata/corpus/sql/copy/encryption/concurrent_encrypted_attach.test +++ b/parser/testdata/corpus/sql/copy/encryption/concurrent_encrypted_attach.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/concurrent_encrypted_attach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/concurrent_encrypted{i}.duckdb' AS encrypted{i} (ENCRYPTION_KEY 'asdf{i}'); diff --git a/parser/testdata/corpus/sql/copy/encryption/different_aes_ciphers.test b/parser/testdata/corpus/sql/copy/encryption/different_aes_ciphers.test index c8b3501d..d902c145 100644 --- a/parser/testdata/corpus/sql/copy/encryption/different_aes_ciphers.test +++ b/parser/testdata/corpus/sql/copy/encryption/different_aes_ciphers.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/different_aes_ciphers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted.duckdb' AS encrypted (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER 'random'); diff --git a/parser/testdata/corpus/sql/copy/encryption/different_encryption_versions_and_ciphers.test b/parser/testdata/corpus/sql/copy/encryption/different_encryption_versions_and_ciphers.test index 7c04d4fe..b4daf1e8 100644 --- a/parser/testdata/corpus/sql/copy/encryption/different_encryption_versions_and_ciphers.test +++ b/parser/testdata/corpus/sql/copy/encryption/different_encryption_versions_and_ciphers.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/different_encryption_versions_and_ciphers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted_{cipher}_{version}.duckdb' AS encrypted_{cipher}_{version} (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER '{cipher}', debug_encryption_version 'v9'); diff --git a/parser/testdata/corpus/sql/copy/encryption/encryption_storage_versions.test b/parser/testdata/corpus/sql/copy/encryption/encryption_storage_versions.test index a587b051..d0e8b16d 100644 --- a/parser/testdata/corpus/sql/copy/encryption/encryption_storage_versions.test +++ b/parser/testdata/corpus/sql/copy/encryption/encryption_storage_versions.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/encryption_storage_versions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/unencrypted.duckdb' as unencrypted; diff --git a/parser/testdata/corpus/sql/copy/encryption/force_mbedtls.test b/parser/testdata/corpus/sql/copy/encryption/force_mbedtls.test index 0b925082..f9fecff0 100644 --- a/parser/testdata/corpus/sql/copy/encryption/force_mbedtls.test +++ b/parser/testdata/corpus/sql/copy/encryption/force_mbedtls.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/force_mbedtls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_mbedtls_unsafe = 'true'; diff --git a/parser/testdata/corpus/sql/copy/encryption/test_different_encryption_versions.test b/parser/testdata/corpus/sql/copy/encryption/test_different_encryption_versions.test index 60694eae..aafb1c41 100644 --- a/parser/testdata/corpus/sql/copy/encryption/test_different_encryption_versions.test +++ b/parser/testdata/corpus/sql/copy/encryption/test_different_encryption_versions.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/test_different_encryption_versions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted_invalid.duckdb' AS encrypted_invalid (ENCRYPTION_KEY 'asdf', STORAGE_VERSION 'v1.4.0', debug_encryption_version 'v1'); diff --git a/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted.test b/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted.test index aa9bfae9..df861a82 100644 --- a/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted.test +++ b/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/unencrypted_to_encrypted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY FROM DATABASE unencrypted to encrypted; diff --git a/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted_direct_query.test b/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted_direct_query.test index b0039f0f..78f4a32b 100644 --- a/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted_direct_query.test +++ b/parser/testdata/corpus/sql/copy/encryption/unencrypted_to_encrypted_direct_query.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/unencrypted_to_encrypted_direct_query.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(i) FROM encrypted.tbl; diff --git a/parser/testdata/corpus/sql/copy/encryption/write_encrypted_database.test b/parser/testdata/corpus/sql/copy/encryption/write_encrypted_database.test index aa026042..028f01e5 100644 --- a/parser/testdata/corpus/sql/copy/encryption/write_encrypted_database.test +++ b/parser/testdata/corpus/sql/copy/encryption/write_encrypted_database.test @@ -1,6 +1,6 @@ # source: test/sql/copy/encryption/write_encrypted_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted.duckdb' AS encrypted (ENCRYPTION_KEY 'xxxxx'); diff --git a/parser/testdata/corpus/sql/copy/file_rotation_preserve_order.test b/parser/testdata/corpus/sql/copy/file_rotation_preserve_order.test new file mode 100644 index 00000000..a0f63651 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/file_rotation_preserve_order.test @@ -0,0 +1,268 @@ +# source: test/sql/copy/file_rotation_preserve_order.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE src AS SELECT (i * 7919) % 300007 AS k, i AS id FROM range(300000) t(i); +-- +ok +== +CREATE MACRO order_breaks(dir) AS TABLE +SELECT count(DISTINCT filename) AS files, count(*) AS row_count, count(*) FILTER (WHERE k < prev) AS breaks +FROM ( + SELECT filename, k, lag(k) OVER ( + ORDER BY regexp_extract(filename, 'data_(\d+)\.parquet', 1)::BIGINT, file_row_number) AS prev + FROM read_parquet(dir || '/*.parquet', filename = true, file_row_number = true) +); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_one' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '1GB'); +-- +ok +== +FROM order_breaks('{TEST_DIR}/rotate_order_one'); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_many' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_many'); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k DESC) TO '{TEST_DIR}/rotate_order_row_groups' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, ROW_GROUPS_PER_FILE 10); +-- +ok +== +SELECT files > 2, row_count, breaks +FROM ( + SELECT count(DISTINCT filename) AS files, count(*) AS row_count, count(*) FILTER (WHERE k > prev) AS breaks + FROM ( + SELECT filename, k, lag(k) OVER ( + ORDER BY regexp_extract(filename, 'data_(\d+)\.parquet', 1)::BIGINT, file_row_number) AS prev + FROM read_parquet('{TEST_DIR}/rotate_order_row_groups/*.parquet', filename = true, file_row_number = true) + ) +); +-- +ok +== +COPY (SELECT k, id + 1 AS id FROM (SELECT * FROM src ORDER BY k) WHERE id % 3 <> 0) TO '{TEST_DIR}/rotate_order_projection' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_projection'); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k LIMIT 200000) TO '{TEST_DIR}/rotate_order_limit' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_limit'); +-- +ok +== +CREATE TABLE returned AS +WITH written AS ( + COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_uuid' + (FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', FILENAME_PATTERN 'part_{uuid}', RETURN_FILES) +) +SELECT unnest(Files) AS file, generate_subscripts(Files, 1) AS position FROM written; +-- +ok +== +SELECT count(DISTINCT position) > 2, count(*), count(*) FILTER (WHERE k < prev) +FROM ( + SELECT position, k, lag(k) OVER (ORDER BY position, file_row_number) AS prev + FROM read_parquet('{TEST_DIR}/rotate_order_uuid/*.parquet', filename = true, file_row_number = true) + JOIN returned ON (filename = file) +); +-- +ok +== +COPY src TO '{TEST_DIR}/rotate_preserve_order' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', PRESERVE_ORDER); +-- +ok +== +SELECT files > 2, row_count, breaks +FROM ( + SELECT count(DISTINCT filename) AS files, count(*) AS row_count, count(*) FILTER (WHERE id <> prev + 1) AS breaks + FROM ( + SELECT filename, id, lag(id) OVER ( + ORDER BY regexp_extract(filename, 'data_(\d+)\.parquet', 1)::BIGINT, file_row_number) AS prev + FROM read_parquet('{TEST_DIR}/rotate_preserve_order/*.parquet', filename = true, file_row_number = true) + ) +); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_no_order' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', PRESERVE_ORDER false); +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/rotate_no_order/*.parquet'; +-- +ok +== +COPY src TO '{TEST_DIR}/rotate_unsorted' (FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT count(*), sum(id) FROM '{TEST_DIR}/rotate_unsorted/*.parquet'; +-- +ok +== +COPY (SELECT k, id FROM src WHERE id < 0 ORDER BY k) TO '{TEST_DIR}/rotate_order_empty' +(FORMAT PARQUET, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/rotate_order_empty/*.parquet'; +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_per_thread' +(FORMAT PARQUET, PER_THREAD_OUTPUT, PRESERVE_ORDER); +-- +ok +== +COPY (SELECT k, id, id % 4 AS p FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_partitioned' +(FORMAT PARQUET, PARTITION_BY (p), FILE_SIZE_BYTES '200kB', PRESERVE_ORDER); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_order_by' +(FORMAT PARQUET, ORDER_BY (id), FILE_SIZE_BYTES '200kB', PRESERVE_ORDER); +-- +ok +== +CREATE TABLE returned_stats AS +WITH written AS ( + COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_stats' + (FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', FILENAME_PATTERN 'part_{uuid}', RETURN_STATS) +) +SELECT filename AS file, count AS row_count, row_number() OVER () AS position FROM written; +-- +ok +== +SELECT count(*) > 2, sum(row_count) FROM returned_stats; +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE k < prev) +FROM ( + SELECT k, lag(k) OVER (ORDER BY position, file_row_number) AS prev + FROM read_parquet('{TEST_DIR}/rotate_order_stats/*.parquet', filename = true, file_row_number = true) + JOIN returned_stats ON (filename = file) +); +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM returned_stats) +FROM returned_stats +JOIN ( + SELECT filename AS file, count(*) AS row_count + FROM read_parquet('{TEST_DIR}/rotate_order_stats/*.parquet', filename = true) + GROUP BY ALL +) USING (file, row_count); +-- +ok +== +SELECT min(row_count) > 0 FROM returned_stats; +-- +ok +== +COPY (SELECT k, id FROM src WHERE id < 5000 ORDER BY k) TO '{TEST_DIR}/rotate_order_many' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', OVERWRITE); +-- +ok +== +FROM order_breaks('{TEST_DIR}/rotate_order_many'); +-- +ok +== +COPY (SELECT k, id FROM src WHERE id >= 5000 ORDER BY k) TO '{TEST_DIR}/rotate_order_many' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', FILENAME_PATTERN 'more_{uuid}', APPEND); +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/rotate_order_many/*.parquet'; +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_skip_empty' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB', WRITE_EMPTY_FILE false); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_skip_empty'); +-- +ok +== +COPY (SELECT k, id FROM src WHERE id < 0 ORDER BY k) TO '{TEST_DIR}/rotate_order_skip_empty_none' +(FORMAT PARQUET, FILE_SIZE_BYTES '200kB', WRITE_EMPTY_FILE false); +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/rotate_order_skip_empty_none/*'); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_csv' +(FORMAT CSV, HEADER, FILE_SIZE_BYTES '500kB'); +-- +ok +== +SELECT count(*) > 2, sum(row_count), count(*) FILTER (WHERE min_k <= prev_max_k) +FROM ( + SELECT min_k, row_count, lag(max_k) OVER (ORDER BY file_idx) AS prev_max_k + FROM ( + SELECT regexp_extract(filename, 'data_(\d+)\.csv', 1)::BIGINT AS file_idx, min(k) AS min_k, max(k) AS max_k, + count(*) AS row_count + FROM read_csv('{TEST_DIR}/rotate_order_csv/*.csv', filename = true, header = true) + GROUP BY ALL + ) +); +-- +ok +== +COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_order_single_thread' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_single_thread'); +-- +ok +== +COPY (SELECT k, id, row_number() OVER () AS rn FROM (SELECT k, id FROM src ORDER BY k)) TO '{TEST_DIR}/rotate_order_window' +(FORMAT PARQUET, ROW_GROUP_SIZE 2048, FILE_SIZE_BYTES '200kB'); +-- +ok +== +SELECT files > 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_window'); +-- +ok +== +EXPLAIN COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_plan' (FORMAT PARQUET, FILE_SIZE_BYTES '200kB'); +-- +ok +== +EXPLAIN COPY src TO '{TEST_DIR}/rotate_plan' (FORMAT PARQUET, FILE_SIZE_BYTES '200kB'); +-- +ok +== +EXPLAIN COPY (SELECT k, id FROM src ORDER BY k) TO '{TEST_DIR}/rotate_plan' (FORMAT PARQUET, FILE_SIZE_BYTES '200kB', PRESERVE_ORDER false); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/file_size_bytes.test b/parser/testdata/corpus/sql/copy/file_size_bytes.test index a2ef2207..f2524769 100644 --- a/parser/testdata/corpus/sql/copy/file_size_bytes.test +++ b/parser/testdata/corpus/sql/copy/file_size_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/file_size_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigdata AS SELECT i AS col_a, i AS col_b FROM range(0,10_000) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/file_size_bytes_csv_compression.test b/parser/testdata/corpus/sql/copy/file_size_bytes_csv_compression.test index 81fd462f..6ef052ff 100644 --- a/parser/testdata/corpus/sql/copy/file_size_bytes_csv_compression.test +++ b/parser/testdata/corpus/sql/copy/file_size_bytes_csv_compression.test @@ -1,6 +1,6 @@ # source: test/sql/copy/file_size_bytes_csv_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT repeat('x', 200) AS payload FROM range(100_000)) diff --git a/parser/testdata/corpus/sql/copy/file_size_bytes_existing_target.test b/parser/testdata/corpus/sql/copy/file_size_bytes_existing_target.test index c86d6640..3d76a3c3 100644 --- a/parser/testdata/corpus/sql/copy/file_size_bytes_existing_target.test +++ b/parser/testdata/corpus/sql/copy/file_size_bytes_existing_target.test @@ -1,6 +1,6 @@ # source: test/sql/copy/file_size_bytes_existing_target.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 AS a) TO '{TEST_DIR}/tgt.parquet' (FORMAT parquet); diff --git a/parser/testdata/corpus/sql/copy/file_size_bytes_tiny_limit.test b/parser/testdata/corpus/sql/copy/file_size_bytes_tiny_limit.test index aaaa06d8..b53a7df4 100644 --- a/parser/testdata/corpus/sql/copy/file_size_bytes_tiny_limit.test +++ b/parser/testdata/corpus/sql/copy/file_size_bytes_tiny_limit.test @@ -1,6 +1,6 @@ # source: test/sql/copy/file_size_bytes_tiny_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_execution_time = 60000 diff --git a/parser/testdata/corpus/sql/copy/filename_pattern_serialization.test b/parser/testdata/corpus/sql/copy/filename_pattern_serialization.test new file mode 100644 index 00000000..63fdb13b --- /dev/null +++ b/parser/testdata/corpus/sql/copy/filename_pattern_serialization.test @@ -0,0 +1,49 @@ +# source: test/sql/copy/filename_pattern_serialization.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT 1 AS a; +-- +ok +== +COPY t TO '__TEST_DIR__/fp_empty' (FORMAT csv, PER_THREAD_OUTPUT true, FILENAME_PATTERN ''); +-- +ok +== +SELECT count(*) FROM read_csv_auto('__TEST_DIR__/fp_empty/.csv'); +-- +ok +== +COPY t TO '__TEST_DIR__/fp_custom' (FORMAT csv, PER_THREAD_OUTPUT true, FILENAME_PATTERN 'custom_{i}'); +-- +ok +== +SELECT count(*) FROM read_csv_auto('__TEST_DIR__/fp_custom/custom_0.csv'); +-- +ok +== +COPY t TO '__TEST_DIR__/fp_uuid' (FORMAT csv, PER_THREAD_OUTPUT true, FILENAME_PATTERN 'prefix_{uuid}'); +-- +ok +== +SELECT count(*) FROM read_csv_auto('__TEST_DIR__/fp_uuid/prefix_*.csv'); +-- +ok +== +COPY t TO '__TEST_DIR__/fp_uuidv7' (FORMAT csv, PER_THREAD_OUTPUT true, FILENAME_PATTERN 'v7_{uuidv7}_tail'); +-- +ok +== +SELECT count(*) FROM read_csv_auto('__TEST_DIR__/fp_uuidv7/v7_*_tail.csv'); +-- +ok +== +COPY t TO '__TEST_DIR__/fp_default' (FORMAT csv, PER_THREAD_OUTPUT true); +-- +ok +== +SELECT count(*) FROM read_csv_auto('__TEST_DIR__/fp_default/data_0.csv'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/format_uuid.test b/parser/testdata/corpus/sql/copy/format_uuid.test index 46757ee8..915ec715 100644 --- a/parser/testdata/corpus/sql/copy/format_uuid.test +++ b/parser/testdata/corpus/sql/copy/format_uuid.test @@ -1,6 +1,6 @@ # source: test/sql/copy/format_uuid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2 as SELECT i as a, (i*2) as b, power(i,2) as c from range(0,10) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/hive_partition_null_overwrite.test b/parser/testdata/corpus/sql/copy/hive_partition_null_overwrite.test index d4492abf..0f2eeb93 100644 --- a/parser/testdata/corpus/sql/copy/hive_partition_null_overwrite.test +++ b/parser/testdata/corpus/sql/copy/hive_partition_null_overwrite.test @@ -1,6 +1,6 @@ # source: test/sql/copy/hive_partition_null_overwrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM read_csv_auto('{DATA_DIR}/csv/null/hive_partition_null_overwrite.csv')) diff --git a/parser/testdata/corpus/sql/copy/parquet/afl.test b/parser/testdata/corpus/sql/copy/parquet/afl.test index 25de7f9a..5e4cbc82 100644 --- a/parser/testdata/corpus/sql/copy/parquet/afl.test +++ b/parser/testdata/corpus/sql/copy/parquet/afl.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/afl.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/afl/{i}.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/allow_empty.test b/parser/testdata/corpus/sql/copy/parquet/allow_empty.test index eb78c174..4565e978 100644 --- a/parser/testdata/corpus/sql/copy/parquet/allow_empty.test +++ b/parser/testdata/corpus/sql/copy/parquet/allow_empty.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/allow_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet(['{TEST_DIR}/allow_empty_missing.parquet']); diff --git a/parser/testdata/corpus/sql/copy/parquet/alltypes-dictionaries.test b/parser/testdata/corpus/sql/copy/parquet/alltypes-dictionaries.test index 551b93a9..d6b81b4e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/alltypes-dictionaries.test +++ b/parser/testdata/corpus/sql/copy/parquet/alltypes-dictionaries.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/alltypes-dictionaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select (r1.range * 10)::{type} r from range(10) r1, range(1000) r2) to '{TEST_DIR}/dict-{type}.parquet' (row_group_size 2048); diff --git a/parser/testdata/corpus/sql/copy/parquet/attach_parquet.test b/parser/testdata/corpus/sql/copy/parquet/attach_parquet.test index 273c9d7e..61ba1d19 100644 --- a/parser/testdata/corpus/sql/copy/parquet/attach_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/attach_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/attach_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 val) TO '{TEST_DIR}/file.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/auto_glob_directory.test b/parser/testdata/corpus/sql/copy/parquet/auto_glob_directory.test index 83a50345..d5334278 100644 --- a/parser/testdata/corpus/sql/copy/parquet/auto_glob_directory.test +++ b/parser/testdata/corpus/sql/copy/parquet/auto_glob_directory.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/auto_glob_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i%2 AS grp, i FROM range(1000) t(i)) TO '{TEST_DIR}/partitioned_glob.parquet' (PARTITION_BY (grp)); diff --git a/parser/testdata/corpus/sql/copy/parquet/aws2.test b/parser/testdata/corpus/sql/copy/parquet/aws2.test index 6cad11e5..6f642f9c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/aws2.test +++ b/parser/testdata/corpus/sql/copy/parquet/aws2.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/aws2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/aws2.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/aws_kinesis.test b/parser/testdata/corpus/sql/copy/parquet/aws_kinesis.test index ef49708a..b9a310d6 100644 --- a/parser/testdata/corpus/sql/copy/parquet/aws_kinesis.test +++ b/parser/testdata/corpus/sql/copy/parquet/aws_kinesis.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/aws_kinesis.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/aws_kinesis.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/bigdecimal.test b/parser/testdata/corpus/sql/copy/parquet/bigdecimal.test index c52017c6..1f4ee41a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/bigdecimal.test +++ b/parser/testdata/corpus/sql/copy/parquet/bigdecimal.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/bigdecimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/parquet-testing/bigdecimal.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_decimal.test b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_decimal.test index 9f604a5d..cd251339 100644 --- a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_decimal.test +++ b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/bloom_filter_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval.test b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval.test index 80d424a6..0a2498e7 100644 --- a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval.test +++ b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/bloom_filter_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval_saturated.test b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval_saturated.test new file mode 100644 index 00000000..75322ff4 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_interval_saturated.test @@ -0,0 +1,66 @@ +# source: test/sql/copy/parquet/bloom_filter_interval_saturated.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT (i % 10) * INTERVAL '1 day' AS iv FROM range(2048) t(i)) TO '{TEST_DIR}/bloom_interval_days.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT count(*) +FROM parquet_kv_metadata('{TEST_DIR}/bloom_interval_days.parquet') +WHERE key = 'duckdb.interval_bloom_filter' AND decode(value) = 'normalized-v1'; +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_interval_days.parquet' WHERE iv = INTERVAL '-178956970 years -8 months -1 day'; +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_interval_days.parquet' WHERE iv IN (INTERVAL '-178956970 years -8 months -1 day', INTERVAL '3 days'); +-- +ok +== +SELECT bool_or(bloom_filter_excludes) FROM parquet_bloom_probe('{TEST_DIR}/bloom_interval_days.parquet', 'iv', INTERVAL '-178956970 years -8 months -1 day'); +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_interval_days.parquet' WHERE iv = INTERVAL '-1 day'; +-- +ok +== +COPY ( + SELECT to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours' AS iv + UNION ALL SELECT INTERVAL '1 day' +) TO '{TEST_DIR}/bloom_interval_saturated.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_interval_saturated.parquet' WHERE iv = to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours'; +-- +ok +== +SELECT bloom_filter_excludes FROM parquet_bloom_probe('{TEST_DIR}/bloom_interval_saturated.parquet', 'iv', to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours'); +-- +ok +== +SELECT bloom_filter_excludes FROM parquet_bloom_probe('data/parquet-testing/interval_bloom_saturated_v2_0.parquet', 'iv', to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours'); +-- +ok +== +SELECT bloom_filter_excludes FROM parquet_bloom_probe('data/parquet-testing/interval_bloom_saturated_v2_0.parquet', 'iv', INTERVAL '50 days'); +-- +ok +== +SELECT bloom_filter_excludes FROM parquet_bloom_probe('data/parquet-testing/interval_bloom_saturated_main.parquet', 'iv', to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours'); +-- +ok +== +SELECT count(*) FROM 'data/parquet-testing/interval_bloom_saturated_main.parquet' WHERE iv = to_months(2147483646) + to_days(2147483647) + INTERVAL '744 hours'; +-- +ok +== +SELECT bloom_filter_excludes FROM parquet_bloom_probe('data/parquet-testing/interval_bloom_saturated_main.parquet', 'iv', INTERVAL '50 days'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/bloom_filter_pruned_row_groups.test b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_pruned_row_groups.test new file mode 100644 index 00000000..677adeb6 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/bloom_filter_pruned_row_groups.test @@ -0,0 +1,49 @@ +# source: test/sql/copy/parquet/bloom_filter_pruned_row_groups.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY ( + SELECT printf('T%03d', i // 2048) AS tenant, ((i % 50) * 20 + i // 2048)::INTEGER AS item, (i % 2)::VARCHAR AS direction + FROM range(20480) t(i) +) TO '{TEST_DIR}/bloom_pruned_row_groups.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) +-- +ok +== +SELECT count(DISTINCT row_group_id), count(*) +FROM parquet_metadata('{TEST_DIR}/bloom_pruned_row_groups.parquet') +WHERE path_in_schema IN ('item', 'direction') AND bloom_filter_offset IS NOT NULL +-- +ok +== +SET VARIABLE bloom_offsets = ( + SELECT list(bloom_filter_offset) FROM parquet_metadata('{TEST_DIR}/bloom_pruned_row_groups.parquet') +) +-- +ok +== +SET enable_external_file_cache = false +-- +ok +== +SET disable_parquet_prefetching = true +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_pruned_row_groups.parquet' WHERE tenant = 'T003' AND direction = '1' +-- +ok +== +SELECT count(DISTINCT pos) FROM duckdb_logs_parsed('FileSystem') +WHERE op = 'READ' AND list_contains(getvariable('bloom_offsets'), pos) +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM '{TEST_DIR}/bloom_pruned_row_groups.parquet' WHERE tenant = 'T003' AND item = 21 +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/bloom_pruned_row_groups.parquet' WHERE item = 21 AND direction = '1' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/bloom_filters.test b/parser/testdata/corpus/sql/copy/parquet/bloom_filters.test index 40879611..25331ff9 100644 --- a/parser/testdata/corpus/sql/copy/parquet/bloom_filters.test +++ b/parser/testdata/corpus/sql/copy/parquet/bloom_filters.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/bloom_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select diff --git a/parser/testdata/corpus/sql/copy/parquet/broken_parquet.test b/parser/testdata/corpus/sql/copy/parquet/broken_parquet.test index cc9c1e8e..f4da9beb 100644 --- a/parser/testdata/corpus/sql/copy/parquet/broken_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/broken_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/broken_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from parquet_scan('test/sql/copy/parquet/broken/missingmagicatfront.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/byte_stream_split.test b/parser/testdata/corpus/sql/copy/parquet/byte_stream_split.test index d5a60739..741345c5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/byte_stream_split.test +++ b/parser/testdata/corpus/sql/copy/parquet/byte_stream_split.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/byte_stream_split.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/byte_stream_split.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/case_insensitive_replacement.test b/parser/testdata/corpus/sql/copy/parquet/case_insensitive_replacement.test index feff5b6d..a24bd4a1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/case_insensitive_replacement.test +++ b/parser/testdata/corpus/sql/copy/parquet/case_insensitive_replacement.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/case_insensitive_replacement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT data FROM '{DATA_DIR}/parquet-testing/CASE_INSENSITIVE.PARQUET' diff --git a/parser/testdata/corpus/sql/copy/parquet/concurrent_add_parquet_key.test b/parser/testdata/corpus/sql/copy/parquet/concurrent_add_parquet_key.test new file mode 100644 index 00000000..75711cf1 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/concurrent_add_parquet_key.test @@ -0,0 +1,9 @@ +# source: test/sql/copy/parquet/concurrent_add_parquet_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PRAGMA add_parquet_key('shared', '0123456789112345'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/copy_ninf_stats.test b/parser/testdata/corpus/sql/copy/parquet/copy_ninf_stats.test index 1f030aa4..b8e83e9a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/copy_ninf_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/copy_ninf_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/copy_ninf_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select '-infinity'::double ninf) to '{TEST_DIR}/ninf.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/copy_option_non_foldable.test b/parser/testdata/corpus/sql/copy/parquet/copy_option_non_foldable.test index 473f0e23..07d16d20 100644 --- a/parser/testdata/corpus/sql/copy/parquet/copy_option_non_foldable.test +++ b/parser/testdata/corpus/sql/copy/parquet/copy_option_non_foldable.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/copy_option_non_foldable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE statement2 as COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/copy_option_prepared.test b/parser/testdata/corpus/sql/copy/parquet/copy_option_prepared.test index a532e7ca..6f4fe20d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/copy_option_prepared.test +++ b/parser/testdata/corpus/sql/copy/parquet/copy_option_prepared.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/copy_option_prepared.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE statement as COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/copy_option_suggestion.test b/parser/testdata/corpus/sql/copy/parquet/copy_option_suggestion.test index 6ce7e8cf..609c1541 100644 --- a/parser/testdata/corpus/sql/copy/parquet/copy_option_suggestion.test +++ b/parser/testdata/corpus/sql/copy/parquet/copy_option_suggestion.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/copy_option_suggestion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42) to 'file.parquet' (partition_b (a)); diff --git a/parser/testdata/corpus/sql/copy/parquet/copy_option_validation.test b/parser/testdata/corpus/sql/copy/parquet/copy_option_validation.test index a1a51f26..9aa8b5ad 100644 --- a/parser/testdata/corpus/sql/copy/parquet/copy_option_validation.test +++ b/parser/testdata/corpus/sql/copy/parquet/copy_option_validation.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/copy_option_validation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i % 7 p FROM range(100) r(i)) TO '__TEST_DIR__/bf.parquet' (BLOOM_FILTER_FALSE_POSITIVE_RATIO 2) diff --git a/parser/testdata/corpus/sql/copy/parquet/corrupt_stats.test b/parser/testdata/corpus/sql/copy/parquet/corrupt_stats.test index 8470226c..f38b4803 100644 --- a/parser/testdata/corpus/sql/copy/parquet/corrupt_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/corrupt_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/corrupt_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a FROM '{DATA_DIR}/parquet-testing/corrupt_stats.parquet' GROUP BY a; diff --git a/parser/testdata/corpus/sql/copy/parquet/crafted_rowgroup_huge_columns.test b/parser/testdata/corpus/sql/copy/parquet/crafted_rowgroup_huge_columns.test new file mode 100644 index 00000000..bc0ae72f --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/crafted_rowgroup_huge_columns.test @@ -0,0 +1,13 @@ +# source: test/sql/copy/parquet/crafted_rowgroup_huge_columns.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM parquet_metadata('{DATA_DIR}/parquet-testing/broken/crafted_rowgroup_huge_columns.parquet'); +-- +ok +== +SELECT * FROM '{DATA_DIR}/parquet-testing/broken/crafted_rowgroup_huge_columns.parquet'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/cte_batch_exchange.test b/parser/testdata/corpus/sql/copy/parquet/cte_batch_exchange.test index 3ba9197b..408de280 100644 --- a/parser/testdata/corpus/sql/copy/parquet/cte_batch_exchange.test +++ b/parser/testdata/corpus/sql/copy/parquet/cte_batch_exchange.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/cte_batch_exchange.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cte_parquet_source AS SELECT i FROM range(1000000) t(i); diff --git a/parser/testdata/corpus/sql/copy/parquet/decimal_filter.test b/parser/testdata/corpus/sql/copy/parquet/decimal_filter.test index e35dace0..ce91b34e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/decimal_filter.test +++ b/parser/testdata/corpus/sql/copy/parquet/decimal_filter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/decimal_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/parquet-testing/decimals.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/delta_byte_array.test b/parser/testdata/corpus/sql/copy/parquet/delta_byte_array.test index 1c10f90e..4d8482bc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/delta_byte_array.test +++ b/parser/testdata/corpus/sql/copy/parquet/delta_byte_array.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/delta_byte_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/delta_byte_array.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/describe_parquet.test b/parser/testdata/corpus/sql/copy/parquet/describe_parquet.test index 58ff164d..e945dd8e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/describe_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/describe_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/describe_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DESCRIBE '{DATA_DIR}/parquet-testing/delta_byte_array.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/dictionary_compression_ratio_threshold.test b/parser/testdata/corpus/sql/copy/parquet/dictionary_compression_ratio_threshold.test index a028dded..8c934ce2 100644 --- a/parser/testdata/corpus/sql/copy/parquet/dictionary_compression_ratio_threshold.test +++ b/parser/testdata/corpus/sql/copy/parquet/dictionary_compression_ratio_threshold.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/dictionary_compression_ratio_threshold.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT 'thisisaverylongstringbutitrepeatsmanytimessoitshighlycompressible' || (range % 10) i FROM range(100000) diff --git a/parser/testdata/corpus/sql/copy/parquet/encryption/arrow_compatibility.test b/parser/testdata/corpus/sql/copy/parquet/encryption/arrow_compatibility.test index 5d02f828..8c4a4305 100644 --- a/parser/testdata/corpus/sql/copy/parquet/encryption/arrow_compatibility.test +++ b/parser/testdata/corpus/sql/copy/parquet/encryption/arrow_compatibility.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/encryption/arrow_compatibility.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA add_parquet_key('arrow_key', '0123456789012345') @@ -23,3 +23,31 @@ SELECT * FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_uniform_ -- ok == +SELECT value FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_uncompressed_required.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT value FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_uncompressed_nullable.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT value FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_snappy_required.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT value FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_snappy_nullable.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT count(*), count(value), sum(value), count(*) FILTER (value = 9) FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_snappy_compressed_required.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT count(*), count(value), sum(value), count(*) FILTER (value = 9) FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_snappy_compressed_nullable.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}); +-- +ok +== +SELECT file_row_number, value FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_rust_pme_data_page_v2_snappy_compressed_nullable.parquet', encryption_config={footer_key: 'arrow_key_generated_files'}, file_row_number = true) WHERE file_row_number < 5 ORDER BY file_row_number; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/encryption/plaintext_footer_encryption.test b/parser/testdata/corpus/sql/copy/parquet/encryption/plaintext_footer_encryption.test index cbdbf031..b0c5dfcc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/encryption/plaintext_footer_encryption.test +++ b/parser/testdata/corpus/sql/copy/parquet/encryption/plaintext_footer_encryption.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/encryption/plaintext_footer_encryption.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet('{DATA_DIR}/parquet-testing/plaintext_footer_crypto_metadata.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/enum_converted_type.test b/parser/testdata/corpus/sql/copy/parquet/enum_converted_type.test index 28358ca6..284d5c01 100644 --- a/parser/testdata/corpus/sql/copy/parquet/enum_converted_type.test +++ b/parser/testdata/corpus/sql/copy/parquet/enum_converted_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/enum_converted_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/parquet-testing/enum.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/file_metadata.test b/parser/testdata/corpus/sql/copy/parquet/file_metadata.test index 0c6322a7..741f7a9c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/file_metadata.test +++ b/parser/testdata/corpus/sql/copy/parquet/file_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/file_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET parquet_metadata_cache = true; diff --git a/parser/testdata/corpus/sql/copy/parquet/fixed.test b/parser/testdata/corpus/sql/copy/parquet/fixed.test index dfbbaee1..4f4fe45f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/fixed.test +++ b/parser/testdata/corpus/sql/copy/parquet/fixed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/fixed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT data FROM parquet_scan('{DATA_DIR}/parquet-testing/fixed.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/float16.test b/parser/testdata/corpus/sql/copy/parquet/float16.test index 6cd9b0b8..3b04ef94 100644 --- a/parser/testdata/corpus/sql/copy/parquet/float16.test +++ b/parser/testdata/corpus/sql/copy/parquet/float16.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/float16.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select type, type_length, logical_type from parquet_schema('{DATA_DIR}/parquet-testing/float16.parquet') where name = 'x' diff --git a/parser/testdata/corpus/sql/copy/parquet/hive_partitioning_struct.test b/parser/testdata/corpus/sql/copy/parquet/hive_partitioning_struct.test index 1e15639b..29ec05b9 100644 --- a/parser/testdata/corpus/sql/copy/parquet/hive_partitioning_struct.test +++ b/parser/testdata/corpus/sql/copy/parquet/hive_partitioning_struct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/hive_partitioning_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/hive_timestamps.test b/parser/testdata/corpus/sql/copy/parquet/hive_timestamps.test index d2dd1c82..77b41456 100644 --- a/parser/testdata/corpus/sql/copy/parquet/hive_timestamps.test +++ b/parser/testdata/corpus/sql/copy/parquet/hive_timestamps.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/hive_timestamps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE raw_data ( diff --git a/parser/testdata/corpus/sql/copy/parquet/incorrect_converted_type.test b/parser/testdata/corpus/sql/copy/parquet/incorrect_converted_type.test index 1e739a7e..2ec8624f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/incorrect_converted_type.test +++ b/parser/testdata/corpus/sql/copy/parquet/incorrect_converted_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/incorrect_converted_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/broken/broken_bigint.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/infer_copy_format.test b/parser/testdata/corpus/sql/copy/parquet/infer_copy_format.test index ebaa2854..608704d0 100644 --- a/parser/testdata/corpus/sql/copy/parquet/infer_copy_format.test +++ b/parser/testdata/corpus/sql/copy/parquet/infer_copy_format.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/infer_copy_format.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(6) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/parquet/int96_as.test b/parser/testdata/corpus/sql/copy/parquet/int96_as.test index f583e448..9f6e2792 100644 --- a/parser/testdata/corpus/sql/copy/parquet/int96_as.test +++ b/parser/testdata/corpus/sql/copy/parquet/int96_as.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/int96_as.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(ts), ts::VARCHAR diff --git a/parser/testdata/corpus/sql/copy/parquet/int96_invalid_stats.test b/parser/testdata/corpus/sql/copy/parquet/int96_invalid_stats.test new file mode 100644 index 00000000..d23dc9e7 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/int96_invalid_stats.test @@ -0,0 +1,67 @@ +# source: test/sql/copy/parquet/int96_invalid_stats.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT stats_min, stats_max FROM parquet_metadata('{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet') +WHERE path_in_schema = 'time'; +-- +ok +== +SELECT min(time)::VARCHAR, max(time)::VARCHAR FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE time >= TIMESTAMP '2024-11-01'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE strftime(time, '%Y-%m-%d') >= '2024-11-01'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE time < TIMESTAMP '2024-11-01'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE time < TIMESTAMP '2024-11-01' AND strftime(time, '%Y-%m-%d') >= '2024-11-01'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE time >= TIMESTAMP '2024-11-01' OR time < TIMESTAMP '2024-11-01'; +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet' +WHERE time IS NULL; +-- +ok +== +SELECT count(*) FROM read_parquet('{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet', int96_as = 'timestamp_ns') +WHERE time >= TIMESTAMP '2024-11-01'::TIMESTAMP_NS; +-- +ok +== +SELECT count(*) FROM read_parquet('{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet', int96_as = 'struct'); +-- +ok +== +COPY (SELECT UNNEST([TIMESTAMP '2024-01-01', TIMESTAMP '2024-06-01', TIMESTAMP '2024-12-01', NULL]) AS ts) +TO '{TEMP_DIR}/int96_written_by_duckdb.parquet' (FORMAT 'parquet', write_timestamp_as_int96 true); +-- +ok +== +SELECT count(*) FROM '{TEMP_DIR}/int96_written_by_duckdb.parquet' +WHERE ts >= TIMESTAMP '2024-06-01'; +-- +ok +== +SELECT min(ts)::VARCHAR, max(ts)::VARCHAR FROM '{TEMP_DIR}/int96_written_by_duckdb.parquet'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/invalid_utf8_stats.test b/parser/testdata/corpus/sql/copy/parquet/invalid_utf8_stats.test index db1c5e1e..8685f898 100644 --- a/parser/testdata/corpus/sql/copy/parquet/invalid_utf8_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/invalid_utf8_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/invalid_utf8_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM 'data/parquet-testing/invalid_utf8_stats.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/issue_21508.test b/parser/testdata/corpus/sql/copy/parquet/issue_21508.test index d18e8476..c4d76ced 100644 --- a/parser/testdata/corpus/sql/copy/parquet/issue_21508.test +++ b/parser/testdata/corpus/sql/copy/parquet/issue_21508.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/issue_21508.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA add_parquet_key('key256', '01234567891123450123456789112345') diff --git a/parser/testdata/corpus/sql/copy/parquet/issue_27456_constant_stats.test b/parser/testdata/corpus/sql/copy/parquet/issue_27456_constant_stats.test new file mode 100644 index 00000000..625e9461 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/issue_27456_constant_stats.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/parquet/issue_27456_constant_stats.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT rid, c FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' WHERE c IS NULL ORDER BY rid +-- +ok +== +SELECT rid, b FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' WHERE b IS NULL ORDER BY rid +-- +ok +== +SELECT rid, c FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' WHERE c IS NOT NULL ORDER BY rid +-- +ok +== +SELECT count(*) FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' WHERE NOT (c IS NOT NULL) +-- +ok +== +SELECT count(*) FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' WHERE coalesce(c, 'z') = 'z' +-- +ok +== +SELECT rid, c FROM 'test/sql/copy/parquet/issue_27456_constant_stats.parquet' ORDER BY rid +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/json_parquet.test b/parser/testdata/corpus/sql/copy/parquet/json_parquet.test index f9e8c8ac..cbf62b40 100644 --- a/parser/testdata/corpus/sql/copy/parquet/json_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/json_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/json_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE json_tbl AS FROM '{DATA_DIR}/parquet-testing/json_convertedtype.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/kv_metadata.test b/parser/testdata/corpus/sql/copy/parquet/kv_metadata.test index 09c55eba..27fddbaf 100644 --- a/parser/testdata/corpus/sql/copy/parquet/kv_metadata.test +++ b/parser/testdata/corpus/sql/copy/parquet/kv_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/kv_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1, 'foo') TO '{TEST_DIR}/kv_metadata_test.parquet' (FORMAT PARQUET, KV_METADATA {foo: 'bar', baz: 42, quz: '\xC3\xB6\xC3\xA4\xC3\xA5'::BLOB}); diff --git a/parser/testdata/corpus/sql/copy/parquet/kv_metadata_null.test b/parser/testdata/corpus/sql/copy/parquet/kv_metadata_null.test index 56e27043..fb24e8d5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/kv_metadata_null.test +++ b/parser/testdata/corpus/sql/copy/parquet/kv_metadata_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/kv_metadata_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1) TO '{TEMP_DIR}/kv_null_blob.parquet' (FORMAT PARQUET, KV_METADATA {quz: NULL::BLOB}); diff --git a/parser/testdata/corpus/sql/copy/parquet/lineitem_arrow.test b/parser/testdata/corpus/sql/copy/parquet/lineitem_arrow.test index bb64fab2..e50b71aa 100644 --- a/parser/testdata/corpus/sql/copy/parquet/lineitem_arrow.test +++ b/parser/testdata/corpus/sql/copy/parquet/lineitem_arrow.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/lineitem_arrow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem AS SELECT * FROM '{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/list_contains_row_group_pruning.test b/parser/testdata/corpus/sql/copy/parquet/list_contains_row_group_pruning.test index 8a70d016..0d545a43 100644 --- a/parser/testdata/corpus/sql/copy/parquet/list_contains_row_group_pruning.test +++ b/parser/testdata/corpus/sql/copy/parquet/list_contains_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/list_contains_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT [i] AS l FROM range(6144) t(i)) diff --git a/parser/testdata/corpus/sql/copy/parquet/map_extract_row_group_pruning.test b/parser/testdata/corpus/sql/copy/parquet/map_extract_row_group_pruning.test index 34435376..33869adf 100644 --- a/parser/testdata/corpus/sql/copy/parquet/map_extract_row_group_pruning.test +++ b/parser/testdata/corpus/sql/copy/parquet/map_extract_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/map_extract_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT MAP {'k': i} AS m FROM range(6144) t(i)) diff --git a/parser/testdata/corpus/sql/copy/parquet/metadata_full.test b/parser/testdata/corpus/sql/copy/parquet/metadata_full.test index 84d0fa5a..225c49b1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/metadata_full.test +++ b/parser/testdata/corpus/sql/copy/parquet/metadata_full.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/metadata_full.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT unnest(parquet_file_metadata, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/arrow/alltypes_dictionary.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file/adaptive_filter_carryover.test b/parser/testdata/corpus/sql/copy/parquet/multi_file/adaptive_filter_carryover.test index c110f9da..65336873 100644 --- a/parser/testdata/corpus/sql/copy/parquet/multi_file/adaptive_filter_carryover.test +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file/adaptive_filter_carryover.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/multi_file/adaptive_filter_carryover.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET read_ahead_depth=1 @@ -46,10 +46,6 @@ COPY (SELECT i AS a, i%10 AS b, i%2 AS extra FROM range(100000) t(i)) TO '{TEST_ -- ok == -CALL truncate_duckdb_logs() --- -ok -== SELECT count(*) FROM read_parquet(['{TEST_DIR}/af_cross_1.parquet', '{TEST_DIR}/af_cross_2.parquet', '{TEST_DIR}/af_cross_3.parquet', '{TEST_DIR}/af_cross_4.parquet'], union_by_name=true) WHERE a > 100 AND b > 3 -- ok diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_integer_types.test b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_integer_types.test index d8e5bb17..08c2dee8 100644 --- a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_integer_types.test +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_integer_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/multi_file/multi_file_filter_integer_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (FROM (VALUES ('f1', 42::INT), ('f1', 8::INT), ('f1', NULL::INT)) t(f, i)) TO '{TEST_DIR}/multi_file_filter_f1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_mixed.test b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_mixed.test index 3b273c7f..1805f04c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_mixed.test +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_mixed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/multi_file/multi_file_filter_mixed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (FROM (VALUES ('f1', 42), ('f1', 8), ('f1', NULL)) t(f, i)) TO '{TEST_DIR}/multi_file_filter_f1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_struct.test b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_struct.test index 24a5e89a..3650e0db 100644 --- a/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_struct.test +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file/multi_file_filter_struct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/multi_file/multi_file_filter_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file_conversion_error.test b/parser/testdata/corpus/sql/copy/parquet/multi_file_conversion_error.test index 34b45f61..e3548569 100644 --- a/parser/testdata/corpus/sql/copy/parquet/multi_file_conversion_error.test +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file_conversion_error.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/multi_file_conversion_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42 as a) to '{TEST_DIR}/conversion_error1.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/multi_file_max_files_for_stats.test b/parser/testdata/corpus/sql/copy/parquet/multi_file_max_files_for_stats.test new file mode 100644 index 00000000..262d8b3b --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/multi_file_max_files_for_stats.test @@ -0,0 +1,81 @@ +# source: test/sql/copy/parquet/multi_file_max_files_for_stats.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range AS i FROM range(0, 10)) TO '{TEST_DIR}/sample_stats_0.parquet' +-- +ok +== +COPY (SELECT range AS i FROM range(100, 110)) TO '{TEST_DIR}/sample_stats_1.parquet' +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], maximum_files_for_stats=2) WHERE i > 1000 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], maximum_files_for_stats=2) +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], maximum_files_for_stats=2) WHERE i > 5 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet']) WHERE i > 1000 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], maximum_files_for_stats=1) WHERE i > 1000 +-- +ok +== +COPY (SELECT range AS i FROM range(0, 0)) TO '{TEST_DIR}/sample_stats_empty.parquet' +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_empty.parquet', '{TEST_DIR}/sample_stats_1.parquet'], maximum_files_for_stats=3) WHERE i > 1000 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet']) LIMIT 100 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], schema=map{'i': {name: 'i', type: 'BIGINT', default_value: NULL}}, maximum_files_for_stats=2) WHERE i > 1000 +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], schema=map{'i': {name: 'i', type: 'BIGINT', default_value: NULL}}, maximum_files_for_stats=2) WHERE i > 5 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/sample_stats_0.parquet', '{TEST_DIR}/sample_stats_1.parquet'], schema=map{'i': {name: 'i', type: 'BIGINT', default_value: NULL}}) WHERE i > 1000 +-- +ok +== +COPY (SELECT {'a': 0, 'b': 0} AS s) TO '{TEST_DIR}/stats_first.parquet' (FORMAT PARQUET) +-- +ok +== +COPY (SELECT {'b': 0, 'a': 1000} AS s) TO '{TEST_DIR}/stats_second.parquet' (FORMAT PARQUET) +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/stats_first.parquet', '{TEST_DIR}/stats_second.parquet'], union_by_name=true, filename=true) WHERE filename = '{TEST_DIR}/stats_second.parquet' AND s.a = 1000 +-- +ok +== +COPY (SELECT 1000::INTEGER AS src, 0::INTEGER AS dst) TO '{TEST_DIR}/schema_stats_0.parquet' (FORMAT PARQUET) +-- +ok +== +COPY (SELECT 2000::INTEGER AS src, 0::INTEGER AS dst) TO '{TEST_DIR}/schema_stats_1.parquet' (FORMAT PARQUET) +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/schema_stats_0.parquet', '{TEST_DIR}/schema_stats_1.parquet'], schema=map{'src': {name: 'dst', type: 'INTEGER', default_value: NULL}}, maximum_files_for_stats=2) WHERE dst > 100 +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache.test new file mode 100644 index 00000000..c20ecc40 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache.test @@ -0,0 +1,108 @@ +# source: test/sql/copy/parquet/page_index/page_index_cache.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET parquet_prefetch_column_gap = 16384; +-- +ok +== +SET cache_local_files = true; +-- +ok +== +CREATE TABLE data AS + SELECT range AS id, (range * 7919) % 100000 AS v, 'p' || (range % 5000)::VARCHAR AS payload, + 'str_' || lpad(range::VARCHAR, 6, '0') AS s + FROM range(300000); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_cache_on.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_cache_off.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +CREATE MACRO bytes_read(f) AS (SELECT coalesce(sum(bytes), 0) FROM duckdb_logs_parsed('FileSystem') WHERE op = 'READ' AND parse_filename(path) = f); +-- +ok +== +CREATE MACRO cached_bytes(f) AS (SELECT coalesce(sum(nr_bytes), 0) FROM duckdb_external_file_cache() WHERE parse_filename(path) = f); +-- +ok +== +CALL enable_logging('FileSystem'); +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_on.parquet' WHERE id = 177777 +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_on.parquet' WHERE id = 42 +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_on.parquet' WHERE id = 299999 +-- +ok +== +CALL disable_logging(); +-- +ok +== +CREATE TABLE lookups_with AS SELECT bytes_read('page_index_cache_on.parquet') AS bytes; +-- +ok +== +SELECT count(*), sum(v) = (SELECT sum(v) FROM data), max(payload), max(s) FROM '{TEST_DIR}/page_index_cache_on.parquet' +-- +ok +== +CREATE TABLE scan_with AS SELECT bytes_read('page_index_cache_on.parquet') AS bytes, cached_bytes('page_index_cache_on.parquet') AS cached; +-- +ok +== +SET parquet_use_page_index = false; +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_off.parquet' WHERE id = 177777 +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_off.parquet' WHERE id = 42 +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_cache_off.parquet' WHERE id = 299999 +-- +ok +== +CREATE TABLE lookups_without AS SELECT bytes_read('page_index_cache_off.parquet') AS bytes; +-- +ok +== +SELECT count(*), sum(v) = (SELECT sum(v) FROM data), max(payload), max(s) FROM '{TEST_DIR}/page_index_cache_off.parquet' +-- +ok +== +CREATE TABLE scan_without AS SELECT bytes_read('page_index_cache_off.parquet') AS bytes, cached_bytes('page_index_cache_off.parquet') AS cached; +-- +ok +== +SET parquet_use_page_index = true; +-- +ok +== +SELECT lookups_with.bytes < lookups_without.bytes, + scan_with.bytes <= (SELECT size FROM read_blob('{TEST_DIR}/page_index_cache_on.parquet')), + lookups_with.bytes + scan_with.bytes < lookups_without.bytes + scan_without.bytes, + scan_with.cached < (SELECT size * 1.05 FROM read_blob('{TEST_DIR}/page_index_cache_on.parquet')) +FROM lookups_with, scan_with, lookups_without, scan_without +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache_disabled.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache_disabled.test new file mode 100644 index 00000000..f3993403 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_cache_disabled.test @@ -0,0 +1,95 @@ +# source: test/sql/copy/parquet/page_index/page_index_cache_disabled.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE data AS + SELECT range AS id, (range * 7919) % 100000 AS v, 'p' || (range % 5000)::VARCHAR AS payload + FROM range(300000); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_once.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_per_group.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_cached.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +CREATE MACRO index_span(f) AS TABLE + SELECT min(least(column_index_offset, offset_index_offset)) AS span_begin, + max(greatest(column_index_offset + column_index_length, offset_index_offset + offset_index_length)) AS span_end + FROM parquet_metadata(f); +-- +ok +== +CREATE MACRO index_bytes_read(f) AS ( + SELECT coalesce(sum(bytes), 0) + FROM duckdb_logs_parsed('FileSystem'), index_span(f) + WHERE op = 'READ' AND parse_filename(path) = parse_filename(f) AND pos >= span_begin AND pos + bytes <= span_end); +-- +ok +== +SELECT span_end - span_begin > 0 FROM index_span('{TEST_DIR}/page_index_once.parquet'); +-- +ok +== +SET enable_external_file_cache = false; +-- +ok +== +SET parquet_prefetch_column_gap = 1048576; +-- +ok +== +SELECT count(*), min(id), max(id) FROM '{TEST_DIR}/page_index_once.parquet' WHERE id IN (42, 142000, 242000) +-- +ok +== +SELECT index_bytes_read('{TEST_DIR}/page_index_once.parquet') = span_end - span_begin FROM index_span('{TEST_DIR}/page_index_once.parquet'); +-- +ok +== +SELECT count(*) FROM duckdb_logs_parsed('FileSystem'), index_span('{TEST_DIR}/page_index_once.parquet') +WHERE op = 'READ' AND parse_filename(path) = 'page_index_once.parquet' AND pos = span_begin AND bytes = span_end - span_begin; +-- +ok +== +SELECT id, v, payload FROM '{TEST_DIR}/page_index_per_group.parquet' WHERE id = 42 +-- +ok +== +SELECT index_bytes_read('{TEST_DIR}/page_index_per_group.parquet') BETWEEN + (SELECT column_index_length FROM parquet_metadata('{TEST_DIR}/page_index_per_group.parquet') WHERE row_group_id = 0 AND column_id = 0) AND + (SELECT sum(column_index_length + offset_index_length) FROM parquet_metadata('{TEST_DIR}/page_index_per_group.parquet') WHERE row_group_id = 0); +-- +ok +== +SELECT index_bytes_read('{TEST_DIR}/page_index_per_group.parquet') < span_end - span_begin FROM index_span('{TEST_DIR}/page_index_per_group.parquet'); +-- +ok +== +SET enable_external_file_cache = true; +-- +ok +== +SELECT id, v, payload FROM '{TEST_DIR}/page_index_cached.parquet' WHERE id = 42 +-- +ok +== +SELECT min(location) <= span_begin AND max(location + nr_bytes) >= span_end AND sum(nr_bytes) >= span_end - span_begin +FROM duckdb_external_file_cache(), index_span('{TEST_DIR}/page_index_cached.parquet') +WHERE parse_filename(path) = 'page_index_cached.parquet' AND location < span_end AND location + nr_bytes > span_begin +GROUP BY span_begin, span_end; +-- +ok +== +RESET parquet_prefetch_column_gap; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_prefetch.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_prefetch.test new file mode 100644 index 00000000..57945366 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_prefetch.test @@ -0,0 +1,82 @@ +# source: test/sql/copy/parquet/page_index/page_index_prefetch.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY data TO '{TEST_DIR}/page_index_prefetch.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +CREATE MACRO bytes_read() AS (SELECT coalesce(sum(bytes), 0) FROM duckdb_logs_parsed('FileSystem') WHERE op = 'READ' AND parse_filename(path) = 'page_index_prefetch.parquet'); +-- +ok +== +CREATE MACRO largest_read() AS (SELECT coalesce(max(bytes), 0) FROM duckdb_logs_parsed('FileSystem') WHERE op = 'READ' AND parse_filename(path) = 'page_index_prefetch.parquet'); +-- +ok +== +SELECT id, v, payload, s FROM '{TEST_DIR}/page_index_prefetch.parquet' WHERE id = 177777 +-- +ok +== +CREATE TABLE with_index AS SELECT bytes_read() AS bytes, largest_read() AS largest; +-- +ok +== +CREATE TABLE without_index AS SELECT bytes_read() AS bytes, largest_read() AS largest; +-- +ok +== +SELECT with_index.bytes * 5 < without_index.bytes, without_index.bytes > 1000000, with_index.largest < 1000000 +FROM with_index, without_index +-- +ok +== +SELECT count(*), min(payload), max(s) FROM '{TEST_DIR}/page_index_prefetch.parquet' WHERE id BETWEEN 150000 AND 150010 +-- +ok +== +SELECT bytes_read() < 1000000, largest_read() < 500000 +-- +ok +== +SELECT count(*), list(id ORDER BY id) FROM '{TEST_DIR}/page_index_prefetch.parquet' WHERE id IN (77777, 177777, 277777) +-- +ok +== +SELECT bytes_read() < 1500000 +-- +ok +== +SELECT count(*), sum(v), max(payload), max(s) FROM '{TEST_DIR}/page_index_prefetch.parquet' WHERE id BETWEEN 0 AND 60000 OR id BETWEEN 100000 AND 160000 OR id BETWEEN 200000 AND 260000 +-- +ok +== +CREATE TABLE partial_with_index AS SELECT bytes_read() AS bytes; +-- +ok +== +CREATE TABLE partial_without_index AS SELECT bytes_read() AS bytes; +-- +ok +== +SELECT partial_with_index.bytes < partial_without_index.bytes * 0.85 FROM partial_with_index, partial_without_index +-- +ok +== +CALL enable_logging('ParquetPrefetch'); +-- +ok +== +SELECT row_group_id, strategy, list_sort(flatten(prefetch_groups)) FROM duckdb_logs_parsed('ParquetPrefetch') WHERE file_path LIKE '%page_index_prefetch.parquet' ORDER BY row_group_id +-- +ok +== +SELECT id, v, payload, s FROM read_parquet('{TEST_DIR}/page_index_prefetch.parquet', prefetch_strategy = 'whole_group') WHERE id = 177777 +-- +ok +== +SELECT bytes_read() > 1000000 +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_read.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_read.test new file mode 100644 index 00000000..d6bf5019 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_read.test @@ -0,0 +1,326 @@ +# source: test/sql/copy/parquet/page_index/page_index_read.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE data AS + SELECT range AS id, + ((range // 512) * 7919) % 1000 + range % 10 AS v, + CASE WHEN (range // 512) % 2 = 0 THEN range ELSE 1000000 + range END AS striped, + 'str_' || lpad(range::VARCHAR, 6, '0') AS s, + CASE WHEN range % 7 = 0 THEN NULL ELSE range END AS n, + (range / 4)::DOUBLE AS d, + [range::INTEGER, (range + 1)::INTEGER] AS arr, + {'a': range::INTEGER, 'b': 't' || range::VARCHAR} AS st + FROM range(100000); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_read.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +CALL enable_logging('PhysicalOperator'); +-- +ok +== +SELECT id, v, s, arr, st FROM '{TEST_DIR}/page_index_read.parquet' WHERE id = 77777 +-- +ok +== +SELECT event, count(*), sum(info['rows_skipped']::BIGINT) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' GROUP BY event ORDER BY event +-- +ok +== +SELECT count(*), min(id), max(id) FROM '{TEST_DIR}/page_index_read.parquet' WHERE id BETWEEN 10000 AND 10600 +-- +ok +== +SELECT sum(info['rows_skipped']::BIGINT) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT count(*), list(id ORDER BY id) FROM '{TEST_DIR}/page_index_read.parquet' WHERE id IN (1, 50000, 99999) +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/page_index_read.parquet' WHERE id BETWEEN 1000 AND 1999 +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/page_index_read.parquet' WHERE striped BETWEEN 200000 AND 900000 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE striped >= 1000000), sum(id) = (SELECT sum(id) FROM data WHERE striped >= 1000000) +FROM '{TEST_DIR}/page_index_read.parquet' WHERE striped >= 1000000 +-- +ok +== +SELECT sum(info['rows_skipped']::BIGINT) = 100000 - (SELECT count(*) FROM data WHERE (id // 512) % 2 = 1) +FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE id < 20000 AND striped >= 1000000) FROM '{TEST_DIR}/page_index_read.parquet' WHERE id < 20000 AND striped >= 1000000 +-- +ok +== +SELECT sum(info['rows_skipped']::BIGINT) = 100000 - (SELECT count(*) FROM data WHERE id // 512 <= 39 AND (id // 512) % 2 = 1) +FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE s = 'str_050000' EXCEPT ALL SELECT * FROM data WHERE s = 'str_050000') + UNION ALL + (SELECT * FROM data WHERE s = 'str_050000' EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE s = 'str_050000') +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE s = 'str_050000') FROM '{TEST_DIR}/page_index_read.parquet' WHERE s = 'str_050000' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE s BETWEEN 'str_012345' AND 'str_012400' EXCEPT ALL SELECT * FROM data WHERE s BETWEEN 'str_012345' AND 'str_012400') + UNION ALL + (SELECT * FROM data WHERE s BETWEEN 'str_012345' AND 'str_012400' EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE s BETWEEN 'str_012345' AND 'str_012400') +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE s BETWEEN 'str_012345' AND 'str_012400') FROM '{TEST_DIR}/page_index_read.parquet' WHERE s BETWEEN 'str_012345' AND 'str_012400' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE d > 24999.0 EXCEPT ALL SELECT * FROM data WHERE d > 24999.0) + UNION ALL + (SELECT * FROM data WHERE d > 24999.0 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE d > 24999.0) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE d > 24999.0) FROM '{TEST_DIR}/page_index_read.parquet' WHERE d > 24999.0 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE d = 0.25 EXCEPT ALL SELECT * FROM data WHERE d = 0.25) + UNION ALL + (SELECT * FROM data WHERE d = 0.25 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE d = 0.25) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE d = 0.25) FROM '{TEST_DIR}/page_index_read.parquet' WHERE d = 0.25 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE n IS NULL AND id < 1000 EXCEPT ALL SELECT * FROM data WHERE n IS NULL AND id < 1000) + UNION ALL + (SELECT * FROM data WHERE n IS NULL AND id < 1000 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE n IS NULL AND id < 1000) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE n IS NULL AND id < 1000) FROM '{TEST_DIR}/page_index_read.parquet' WHERE n IS NULL AND id < 1000 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE n = 500 EXCEPT ALL SELECT * FROM data WHERE n = 500) + UNION ALL + (SELECT * FROM data WHERE n = 500 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE n = 500) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE n = 500) FROM '{TEST_DIR}/page_index_read.parquet' WHERE n = 500 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE v = 5 EXCEPT ALL SELECT * FROM data WHERE v = 5) + UNION ALL + (SELECT * FROM data WHERE v = 5 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE v = 5) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE v = 5) FROM '{TEST_DIR}/page_index_read.parquet' WHERE v = 5 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE v BETWEEN 100 AND 110 AND id > 90000 EXCEPT ALL SELECT * FROM data WHERE v BETWEEN 100 AND 110 AND id > 90000) + UNION ALL + (SELECT * FROM data WHERE v BETWEEN 100 AND 110 AND id > 90000 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE v BETWEEN 100 AND 110 AND id > 90000) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE v BETWEEN 100 AND 110 AND id > 90000) FROM '{TEST_DIR}/page_index_read.parquet' WHERE v BETWEEN 100 AND 110 AND id > 90000 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE st.a = 777 EXCEPT ALL SELECT * FROM data WHERE st.a = 777) + UNION ALL + (SELECT * FROM data WHERE st.a = 777 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE st.a = 777) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE st.a = 777) FROM '{TEST_DIR}/page_index_read.parquet' WHERE st.a = 777 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE id = 77777 AND s = 'nope' EXCEPT ALL SELECT * FROM data WHERE id = 77777 AND s = 'nope') + UNION ALL + (SELECT * FROM data WHERE id = 77777 AND s = 'nope' EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read.parquet' WHERE id = 77777 AND s = 'nope') +) +-- +ok +== +SELECT count(*) > 5 FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT bool_and(file_row_number = id) FROM read_parquet('{TEST_DIR}/page_index_read.parquet', file_row_number = true) WHERE id IN (5, 5000, 50000, 99999) OR id BETWEEN 70000 AND 70100 +-- +ok +== +SELECT list(file_row_number ORDER BY file_row_number) FROM read_parquet('{TEST_DIR}/page_index_read.parquet', file_row_number = true) WHERE id IN (5, 5000, 50000, 99999) +-- +ok +== +SELECT count(*) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/page_index_read.parquet' +-- +ok +== +SELECT sum(v) = (SELECT sum(v) FROM data) FROM '{TEST_DIR}/page_index_read.parquet' +-- +ok +== +SELECT event, count(*) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' GROUP BY event ORDER BY event +-- +ok +== +SET disable_parquet_prefetching = true; +-- +ok +== +SET disable_parquet_prefetching = false; +-- +ok +== +SELECT id, v, s, arr, st FROM read_parquet('{TEST_DIR}/page_index_read.parquet', prefetch_strategy = 'whole_group') WHERE id = 77777 +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_read_groups.parquet' (ROW_GROUP_SIZE 20000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT id, s FROM '{TEST_DIR}/page_index_read_groups.parquet' WHERE id = 55555 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE striped >= 1000000 AND n IS NOT NULL) FROM '{TEST_DIR}/page_index_read_groups.parquet' WHERE striped >= 1000000 AND n IS NOT NULL +-- +ok +== +COPY (SELECT range AS id, CASE WHEN range = 1500 THEN 'nan'::DOUBLE ELSE range::DOUBLE END AS d FROM range(3000)) TO '{TEST_DIR}/page_index_read_nan.parquet' (ROW_GROUP_SIZE 3000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*), max(id) FROM '{TEST_DIR}/page_index_read_nan.parquet' WHERE d > 2998.0 +-- +ok +== +SELECT d FROM '{TEST_DIR}/page_index_read_nan.parquet' WHERE id = 1500 +-- +ok +== +CREATE TABLE typed AS + SELECT range AS id, range % 1000 >= 500 AS b, DATE '2024-01-01' + INTERVAL (range // 100) DAY AS dt, + TIMESTAMP '2024-01-01 00:00:00' + INTERVAL (range) SECOND AS ts, (range::DECIMAL(12,2) / 8) AS dec, + ('00000000-0000-0000-0000-' || lpad(hex(range), 12, '0'))::UUID AS u + FROM range(100000); +-- +ok +== +COPY typed TO '{TEST_DIR}/page_index_read_typed.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM typed WHERE dt = DATE '2024-03-01') FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE dt = DATE '2024-03-01' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE ts BETWEEN TIMESTAMP '2024-01-01 10:00:00' AND TIMESTAMP '2024-01-01 10:00:59' EXCEPT ALL SELECT * FROM typed WHERE ts BETWEEN TIMESTAMP '2024-01-01 10:00:00' AND TIMESTAMP '2024-01-01 10:00:59') + UNION ALL + (SELECT * FROM typed WHERE ts BETWEEN TIMESTAMP '2024-01-01 10:00:00' AND TIMESTAMP '2024-01-01 10:00:59' EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE ts BETWEEN TIMESTAMP '2024-01-01 10:00:00' AND TIMESTAMP '2024-01-01 10:00:59') +) +-- +ok +== +SELECT count(*), list(id ORDER BY id) FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE dec = 1234.50 +-- +ok +== +SELECT count(*), any_value(id) FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE u = '00000000-0000-0000-0000-00000000c350'::UUID +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM typed WHERE b AND id < 1000) FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE b AND id < 1000 +-- +ok +== +SELECT count(*) >= 4 FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SET threads = 8; +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_read_threads.parquet' (ROW_GROUP_SIZE 5000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM '{TEST_DIR}/page_index_read_threads.parquet' WHERE striped >= 1000000 AND v < 500 EXCEPT ALL SELECT * FROM data WHERE striped >= 1000000 AND v < 500) + UNION ALL + (SELECT * FROM data WHERE striped >= 1000000 AND v < 500 EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_read_threads.parquet' WHERE striped >= 1000000 AND v < 500) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM data WHERE id % 5000 < 100), sum(id) = (SELECT sum(id) FROM data WHERE id % 5000 < 100) +FROM '{TEST_DIR}/page_index_read_threads.parquet' WHERE id % 5000 < 100 +-- +ok +== +SELECT bool_and(file_row_number = id) FROM read_parquet('{TEST_DIR}/page_index_read_threads.parquet', file_row_number = true) WHERE striped >= 1000000 AND n IS NULL +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_read_none.parquet' (ROW_GROUP_SIZE 100000, DATA_PAGE_SIZE_LIMIT 4096); +-- +ok +== +SELECT id, v, s, arr, st FROM '{TEST_DIR}/page_index_read_none.parquet' WHERE id = 77777 +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_reference.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_reference.test new file mode 100644 index 00000000..25cffa75 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_reference.test @@ -0,0 +1,212 @@ +# source: test/sql/copy/parquet/page_index/page_index_reference.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO expected_page_index(file) AS TABLE + SELECT * FROM read_csv('data/parquet-testing/page_index/' || file || '.expected.csv', header = true, nullstr = '', + columns = {'row_group_id': 'BIGINT', 'column_id': 'BIGINT', 'path_in_schema': 'VARCHAR', 'page_id': 'BIGINT', + 'page_offset': 'BIGINT', 'compressed_page_size': 'BIGINT', 'first_row_index': 'BIGINT', + 'num_rows': 'BIGINT', 'null_page': 'BOOLEAN', 'min_value': 'VARCHAR', 'max_value': 'VARCHAR', + 'null_count': 'BIGINT', 'boundary_order': 'VARCHAR'}); +-- +ok +== +CREATE MACRO actual_page_index(file) AS TABLE + SELECT row_group_id, column_id, path_in_schema, page_id, page_offset, compressed_page_size, first_row_index, num_rows, + null_page, min_value, max_value, null_count, boundary_order + FROM parquet_page_index('data/parquet-testing/page_index/' || file || '.parquet'); +-- +ok +== +SELECT (SELECT count(*) FROM (FROM actual_page_index('{file}') EXCEPT ALL FROM expected_page_index('{file}'))), + (SELECT count(*) FROM (FROM expected_page_index('{file}') EXCEPT ALL FROM actual_page_index('{file}'))), + (SELECT count(*) FROM actual_page_index('{file}')) = (SELECT count(*) FROM expected_page_index('{file}')) +-- +ok +== +SELECT count(*) > 20 FROM actual_page_index('{file}') +-- +ok +== +CREATE OR REPLACE TABLE ref AS SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet'; +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id = 1234 EXCEPT ALL SELECT * FROM ref WHERE id = 1234) + UNION ALL + (SELECT * FROM ref WHERE id = 1234 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id = 1234) +) +-- +ok +== +SELECT count(*), sum(id) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id = 1234 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id BETWEEN 2000 AND 2100 EXCEPT ALL SELECT * FROM ref WHERE id BETWEEN 2000 AND 2100) + UNION ALL + (SELECT * FROM ref WHERE id BETWEEN 2000 AND 2100 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id BETWEEN 2000 AND 2100) +) +-- +ok +== +SELECT count(*), min(id), max(id) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id BETWEEN 2000 AND 2100 +-- +ok +== +SELECT count(*), sum(id) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id IN (1, 1000, 2999, 3999) +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE v = 17 EXCEPT ALL SELECT * FROM ref WHERE v = 17) + UNION ALL + (SELECT * FROM ref WHERE v = 17 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE v = 17) +) +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s = 's_003210' EXCEPT ALL SELECT * FROM ref WHERE s = 's_003210') + UNION ALL + (SELECT * FROM ref WHERE s = 's_003210' EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s = 's_003210') +) +-- +ok +== +SELECT count(*), any_value(id) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s = 's_003210' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s >= 'long_0039' AND s < 'long_004' EXCEPT ALL SELECT * FROM ref WHERE s >= 'long_0039' AND s < 'long_004') + UNION ALL + (SELECT * FROM ref WHERE s >= 'long_0039' AND s < 'long_004' EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s >= 'long_0039' AND s < 'long_004') +) +-- +ok +== +SELECT count(*) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE s >= 'long_0039' AND s < 'long_004' +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id < 600 AND v > 900 EXCEPT ALL SELECT * FROM ref WHERE id < 600 AND v > 900) + UNION ALL + (SELECT * FROM ref WHERE id < 600 AND v > 900 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id < 600 AND v > 900) +) +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE id < 600 AND v > 900) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id < 600 AND v > 900 +-- +ok +== +SELECT count(*) > 3, sum(info['rows_skipped']::BIGINT) > 10000 +FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +CREATE OR REPLACE TABLE ref AS SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet'; +-- +ok +== +SELECT count(*), bool_and(null_page) FROM parquet_page_index('data/parquet-testing/page_index/spark_sorted.parquet') WHERE path_in_schema = 'n' AND first_row_index BETWEEN 1000 AND 1999 +-- +ok +== +SELECT count(*), sum(n) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n BETWEEN 1000 AND 1999 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE n IS NULL AND id BETWEEN 900 AND 2100) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n IS NULL AND id BETWEEN 900 AND 2100 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n IS NULL AND id BETWEEN 900 AND 2100 EXCEPT ALL SELECT * FROM ref WHERE n IS NULL AND id BETWEEN 900 AND 2100) + UNION ALL + (SELECT * FROM ref WHERE n IS NULL AND id BETWEEN 900 AND 2100 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n IS NULL AND id BETWEEN 900 AND 2100) +) +-- +ok +== +SELECT count(*), list(id ORDER BY id) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE dt = DATE '2024-02-01' AND id < 1000 +-- +ok +== +SELECT count(*), min(id), max(id) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE ts BETWEEN TIMESTAMP '2024-01-01 00:10:00' AND TIMESTAMP '2024-01-01 00:10:09' +-- +ok +== +SELECT count(*), min(id), max(dec) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE dec >= 999.00 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE dec BETWEEN 100 AND 200) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE dec BETWEEN 100 AND 200 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE b AND id BETWEEN 0 AND 299) FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE b AND id BETWEEN 0 AND 299 +-- +ok +== +SELECT arr, st FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE id = 2500 +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE d > 999.0 EXCEPT ALL SELECT * FROM ref WHERE d > 999.0) + UNION ALL + (SELECT * FROM ref WHERE d > 999.0 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE d > 999.0) +) +-- +ok +== +CREATE OR REPLACE TABLE ref AS SELECT * FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet'; +-- +ok +== +SELECT count(*), min(id), max(id) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE f < 10 +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE f BETWEEN 100.5 AND 200.25) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE f BETWEEN 100.5 AND 200.25 +-- +ok +== +SELECT count(*), any_value(id) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE dec = 12.25 +-- +ok +== +SELECT count(*), any_value(id) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE ts = TIMESTAMP '2024-01-01 00:10:00' +-- +ok +== +SELECT count(*) = (SELECT count(*) FROM ref WHERE n IS NULL) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE n IS NULL +-- +ok +== +SELECT count(*) FROM ( + (SELECT * FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE n IS NULL EXCEPT ALL SELECT * FROM ref WHERE n IS NULL) + UNION ALL + (SELECT * FROM ref WHERE n IS NULL EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE n IS NULL) +) +-- +ok +== +SELECT arr FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE id = 3333 +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages' +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipRowGroup' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_robustness.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_robustness.test new file mode 100644 index 00000000..ab1ec77e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_robustness.test @@ -0,0 +1,89 @@ +# source: test/sql/copy/parquet/page_index/page_index_robustness.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*), sum(v) = (SELECT sum(r % 7) FROM range(600, 701) t(r)) FROM 'data/parquet-testing/page_index/corrupt_base.parquet' WHERE id BETWEEN 600 AND 700 +-- +ok +== +SELECT count(*), sum(v) = (SELECT sum(r % 7) FROM range(600, 701) t(r)) FROM 'data/parquet-testing/page_index/corrupt_min_length.parquet' WHERE id BETWEEN 600 AND 700 +-- +ok +== +SELECT count(*), sum(v) FROM 'data/parquet-testing/page_index/corrupt_min_length.parquet' WHERE id = 77 +-- +ok +== +SELECT count(*), sum(v) = (SELECT sum(r % 7) FROM range(600, 701) t(r)) FROM 'data/parquet-testing/page_index/corrupt_non_monotonic.parquet' WHERE id BETWEEN 600 AND 700 +-- +ok +== +SELECT count(*) FROM 'data/parquet-testing/page_index/corrupt_non_monotonic.parquet' WHERE id > 2900 +-- +ok +== +SELECT count(*) FROM 'data/parquet-testing/page_index/corrupt_first_row_index.parquet' WHERE id BETWEEN 290 AND 310 +-- +ok +== +SELECT count(*) FROM 'data/parquet-testing/page_index/corrupt_first_row_index.parquet' WHERE id = 400 +-- +ok +== +SELECT count(*), sum(v) = (SELECT sum(r % 7) FROM range(290, 311) t(r)) FROM 'data/parquet-testing/page_index/corrupt_first_row_index.parquet' WHERE id BETWEEN 290 AND 310 +-- +ok +== +SELECT page_id, first_row_index, num_rows FROM parquet_page_index('data/parquet-testing/page_index/corrupt_first_row_index.parquet') WHERE column_id = 0 AND page_id <= 2 ORDER BY page_id +-- +ok +== +SELECT page_id, first_row_index FROM parquet_page_index('data/parquet-testing/page_index/corrupt_non_monotonic.parquet') WHERE column_id = 0 AND page_id <= 3 ORDER BY page_id +-- +ok +== +SELECT count(*), sum(id), sum(v) = (SELECT sum(r % 7) FROM range(3000) t(r)) FROM 'data/parquet-testing/page_index/{file}.parquet' +-- +ok +== +SELECT min(ts), max(ts), count(*) FROM 'data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet' WHERE id > 2900 +-- +ok +== +SELECT min(ts), max(ts), count(*) FROM 'data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet' WHERE id BETWEEN 600 AND 700 +-- +ok +== +SELECT count(*), sum(id) FROM 'data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet' WHERE ts BETWEEN '2020-01-01 00:10:00' AND '2020-01-01 00:11:40' +-- +ok +== +SELECT count(*), sum(id), min(ts), max(ts) FROM 'data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet' +-- +ok +== +SELECT column_id, page_id, page_offset FROM parquet_page_index('data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet') WHERE page_id <= 1 ORDER BY column_id, page_id +-- +ok +== +SELECT path_in_schema, data_page_offset FROM parquet_metadata('data/parquet-testing/page_index/corrupt_offset_index_other_column.parquet') ORDER BY column_id +-- +ok +== +SELECT page_id, first_row_index, num_rows, page_offset FROM parquet_page_index('data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet') WHERE column_id = 1 AND page_id <= 3 ORDER BY page_id +-- +ok +== +SELECT min(ts), max(ts), count(*) FROM 'data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet' WHERE id BETWEEN 600 AND 700 +-- +ok +== +SELECT min(ts), max(ts), count(*) FROM 'data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet' WHERE id BETWEEN 1000 AND 1100 +-- +ok +== +SELECT count(*), min(ts), max(ts) FROM 'data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_write.test b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_write.test new file mode 100644 index 00000000..2ea321eb --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/page_index/page_index_write.test @@ -0,0 +1,259 @@ +# source: test/sql/copy/parquet/page_index/page_index_write.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE data AS + SELECT range AS id, + ((range // 512) * 7919) % 1000 + range % 10 AS v, + -range AS neg, + CASE WHEN range BETWEEN 10000 AND 19999 THEN NULL WHEN range % 7 = 0 THEN NULL ELSE range END AS n, + 'str_' || lpad(range::VARCHAR, 6, '0') AS s, + CASE WHEN range % 3 = 0 THEN 'apple' WHEN range % 3 = 1 THEN 'banana' ELSE 'cherry' END AS dict_s, + (range / 4)::DOUBLE AS d, + (range % 2 = 0) AS b, + DATE '2024-01-01' + INTERVAL (range % 365) DAY AS dt, + TIMESTAMP '2024-01-01 00:00:00' + INTERVAL (range) SECOND AS ts, + (range::DECIMAL(10,2) / 4) AS dec, + (range::DECIMAL(28,3) / 8) AS wide_dec, + [range::INTEGER, (range + 1)::INTEGER] AS arr, + {'a': range::INTEGER, 'b': 't' || range::VARCHAR} AS st + FROM range(50000); +-- +ok +== +COPY data TO '{TEST_DIR}/page_index_write.parquet' (ROW_GROUP_SIZE 50000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*), bool_and(column_index_offset > data_page_offset), bool_and(offset_index_offset > column_index_offset), + bool_and(column_index_length > 0 AND offset_index_length > 0) +FROM parquet_metadata('{TEST_DIR}/page_index_write.parquet') +-- +ok +== +SELECT count(*), bool_and(first_page_row = 0), bool_and(rows = 50000), bool_and(contiguous) +FROM ( + SELECT column_id, min(first_row_index) FILTER (page_id = 0) AS first_page_row, sum(num_rows) AS rows, + bool_and(first_row_index + num_rows = next_first_row) AS contiguous + FROM ( + SELECT *, lead(first_row_index, 1, 50000) OVER (PARTITION BY column_id ORDER BY page_id) AS next_first_row + FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') + ) + GROUP BY column_id +) +-- +ok +== +SELECT count(*), bool_and(num_rows = 512 OR page_id = 97), bool_and(min_value::BIGINT = first_row_index), + bool_and(max_value::BIGINT = first_row_index + num_rows - 1), bool_and(null_count = 0), + any_value(boundary_order) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') +WHERE path_in_schema = 'id' +-- +ok +== +SELECT m.data_page_offset = p.first_offset, m.total_compressed_size = p.total_size +FROM parquet_metadata('{TEST_DIR}/page_index_write.parquet') m +JOIN ( + SELECT column_id, min(page_offset) AS first_offset, sum(compressed_page_size) AS total_size + FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') GROUP BY column_id +) p USING (column_id) +WHERE m.path_in_schema = 'id' +-- +ok +== +SELECT count(*) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') p +JOIN LATERAL ( + SELECT min({col}) AS mn, max({col}) AS mx FROM data + WHERE id BETWEEN p.first_row_index AND p.first_row_index + p.num_rows - 1 +) r ON true +WHERE p.path_in_schema = '{col}' AND (p.min_value <> r.mn::VARCHAR OR p.max_value <> r.mx::VARCHAR) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT path_in_schema, any_value(boundary_order) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') +WHERE path_in_schema IN ('neg', 'v', 'dict_s', 's', 'ts', 'dec', 'wide_dec', 'b', 'd') +GROUP BY path_in_schema +ORDER BY path_in_schema +-- +ok +== +SELECT count(*) FILTER (null_page), bool_and(null_count < num_rows), + sum(null_count) = (SELECT count(*) FROM data WHERE n IS NULL) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') +WHERE path_in_schema = 'n' +-- +ok +== +SELECT stats_null_count = (SELECT count(*) FROM data WHERE n IS NULL) +FROM parquet_metadata('{TEST_DIR}/page_index_write.parquet') WHERE path_in_schema = 'n' +-- +ok +== +SELECT count(*) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') p +JOIN LATERAL ( + SELECT count(*) FILTER (n IS NULL) AS nulls, min(n) AS mn, max(n) AS mx FROM data + WHERE id BETWEEN p.first_row_index AND p.first_row_index + p.num_rows - 1 +) r ON true +WHERE p.path_in_schema = 'n' AND (p.null_count <> r.nulls OR p.min_value IS DISTINCT FROM r.mn::VARCHAR OR p.max_value IS DISTINCT FROM r.mx::VARCHAR) +-- +ok +== +SELECT any_value(boundary_order) FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') WHERE path_in_schema = 'n' +-- +ok +== +SELECT count(*) > 1, bool_and(first_row_index % 2048 = 0), bool_and(num_rows % 2048 = 0 OR first_row_index + num_rows = 50000) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') WHERE path_in_schema = 'arr, list, element' +-- +ok +== +SELECT path_in_schema, sum(num_rows), min(min_value::INTEGER), max(max_value::INTEGER) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') +WHERE path_in_schema IN ('arr, list, element', 'st, a') +GROUP BY path_in_schema +ORDER BY path_in_schema +-- +ok +== +SELECT count(*) +FROM parquet_page_index('{TEST_DIR}/page_index_write.parquet') p +JOIN LATERAL ( + SELECT min(st.a) AS mn, max(st.a) AS mx FROM data + WHERE id BETWEEN p.first_row_index AND p.first_row_index + p.num_rows - 1 +) r ON true +WHERE p.path_in_schema = 'st, a' AND (p.min_value <> r.mn::VARCHAR OR p.max_value <> r.mx::VARCHAR) +-- +ok +== +COPY (SELECT id, v, s, dict_s, n, d FROM data) TO '{TEST_DIR}/page_index_off.parquet' (ROW_GROUP_SIZE 50000, DATA_PAGE_SIZE_LIMIT 4096); +-- +ok +== +COPY (SELECT id, v, s, dict_s, n, d FROM data) TO '{TEST_DIR}/page_index_on.parquet' (ROW_GROUP_SIZE 50000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT bool_and(column_index_offset IS NULL), bool_and(offset_index_offset IS NULL), count(*), + (SELECT count(*) FROM parquet_page_index('{TEST_DIR}/page_index_off.parquet')) +FROM parquet_metadata('{TEST_DIR}/page_index_off.parquet') +-- +ok +== +SELECT count(*) +FROM ( + SELECT path_in_schema, stats_min_value, stats_max_value, stats_null_count, stats_distinct_count, min_is_exact, max_is_exact, encodings + FROM parquet_metadata('{TEST_DIR}/page_index_off.parquet') + EXCEPT ALL + SELECT path_in_schema, stats_min_value, stats_max_value, stats_null_count, stats_distinct_count, min_is_exact, max_is_exact, encodings + FROM parquet_metadata('{TEST_DIR}/page_index_on.parquet') +) +-- +ok +== +SELECT bool_and(column_index_offset > bloom_filter_offset + bloom_filter_length) FILTER (bloom_filter_offset IS NOT NULL), + count(*) FILTER (bloom_filter_offset IS NOT NULL) > 0 +FROM parquet_metadata('{TEST_DIR}/page_index_on.parquet') +-- +ok +== +SELECT count(*) > 1, min(min_value), max(max_value), bool_and(min_value <= max_value) +FROM parquet_page_index('{TEST_DIR}/page_index_on.parquet') WHERE path_in_schema = 'dict_s' +-- +ok +== +SELECT count(*) FROM (SELECT * FROM '{TEST_DIR}/page_index_off.parquet' EXCEPT ALL SELECT * FROM '{TEST_DIR}/page_index_on.parquet') +-- +ok +== +COPY ( + SELECT range AS id, repeat('a', 300) || lpad(range::VARCHAR, 6, '0') AS s + FROM range(2000) +) TO '{TEST_DIR}/page_index_long_strings.parquet' (ROW_GROUP_SIZE 2000, DATA_PAGE_SIZE_LIMIT 65536, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*) > 1, bool_and(length(min_value) <= 256 AND length(max_value) <= 256), + bool_and(min_value <= repeat('a', 300) || lpad(first_row_index::VARCHAR, 6, '0')), + bool_and(max_value > repeat('a', 300) || lpad((first_row_index + num_rows - 1)::VARCHAR, 6, '0')) +FROM parquet_page_index('{TEST_DIR}/page_index_long_strings.parquet') WHERE path_in_schema = 's' +-- +ok +== +COPY ( + SELECT range AS id, CASE WHEN range = 1500 THEN 'nan'::DOUBLE ELSE range::DOUBLE END AS d + FROM range(3000) +) TO '{TEST_DIR}/page_index_nan.parquet' (ROW_GROUP_SIZE 3000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT path_in_schema, column_index_offset IS NOT NULL, offset_index_offset IS NOT NULL, stats_nan_count +FROM parquet_metadata('{TEST_DIR}/page_index_nan.parquet') ORDER BY column_id +-- +ok +== +SELECT count(*), bool_and(page_offset IS NOT NULL), bool_and(min_value IS NULL AND boundary_order IS NULL) +FROM parquet_page_index('{TEST_DIR}/page_index_nan.parquet') WHERE path_in_schema = 'd' +-- +ok +== +COPY (SELECT range AS id, NULL::INTEGER AS nn FROM range(3000)) TO '{TEST_DIR}/page_index_all_null.parquet' (ROW_GROUP_SIZE 3000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT path_in_schema, column_index_offset IS NOT NULL, offset_index_offset IS NOT NULL +FROM parquet_metadata('{TEST_DIR}/page_index_all_null.parquet') ORDER BY column_id +-- +ok +== +SELECT path_in_schema, count(*) FROM parquet_page_index('{TEST_DIR}/page_index_all_null.parquet') GROUP BY path_in_schema +-- +ok +== +COPY (SELECT range AS id, repeat('x', 100) || range AS s FROM range(122880)) TO '{TEST_DIR}/page_index_default_layout.parquet' (WRITE_PAGE_INDEX true); +-- +ok +== +SELECT path_in_schema, column_index_offset IS NOT NULL, (SELECT count(*) > 1 FROM parquet_page_index('{TEST_DIR}/page_index_default_layout.parquet') p WHERE p.path_in_schema = m.path_in_schema) +FROM parquet_metadata('{TEST_DIR}/page_index_default_layout.parquet') m ORDER BY column_id +-- +ok +== +COPY (SELECT range AS id, repeat('x', 100) || range AS s FROM range(122880)) TO '{TEST_DIR}/page_index_default_layout_big_pages.parquet' (WRITE_PAGE_INDEX true, DATA_PAGE_SIZE_LIMIT 104857600); +-- +ok +== +SELECT count(*) FROM parquet_page_index('{TEST_DIR}/page_index_default_layout_big_pages.parquet') +-- +ok +== +COPY (SELECT range AS id, range % 10 AS m FROM range(10000)) TO '{TEST_DIR}/page_index_groups.parquet' (ROW_GROUP_SIZE 2048, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT row_group_id, count(*), min(first_row_index) +FROM parquet_page_index('{TEST_DIR}/page_index_groups.parquet') WHERE path_in_schema = 'id' +GROUP BY row_group_id ORDER BY row_group_id +-- +ok +== +COPY ( + SELECT range AS id, ('00000000-0000-0000-0000-' || lpad(hex(range), 12, '0'))::UUID AS u + FROM range(2000) +) TO '{TEST_DIR}/page_index_uuid.parquet' (ROW_GROUP_SIZE 2000, DATA_PAGE_SIZE_LIMIT 4096, WRITE_PAGE_INDEX true); +-- +ok +== +SELECT count(*), min(min_value), max(max_value), any_value(boundary_order) +FROM parquet_page_index('{TEST_DIR}/page_index_uuid.parquet') WHERE path_in_schema = 'u' +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/page_index_write.parquet', write_page_index = false) +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parallel_parquet_glob.test b/parser/testdata/corpus/sql/copy/parquet/parallel_parquet_glob.test index 095278b2..44118bbc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parallel_parquet_glob.test +++ b/parser/testdata/corpus/sql/copy/parquet/parallel_parquet_glob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parallel_parquet_glob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from parquet_scan('{DATA_DIR}/parquet-testing/glob/t?.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet2.test b/parser/testdata/corpus/sql/copy/parquet/parquet2.test index 167f00e1..4c694de3 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet2.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet2.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id FROM '{DATA_DIR}/parquet-testing/p2.parquet' offset 4968; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet2strings.test b/parser/testdata/corpus/sql/copy/parquet/parquet2strings.test index 0c68df57..95913621 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet2strings.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet2strings.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet2strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id_string FROM '{DATA_DIR}/parquet-testing/p2strings.parquet' ORDER BY id LIMIT 10; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_10148.test b/parser/testdata/corpus/sql/copy/parquet/parquet_10148.test index bff596c1..91f2ee42 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_10148.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_10148.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_10148.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CDCONO FROM '{DATA_DIR}/parquet-testing/bug10148-wide-decimal-stats.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_10279.test b/parser/testdata/corpus/sql/copy/parquet/parquet_10279.test index a9f3f17c..b8ccc00a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_10279.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_10279.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_10279.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/issue10279_delta_encoding.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_12621.test b/parser/testdata/corpus/sql/copy/parquet/parquet_12621.test index a0bbc422..bbeff06c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_12621.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_12621.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_12621.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_13053_duplicate_column_names.test b/parser/testdata/corpus/sql/copy/parquet/parquet_13053_duplicate_column_names.test index 184643ca..bb8ebb0d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_13053_duplicate_column_names.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_13053_duplicate_column_names.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_13053_duplicate_column_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select name from parquet_schema( '{DATA_DIR}/parquet-testing/bug13053.parquet') offset 1; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_1554.test b/parser/testdata/corpus/sql/copy/parquet/parquet_1554.test index 3efd1199..1c8b9d28 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_1554.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_1554.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_1554.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(backlink_count) FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1554.parquet') WHERE http_status_code=200 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_1588.test b/parser/testdata/corpus/sql/copy/parquet/parquet_1588.test index 0cf7ef3c..55a88ec4 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_1588.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_1588.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_1588.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table some_bools (val boolean); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_1589.test b/parser/testdata/corpus/sql/copy/parquet/parquet_1589.test index 0afa75cf..b2d8a25e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_1589.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_1589.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_1589.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT backlink_count FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1589.parquet') LIMIT 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_1618_struct_strings.test b/parser/testdata/corpus/sql/copy/parquet/parquet_1618_struct_strings.test index 4393fc10..4ba198c5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_1618_struct_strings.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_1618_struct_strings.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_1618_struct_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT "inner"['str_field'] FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1618_struct_strings.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_1619.test b/parser/testdata/corpus/sql/copy/parquet/parquet_1619.test index 2912cbfa..4df00502 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_1619.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_1619.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_1619.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select struct_extract("inner", 'f64_field') from parquet_scan('{DATA_DIR}/parquet-testing/struct.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_22147_union_by_name_nonnested.test b/parser/testdata/corpus/sql/copy/parquet/parquet_22147_union_by_name_nonnested.test index b4c2c8ae..87dfa0c1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_22147_union_by_name_nonnested.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_22147_union_by_name_nonnested.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_22147_union_by_name_nonnested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT {'a': 1::INTEGER} AS x) TO '{TEST_DIR}/ubn22147_struct.parquet' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_2267.test b/parser/testdata/corpus/sql/copy/parquet/parquet_2267.test index e2f5baa5..ae3d0b7c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_2267.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_2267.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_2267.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/bug2267.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_3896.test b/parser/testdata/corpus/sql/copy/parquet/parquet_3896.test index 1fecf719..0d82e8fe 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_3896.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_3896.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_3896.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_3989.test b/parser/testdata/corpus/sql/copy/parquet/parquet_3989.test index 45b02147..cf5ffd5a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_3989.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_3989.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_3989.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lists as SELECT i as id, [i] as list from range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_4442.test b/parser/testdata/corpus/sql/copy/parquet/parquet_4442.test index c836216e..e0c00a3b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_4442.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_4442.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_4442.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/bug4442.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_4859.test b/parser/testdata/corpus/sql/copy/parquet/parquet_4859.test index 604c0089..33b53fcb 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_4859.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_4859.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_4859.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select "repositoryTopics.edges" from "{DATA_DIR}/parquet-testing/bug4859.parquet" diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_4903.test b/parser/testdata/corpus/sql/copy/parquet/parquet_4903.test index 4eb5f620..17ece7fc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_4903.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_4903.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_4903.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT type_param_constraints FROM '{DATA_DIR}/parquet-testing/bug4903.parquet' limit 10 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_5209.test b/parser/testdata/corpus/sql/copy/parquet/parquet_5209.test index 5b9ce460..356e0856 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_5209.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_5209.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_5209.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_5209 AS SELECT range FROM range(10000); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_6044.test b/parser/testdata/corpus/sql/copy/parquet/parquet_6044.test index 924c821c..dd6205fc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_6044.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_6044.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_6044.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 0.9 AS a) to '{TEST_DIR}/tiny_decimal.parquet' (format 'parquet', codec 'zstd'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_6580.test b/parser/testdata/corpus/sql/copy/parquet/parquet_6580.test index 6895265f..04137f5d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_6580.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_6580.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_6580.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select *, make_timestamp(dt2*1000*1000) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_6630_union_by_name.test b/parser/testdata/corpus/sql/copy/parquet/parquet_6630_union_by_name.test index fdaa883f..a03b5e7d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_6630_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_6630_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_6630_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_6933.test b/parser/testdata/corpus/sql/copy/parquet/parquet_6933.test index 5d4a7ce8..2809944e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_6933.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_6933.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_6933.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE table1 ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_all_null_column.test b/parser/testdata/corpus/sql/copy/parquet/parquet_all_null_column.test index c3d636c1..82af3649 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_all_null_column.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_all_null_column.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_all_null_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i, NULL::BIGINT AS n FROM range(10000)) TO '{TEST_DIR}/all_null.parquet' (FORMAT PARQUET, ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_arrow_timestamp.test b/parser/testdata/corpus/sql/copy/parquet/parquet_arrow_timestamp.test index 3ec41d90..1340d526 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_arrow_timestamp.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_arrow_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_arrow_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/timestamp.parquet') order by 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_blob.test b/parser/testdata/corpus/sql/copy/parquet/parquet_blob.test index eb1f3f61..7ff003d1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_blob.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_blob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/blob.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_blob_string.test b/parser/testdata/corpus/sql/copy/parquet/parquet_blob_string.test index e02eb637..c8ef2d94 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_blob_string.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_blob_string.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_blob_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(#1) FROM parquet_scan('{DATA_DIR}/parquet-testing/binary_string.parquet',binary_as_string=False) limit 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_bloom_filter_corruption.test b/parser/testdata/corpus/sql/copy/parquet/parquet_bloom_filter_corruption.test index 4d136845..a892abeb 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_bloom_filter_corruption.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_bloom_filter_corruption.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_bloom_filter_corruption.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_parquet('{DATA_DIR}/parquet-testing/bloom_filter_bad_numbytes.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_column_metadata_corruption.test b/parser/testdata/corpus/sql/copy/parquet/parquet_column_metadata_corruption.test index 3707e584..268f7f13 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_column_metadata_corruption.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_column_metadata_corruption.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_column_metadata_corruption.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT num_values, row_group_num_rows, stats_null_count diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_column_statistics_option.test b/parser/testdata/corpus/sql/copy/parquet/parquet_column_statistics_option.test index e11b1ff3..4023f048 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_column_statistics_option.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_column_statistics_option.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_column_statistics_option.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_serializer=true @@ -121,3 +121,33 @@ WHERE ident > 5000; -- ok == +CREATE MACRO column_stats_schema() AS MAP {'id': {name: 'id', type: 'BIGINT', default_value: NULL::VARCHAR}, + 'nation': {name: 'nation', type: 'INTEGER', default_value: NULL::VARCHAR}, + 'half': {name: 'half', type: 'BIGINT', default_value: NULL::VARCHAR}}; +-- +ok +== +EXPLAIN SELECT id FROM read_parquet(['{TEST_DIR}/column_stats_1.parquet', '{TEST_DIR}/column_stats_2.parquet'], schema = column_stats_schema(), + column_statistics := MAP {'id': MAP {'min': '0', 'max': '199999', 'count': '200000', 'null_count': '0', 'distinct_count': '200000'}}) +WHERE id > 1000000; +-- +ok +== +SELECT count(*), min(id), max(id) FROM read_parquet(['{TEST_DIR}/column_stats_1.parquet', '{TEST_DIR}/column_stats_2.parquet'], schema = column_stats_schema(), + column_statistics := MAP {'id': MAP {'min': '0', 'max': '199999', 'count': '200000', 'null_count': '0', 'distinct_count': '200000'}}) +WHERE id >= 150000; +-- +ok +== +EXPLAIN SELECT id FROM read_parquet(['{TEST_DIR}/column_stats_1.parquet', '{TEST_DIR}/column_stats_2.parquet'], schema = column_stats_schema(), + column_statistics := MAP {'id': MAP {'min': '0', 'max': '199999', 'count': '200000', 'null_count': '0'}}) +WHERE half IS NULL; +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/column_stats_1.parquet', schema = column_stats_schema(), file_row_number = true, + column_statistics := MAP {'id': MAP {'min': '0', 'max': '99999', 'count': '100000', 'null_count': '0'}}) +WHERE file_row_number < 10; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_copy_failure_cleans_up.test b/parser/testdata/corpus/sql/copy/parquet/parquet_copy_failure_cleans_up.test index 05f4c20b..519f9e3f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_copy_failure_cleans_up.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_copy_failure_cleans_up.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_copy_failure_cleans_up.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 'hello'::INT) to '{TEST_DIR}/borked.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_copy_type_mismatch.test b/parser/testdata/corpus/sql/copy/parquet/parquet_copy_type_mismatch.test index 7cc47fab..78d26c7e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_copy_type_mismatch.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_copy_type_mismatch.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_copy_type_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version='v1.2.0' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_metadata.test b/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_metadata.test new file mode 100644 index 00000000..d2459d51 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_metadata.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/parquet/parquet_corrupt_metadata.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM '{DATA_DIR}/parquet-testing/broken/missing_column_metadata.parquet'; +-- +ok +== +SELECT * FROM '{DATA_DIR}/parquet-testing/broken/negative_type_length.parquet'; +-- +ok +== +SELECT * FROM '{DATA_DIR}/parquet-testing/broken/unreachable_schema_elements.parquet'; +-- +ok +== +SELECT * FROM '{DATA_DIR}/parquet-testing/broken/boolean_stats_not_0_or_1.parquet'; +-- +ok +== +SELECT stats_min, stats_max FROM parquet_metadata('{DATA_DIR}/parquet-testing/broken/boolean_stats_not_0_or_1.parquet'); +-- +ok +== +SELECT count(*) FROM '{DATA_DIR}/parquet-testing/broken/boolean_stats_not_0_or_1.parquet' WHERE b = false; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_stats.test b/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_stats.test index 3cbb9a34..853f3e30 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_corrupt_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_corrupt_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/parquet-testing/out_of_range_stats.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_count_star.test b/parser/testdata/corpus/sql/copy/parquet/parquet_count_star.test index a36f7461..760ca494 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_count_star.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_count_star.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_count_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM '{DATA_DIR}/parquet-testing/out_of_range_stats.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_dbp_empty_miniblock.test b/parser/testdata/corpus/sql/copy/parquet/parquet_dbp_empty_miniblock.test index faac93a4..fda00b3e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_dbp_empty_miniblock.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_dbp_empty_miniblock.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_dbp_empty_miniblock.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet('data/parquet-testing/broken/dbp_empty_miniblock.parquet') LIMIT 3; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_debug_use_openssl.test b/parser/testdata/corpus/sql/copy/parquet/parquet_debug_use_openssl.test index f87f1e5a..ac46ee03 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_debug_use_openssl.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_debug_use_openssl.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_debug_use_openssl.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 i) to '{TEST_DIR}/parquet_debug_use_openssl.parquet' (DEBUG_USE_OPENSSL true) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_deep_schema.test b/parser/testdata/corpus/sql/copy/parquet/parquet_deep_schema.test index bfa8d110..adedab6c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_deep_schema.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_deep_schema.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_deep_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet('data/parquet-testing/broken/deep_schema.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_deeply_nested_list.test b/parser/testdata/corpus/sql/copy/parquet/parquet_deeply_nested_list.test new file mode 100644 index 00000000..e5f8f414 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_deeply_nested_list.test @@ -0,0 +1,17 @@ +# source: test/sql/copy/parquet/parquet_deeply_nested_list.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[42]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] v) TO '{TEST_DIR}/deeply_nested_list.parquet' (FORMAT parquet); +-- +ok +== +SELECT bool_and(v IS NULL) FROM read_parquet('{TEST_DIR}/deeply_nested_list.parquet'); +-- +ok +== +SELECT len(v) FROM read_parquet('{TEST_DIR}/deeply_nested_list.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_delta_byte_array_length_overflow.test b/parser/testdata/corpus/sql/copy/parquet/parquet_delta_byte_array_length_overflow.test new file mode 100644 index 00000000..35d24865 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_delta_byte_array_length_overflow.test @@ -0,0 +1,9 @@ +# source: test/sql/copy/parquet/parquet_delta_byte_array_length_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM read_parquet('data/parquet-testing/broken/delta_byte_array_length_overflow.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_dictionary_zero_sum_aggregate.test b/parser/testdata/corpus/sql/copy/parquet/parquet_dictionary_zero_sum_aggregate.test index d646001a..cd78a46d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_dictionary_zero_sum_aggregate.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_dictionary_zero_sum_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_dictionary_zero_sum_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_empty_enum.test b/parser/testdata/corpus/sql/copy/parquet/parquet_empty_enum.test new file mode 100644 index 00000000..a0ac7b45 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_empty_enum.test @@ -0,0 +1,25 @@ +# source: test/sql/copy/parquet/parquet_empty_enum.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TYPE mood AS ENUM(); +-- +ok +== +CREATE TABLE t (m mood); +-- +ok +== +INSERT INTO t VALUES (NULL), (NULL); +-- +ok +== +COPY t TO '__TEST_DIR__/empty_enum.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT count(*) FROM read_parquet('__TEST_DIR__/empty_enum.parquet') WHERE m IS NULL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_encoding_skip.test b/parser/testdata/corpus/sql/copy/parquet/parquet_encoding_skip.test index fb902bce..287fd169 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_encoding_skip.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_encoding_skip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_encoding_skip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i id, i AS bigint, i::SMALLINT AS tinyint, i::DOUBLE dbl, 'prefix_' || i::VARCHAR str, 'constant' const_str FROM range(3000) t(i)) TO '{TEST_DIR}/skip.parquet' (PARQUET_VERSION '{parquet_version}'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_encryption.test b/parser/testdata/corpus/sql/copy/parquet/parquet_encryption.test index dda551fe..13ee7321 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_encryption.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_encryption.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_encryption.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA add_parquet_key('my_cool_key', '42') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_encryption_null_key.test b/parser/testdata/corpus/sql/copy/parquet/parquet_encryption_null_key.test new file mode 100644 index 00000000..67f51f49 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_encryption_null_key.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/parquet/parquet_encryption_null_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 i) TO '__TEST_DIR__/null_key.parquet' (ENCRYPTION_CONFIG {footer_key: NULL}); +-- +ok +== +COPY (SELECT 1 i) TO '__TEST_DIR__/null_key.parquet' (ENCRYPTION_CONFIG {footer_key_value: NULL}); +-- +ok +== +COPY (SELECT 1 i) TO '__TEST_DIR__/plain.parquet'; +-- +ok +== +SELECT * FROM read_parquet('__TEST_DIR__/plain.parquet', encryption_config={footer_key_value: NULL}); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_enum_test.test b/parser/testdata/corpus/sql/copy/parquet/parquet_enum_test.test index 05480117..c62b0ed4 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_enum_test.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_enum_test.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_enum_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/adam_genotypes.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter.test b/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter.test index e0cfb19b..2c2187dd 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_expression_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter_pruning.test b/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter_pruning.test index e2aa3373..b818318a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter_pruning.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_expression_filter_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_expression_filter_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS a FROM range(102400)) TO '{TEST_DIR}/expr_prune_int.parquet' (ROW_GROUP_SIZE 10240) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_external_access.test b/parser/testdata/corpus/sql/copy/parquet/parquet_external_access.test index 4ab3d805..c68315ed 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_external_access.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_field_ids_invalid.test b/parser/testdata/corpus/sql/copy/parquet/parquet_field_ids_invalid.test new file mode 100644 index 00000000..df971bfe --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_field_ids_invalid.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/parquet/parquet_field_ids_invalid.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 i) TO '{TEST_DIR}/field_ids_invalid.parquet' (FORMAT parquet, FIELD_IDS {i: -1}); +-- +ok +== +COPY (SELECT 1 i) TO '{TEST_DIR}/field_ids_invalid.parquet' (FORMAT parquet, FIELD_IDS {i: -2}); +-- +ok +== +COPY (SELECT 1 i) TO '{TEST_DIR}/field_ids_invalid.parquet' (FORMAT parquet, FIELD_IDS {i: NULL}); +-- +ok +== +COPY (SELECT 1 i) TO '{TEST_DIR}/field_ids_invalid.parquet' (FORMAT parquet, FIELD_IDS {i: -2147483648}); +-- +ok +== +COPY (SELECT [1] l) TO '{TEST_DIR}/field_ids_invalid.parquet' (FORMAT parquet, FIELD_IDS {l: {__duckdb_field_id: 5, element: -7}}); +-- +ok +== +COPY (SELECT 1 i) TO '{TEST_DIR}/field_ids_valid.parquet' (FORMAT parquet, FIELD_IDS {i: 0}); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_filename.test b/parser/testdata/corpus/sql/copy/parquet/parquet_filename.test index e2070736..0359a4b7 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_filename.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_filename.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_filename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select i, j, parse_path(filename)[-2:] from parquet_scan('{DATA_DIR}/parquet-testing/glob*/t?.parquet', FILENAME=1) order by i; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_filename_filter.test b/parser/testdata/corpus/sql/copy/parquet/parquet_filename_filter.test index 2ad096f3..f034f68b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_filename_filter.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_filename_filter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_filename_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select id, value as f, date from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where filename='value1'; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_bug1391.test b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_bug1391.test index aa837b32..7f58221a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_bug1391.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_bug1391.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_filter_bug1391.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW tbl AS SELECT * FROM PARQUET_SCAN('{DATA_DIR}/parquet-testing/filter_bug1391.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_dictionary_materialize.test b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_dictionary_materialize.test index 44537305..b401f07c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_dictionary_materialize.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_dictionary_materialize.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_filter_dictionary_materialize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i::BIGINT AS k, 'this is a sufficiently long string value number ' || i AS v, diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_narrowing_cast.test b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_narrowing_cast.test index e7ce9776..0015c863 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_filter_narrowing_cast.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_filter_narrowing_cast.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_filter_narrowing_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 0.1::FLOAT AS c) TO '{TEST_DIR}/narrow_float.parquet' (FORMAT parquet) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_fixed_length_blob_dict.test b/parser/testdata/corpus/sql/copy/parquet/parquet_fixed_length_blob_dict.test index 63a7de92..9d439626 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_fixed_length_blob_dict.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_fixed_length_blob_dict.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_fixed_length_blob_dict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_footer_size_option.test b/parser/testdata/corpus/sql/copy/parquet/parquet_footer_size_option.test new file mode 100644 index 00000000..4a2dd67e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_footer_size_option.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/parquet/parquet_footer_size_option.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 42 a, 'hello' b) TO '{TEST_DIR}/footer_size.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/footer_size.parquet', 'footer_size': 18446744073709551615::UBIGINT}]); +-- +ok +== +SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/footer_size.parquet', 'footer_size': 4294967296::UBIGINT}]); +-- +ok +== +SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/footer_size.parquet', 'footer_size': 4294967295::UBIGINT}]); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_given_schema_cardinality.test b/parser/testdata/corpus/sql/copy/parquet/parquet_given_schema_cardinality.test new file mode 100644 index 00000000..7a090cb3 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_given_schema_cardinality.test @@ -0,0 +1,49 @@ +# source: test/sql/copy/parquet/parquet_given_schema_cardinality.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range::BIGINT AS i FROM range(1000)) TO '{TEST_DIR}/given_schema.parquet'; +-- +ok +== +CREATE MACRO given_schema() AS MAP {'i': {name: 'i', type: 'BIGINT', default_value: NULL::VARCHAR}}; +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/given_schema.parquet', explicit_cardinality = 123456) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/given_schema.parquet', explicit_cardinality = 123456, schema = given_schema()) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/given_schema.parquet', '{TEST_DIR}/given_schema.parquet'], explicit_cardinality = 123456, schema = given_schema()) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/given_schema.parquet', '{TEST_DIR}/given_schema.parquet'], explicit_cardinality = 123456) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet([{filename: '{TEST_DIR}/given_schema.parquet', file_size: 100000}, {filename: '{TEST_DIR}/given_schema.parquet', file_size: 100000}], schema = given_schema()) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/given_schema*.parquet', schema = given_schema()) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/given_schema.parquet') +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/given_schema.parquet', '{TEST_DIR}/given_schema.parquet'], explicit_cardinality = 123456, schema = given_schema()) +-- +ok +== +SELECT count(*) FROM read_parquet([{filename: '{TEST_DIR}/given_schema.parquet', file_size: 100000}], schema = given_schema()) +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache.test b/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache.test index 4a0a6c80..82a3a571 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_glob_cache.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN select count(*) from parquet_scan('{DATA_DIR}/parquet-testing/glob/*') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache_list.test b/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache_list.test new file mode 100644 index 00000000..a34ef290 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_glob_cache_list.test @@ -0,0 +1,45 @@ +# source: test/sql/copy/parquet/parquet_glob_cache_list.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +EXPLAIN select count(*) from parquet_scan(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet']) +-- +ok +== +select count(*) from parquet_scan(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet']) +-- +ok +== +SET file_search_path = '{DATA_DIR}/parquet-testing/glob'; +-- +ok +== +EXPLAIN select count(*) from parquet_scan(['t1.parquet', 't2.parquet']) +-- +ok +== +select count(*) from parquet_scan(['t1.parquet', 't2.parquet']) +-- +ok +== +RESET file_search_path; +-- +ok +== +COPY (SELECT i FROM range(3) t(i)) TO '{TEST_DIR}/glob_cache_list_1.parquet'; +-- +ok +== +COPY (SELECT i FROM range(5) t(i)) TO '{TEST_DIR}/glob_cache_list_2.parquet'; +-- +ok +== +select count(*) from parquet_scan(['{TEST_DIR}/glob_cache_list_1.parquet', '{TEST_DIR}/glob_cache_list_2.parquet']) +-- +ok +== +COPY (SELECT i FROM range(7) t(i)) TO '{TEST_DIR}/glob_cache_list_2.parquet'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_go.test b/parser/testdata/corpus/sql/copy/parquet/parquet_go.test index 680c43a5..9d6ebbe2 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_go.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_go.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_go.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/parquet_go.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive.test index 958c2cc1..5da73a76 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select id, value, part, date from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/simple/*/*/test.parquet', HIVE_PARTITIONING=1) order by id diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive2.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive2.test index a513f396..7ca0695e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive2.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive2.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table orders(m int,v int,j int); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_column_alias.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_column_alias.test index 721a21c1..8237f532 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_column_alias.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_column_alias.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive_column_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM (VALUES (1,7), (1,7), (NULL,7), (2,9)) t(id,part)) TO '{TEST_DIR}/aliased_hive' (FORMAT parquet, PARTITION_BY(part)) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_empty.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_empty.test index bac1f910..00da1e22 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_empty.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_empty.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_null.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_null.test index 9ba750fe..f7a4d2d4 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_null.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select i%5 as a, i%2 as b from range(0,10) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_override_stats.test b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_override_stats.test index d77fea5c..49cadb5f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_hive_override_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_hive_override_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_hive_override_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1::UBIGINT AS id, 42::UBIGINT AS part) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_int96_out_of_range.test b/parser/testdata/corpus/sql/copy/parquet/parquet_int96_out_of_range.test new file mode 100644 index 00000000..b9816b4e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_int96_out_of_range.test @@ -0,0 +1,13 @@ +# source: test/sql/copy/parquet/parquet_int96_out_of_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT dt3 FROM read_parquet('{DATA_DIR}/parquet-testing/int96_out_of_range.parquet'); +-- +ok +== +SELECT dt3 FROM read_parquet('{DATA_DIR}/parquet-testing/bug4903.parquet') LIMIT 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_interval_converted_type.test b/parser/testdata/corpus/sql/copy/parquet/parquet_interval_converted_type.test index 7d4a70ef..af3600d3 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_interval_converted_type.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_interval_converted_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_interval_converted_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_metadata('data/parquet-testing/broken/interval_converted_type.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_interval_dictionary.test b/parser/testdata/corpus/sql/copy/parquet/parquet_interval_dictionary.test new file mode 100644 index 00000000..68ff1b66 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_interval_dictionary.test @@ -0,0 +1,47 @@ +# source: test/sql/copy/parquet/parquet_interval_dictionary.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT INTERVAL '1 month 2 days' = INTERVAL '32 days' +-- +ok +== +SELECT (DATE '2024-01-31' + INTERVAL '1 month 2 days')::VARCHAR, + (DATE '2024-01-31' + INTERVAL '32 days')::VARCHAR +-- +ok +== +CREATE OR REPLACE TABLE iv_a AS +SELECT CASE WHEN i % 2 = 0 THEN INTERVAL '1 month 2 days' ELSE INTERVAL '32 days' END AS iv +FROM range(2000) t(i) +-- +ok +== +CREATE OR REPLACE TABLE iv_b AS +SELECT CASE WHEN i % 2 = 0 THEN INTERVAL '32 days' ELSE INTERVAL '1 month 2 days' END AS iv +FROM range(2000) t(i) +-- +ok +== +COPY iv_{first} TO '{TEST_DIR}/iv_{first}_{version}.parquet' +(FORMAT PARQUET, PARQUET_VERSION {version}) +-- +error: Parser Error: syntax error at or near "{" +== +SELECT iv::VARCHAR, count(*) +FROM read_parquet('{TEST_DIR}/iv_{first}_{version}.parquet') +GROUP BY 1 ORDER BY 1 +-- +ok +== +SELECT bool_and(encodings = CASE WHEN '{version}' = 'V1' THEN 'PLAIN_DICTIONARY' ELSE 'RLE_DICTIONARY' END) +FROM parquet_metadata('{TEST_DIR}/iv_{first}_{version}.parquet') WHERE path_in_schema = 'iv' +-- +ok +== +SELECT DISTINCT (DATE '2024-01-31' + iv)::VARCHAR +FROM read_parquet('{TEST_DIR}/iv_{first}_{version}.parquet') ORDER BY 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_json_varchar_mismatch.test b/parser/testdata/corpus/sql/copy/parquet/parquet_json_varchar_mismatch.test index 3e0efe0b..6dac5ee9 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_json_varchar_mismatch.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_json_varchar_mismatch.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_json_varchar_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'TEST 1' AS groupDn, NULL AS memberDn) TO '{TEST_DIR}/json_varchar_mismatch1.json'; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_late_materialization.test b/parser/testdata/corpus/sql/copy/parquet/parquet_late_materialization.test index d583a51e..4f01934a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_late_materialization.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_late_materialization.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_late_materialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i, i + 1 AS j, i + 2 AS k, -i AS l FROM range(10) t(i)) TO '{TEST_DIR}/late_materialization.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_list.test b/parser/testdata/corpus/sql/copy/parquet/parquet_list.test index b0596448..204115e8 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_list.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_list.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from parquet_scan(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet']); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata.test b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata.test index a1435a26..4c625e86 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_metadata('{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_blob.test b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_blob.test index 5108aa7d..1bfd2a94 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_blob.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_blob.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_metadata_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select * from values ('\x0An\xC3\xB5'::blob), ('\xFFXl\x9D'::blob) tbl(b)) to '{TEST_DIR}/blobs.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_cache.test b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_cache.test index d7d4d362..cb085cdf 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_cache.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_cache.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_metadata_cache.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/cache/cache1.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_prepared.test b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_prepared.test new file mode 100644 index 00000000..fd742727 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_metadata_prepared.test @@ -0,0 +1,33 @@ +# source: test/sql/copy/parquet/parquet_metadata_prepared.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 i) TO '__TEST_DIR__/prepared_metadata.parquet' +-- +ok +== +PREPARE p AS SELECT row_group_id, row_group_num_rows FROM parquet_metadata('__TEST_DIR__/prepared_metadata.parquet') +-- +ok +== +EXECUTE p +-- +ok +== +PREPARE s AS SELECT name FROM parquet_schema('__TEST_DIR__/prepared_metadata.parquet') WHERE name = 'i' +-- +ok +== +EXECUTE s +-- +ok +== +PREPARE f AS SELECT num_rows FROM parquet_file_metadata('__TEST_DIR__/prepared_metadata.parquet') +-- +ok +== +EXECUTE f +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_nan.test b/parser/testdata/corpus/sql/copy/parquet/parquet_nan.test index f79a148b..0dc6c5be 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_nan.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_nan.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/nan-float.parquet') order by 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_nan_count.test b/parser/testdata/corpus/sql/copy/parquet/parquet_nan_count.test index 4f9cc4e2..4154f06a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_nan_count.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_nan_count.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_nan_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW nan_data AS diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_nan_setting.test b/parser/testdata/corpus/sql/copy/parquet/parquet_nan_setting.test new file mode 100644 index 00000000..440a5008 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_nan_setting.test @@ -0,0 +1,177 @@ +# source: test/sql/copy/parquet/parquet_nan_setting.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT row_group_id, path_in_schema, stats_min_value, stats_max_value, stats_nan_count +FROM parquet_metadata('{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet') +WHERE path_in_schema <> 'k' +ORDER BY ALL +-- +ok +== +SELECT row_group_id, path_in_schema, stats_min_value, stats_max_value, stats_nan_count +FROM parquet_metadata('{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet') +WHERE path_in_schema <> 'k' +ORDER BY ALL +-- +ok +== +CREATE VIEW nan_first AS FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet') +-- +ok +== +CREATE VIEW nan_last AS FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet') +-- +ok +== +CREATE VIEW nan_first_explicit_false AS +FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet', can_have_nan := false) +-- +ok +== +CREATE VIEW nan_last_explicit_false AS +FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet', can_have_nan := false) +-- +ok +== +CREATE VIEW nan_last_explicit_true AS +FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet', can_have_nan := true) +-- +ok +== +CREATE VIEW nan_counted AS +SELECT file_row_number + 1 AS k, d FROM read_parquet('{DATA_DIR}/parquet-testing/nan_count_bounds.parquet') +-- +ok +== +CREATE VIEW nan_counted_explicit_false AS +SELECT file_row_number + 1 AS k, d FROM read_parquet('{DATA_DIR}/parquet-testing/nan_count_bounds.parquet', can_have_nan := false) +-- +ok +== +CREATE MACRO nan_forms(t) AS TABLE SELECT + (SELECT list(k ORDER BY k) FROM query_table(t) WHERE d <> 1) AS ne_1, + (SELECT list(k ORDER BY k) FROM query_table(t) WHERE d > 1.5) AS gt_1_5, + (SELECT list(k ORDER BY k) FROM query_table(t) + WHERE NOT (CASE WHEN d IS NULL THEN NULL WHEN isnan(d) THEN false ELSE d < 3 END)) AS not_case, + (SELECT list(k ORDER BY k) FROM query_table(t) WHERE d = 'nan'::DOUBLE) AS eq_nan, + (SELECT max(d) FROM query_table(t)) AS max_d, + (SELECT k FROM query_table(t) ORDER BY d DESC LIMIT 1) AS top_k +-- +ok +== +CREATE VIEW nan_values AS FROM (VALUES (1, 1.0::DOUBLE), (2, 'nan'::DOUBLE), (3, 2.0::DOUBLE)) v(k, d) +-- +ok +== +FROM nan_forms('nan_values') +-- +ok +== +SELECT current_setting('parquet_can_have_nan') +-- +ok +== +FROM nan_forms('nan_first') +-- +ok +== +FROM nan_forms('nan_last') +-- +ok +== +FROM nan_forms('nan_last_explicit_true') +-- +ok +== +FROM nan_forms('nan_counted') +-- +ok +== +FROM nan_forms('nan_counted_explicit_false') +-- +ok +== +SET parquet_can_have_nan = true +-- +ok +== +SELECT list(k ORDER BY k) FROM parquet_scan('{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet') WHERE d <> 1 +-- +ok +== +SELECT list(k ORDER BY k) FROM '{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet' WHERE d > 1.5 +-- +ok +== +SELECT list(k ORDER BY k), count(DISTINCT filename) +FROM read_parquet(['{DATA_DIR}/parquet-testing/nan_no_nan_count.parquet', '{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet']) +WHERE d <> 1 +-- +ok +== +SELECT list(k ORDER BY k) FROM read_parquet('{DATA_DIR}/parquet-testing/nan_no_nan_count*.parquet', union_by_name := true) WHERE f > 1.5 +-- +ok +== +SELECT stats(d), stats(f) FROM nan_first LIMIT 1 +-- +ok +== +FROM nan_forms('nan_first_explicit_false') +-- +ok +== +FROM nan_forms('nan_last_explicit_false') +-- +ok +== +SELECT stats(d), stats(f) FROM nan_first_explicit_false LIMIT 1 +-- +ok +== +COPY (SELECT i::DOUBLE d, i::FLOAT f FROM range(10) t(i)) TO '{TEST_DIR}/nan_setting_nan_count_zero.parquet' +-- +ok +== +SELECT path_in_schema, stats_nan_count FROM parquet_metadata('{TEST_DIR}/nan_setting_nan_count_zero.parquet') ORDER BY ALL +-- +ok +== +SELECT stats(d), stats(f) FROM read_parquet('{TEST_DIR}/nan_setting_nan_count_zero.parquet') LIMIT 1 +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/nan_setting_nan_count_zero.parquet') WHERE isnan(d) OR d > 8.5 +-- +ok +== +SET parquet_metadata_cache = true +-- +ok +== +SET parquet_can_have_nan = false +-- +ok +== +RESET parquet_metadata_cache +-- +ok +== +RESET parquet_can_have_nan +-- +ok +== +SET GLOBAL parquet_can_have_nan = true +-- +ok +== +RESET GLOBAL parquet_can_have_nan +-- +ok +== +SET parquet_can_have_nan = 'maybe' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_negative_chunk_size.test b/parser/testdata/corpus/sql/copy/parquet/parquet_negative_chunk_size.test new file mode 100644 index 00000000..4fbd6171 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_negative_chunk_size.test @@ -0,0 +1,13 @@ +# source: test/sql/copy/parquet/parquet_negative_chunk_size.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*), min(COLUMNS(*)), max(COLUMNS(*)) FROM read_parquet('data/parquet-testing/broken/neg_compressed_size.parquet'); +-- +ok +== +SELECT * FROM parquet_metadata('data/parquet-testing/broken/neg_compressed_size.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_no_stats.test b/parser/testdata/corpus/sql/copy/parquet/parquet_no_stats.test index 97cb9b7e..ba6c639a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_no_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_no_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_no_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT min(x), max(x) FROM read_parquet('{DATA_DIR}/parquet-testing/no_stats.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_nullbyte.test b/parser/testdata/corpus/sql/copy/parquet/parquet_nullbyte.test index 8f76b920..15d03126 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_nullbyte.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_nullbyte.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_nullbyte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/nullbyte.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_pandas_date.test b/parser/testdata/corpus/sql/copy/parquet/parquet_pandas_date.test index 3ee7b8bb..622b3454 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_pandas_date.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_pandas_date.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_pandas_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/pandas-date.parquet') order by 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model.test index 654a5a5e..682131f6 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_cost_model.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model_remote.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model_remote.test index 678a6f82..f60468dd 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model_remote.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_cost_model_remote.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_cost_model_remote.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET enable_external_file_cache=false diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_first_group_cost.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_first_group_cost.test index ee9dc7c7..39bca95a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_first_group_cost.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_first_group_cost.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_first_group_cost.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_footer_once.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_footer_once.test index 4af1dc70..d2cac2ec 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_footer_once.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_footer_once.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_footer_once.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i a, i b, i c, i d FROM range(131072) t(i)) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_metrics_multifile.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_metrics_multifile.test index d3ea6a9d..31d9517a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_metrics_multifile.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_metrics_multifile.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_metrics_multifile.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET parquet_prefetch_column_gap=16384 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_overlapping_ranges.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_overlapping_ranges.test index c320ab45..29ba5f04 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_overlapping_ranges.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_overlapping_ranges.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_overlapping_ranges.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET parquet_prefetch_column_gap=16384; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_projection.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_projection.test index 72a810aa..434a0105 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_projection.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_projection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_row_group_outcome.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_row_group_outcome.test index 54a6ea06..bd1c318b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_row_group_outcome.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_row_group_outcome.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_row_group_outcome.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_shared_column_chunks.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_shared_column_chunks.test index 91814f84..0da1af29 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_shared_column_chunks.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_shared_column_chunks.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_shared_column_chunks.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_strategy_option.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_strategy_option.test index 182a7cca..aa9521fc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_strategy_option.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_strategy_option.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_strategy_option.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_tracked_memory.test b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_tracked_memory.test index 67ea7bdd..b3e0a6e2 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_tracked_memory.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_prefetch_tracked_memory.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_prefetch_tracked_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set threads=1; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_pruned_first_file_cardinality.test b/parser/testdata/corpus/sql/copy/parquet/parquet_pruned_first_file_cardinality.test new file mode 100644 index 00000000..e27980a6 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_pruned_first_file_cardinality.test @@ -0,0 +1,34 @@ +# source: test/sql/copy/parquet/parquet_pruned_first_file_cardinality.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT k, 1 + k % 5 AS region_id FROM range(5000) t(k)) +TO '{TEST_DIR}/pruned_first' (FORMAT parquet, PARTITION_BY (region_id)); +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/pruned_first/**/*.parquet', hive_partitioning = true) WHERE region_id = 1 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/pruned_first/**/*.parquet', hive_partitioning = true) WHERE region_id = 2 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/pruned_first/**/*.parquet', hive_partitioning = true) WHERE region_id IN (2, 5) +-- +ok +== +EXPLAIN SELECT * FROM read_parquet('{TEST_DIR}/pruned_first/**/*.parquet', hive_partitioning = true) WHERE region_id > 1 +-- +ok +== +EXPLAIN SELECT * FROM read_parquet(['{TEST_DIR}/pruned_first/region_id=5/data_0.parquet', '{TEST_DIR}/pruned_first/region_id=1/data_0.parquet'], hive_partitioning = true) WHERE region_id = 1 +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/pruned_first/**/*.parquet', hive_partitioning = true) WHERE region_id > 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_pushdown_extract_nested_cast.test b/parser/testdata/corpus/sql/copy/parquet/parquet_pushdown_extract_nested_cast.test new file mode 100644 index 00000000..ec3470ae --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_pushdown_extract_nested_cast.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/parquet/parquet_pushdown_extract_nested_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 AS id, {'n': {'a': 1, 'b': 2}} AS s) TO '{TEMP_DIR}/nested_cast_1.parquet' +-- +ok +== +COPY (SELECT 2 AS id, {'n': {'b': 4, 'a': 3}} AS s) TO '{TEMP_DIR}/nested_cast_2.parquet' +-- +ok +== +SELECT id, s.n::VARCHAR FROM read_parquet(['{TEMP_DIR}/nested_cast_1.parquet', '{TEMP_DIR}/nested_cast_2.parquet'], union_by_name = true) ORDER BY id +-- +ok +== +SELECT id FROM read_parquet(['{TEMP_DIR}/nested_cast_1.parquet', '{TEMP_DIR}/nested_cast_2.parquet'], union_by_name = true) WHERE s.n::VARCHAR = '{''a'': 3, ''b'': 4}' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_read_options.test b/parser/testdata/corpus/sql/copy/parquet/parquet_read_options.test index ad31bc52..da4a31da 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_read_options.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_read_options.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_read_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 AS i) TO '{TEST_DIR}/read_options.parquet' (FORMAT parquet) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_row_group_row_count.test b/parser/testdata/corpus/sql/copy/parquet/parquet_row_group_row_count.test index 4d922eef..18ce5548 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_row_group_row_count.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_row_group_row_count.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_row_group_row_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_execution_time=10000; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_row_number.test b/parser/testdata/corpus/sql/copy/parquet/parquet_row_number.test index 16b6f13a..0dccb113 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_row_number.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_row_number.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_row_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select min(file_row_number) from parquet_scan('{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.parquet', file_row_number=1); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_default_only_struct.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_default_only_struct.test new file mode 100644 index 00000000..4a984288 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_default_only_struct.test @@ -0,0 +1,62 @@ +# source: test/sql/copy/parquet/parquet_schema_default_only_struct.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY ( + SELECT * FROM (VALUES + (1, {'a': 'one', 'n': {'b': 1}}), + (2, {'a': 'two', 'n': NULL}), + (3, NULL), + (4, {'a': 'four', 'n': {'b': NULL}}) + ) t(id, s) +) TO '{TEST_DIR}/default_only_struct.parquet' +(FIELD_IDS {id: 1, s: {__duckdb_field_id: 2, a: 3, n: {__duckdb_field_id: 4, b: 5}}}); +-- +ok +== +CREATE VIEW default_only_struct AS +FROM read_parquet('{TEST_DIR}/default_only_struct.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL, children: NULL}, + 2: {name: 's', type: 'STRUCT(a VARCHAR, n STRUCT(y INTEGER))', default_value: NULL, children: MAP { + 3: {name: 'a', type: 'VARCHAR', default_value: NULL, children: NULL}, + 4: {name: 'n', type: 'STRUCT(y INTEGER)', default_value: NULL, children: MAP { + 6: {name: 'y', type: 'INTEGER', default_value: 5, children: NULL} + }} + }} +}); +-- +ok +== +SELECT id, s.n, s.n.y FROM default_only_struct ORDER BY id; +-- +ok +== +SELECT id, s.n.y FROM default_only_struct ORDER BY id; +-- +ok +== +SELECT id FROM default_only_struct WHERE s.n.y = 5 ORDER BY id; +-- +ok +== +SELECT id FROM default_only_struct WHERE s.n.y IS NULL ORDER BY id; +-- +ok +== +SELECT id, s.n::VARCHAR FROM default_only_struct WHERE s.n::VARCHAR = '{''y'': 5}' ORDER BY id; +-- +ok +== +SELECT id, s FROM default_only_struct ORDER BY id; +-- +ok +== +SET disabled_optimizers = 'unused_columns'; +-- +ok +== +DROP VIEW default_only_struct; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_duckdb_type.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_duckdb_type.test index d6073016..33e1c8a7 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_duckdb_type.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_duckdb_type.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_schema_duckdb_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT [1, 2] AS l, {'a': 1, 'b': 'x'} AS s, MAP {'k': [1]} AS m, 42::VARIANT AS v, 'POINT (1 2)'::GEOMETRY AS g) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_evolution.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_evolution.test index f5c4e086..8ef03f81 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_evolution.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_evolution.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_schema_evolution.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42::INT a, 43::INT c) TO '{TEST_DIR}/evolution_1.parquet' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_hive_partitioning.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_hive_partitioning.test new file mode 100644 index 00000000..953f96e4 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_hive_partitioning.test @@ -0,0 +1,107 @@ +# source: test/sql/copy/parquet/parquet_schema_hive_partitioning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range AS i, (range % 2)::INTEGER AS k FROM range(0, 4)) +TO '{TEST_DIR}/schema_hive' (FORMAT parquet, PARTITION_BY (k)); +-- +ok +== +COPY (SELECT range AS i, 'x' || range AS b, 9::INTEGER AS k FROM range(10, 12)) +TO '{TEST_DIR}/schema_hive' (FORMAT parquet, PARTITION_BY (k), APPEND); +-- +ok +== +CREATE MACRO file_schema() AS MAP { + 'i': {'name': 'i', 'type': 'BIGINT', 'default_value': NULL}, + 'b': {'name': 'b', 'type': 'VARCHAR', 'default_value': NULL}}; +-- +ok +== +SELECT count(*) FROM (DESCRIBE SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := file_schema())); +-- +ok +== +SELECT i, b, k, typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := file_schema(), hive_partitioning := true) +ORDER BY i; +-- +ok +== +SELECT DISTINCT typeof(k), count(*) OVER () FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := file_schema(), hive_types := {'k': 'INTEGER'}, hive_types_autocast := false); +-- +ok +== +SELECT DISTINCT typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := file_schema(), hive_partitioning := true, hive_types := {'k': 'SMALLINT'}); +-- +ok +== +SELECT i, b, k, typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/k=9/*.parquet', + "schema" := file_schema(), hive_types := {'k': 'INTEGER'}, hive_types_autocast := false) +ORDER BY i; +-- +ok +== +SELECT i, b, k, typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/k=0/*.parquet', + "schema" := file_schema(), hive_types := {'k': 'INTEGER'}, hive_types_autocast := false) +ORDER BY i; +-- +ok +== +SELECT k, count(*) FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := file_schema(), hive_types := {'k': 'INTEGER'}) +WHERE k = 9 GROUP BY k; +-- +ok +== +SELECT i, k, typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/k=0/*.parquet', + "schema" := MAP {'i': {'name': 'i', 'type': 'BIGINT', 'default_value': NULL}, + 'k': {'name': 'k', 'type': 'INTEGER', 'default_value': 7}}, + hive_partitioning := true, hive_types := {'k': 'INTEGER'}) +ORDER BY i; +-- +ok +== +SELECT DISTINCT k, typeof(k) FROM read_parquet('{TEST_DIR}/schema_hive/k=9/*.parquet', + "schema" := MAP {'k': {'name': 'k', 'type': 'BIGINT', 'default_value': NULL}}, hive_partitioning := true); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := MAP {'k': {'name': 'k', 'type': 'DATE', 'default_value': NULL}}, hive_partitioning := true); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', + "schema" := MAP {'k': {'name': 'k', 'type': 'BIGINT', 'default_value': NULL}}, hive_types := {'k': 'INTEGER'}); +-- +ok +== +COPY (SELECT 1 AS i, 'abc' AS k) TO '{TEST_DIR}/schema_hive_str' (FORMAT parquet, PARTITION_BY (k)); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive_str/**/*.parquet', + "schema" := MAP {'k': {'name': 'k', 'type': 'INTEGER', 'default_value': NULL}}, hive_partitioning := true); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', "schema" := file_schema(), + union_by_name := true); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', "schema" := file_schema(), + union_by_name := true, hive_partitioning := true); +-- +ok +== +SELECT * FROM read_parquet('{TEST_DIR}/schema_hive/**/*.parquet', "schema" := file_schema(), + hive_partitioning := false, hive_types := {'k': 'INTEGER'}); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_lossy_filter_pushdown.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_lossy_filter_pushdown.test index 01268e37..286734ca 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_lossy_filter_pushdown.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_lossy_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_schema_lossy_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT TIMESTAMP '2020-01-01 10:00:00' AS c UNION ALL SELECT TIMESTAMP '2020-01-01') TO '__TEST_DIR__/sc_ts.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_num_children_fix.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_num_children_fix.test index eedea526..7ef2497e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_num_children_fix.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_num_children_fix.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_schema_num_children_fix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM parquet_schema('{DATA_DIR}/parquet-testing/empty-group/empty_group_test.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_cast_chain.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_cast_chain.test new file mode 100644 index 00000000..6c9094b8 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_cast_chain.test @@ -0,0 +1,42 @@ +# source: test/sql/copy/parquet/parquet_schema_pushdown_extract_cast_chain.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY ( + SELECT * FROM (VALUES + (1, {'x': 1.6::DOUBLE, 'l': [1.6::DOUBLE, NULL, 2.4::DOUBLE], 'm': MAP {'k': 1.6::DOUBLE}}), + (2, NULL), + (3, {'x': 2.4::DOUBLE, 'l': [], 'm': MAP {}}) + ) t(id, s) +) TO '{TEST_DIR}/extract_cast_chain.parquet' (FIELD_IDS {id: 1, s: {__duckdb_field_id: 2, x: 3, l: 4, m: 5}}) +-- +ok +== +CREATE VIEW implicit_children AS +FROM read_parquet('{TEST_DIR}/extract_cast_chain.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(x DOUBLE, l INTEGER[], m MAP(VARCHAR, INTEGER))', default_value: NULL} +}) +-- +ok +== +SELECT id, s.l::VARCHAR, s.m::VARCHAR FROM implicit_children ORDER BY id +-- +ok +== +SELECT id FROM implicit_children WHERE s.l::VARCHAR = '[2, NULL, 2]' AND s.m::VARCHAR = '{k=2}' +-- +ok +== +COPY (SELECT {'x': 1e20::DOUBLE} AS s) +TO '{TEST_DIR}/extract_cast_overflow.parquet' +-- +ok +== +SELECT s.x::VARCHAR FROM read_parquet('{TEST_DIR}/extract_cast_overflow.parquet', schema = MAP { + 's': {name: 's', type: 'STRUCT(x INTEGER)', default_value: NULL} +}) +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_missing.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_missing.test new file mode 100644 index 00000000..078ad18b --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_missing.test @@ -0,0 +1,99 @@ +# source: test/sql/copy/parquet/parquet_schema_pushdown_extract_missing.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT * FROM (VALUES (1, {'x': 1}), (2, NULL)) t(a, s)) TO '{TEMP_DIR}/extract_missing_1.parquet' (FIELD_IDS {a: 1, s: {__duckdb_field_id: 2, x: 3}}) +-- +ok +== +COPY (SELECT 5 AS a) TO '{TEMP_DIR}/extract_missing_2.parquet' (FIELD_IDS {a: 1}) +-- +ok +== +COPY (SELECT 6 AS a, 'hello'::VARIANT AS v) TO '{TEMP_DIR}/extract_missing_3.parquet' (FIELD_IDS {a: 1, v: 4}) +-- +ok +== +SELECT a, s.x FROM read_parquet(['{TEMP_DIR}/extract_missing_1.parquet', '{TEMP_DIR}/extract_missing_2.parquet'], schema := MAP { + 1: {name: 'a', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER)', default_value: NULL} +}) ORDER BY a +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEMP_DIR}/extract_missing_1.parquet', '{TEMP_DIR}/extract_missing_2.parquet'], schema := MAP { + 1: {name: 'a', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER)', default_value: NULL} +}) WHERE s.x IS NULL +-- +ok +== +SELECT a, s.x FROM read_parquet(['{TEMP_DIR}/extract_missing_1.parquet', '{TEMP_DIR}/extract_missing_2.parquet'], schema := MAP { + 1: {name: 'a', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER)', default_value: {'x': 9}} +}) WHERE s.x > 0 ORDER BY a +-- +ok +== +SELECT a, v.k::VARCHAR FROM read_parquet(['{TEMP_DIR}/extract_missing_2.parquet', '{TEMP_DIR}/extract_missing_3.parquet'], schema := MAP { + 1: {name: 'a', type: 'INTEGER', default_value: NULL}, + 4: {name: 'v', type: 'VARIANT', default_value: NULL} +}) ORDER BY a +-- +ok +== +CREATE VIEW variant_default AS +SELECT * FROM read_parquet(['{TEMP_DIR}/extract_missing_2.parquet', '{TEMP_DIR}/extract_missing_3.parquet'], schema := MAP { + 1: {name: 'a', type: 'INTEGER', default_value: NULL}, + 4: {name: 'v', type: 'VARIANT', default_value: {'outer': {'answer': 9}}::VARIANT} +}) +-- +ok +== +SELECT a, v.outer.answer::INTEGER FROM variant_default ORDER BY a +-- +ok +== +SELECT a FROM variant_default WHERE v.outer.answer::INTEGER = 9 +-- +ok +== +SELECT a FROM variant_default WHERE v.outer.answer::INTEGER > 10 +-- +ok +== +SELECT a FROM variant_default WHERE v.outer.answer::INTEGER IS NULL +-- +ok +== +DROP VIEW variant_default +-- +ok +== +COPY (SELECT range AS id, {'email': 'e' || range, 'phone': 'p' || range} AS customer FROM range(3)) TO '{TEMP_DIR}/extract_missing_old.parquet' (FIELD_IDS {id: 1, customer: {__duckdb_field_id: 2, email: 3, phone: 4}}) +-- +ok +== +COPY (SELECT range AS id, {'email': 'e' || range, 'phone': 'p' || range, 'country': 'DE'} AS customer FROM range(3, 6)) TO '{TEMP_DIR}/extract_missing_new.parquet' (FIELD_IDS {id: 1, customer: {__duckdb_field_id: 2, email: 3, phone: 4, country: 5}}) +-- +ok +== +COPY (SELECT range AS id, {'phone': 'p' || range, 'email': 'e' || range} AS customer FROM range(6, 9)) TO '{TEMP_DIR}/extract_missing_swapped.parquet' (FIELD_IDS {id: 1, customer: {__duckdb_field_id: 2, phone: 4, email: 3}}) +-- +ok +== +SELECT id, customer.email, customer.country FROM read_parquet(['{TEMP_DIR}/extract_missing_old.parquet', '{TEMP_DIR}/extract_missing_new.parquet', '{TEMP_DIR}/extract_missing_swapped.parquet'], schema := MAP { + 1: {name: 'id', type: 'BIGINT', default_value: NULL}, + 2: {name: 'customer', type: 'STRUCT(email VARCHAR, phone VARCHAR, country VARCHAR)', default_value: NULL} +}) ORDER BY id +-- +ok +== +SELECT count(customer.country) FROM read_parquet(['{TEMP_DIR}/extract_missing_old.parquet', '{TEMP_DIR}/extract_missing_new.parquet'], schema := MAP { + 1: {name: 'id', type: 'BIGINT', default_value: NULL}, + 2: {name: 'customer', type: 'STRUCT(email VARCHAR, phone VARCHAR, country VARCHAR)', default_value: NULL} +}) WHERE customer.email <> 'e4' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_nested_default.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_nested_default.test new file mode 100644 index 00000000..4a109055 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_nested_default.test @@ -0,0 +1,87 @@ +# source: test/sql/copy/parquet/parquet_schema_pushdown_extract_nested_default.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT * FROM (VALUES (1, {'x': 1}), (2, {'x': 2})) t(id, s)) TO '{TEMP_DIR}/extract_nested_default.parquet' (FIELD_IDS {id: 1, s: {__duckdb_field_id: 2, x: 3}}) +-- +ok +== +COPY (SELECT * FROM (VALUES (1, {'x': 1}), (2, NULL)) t(id, s)) TO '{TEMP_DIR}/extract_nested_default_null_parent.parquet' (FIELD_IDS {id: 1, s: {__duckdb_field_id: 2, x: 3}}) +-- +ok +== +SELECT id, s.a.b FROM read_parquet('{TEMP_DIR}/extract_nested_default.parquet', schema := MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL, children: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER, a STRUCT(b INTEGER))', default_value: NULL, children: MAP { + 3: {name: 'x', type: 'INTEGER', default_value: NULL, children: NULL}, + 4: {name: 'a', type: 'STRUCT(b INTEGER)', default_value: NULL, children: MAP { + 5: {name: 'b', type: 'INTEGER', default_value: NULL, children: NULL}}}}} +}) ORDER BY id +-- +ok +== +SELECT count(*) FROM read_parquet('{TEMP_DIR}/extract_nested_default.parquet', schema := MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL, children: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER, a STRUCT(b INTEGER))', default_value: NULL, children: MAP { + 3: {name: 'x', type: 'INTEGER', default_value: NULL, children: NULL}, + 4: {name: 'a', type: 'STRUCT(b INTEGER)', default_value: NULL, children: MAP { + 5: {name: 'b', type: 'INTEGER', default_value: NULL, children: NULL}}}}} +}) WHERE s.a.b = 1 +-- +ok +== +CREATE VIEW mapped AS +SELECT * FROM read_parquet('{TEMP_DIR}/extract_nested_default_null_parent.parquet', schema := MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL, children: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER, a STRUCT(b INTEGER))', default_value: NULL, children: MAP { + 3: {name: 'x', type: 'INTEGER', default_value: NULL, children: NULL}, + 4: {name: 'a', type: 'STRUCT(b INTEGER)', default_value: {'b': 7}, children: MAP { + 5: {name: 'b', type: 'INTEGER', default_value: NULL, children: NULL}}}}} +}) +-- +ok +== +SELECT id, s.a, s.a.b FROM mapped ORDER BY id +-- +ok +== +SELECT id, s.a.b::VARCHAR FROM mapped WHERE s.a.b::VARCHAR = '7' +-- +ok +== +SELECT id FROM mapped WHERE s.a.b IS NULL +-- +ok +== +SELECT id FROM mapped WHERE s.a.b = 7 AND s.x = 1 +-- +ok +== +SELECT id FROM mapped WHERE id = 2 OR s.a.b::VARCHAR = '7' ORDER BY id +-- +ok +== +COPY (SELECT * FROM (VALUES (1, {'x': 1.6::DOUBLE}), (2, NULL), (3, {'x': 2.4::DOUBLE})) t(id, s)) +TO '{TEST_DIR}/extract_numeric_cast.parquet' (FIELD_IDS {id: 1, s: {__duckdb_field_id: 2, x: 3}}) +-- +ok +== +CREATE VIEW explicit_children AS +FROM read_parquet('{TEST_DIR}/extract_numeric_cast.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL, children: NULL}, + 2: {name: 's', type: 'STRUCT(x INTEGER)', default_value: NULL, children: MAP { + 3: {name: 'x', type: 'INTEGER', default_value: NULL} + }} +}) +-- +ok +== +SELECT id, s.x::VARCHAR FROM explicit_children ORDER BY id +-- +ok +== +SELECT id FROM explicit_children WHERE s.x::VARCHAR = '2' ORDER BY id +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_types.test b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_types.test new file mode 100644 index 00000000..c7b177c4 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_schema_pushdown_extract_types.test @@ -0,0 +1,127 @@ +# source: test/sql/copy/parquet/parquet_schema_pushdown_extract_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY ( + SELECT * FROM (VALUES + (1, {'n': {'a': 10, 'b': 20}, 'x': 1.6::DOUBLE, 'empty': NULL}), + (2, NULL), + (3, {'n': NULL, 'x': 2.4::DOUBLE, 'empty': NULL}) + ) t(id, s) +) TO '{TEMP_DIR}/extract_schema_types.parquet' (FIELD_IDS {id: 1, s: 2}) +-- +ok +== +CREATE VIEW mapped AS FROM read_parquet('{TEMP_DIR}/extract_schema_types.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(n STRUCT(b INTEGER, a INTEGER), x INTEGER, empty STRUCT(k INTEGER))', default_value: NULL} +}) +-- +ok +== +SELECT id, s.n::VARCHAR FROM mapped ORDER BY id +-- +ok +== +SELECT id FROM mapped WHERE s.n::VARCHAR = '{''b'': 20, ''a'': 10}' +-- +ok +== +SELECT id, s.x::VARCHAR FROM mapped ORDER BY id +-- +ok +== +SELECT id FROM mapped WHERE s.x::VARCHAR = '2' ORDER BY id +-- +ok +== +SELECT id, s.empty.k::VARCHAR FROM mapped ORDER BY id +-- +ok +== +SELECT count(*) FROM mapped WHERE s.empty.k::VARCHAR IS NULL +-- +ok +== +SELECT count(*) FROM mapped WHERE s.empty.k = 7 +-- +ok +== +CREATE VIEW mixed_case AS FROM read_parquet('{TEMP_DIR}/extract_schema_types.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(N STRUCT(B INTEGER, A INTEGER), X DOUBLE)', default_value: NULL} +}) +-- +ok +== +SELECT id, s.N.B, s.N.A FROM mixed_case ORDER BY id +-- +ok +== +SELECT id FROM mixed_case WHERE s.N.B = 20 +-- +ok +== +CREATE VIEW as_variant AS FROM read_parquet('{TEMP_DIR}/extract_schema_types.parquet', schema = MAP { + 1: {name: 'id', type: 'INTEGER', default_value: NULL}, + 2: {name: 's', type: 'STRUCT(n VARIANT)', default_value: NULL} +}) +-- +ok +== +SELECT id, s.n.a::INTEGER FROM as_variant ORDER BY id +-- +ok +== +SELECT id FROM as_variant WHERE s.n.a::INTEGER = 10 +-- +ok +== +DROP VIEW as_variant +-- +ok +== +COPY ( + SELECT * FROM (VALUES (1, {'n': '{a: 42}'}), (2, NULL), (3, {'n': NULL})) t(id, s) +) TO '{TEMP_DIR}/extract_text_struct.parquet' +-- +ok +== +CREATE VIEW from_text AS FROM read_parquet('{TEMP_DIR}/extract_text_struct.parquet', schema = MAP { + 'id': {name: 'id', type: 'INTEGER', default_value: NULL}, + 's': {name: 's', type: 'STRUCT(n STRUCT(a INTEGER))', default_value: NULL} +}) +-- +ok +== +SELECT id, s.n.a FROM from_text ORDER BY id +-- +ok +== +COPY (SELECT 'not a struct' AS s) TO '{TEMP_DIR}/extract_invalid_text.parquet' +-- +ok +== +SELECT s.a FROM read_parquet('{TEMP_DIR}/extract_invalid_text.parquet', schema = MAP { + 's': {name: 's', type: 'STRUCT(a INTEGER)', default_value: NULL} +}) +-- +ok +== +SELECT id FROM from_text WHERE s.n.a = 42 +-- +ok +== +COPY (SELECT id, s.n AS s FROM '{TEMP_DIR}/extract_text_struct.parquet') +TO '{TEMP_DIR}/extract_text_root.parquet' +-- +ok +== +SELECT id, s.a FROM read_parquet('{TEMP_DIR}/extract_text_root.parquet', schema = MAP { + 'id': {name: 'id', type: 'INTEGER', default_value: NULL}, + 's': {name: 's', type: 'STRUCT(a INTEGER)', default_value: NULL} +}) ORDER BY id +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_serialize_pruned_file_list.test b/parser/testdata/corpus/sql/copy/parquet/parquet_serialize_pruned_file_list.test index 9892c60b..9cc04c28 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_serialize_pruned_file_list.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_serialize_pruned_file_list.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_serialize_pruned_file_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 AS id, 7 AS part) TO '{TEST_DIR}/prune_all' (FORMAT parquet, PARTITION_BY (part)) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_short_decompress.test b/parser/testdata/corpus/sql/copy/parquet/parquet_short_decompress.test new file mode 100644 index 00000000..c507e591 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_short_decompress.test @@ -0,0 +1,13 @@ +# source: test/sql/copy/parquet/parquet_short_decompress.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*), sum(i) FROM read_parquet('{DATA_DIR}/parquet-testing/gzip_short_page.parquet') +-- +ok +== +SELECT count(*), sum(i) FROM read_parquet('{DATA_DIR}/parquet-testing/brotli_short_page.parquet') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_shredding_unsupported_types.test b/parser/testdata/corpus/sql/copy/parquet/parquet_shredding_unsupported_types.test index a71923e2..2a413127 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_shredding_unsupported_types.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_shredding_unsupported_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_shredding_unsupported_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1::VARIANT AS v) TO '__TEST_DIR__/shred_bit.parquet' (SHREDDING {v: 'BIT'}) diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_signed_zero.test b/parser/testdata/corpus/sql/copy/parquet/parquet_signed_zero.test index 3920dedd..5410fffd 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_signed_zero.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_signed_zero.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_signed_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE signed_zero AS diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_silly.test b/parser/testdata/corpus/sql/copy/parquet/parquet_silly.test index 9242e4a4..767a94ec 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_silly.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_silly.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_silly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select "önë", "C1", "🦆" from parquet_scan('{DATA_DIR}/parquet-testing/silly-names.parquet') order by 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_sqlnull_write.test b/parser/testdata/corpus/sql/copy/parquet/parquet_sqlnull_write.test index 8fbe20d5..cd3a7f24 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_sqlnull_write.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_sqlnull_write.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_sqlnull_write.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT *, typeof(val) FROM '{DATA_DIR}/parquet-testing/null_type_column.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_stats.test b/parser/testdata/corpus/sql/copy/parquet/parquet_stats.test index 40800cf5..35c57a31 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select stats_min, stats_max, stats_min_value, stats_max_value from parquet_metadata('{DATA_DIR}/parquet-testing/boolean_stats.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_string_stats.test b/parser/testdata/corpus/sql/copy/parquet/parquet_string_stats.test index 455acf17..91704792 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_string_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_string_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_string_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select s.min, s.max from (select stats(l_comment) s from 'data/parquet-testing/lineitem-top10000.gzip.parquet') LIMIT 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_timestamptz_ns_as_timestamp.test b/parser/testdata/corpus/sql/copy/parquet/parquet_timestamptz_ns_as_timestamp.test new file mode 100644 index 00000000..2ae8e56a --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_timestamptz_ns_as_timestamp.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/parquet/parquet_timestamptz_ns_as_timestamp.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT CAST('2024-01-15 12:34:56.123456789+00' AS TIMESTAMPTZ_NS) AS ts UNION ALL SELECT NULL) TO '{TEST_DIR}/timestamptz_ns.parquet' +-- +ok +== +SELECT logical_type LIKE '%isAdjustedToUTC=1%', logical_type LIKE '%NANOS%' FROM parquet_schema('{TEST_DIR}/timestamptz_ns.parquet') WHERE name = 'ts' +-- +ok +== +SELECT typeof(ts) FROM read_parquet('{TEST_DIR}/timestamptz_ns.parquet') LIMIT 1 +-- +ok +== +CREATE TABLE t (ts TIMESTAMP) +-- +ok +== +COPY t FROM '{TEST_DIR}/timestamptz_ns.parquet' +-- +ok +== +SELECT max(ts), count(ts), count(*) FROM t +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_union_by_name.test b/parser/testdata/corpus/sql/copy/parquet/parquet_union_by_name.test index 0d8ed979..a67fafdd 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE ubn1(a BIGINT); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_variant_leaf_types.test b/parser/testdata/corpus/sql/copy/parquet/parquet_variant_leaf_types.test index 23eae4de..1815f93c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_variant_leaf_types.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_variant_leaf_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_variant_leaf_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet('data/parquet-testing/broken/variant_value_int96.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_columns.test b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_columns.test index 8f616cc7..07ef3dc2 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_columns.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_columns.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_virtual_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT file_index FROM '{DATA_DIR}/parquet-testing/glob/t1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_group_number.test b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_group_number.test index ba2dd3ba..90dba8eb 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_group_number.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_group_number.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_virtual_file_row_group_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select i, i * 2 as j from range(10000) t(i)) to '{TEST_DIR}/rg.parquet' (format parquet, ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_number.test b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_number.test index 59fc87eb..b85c0e1d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_number.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_virtual_file_row_number.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_virtual_file_row_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select file_row_number from '{DATA_DIR}/parquet-testing/glob/t1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_write_codecs.test b/parser/testdata/corpus/sql/copy/parquet/parquet_write_codecs.test index 50f4f9e3..7aa15c4d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_write_codecs.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_write_codecs.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_write_codecs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42, 'hello') TO '{TEMP_DIR}/{codec}.parquet' (FORMAT 'parquet', CODEC '{codec}'); diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_write_repeated_lists.test b/parser/testdata/corpus/sql/copy/parquet/parquet_write_repeated_lists.test index f59e8182..3091f05b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_write_repeated_lists.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_write_repeated_lists.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_write_repeated_lists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_wrong_geometry_types.test b/parser/testdata/corpus/sql/copy/parquet/parquet_wrong_geometry_types.test new file mode 100644 index 00000000..148d0ebf --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_wrong_geometry_types.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/parquet/parquet_wrong_geometry_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT st_astext(g) s, count(*) FROM (SELECT g, i FROM 'data/parquet-testing/broken/geoparquet_wrong_geometry_types.parquet' ORDER BY i DESC) GROUP BY ALL ORDER BY 1; +-- +ok +== +SELECT st_astext(g) s, count(*) FROM 'data/parquet-testing/broken/geoparquet_wrong_geometry_types.parquet' GROUP BY ALL ORDER BY 1; +-- +ok +== +CREATE TABLE points AS SELECT ('POINT(' || i || ' ' || -i || ')')::GEOMETRY g, i FROM range(3000) t(i); +-- +ok +== +SELECT count(*), min(s), max(s), count(DISTINCT s) FROM (SELECT st_astext(g) s FROM (SELECT g, i FROM points ORDER BY i DESC)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/parquet_zstd.test b/parser/testdata/corpus/sql/copy/parquet/parquet_zstd.test index 8cc5a60b..d4591060 100644 --- a/parser/testdata/corpus/sql/copy/parquet/parquet_zstd.test +++ b/parser/testdata/corpus/sql/copy/parquet/parquet_zstd.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/parquet_zstd.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/zstd.parquet') order by 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/partition_by_bind_issues.test b/parser/testdata/corpus/sql/copy/parquet/partition_by_bind_issues.test index 35681d96..dd802461 100644 --- a/parser/testdata/corpus/sql/copy/parquet/partition_by_bind_issues.test +++ b/parser/testdata/corpus/sql/copy/parquet/partition_by_bind_issues.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/partition_by_bind_issues.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_active_jobs_hang.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_active_jobs_hang.test index eafd0304..f4bdf1c0 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_active_jobs_hang.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_active_jobs_hang.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_active_jobs_hang.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i AS id FROM range(60000) t(i)) TO '{TEST_DIR}/hang.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_budget_growth.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_budget_growth.test new file mode 100644 index 00000000..ee607039 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_budget_growth.test @@ -0,0 +1,41 @@ +# source: test/sql/copy/parquet/read_ahead/readahead_budget_growth.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET threads=16 +-- +ok +== +SET memory_limit='8GB' +-- +ok +== +COPY (SELECT range AS b FROM range(1000)) TO '{TEST_DIR}/budget_growth_{i}.parquet' (FORMAT parquet) +-- +ok +== +SET GLOBAL debug_local_file_system_delay_ms=5 +-- +ok +== +CALL enable_logging('ReadAheadBudget') +-- +ok +== +SELECT sum(b) FROM read_parquet('{TEST_DIR}/budget_growth_*.parquet') +-- +ok +== +SET GLOBAL debug_local_file_system_delay_ms=0 +-- +ok +== +SELECT max(budget_bytes) > 4 * 16 * 8 * 1024 * 1024 FROM duckdb_logs_parsed('ReadAheadBudget') +-- +ok +== +SELECT bool_and(pending_bytes <= budget_bytes + 16 * 16 * 1024 * 1024) FROM duckdb_logs_parsed('ReadAheadBudget') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_learning.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_learning.test index e1d5367c..3af3664b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_learning.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_learning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_depth_learning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET read_ahead_depth=4 diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_setting.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_setting.test index a0d31141..6770d48e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_setting.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_depth_setting.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_depth_setting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET read_ahead_depth=-1 diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning.test index 195264ec..114a4c49 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_dynamic_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET async_threads=1 diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning_nulls_first.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning_nulls_first.test new file mode 100644 index 00000000..f5b467a2 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_dynamic_pruning_nulls_first.test @@ -0,0 +1,18 @@ +# source: test/sql/copy/parquet/read_ahead/readahead_dynamic_pruning_nulls_first.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT i FROM range(16384) t(i)) TO '{TEST_DIR}/recheck_nulls_first.parquet' (ROW_GROUP_SIZE 2048) +-- +ok +== +SELECT i FROM read_parquet('{TEST_DIR}/recheck_nulls_first.parquet') ORDER BY i NULLS FIRST LIMIT 3 +-- +ok +== +SELECT count(*) FROM duckdb_logs_parsed('ParquetPrefetch') +WHERE file_path LIKE '%recheck_nulls_first.parquet' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit.test new file mode 100644 index 00000000..1a37e7f8 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit.test @@ -0,0 +1,39 @@ +# source: test/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET async_threads=72 +-- +ok +== +COPY (SELECT i % 400 AS p, i AS v FROM range(400000) t(i)) TO '{TEST_DIR}/readahead_fd_limit' (FORMAT parquet, PARTITION_BY (p)) +-- +ok +== +SET debug_file_descriptor_limit=256 +-- +ok +== +SELECT count(*), sum(v) FROM read_parquet('{TEST_DIR}/readahead_fd_limit/**/*.parquet') +-- +ok +== +WITH events AS ( + SELECT timestamp, CASE op WHEN 'OPEN' THEN 1 ELSE -1 END AS delta + FROM duckdb_logs_parsed('FileSystem') + WHERE op IN ('OPEN', 'CLOSE') AND path LIKE '%readahead_fd_limit%' +) +SELECT max(open_handles) < 128 +FROM (SELECT sum(delta) OVER (ORDER BY timestamp, delta ROWS UNBOUNDED PRECEDING) AS open_handles FROM events) +-- +ok +== +SET debug_file_descriptor_limit=18446744073709551615 +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/readahead_fd_limit/**/*.parquet') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit_threads.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit_threads.test new file mode 100644 index 00000000..0f59e0a7 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit_threads.test @@ -0,0 +1,48 @@ +# source: test/sql/copy/parquet/read_ahead/readahead_file_descriptor_limit_threads.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO peak_open_handles() AS TABLE +WITH events AS ( + SELECT timestamp, CASE op WHEN 'OPEN' THEN 1 ELSE -1 END AS delta + FROM duckdb_logs_parsed('FileSystem') + WHERE op IN ('OPEN', 'CLOSE') AND path LIKE '%readahead_fd_threads%' +) +SELECT max(open_handles) AS peak +FROM (SELECT sum(delta) OVER (ORDER BY timestamp, delta DESC ROWS UNBOUNDED PRECEDING) AS open_handles FROM events) +-- +ok +== +SET threads=32 +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/readahead_fd_threads_a/**/*.parquet') +-- +ok +== +SELECT peak < 128 FROM peak_open_handles() +-- +ok +== +SELECT count(*) FROM ( + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_a/**/*.parquet') + UNION ALL + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_b/**/*.parquet') +) +-- +ok +== +SELECT count(*) FROM ( + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_a/**/*.parquet') + UNION ALL + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_b/**/*.parquet') + UNION ALL + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_c/**/*.parquet') + UNION ALL + SELECT v FROM read_parquet('{TEST_DIR}/readahead_fd_threads_d/**/*.parquet') +) +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_io_errors.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_io_errors.test index 0f67b5a4..912cfc30 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_io_errors.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_io_errors.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_io_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET read_ahead_depth=8 diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_limit_slot_leak_hang.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_limit_slot_leak_hang.test index 527c7319..8592c4ad 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_limit_slot_leak_hang.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_limit_slot_leak_hang.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_limit_slot_leak_hang.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i FROM range(120000)) TO '{TEST_DIR}/limit_slot_leak.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_memory_limit.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_memory_limit.test index d2f72530..067dcc9c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_memory_limit.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_memory_limit.test @@ -1,13 +1,9 @@ # source: test/sql/copy/parquet/read_ahead/readahead_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -COPY (SELECT md5(i::VARCHAR)::UUID::VARCHAR AS v, md5((-i)::VARCHAR)::UUID AS u FROM range(1000000) t(i)) TO '{TEST_DIR}/readahead_memory_limit.parquet' --- -ok -== -SET threads=16 +COPY (SELECT md5(i::VARCHAR)::UUID::VARCHAR AS v, md5((-i)::VARCHAR)::UUID AS u FROM range(2000000) t(i)) TO '{TEST_DIR}/readahead_memory_limit.parquet' (ROW_GROUP_SIZE 16384) -- ok == @@ -15,11 +11,11 @@ SET memory_limit='100MB' -- ok == -COPY '{TEST_DIR}/readahead_memory_limit.parquet' TO '{TEST_DIR}/readahead_memory_limit_off.parquet' +COPY '{TEST_DIR}/readahead_memory_limit.parquet' TO '{TEST_DIR}/readahead_memory_limit_off.parquet' (ROW_GROUP_SIZE 16384) -- ok == -COPY '{TEST_DIR}/readahead_memory_limit.parquet' TO '{TEST_DIR}/readahead_memory_limit_auto.parquet' +COPY '{TEST_DIR}/readahead_memory_limit.parquet' TO '{TEST_DIR}/readahead_memory_limit_auto.parquet' (ROW_GROUP_SIZE 16384) -- ok == diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_open_error.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_open_error.test index e3d8125f..87023142 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_open_error.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_open_error.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_open_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS b FROM range(1000)) TO '{TEST_DIR}/oe_{i}.parquet' (FORMAT parquet) @@ -23,7 +23,3 @@ SELECT count(*) FROM read_parquet('{TEST_DIR}/oe_*.parquet') -- ok == -SET GLOBAL debug_local_file_system_delay_ms=0 --- -ok -== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_order_preservation.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_order_preservation.test index abcfef87..f5fc1915 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_order_preservation.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_order_preservation.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_order_preservation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i FROM range(0, 100000)) TO '{TEST_DIR}/ord_0.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_parked_job_progress.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_parked_job_progress.test index 494230a7..5080ec2e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_parked_job_progress.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_parked_job_progress.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_parked_job_progress.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i AS x FROM range(200000) t(i)) TO '{TEST_DIR}/parked_progress_a.parquet' (ROW_GROUP_SIZE 50000) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_starved_consumers.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_starved_consumers.test index 3d878a31..10eeb43b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_starved_consumers.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_starved_consumers.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_starved_consumers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i FROM range(200000)) TO '{TEST_DIR}/starved.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_waiting_consumers.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_waiting_consumers.test index acdf9fc3..73e653f9 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_waiting_consumers.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/readahead_waiting_consumers.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_ahead/readahead_waiting_consumers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT range AS i, range % 40 AS p FROM range(400000)) TO '{TEST_DIR}/waiting_consumers' (FORMAT parquet, PARTITION_BY (p)) diff --git a/parser/testdata/corpus/sql/copy/parquet/read_ahead/recheck_prefetch_log.test b/parser/testdata/corpus/sql/copy/parquet/read_ahead/recheck_prefetch_log.test new file mode 100644 index 00000000..73ae978e --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/read_ahead/recheck_prefetch_log.test @@ -0,0 +1,35 @@ +# source: test/sql/copy/parquet/read_ahead/recheck_prefetch_log.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET read_ahead_depth=2 +-- +ok +== +SET disable_parquet_prefetching=false +-- +ok +== +COPY ( + SELECT CASE + WHEN r < 2048 THEN r + WHEN r < 4096 THEN r + 100000 + WHEN r < 6144 THEN r - 8192 + ELSE r - 14336 + END AS i + FROM range(8192) t(r) + ORDER BY r +) TO '{TEST_DIR}/recheck_reuse.parquet' (FORMAT parquet, ROW_GROUP_SIZE 2048) +-- +ok +== +SELECT i FROM read_parquet('{TEST_DIR}/recheck_reuse.parquet', prefetch_strategy='whole_group') ORDER BY i LIMIT 3 +-- +ok +== +SELECT row_group_id, len(prefetch_groups) FROM duckdb_logs_parsed('ParquetPrefetch') +WHERE file_path LIKE '%recheck_reuse.parquet' ORDER BY row_group_id +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/read_parquet_parameter.test b/parser/testdata/corpus/sql/copy/parquet/read_parquet_parameter.test index ffca2a48..2c530643 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_parquet_parameter.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_parquet_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_parquet_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT * FROM parquet_scan($1) ORDER BY 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file.test b/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file.test index 4b4415d2..5bae9db7 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_single_parquet_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM read_single_parquet_file('data/parquet-testing/lineitem-top10000.gzip.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file_late_materialization.test b/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file_late_materialization.test index 64ede8c6..d782e455 100644 --- a/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file_late_materialization.test +++ b/parser/testdata/corpus/sql/copy/parquet/read_single_parquet_file_late_materialization.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/read_single_parquet_file_late_materialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i AS a, i * 2 AS b, 'v' || i AS c FROM range(5000) t(i)) TO '__TEST_DIR__/single_late_mat.parquet' (FORMAT parquet, ROW_GROUP_SIZE 1000); diff --git a/parser/testdata/corpus/sql/copy/parquet/recursive_parquet_union_by_name.test b/parser/testdata/corpus/sql/copy/parquet/recursive_parquet_union_by_name.test index edd1c048..30a83e67 100644 --- a/parser/testdata/corpus/sql/copy/parquet/recursive_parquet_union_by_name.test +++ b/parser/testdata/corpus/sql/copy/parquet/recursive_parquet_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/recursive_parquet_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view r AS from read_parquet('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet', hive_partitioning=1, union_by_name=1) diff --git a/parser/testdata/corpus/sql/copy/parquet/replacement_scan_custom_extension.test b/parser/testdata/corpus/sql/copy/parquet/replacement_scan_custom_extension.test index 7c78cb32..95ee458e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/replacement_scan_custom_extension.test +++ b/parser/testdata/corpus/sql/copy/parquet/replacement_scan_custom_extension.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/replacement_scan_custom_extension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 a) to '{TEST_DIR}/lists.my_file_extension' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/rle_bool.test b/parser/testdata/corpus/sql/copy/parquet/rle_bool.test index de268806..2db69137 100644 --- a/parser/testdata/corpus/sql/copy/parquet/rle_bool.test +++ b/parser/testdata/corpus/sql/copy/parquet/rle_bool.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/rle_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/arrow/datapage_v2.snappy.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/shredded_variant_stats.test b/parser/testdata/corpus/sql/copy/parquet/shredded_variant_stats.test index 4daf41ac..871c89d6 100644 --- a/parser/testdata/corpus/sql/copy/parquet/shredded_variant_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/shredded_variant_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/shredded_variant_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * from (VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/spark_v2.test b/parser/testdata/corpus/sql/copy/parquet/spark_v2.test index e18f2886..9bde4a05 100644 --- a/parser/testdata/corpus/sql/copy/parquet/spark_v2.test +++ b/parser/testdata/corpus/sql/copy/parquet/spark_v2.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/spark_v2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM '{DATA_DIR}/parquet-testing/spark-store.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/struct_column_reader_skip.test b/parser/testdata/corpus/sql/copy/parquet/struct_column_reader_skip.test index 344b6abd..cfbcb80d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/struct_column_reader_skip.test +++ b/parser/testdata/corpus/sql/copy/parquet/struct_column_reader_skip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/struct_column_reader_skip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT my_map['A'], * FROM parquet_scan('{DATA_DIR}/parquet-testing/struct_skip_test.parquet') where filter == '0' diff --git a/parser/testdata/corpus/sql/copy/parquet/struct_skip_pushdown_null.test b/parser/testdata/corpus/sql/copy/parquet/struct_skip_pushdown_null.test index f2f1a684..88930070 100644 --- a/parser/testdata/corpus/sql/copy/parquet/struct_skip_pushdown_null.test +++ b/parser/testdata/corpus/sql/copy/parquet/struct_skip_pushdown_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/struct_skip_pushdown_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/test_aws_files.test b/parser/testdata/corpus/sql/copy/parquet/test_aws_files.test index 03744f00..82d6da0c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_aws_files.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_aws_files.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_aws_files.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/aws1.snappy.parquet') limit 100 diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parallel_many_row_groups.test b/parser/testdata/corpus/sql/copy/parquet/test_parallel_many_row_groups.test index 437fd3cf..fa880ce5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parallel_many_row_groups.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parallel_many_row_groups.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parallel_many_row_groups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*), MIN(i), MAX(i), SUM(i) FROM parquet_scan('{DATA_DIR}/parquet-testing/manyrowgroups.parquet') t(i) diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal.test index 46848f36..603a142e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/fixed_length_decimal.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal_gt38.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal_gt38.test index 8af95309..0b602697 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal_gt38.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_decimal_gt38.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_decimal_gt38.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(x) FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/fixed_length_decimal_gt38.parquet') LIMIT 1 diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_duplicate_columns.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_duplicate_columns.test index e5b1ee88..2518c41f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_duplicate_columns.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_duplicate_columns.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_duplicate_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 as a, 2 as a, 3 as a) TO '{TEST_DIR}/dupe_cols.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_filter_pushdown.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_filter_pushdown.test index 033a471a..d976bbfa 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_filter_pushdown.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM parquet_scan('{DATA_DIR}/parquet-testing/userdata1.parquet') where id > 500 diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_gzip.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_gzip.test index c86ec608..beb480fa 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_gzip.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_gzip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_gzip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from parquet_scan('{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_nested.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_nested.test index d6ce9bc9..a62c53ea 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_nested.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_nested.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * FROM parquet_scan('{DATA_DIR}/parquet-testing/map.parquet') sq limit 3; diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_null.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_null.test index ff013b4e..6f201540 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_null.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_null.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(col1) from parquet_scan('{DATA_DIR}/parquet-testing/bug687_nulls.parquet') diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_scan.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_scan.test index b849191e..9fa30a5c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_scan.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_scan.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('does_not_exist') diff --git a/parser/testdata/corpus/sql/copy/parquet/test_parquet_stats.test b/parser/testdata/corpus/sql/copy/parquet/test_parquet_stats.test index f751fd85..bc1ea2c5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/test_parquet_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/test_parquet_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/test_parquet_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA explain_output = PHYSICAL_ONLY @@ -43,11 +43,15 @@ explain select * from parquet_scan('{DATA_DIR}/parquet-testing/timestamp-ms.parq -- ok == -explain select * from parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet') where timestampval < '2019-11-25'; +select count(*) from parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet') where timestampval < '2019-11-25'; -- ok == -explain select * from parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet') where timestampval > '2019-11-27'; +select count(*) from parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet') where timestampval > '2019-11-27'; +-- +ok +== +select count(*) from parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet') where timestampval < '2019-11-27'; -- ok == diff --git a/parser/testdata/corpus/sql/copy/parquet/timestamp_ms_stats.test b/parser/testdata/corpus/sql/copy/parquet/timestamp_ms_stats.test index 23ed0e9a..a65b87f4 100644 --- a/parser/testdata/corpus/sql/copy/parquet/timestamp_ms_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/timestamp_ms_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/timestamp_ms_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select timestamp from '{DATA_DIR}/parquet-testing/issue_5533_timestamp_ms_stats.parquet' order by 1; diff --git a/parser/testdata/corpus/sql/copy/parquet/timestamp_s.test b/parser/testdata/corpus/sql/copy/parquet/timestamp_s.test index c20895bc..516cb325 100644 --- a/parser/testdata/corpus/sql/copy/parquet/timestamp_s.test +++ b/parser/testdata/corpus/sql/copy/parquet/timestamp_s.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/timestamp_s.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (ts TIMESTAMP_S); diff --git a/parser/testdata/corpus/sql/copy/parquet/timetz_parquet.test b/parser/testdata/corpus/sql/copy/parquet/timetz_parquet.test index 9fb5958e..5356ffe0 100644 --- a/parser/testdata/corpus/sql/copy/parquet/timetz_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/timetz_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/timetz_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/parquet-testing/timetz_4byte_stats.parquet' order by 1; diff --git a/parser/testdata/corpus/sql/copy/parquet/timezone.test b/parser/testdata/corpus/sql/copy/parquet/timezone.test index 74aac758..4f67aede 100644 --- a/parser/testdata/corpus/sql/copy/parquet/timezone.test +++ b/parser/testdata/corpus/sql/copy/parquet/timezone.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/timezone.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof(TimeRecStart) from '{DATA_DIR}/parquet-testing/tz.parquet' limit 1; diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_hive_partitioning.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_hive_partitioning.test index aca761cf..55144750 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_hive_partitioning.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_hive_partitioning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_hive_partitioning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_parquet('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet', hive_partitioning=1) diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_null_nested.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_null_nested.test index 925ef986..c92fe12d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_null_nested.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_null_nested.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_null_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE null_target_struct AS STRUCT(n INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_pushdown.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_pushdown.test index 000937c2..dac7d955 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_pushdown.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 AS i, 84 AS j) TO '{TEST_DIR}/union_by_name_pushdown1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_statistics_lookup.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_statistics_lookup.test new file mode 100644 index 00000000..6dc58bc6 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_statistics_lookup.test @@ -0,0 +1,45 @@ +# source: test/sql/copy/parquet/union_by_name_statistics_lookup.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 AS a, 'x' AS b, 10 AS c) TO '{TEST_DIR}/ubn_stats_lookup_0.parquet' +-- +ok +== +COPY (SELECT 20 AS C, 'y' AS B, 2 AS A) TO '{TEST_DIR}/ubn_stats_lookup_1.parquet' +-- +ok +== +COPY (SELECT 30 AS c, 3 AS a, 'z' AS d) TO '{TEST_DIR}/ubn_stats_lookup_2.parquet' +-- +ok +== +SELECT * FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) ORDER BY a +-- +ok +== +SELECT min(a), max(a), min(b), max(b), min(c), max(c) FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) +-- +ok +== +EXPLAIN SELECT a, c FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE a >= 1 AND c <= 30 +-- +ok +== +EXPLAIN SELECT a, c FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE a > 3 +-- +ok +== +SELECT a, b, c FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE a > 1 ORDER BY a +-- +ok +== +SELECT d FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE d = 'z' +-- +ok +== +SELECT a FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE b >= 'x' ORDER BY a +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_extract_stats.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_extract_stats.test index 94590d7a..3097ff0f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_extract_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_extract_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_struct_extract_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT {'key': 'key-0', 'default': 'value'} AS status) TO '{TEST_DIR}/issue_26156_0.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_filter.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_filter.test index 7c959bf3..ae9fcc1b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_filter.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_filter.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_struct_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT {'a': 1, 'b': 2}::STRUCT(a INT, b INT) AS s, 1 AS id) TO '{TEST_DIR}/f1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_projection.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_projection.test index 530a7c23..67455720 100644 --- a/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_projection.test +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_struct_projection.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/union_by_name_struct_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT {'a': 1, 'b': 2}::STRUCT(a INT, b INT) AS s, 1 AS id) diff --git a/parser/testdata/corpus/sql/copy/parquet/union_by_name_varchar_blob.test b/parser/testdata/corpus/sql/copy/parquet/union_by_name_varchar_blob.test new file mode 100644 index 00000000..783a27f0 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/union_by_name_varchar_blob.test @@ -0,0 +1,53 @@ +# source: test/sql/copy/parquet/union_by_name_varchar_blob.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 'café' AS p, 1 AS i) TO '{TEST_DIR}/union_text.parquet'; +-- +ok +== +COPY (SELECT encode('café') AS p, 2 AS i) TO '{TEST_DIR}/union_bytes.parquet'; +-- +ok +== +COPY (SELECT 'a\x41' AS p, 3 AS i) TO '{TEST_DIR}/union_backslash.parquet'; +-- +ok +== +SELECT i, p, typeof(p) FROM read_parquet(['{TEST_DIR}/union_text.parquet', '{TEST_DIR}/union_bytes.parquet', '{TEST_DIR}/union_backslash.parquet'], union_by_name = true) ORDER BY i; +-- +ok +== +SELECT i, p = encode('café') FROM read_parquet(['{TEST_DIR}/union_text.parquet', '{TEST_DIR}/union_bytes.parquet'], union_by_name = true) ORDER BY i; +-- +ok +== +SELECT octet_length(p) FROM read_parquet(['{TEST_DIR}/union_backslash.parquet', '{TEST_DIR}/union_bytes.parquet'], union_by_name = true) ORDER BY i; +-- +ok +== +SELECT count(*) FROM read_parquet(['{TEST_DIR}/union_text.parquet', '{TEST_DIR}/union_bytes.parquet'], union_by_name = true) WHERE p = encode('café'); +-- +ok +== +COPY (SELECT * FROM (VALUES (NULL, 4), ('', 5), ('ü', 6)) t(p, i)) TO '{TEST_DIR}/union_nulls.parquet'; +-- +ok +== +SELECT i, p, octet_length(p) FROM read_parquet(['{TEST_DIR}/union_bytes.parquet', '{TEST_DIR}/union_nulls.parquet'], union_by_name = true) ORDER BY i; +-- +ok +== +CREATE TABLE blobs (p BLOB, i INTEGER); +-- +ok +== +COPY blobs FROM '{TEST_DIR}/union_text.parquet'; +-- +ok +== +SELECT p, p = encode('café') FROM blobs; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/variant_array_row_group_pruning.test b/parser/testdata/corpus/sql/copy/parquet/variant_array_row_group_pruning.test index 719a2101..0a8f5526 100644 --- a/parser/testdata/corpus/sql/copy/parquet/variant_array_row_group_pruning.test +++ b/parser/testdata/corpus/sql/copy/parquet/variant_array_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/variant_array_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/variant_binary_as_string_stats.test b/parser/testdata/corpus/sql/copy/parquet/variant_binary_as_string_stats.test new file mode 100644 index 00000000..4a3137e8 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/variant_binary_as_string_stats.test @@ -0,0 +1,21 @@ +# source: test/sql/copy/parquet/variant_binary_as_string_stats.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1::VARIANT AS i) TO '__TEST_DIR__/variant_bas.parquet' (FORMAT parquet); +-- +ok +== +SELECT i::VARCHAR FROM read_parquet('__TEST_DIR__/variant_bas.parquet', binary_as_string=true); +-- +ok +== +COPY (SELECT {'a': 1}::VARIANT AS i UNION ALL SELECT NULL) TO '__TEST_DIR__/variant_bas2.parquet' (FORMAT parquet); +-- +ok +== +SELECT i::VARCHAR FROM read_parquet('__TEST_DIR__/variant_bas2.parquet', binary_as_string=true) ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/variant_deep_nesting.test b/parser/testdata/corpus/sql/copy/parquet/variant_deep_nesting.test new file mode 100644 index 00000000..6d31d087 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/parquet/variant_deep_nesting.test @@ -0,0 +1,119 @@ +# source: test/sql/copy/parquet/variant_deep_nesting.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE levels AS +WITH RECURSIVE levels(depth, child_length, width) AS ( + SELECT 1, 1, 1 + UNION ALL + SELECT depth + 1, child_length + 2 + depth % 2 + 2 * width, + CASE WHEN child_length + 2 + depth % 2 + 2 * width < 256 THEN 1 + WHEN child_length + 2 + depth % 2 + 2 * width < 65536 THEN 2 ELSE 3 END + FROM levels WHERE depth < 40000 +) +SELECT depth, + CASE WHEN depth % 2 = 1 THEN printf('%02x0100', 2 + 4 * (width - 1)) + ELSE printf('%02x01', 3 + 4 * (width - 1)) END || + repeat('00', width) || + left(printf('%02x%02x%02x', child_length % 256, child_length // 256 % 256, child_length // 65536), 2 * width) AS header +FROM levels; +-- +ok +== +CREATE TABLE deep AS +SELECT variant_bytes_to_variant(unhex('1101000161' || string_agg(header, '' ORDER BY depth DESC) || '04')) AS v +FROM levels; +-- +ok +== +SELECT variant_typeof(v) FROM deep; +-- +ok +== +COPY deep TO '{TEST_DIR}/deep_variant.parquet'; +-- +ok +== +SELECT variant_typeof(v) FROM '{TEST_DIR}/deep_variant.parquet'; +-- +ok +== +COPY deep TO '{TEST_DIR}/deep_variant_shredded.parquet' (SHREDDING {v: 'BIGINT'}); +-- +ok +== +SELECT variant_typeof(v) FROM '{TEST_DIR}/deep_variant_shredded.parquet'; +-- +ok +== +CREATE TABLE wide AS +SELECT ('{' || string_agg('"k' || i || '": [' || i || ', "' || i || '", null, [' || i || '.5]]', ', ') || '}')::JSON::VARIANT AS v +FROM range(300) t(i); +-- +ok +== +COPY wide TO '{TEST_DIR}/wide_variant.parquet' (SHREDDING {v: 'BIGINT'}); +-- +ok +== +SELECT count(*) FILTER (WHERE name = 'typed_value'), string_agg(type, ',') FILTER (WHERE name = 'typed_value') +FROM parquet_schema('{TEST_DIR}/wide_variant.parquet'); +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM wide EXCEPT SELECT v::VARCHAR FROM '{TEST_DIR}/wide_variant.parquet'); +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM '{TEST_DIR}/wide_variant.parquet' EXCEPT SELECT v::VARCHAR FROM wide); +-- +ok +== +COPY wide TO '{TEST_DIR}/wide_variant_default.parquet'; +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM wide EXCEPT SELECT v::VARCHAR FROM '{TEST_DIR}/wide_variant_default.parquet'); +-- +ok +== +CREATE TABLE mixed AS +SELECT i, ('{"a": ' || (-1 - i) || ', "e": "excess ' || i || '", "n": ' || repeat('[{"a":', 50) || '{"x": ' || i || ', "y": "text ' || i || '", "z": [1.5, null, true, false], "w": {"b": [], "c": {}}}' || repeat('}]', 50) || '}')::JSON::VARIANT AS v +FROM range(3) t(i); +-- +ok +== +COPY mixed TO '{TEST_DIR}/mixed_variant.parquet'; +-- +ok +== +SELECT count(*), count(DISTINCT v::VARCHAR) FROM '{TEST_DIR}/mixed_variant.parquet'; +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM mixed EXCEPT SELECT v::VARCHAR FROM '{TEST_DIR}/mixed_variant.parquet'); +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM '{TEST_DIR}/mixed_variant.parquet' EXCEPT SELECT v::VARCHAR FROM mixed); +-- +ok +== +COPY mixed TO '{TEST_DIR}/mixed_variant_shredded.parquet' (SHREDDING {v: 'STRUCT(a BIGINT)'}); +-- +ok +== +SELECT path_in_schema, stats_null_count FROM parquet_metadata('{TEST_DIR}/mixed_variant_shredded.parquet') +WHERE path_in_schema LIKE '%, a, %' OR path_in_schema = 'v, value' ORDER BY 1; +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM mixed EXCEPT SELECT v::VARCHAR FROM '{TEST_DIR}/mixed_variant_shredded.parquet'); +-- +ok +== +SELECT count(*) FROM (SELECT v::VARCHAR FROM '{TEST_DIR}/mixed_variant_shredded.parquet' EXCEPT SELECT v::VARCHAR FROM mixed); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/variant_shredded_decimal_scale.test b/parser/testdata/corpus/sql/copy/parquet/variant_shredded_decimal_scale.test index b2b2e9c8..959ead73 100644 --- a/parser/testdata/corpus/sql/copy/parquet/variant_shredded_decimal_scale.test +++ b/parser/testdata/corpus/sql/copy/parquet/variant_shredded_decimal_scale.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/variant_shredded_decimal_scale.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT (i % 10)::DECIMAL(4,1)::VARIANT AS v FROM range(122880) r(i)) TO '__TEST_DIR__/variant_decimal_scale_1.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_dictionary_index_width.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_dictionary_index_width.test index 433d0e51..d2df7fb7 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_dictionary_index_width.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_dictionary_index_width.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_dictionary_index_width.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_empty_struct.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_empty_struct.test index 4d4add27..b03ea284 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_empty_struct.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_empty_struct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_empty_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT empty_struct FROM test_all_types()) TO '{TEST_DIR}/empty_struct.parquet' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_encoding_stats.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_encoding_stats.test index 90f93b68..0edd372a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_encoding_stats.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_encoding_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_encoding_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings AS SELECT (i % 3)::VARCHAR AS s FROM range(1000) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_test_all_types.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_test_all_types.test index 59a1c381..ae9d03a6 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_test_all_types.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_test_all_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_test_all_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types AS diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_metadata.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_metadata.test index df074f0e..3fd561ee 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_metadata.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_timetz_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_roundtrip.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_roundtrip.test index 6b248ce5..66565f69 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_roundtrip.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_timetz_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_timetz_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_union_list.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_union_list.test index 3f976825..1caf0d3d 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_union_list.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_union_list.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_union_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE origin (id INT, ufield UNION(val VARCHAR[], omitted BOOLEAN)); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_booleans.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_booleans.test index d25c5d2e..a077ed64 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_booleans.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_booleans.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_booleans.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bools(b BOOL) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_compression_level.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_compression_level.test index 1aaa5213..347bd537 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_compression_level.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_compression_level.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_compression_level.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS FROM range(100) t(i) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_data_page_size.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_data_page_size.test index 86ba42de..5cd418de 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_data_page_size.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_data_page_size.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_data_page_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select range i, 'val_' || (range % 400) s from range(100_000)) to '{TEST_DIR}/small_pages.parquet' (format parquet, data_page_size_limit 4096, compression uncompressed); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_date.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_date.test index 73a24a72..cae8edca 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_date.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_date.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(d DATE) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_decimals.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_decimals.test index ea06a293..5f2e144a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_decimals.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_decimals.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_decimals.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimals( diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_enums.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_enums.test index 88f9b451..34940da1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_enums.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_enums.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_enums.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM ('joy', 'ok', 'happy'); @@ -66,3 +66,30 @@ SELECT stats_min, stats_max FROM parquet_metadata('{TEST_DIR}/enum_stats_single_ -- ok == +CREATE TYPE five AS ENUM ('v1', 'v2', 'v3', 'v4', 'v5'); +-- +ok +== +COPY (SELECT (CASE WHEN i % 2 = 0 THEN 'v1' ELSE 'v2' END)::five AS e FROM range(1000) t(i)) +TO '{TEST_DIR}/enum_distinct_count.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT stats_distinct_count FROM parquet_metadata('{TEST_DIR}/enum_distinct_count.parquet') +-- +ok +== +COPY (SELECT (CASE WHEN i < 50000 THEN 'v1' WHEN i < 90000 THEN 'v2' WHEN i < 110000 THEN NULL WHEN i < 150000 THEN 'v3' ELSE 'v4' END)::five AS e FROM range(200000) t(i)) +TO '{TEST_DIR}/enum_distinct_count_rg.parquet' (FORMAT PARQUET, ROW_GROUP_SIZE 100000); +-- +ok +== +SELECT row_group_id, stats_distinct_count, stats_min, stats_max +FROM parquet_metadata('{TEST_DIR}/enum_distinct_count_rg.parquet') ORDER BY row_group_id +-- +ok +== +SELECT e, count(*) FROM '{TEST_DIR}/enum_distinct_count_rg.parquet' GROUP BY e ORDER BY e +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_field_id.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_field_id.test index 5bc7cd28..e2a1330e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_field_id.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_field_id.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_field_id.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select range as i from range(10)) to '{TEST_DIR}/my.parquet' (FIELD_IDS) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_home_directory.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_home_directory.test index 84fbe150..d3d60277 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_home_directory.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_home_directory.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_home_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY integers TO '{TEST_DIR}/integers.parquet' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_hugeint.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_hugeint.test index 6244ee04..14603177 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_hugeint.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(h HUGEINT) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_interval.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_interval.test index ae0007b3..f94b4f1b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_interval.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_interval.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS intervals (i interval); @@ -42,3 +42,61 @@ FROM '{TEST_DIR}/large_interval.parquet' -- ok == +COPY (SELECT INTERVAL 720 HOUR AS i, INTERVAL 36 HOUR AS j) TO '{TEST_DIR}/split_interval.parquet' +-- +ok +== +SELECT i::VARCHAR, datepart('day', i), datepart('hour', i), j::VARCHAR, datepart('day', j), datepart('hour', j) +FROM '{TEST_DIR}/split_interval.parquet' +-- +ok +== +COPY (SELECT INTERVAL '2147483647 days' + to_microseconds(4320000000000) AS i) +TO '{TEST_DIR}/days_overflow.parquet' +-- +ok +== +COPY (SELECT INTERVAL '2147483647 days' + to_microseconds(4294967296000) AS i) +TO '{TEST_DIR}/days_overflow.parquet' +-- +ok +== +COPY (SELECT [INTERVAL '2147483598 days' + to_microseconds(4320000000000)] AS l) +TO '{TEST_DIR}/days_overflow.parquet' +-- +ok +== +COPY (SELECT {'i': INTERVAL '2147483598 days' + to_microseconds(4320000000000)} AS s) +TO '{TEST_DIR}/days_overflow.parquet' +-- +ok +== +COPY ( + SELECT CASE WHEN r = 5000 THEN INTERVAL '2147483647 days' + to_microseconds(9223372036854775807) + ELSE INTERVAL (r % 10) DAY END AS i + FROM range(10000) t(r) +) TO '{TEST_DIR}/days_overflow.parquet' +-- +ok +== +COPY ( + SELECT INTERVAL '2147483597 days' + to_microseconds(4320000000000) AS i, + INTERVAL '2147483647 days' + to_microseconds(4294967295000) AS j, + to_microseconds(9223372036854775000) AS k, + INTERVAL '2147483647 months 2147483647 days' AS m +) TO '{TEST_DIR}/days_max.parquet' +-- +ok +== +SELECT i = INTERVAL '2147483597 days' + to_microseconds(4320000000000), + datepart('day', i), + j = INTERVAL '2147483647 days' + to_microseconds(4294967295000), + datepart('day', j), + k = to_microseconds(9223372036854775000), + datepart('day', k), + m = INTERVAL '2147483647 months 2147483647 days', + datepart('day', m) +FROM '{TEST_DIR}/days_max.parquet' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_issue_5779.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_issue_5779.test index 023dc46b..1428af2b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_issue_5779.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_issue_5779.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_issue_5779.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE empty_lists(i INTEGER[]); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_memory_usage.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_memory_usage.test index 75b21940..5848391a 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_memory_usage.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_memory_usage.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_memory_usage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set memory_limit='{memory_limit}' diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_shredding.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_shredding.test index dbea739c..c7c27a26 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_shredding.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_shredding.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_shredding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42::VARIANT AS v) TO '{TEST_DIR}/invalid.parquet' diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_signed.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_signed.test index a1dd84f4..fb8dc6c5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_signed.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_signed.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_signed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE values_TINYINT AS SELECT d::TINYINT d FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_string_distinct.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_string_distinct.test index c5a9f2b2..575f2eb3 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_string_distinct.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_string_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_string_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 'hello' FROM range(10)) TO '{TEST_DIR}/string_dict.parquet'; diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings.test index 7cc5db84..e0e7688b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO strings VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings_v1.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings_v1.test index 4f01a4ce..a5e19302 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings_v1.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_strings_v1.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_strings_v1.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY strings TO '{TEST_DIR}/strings.parquet' (FORMAT PARQUET, PARQUET_VERSION v1); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_timestamp.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_timestamp.test index 0c06e024..fe27befc 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_timestamp.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE timestamps(d {type}) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uhugeint.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uhugeint.test index dd6dbe8c..cabca441 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uhugeint.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uhugeint.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_uhugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(h UHUGEINT) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_unsigned.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_unsigned.test index 59a06e4c..0df4e81e 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_unsigned.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_unsigned.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_unsigned.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE values_UTINYINT AS SELECT d::UTINYINT d FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uuid.test b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uuid.test index a5d622a4..c5dd1a34 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uuid.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/parquet_write_uuid.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/parquet_write_uuid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS uuid (u uuid); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/partition_without_hive.test b/parser/testdata/corpus/sql/copy/parquet/writer/partition_without_hive.test index 078ab300..af781179 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/partition_without_hive.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/partition_without_hive.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/partition_without_hive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(part_key INT, val INT); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes.test b/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes.test index abad384d..7d6affc3 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/row_group_size_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42) to '{TEST_DIR}/tbl.parquet' (ROW_GROUP_SIZE_BYTES) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes_wide.test b/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes_wide.test index 98112d9b..ce9d2add 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes_wide.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/row_group_size_bytes_wide.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/row_group_size_bytes_wide.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wide AS SELECT i, repeat(md5(i::VARCHAR), 2048)::BLOB AS payload FROM range(600) t(i) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/skip_empty_write.test b/parser/testdata/corpus/sql/copy/parquet/writer/skip_empty_write.test index c4f8865d..e8bd74b5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/skip_empty_write.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/skip_empty_write.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/skip_empty_write.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE empty_tbl(i INT, j VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/test_copy_overwrite_parquet.test b/parser/testdata/corpus/sql/copy/parquet/writer/test_copy_overwrite_parquet.test index cb68c342..079c3bc5 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/test_copy_overwrite_parquet.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/test_copy_overwrite_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/test_copy_overwrite_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY test TO '{TEST_DIR}/overwrite.parquet' (FORMAT PARQUET) diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write.test b/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write.test index 19c6696f..056da767 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/test_parquet_write.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42) TO '{TEST_DIR}/scalar.parquet' (FORMAT 'parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write_complex.test b/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write_complex.test index 8d68ab3e..4d1a95d1 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write_complex.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/test_parquet_write_complex.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/test_parquet_write_complex.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/arrow/alltypes_dictionary.parquet'); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_complex_nested.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_complex_nested.test index c17b7d8d..ba76f12c 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_complex_nested.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_complex_nested.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_complex_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct_of_lists AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_list.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_list.test index 4e0c16e0..1cf7a3e4 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_list.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_list.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE list AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_map.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_map.test index be9b1655..4dfd84f8 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_map.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_map.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE int_maps(m MAP(INTEGER,INTEGER)); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_big_string.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_big_string.test index da114216..dedd622f 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_big_string.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_big_string.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_stats_big_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE varchar(v VARCHAR); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_null_count.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_null_count.test index 304a6b10..29357525 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_null_count.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_stats_null_count.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_stats_null_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 i) TO '{TEST_DIR}/stats.parquet' (FORMAT PARQUET); diff --git a/parser/testdata/corpus/sql/copy/parquet/writer/write_struct.test b/parser/testdata/corpus/sql/copy/parquet/writer/write_struct.test index a44a3181..3094502b 100644 --- a/parser/testdata/corpus/sql/copy/parquet/writer/write_struct.test +++ b/parser/testdata/corpus/sql/copy/parquet/writer/write_struct.test @@ -1,6 +1,6 @@ # source: test/sql/copy/parquet/writer/write_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_filter_pushdown.test b/parser/testdata/corpus/sql/copy/partitioned/hive_filter_pushdown.test index cdaf2158..b17f370f 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_filter_pushdown.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i::VARCHAR as a, (i*10)::VARCHAR as b, (i*100)::VARCHAR as c from range(0,10) tbl(i)) TO '{TEST_DIR}/hive_pushdown_bug' (FORMAT PARQUET, PARTITION_BY c); diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_append.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_append.test index 38980964..906f8e72 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_append.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_append.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE sensor_data(ts TIMESTAMP, value INT); diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_case_insensitive_column.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_case_insensitive_column.test index b90690b8..9a78a37b 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_case_insensitive_column.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_case_insensitive_column.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_case_insensitive_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM '{DATA_DIR}/parquet-testing/hive-partitioning/ci-column-names/**/*.parquet' ORDER BY ALL diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_compression.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_compression.test index 41304e4c..ee9828d7 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_compression.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_compression.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (FROM test) TO '{TEST_DIR}/hive_partition_compress' (FORMAT parquet, COMPRESSION 'gzip', PARTITION_BY ('col0', 'col1')); diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_duplicate_name.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_duplicate_name.test index fb3dca4b..19227dd3 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_duplicate_name.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_duplicate_name.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_duplicate_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_escape.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_escape.test index 368b39d6..379c46a5 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_escape.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_escape.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_escape.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE weird_tbl(id INT DEFAULT nextval('seq'), key VARCHAR) diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_join_pushdown.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_join_pushdown.test index c4892b30..a6548d97 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_join_pushdown.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_join_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_join_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i//1000 AS partition, i FROM range(10000) t(i) diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_recursive_cte.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_recursive_cte.test index 7d8eaf97..219de19e 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partition_recursive_cte.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partition_recursive_cte.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partition_recursive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 2000+i%10 AS year, 1+i%3 AS month, i%4 AS c, i%5 AS d FROM RANGE(0,20) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_delayed_flush.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_delayed_flush.test index 7bc1874a..f33f5b29 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_delayed_flush.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_delayed_flush.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partitioned_delayed_flush.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET partitioned_write_flush_threshold=64; diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_write.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_write.test index af7c46e7..1cff2cbb 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_write.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioned_write.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partitioned_write.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test as SELECT i%2 as part_col, (i+1)%5 as value_col, i as value2_col from range(0,10) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioning_overwrite.test b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioning_overwrite.test index 3a1f6775..1ba2a056 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/hive_partitioning_overwrite.test +++ b/parser/testdata/corpus/sql/copy/partitioned/hive_partitioning_overwrite.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/hive_partitioning_overwrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 AS part_col, 43 AS value_col) TO '{TEST_DIR}/overwrite_test' (FORMAT PARQUET, PARTITION_BY (part_col)); diff --git a/parser/testdata/corpus/sql/copy/partitioned/integer_partitioned_write.test b/parser/testdata/corpus/sql/copy/partitioned/integer_partitioned_write.test new file mode 100644 index 00000000..be827f76 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/integer_partitioned_write.test @@ -0,0 +1,256 @@ +# source: test/sql/copy/partitioned/integer_partitioned_write.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT i % 8 AS p, i AS v, 'row ' || i AS s FROM range(20000) tbl(i); +-- +ok +== +COPY t TO '{TEST_DIR}/int_part1' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part1/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p; +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, count(DISTINCT v % 8) AS keys + FROM parquet_scan('{TEST_DIR}/int_part1/p=*/*.parquet', FILENAME=1) + GROUP BY filename +) WHERE keys <> 1; +-- +ok +== +SELECT count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part1/p=*/*.parquet'); +-- +ok +== +CREATE TABLE neg AS SELECT (i % 7) - 3 AS p, i AS v FROM range(7000) tbl(i); +-- +ok +== +COPY neg TO '{TEST_DIR}/int_part2' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*) FROM parquet_scan('{TEST_DIR}/int_part2/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p; +-- +ok +== +CREATE TABLE nulls AS SELECT CASE WHEN i % 5 = 4 THEN NULL ELSE i % 5 END AS p, i AS v FROM range(1000) tbl(i); +-- +ok +== +COPY nulls TO '{TEST_DIR}/int_part3' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part3/p=__HIVE_DEFAULT_PARTITION__/*.parquet'); +-- +ok +== +SELECT p, count(*) FROM parquet_scan('{TEST_DIR}/int_part3/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p NULLS LAST; +-- +ok +== +COPY (SELECT 42 AS p, v FROM t) TO '{TEST_DIR}/int_part4' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*) FROM parquet_scan('{TEST_DIR}/int_part4/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p; +-- +ok +== +COPY (SELECT p::{type} AS p, v FROM t) TO '{TEST_DIR}/int_part_{type}' (FORMAT PARQUET, PARTITION_BY (p), OVERWRITE); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT count(*), count(DISTINCT p) FROM parquet_scan('{TEST_DIR}/int_part_{type}/p=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, count(DISTINCT v % 8) AS keys + FROM parquet_scan('{TEST_DIR}/int_part_{type}/p=*/*.parquet', FILENAME=1) + GROUP BY filename +) WHERE keys <> 1; +-- +ok +== +COPY (SELECT v % 256 AS p, v, s FROM t) TO '{TEST_DIR}/int_part5_256' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT count(*), count(DISTINCT p), sum(v) FROM parquet_scan('{TEST_DIR}/int_part5_256/p=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +COPY (SELECT v % 300 AS p, v, s FROM t) TO '{TEST_DIR}/int_part5_300' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT count(*), count(DISTINCT p), sum(v) FROM parquet_scan('{TEST_DIR}/int_part5_300/p=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, count(DISTINCT v % 300) AS keys + FROM read_parquet('{TEST_DIR}/int_part5_300/**/*.parquet', filename = true) + GROUP BY filename +) WHERE keys <> 1; +-- +ok +== +COPY t TO '{TEST_DIR}/int_part6' (FORMAT PARQUET, PARTITION_BY (p), ORDER_BY (v DESC)); +-- +ok +== +WITH per_file AS ( + SELECT filename, v, lag(v) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_v + FROM read_parquet('{TEST_DIR}/int_part6/**/*.parquet', filename = true, file_row_number = true) +) +SELECT count(*) FROM per_file WHERE prev_v IS NOT NULL AND prev_v < v; +-- +ok +== +SELECT count(*), count(DISTINCT p) FROM parquet_scan('{TEST_DIR}/int_part6/p=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +COPY (SELECT p, v % 3 AS q, v FROM t) TO '{TEST_DIR}/int_part7' (FORMAT PARQUET, PARTITION_BY (p, q)); +-- +ok +== +SELECT count(*) FROM parquet_scan('{TEST_DIR}/int_part7/p=*/q=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, count(DISTINCT (v % 8, v % 3)) AS keys + FROM parquet_scan('{TEST_DIR}/int_part7/p=*/q=*/*.parquet', FILENAME=1) + GROUP BY filename +) WHERE keys <> 1; +-- +ok +== +COPY (SELECT hash(v) % 16 AS p, v FROM t) TO '{TEST_DIR}/int_part8' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT count(*), count(DISTINCT p) FROM parquet_scan('{TEST_DIR}/int_part8/p=*/*.parquet', HIVE_PARTITIONING=1); +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, count(DISTINCT hash(v) % 16) AS keys + FROM parquet_scan('{TEST_DIR}/int_part8/p=*/*.parquet', FILENAME=1) + GROUP BY filename +) WHERE keys <> 1; +-- +ok +== +SELECT p, max(r) FROM (SELECT p, row_number() OVER (PARTITION BY p) AS r FROM t) GROUP BY p ORDER BY p; +-- +ok +== +SELECT count(*) FROM ( + SELECT p, v, sum(v) OVER (PARTITION BY p ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS s FROM t +) w JOIN (SELECT p, sum(v) AS s FROM t GROUP BY p) g USING (p, s); +-- +ok +== +SELECT p, max(r) FROM (SELECT p, row_number() OVER (PARTITION BY p) AS r FROM nulls) GROUP BY p ORDER BY p NULLS LAST; +-- +ok +== +SELECT stats_min_value, stats_max_value FROM parquet_metadata('{DATA_DIR}/parquet-testing/partition_key_understated_stats.parquet') WHERE path_in_schema = 'p'; +-- +ok +== +COPY (FROM '{DATA_DIR}/parquet-testing/partition_key_understated_stats.parquet') TO '{TEST_DIR}/int_part_overflow' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part_overflow/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p NULLS LAST; +-- +ok +== +SELECT count(*) FROM ( + SELECT filename, min(p) AS mn, max(p) AS mx + FROM parquet_scan('{TEST_DIR}/int_part_overflow/p=*/*.parquet', FILENAME=1, HIVE_PARTITIONING=1) + GROUP BY filename +) WHERE mn IS DISTINCT FROM mx; +-- +ok +== +CREATE TABLE extrema AS SELECT CASE WHEN i % 3 = 0 THEN -128 WHEN i % 3 = 1 THEN 127 ELSE NULL END::TINYINT AS p, i AS v FROM range(3000) tbl(i); +-- +ok +== +COPY extrema TO '{TEST_DIR}/int_part_extrema' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*) FROM parquet_scan('{TEST_DIR}/int_part_extrema/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p NULLS LAST; +-- +ok +== +CREATE TABLE nested AS SELECT i % 4 AS p, [i, i + 1] AS l, {'a': i, 'b': 'x' || i} AS s, MAP {i: 'v' || i} AS m FROM range(4000) tbl(i); +-- +ok +== +COPY nested TO '{TEST_DIR}/int_part_nested' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*), sum(l[1]) FROM parquet_scan('{TEST_DIR}/int_part_nested/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p; +-- +ok +== +SELECT count(*) FROM (FROM nested EXCEPT ALL SELECT p, l, s, m FROM parquet_scan('{TEST_DIR}/int_part_nested/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== +SET partitioned_write_flush_threshold=1000; +-- +ok +== +COPY t TO '{TEST_DIR}/int_part_flushes' (FORMAT PARQUET, PARTITION_BY (p)); +-- +ok +== +SELECT p, count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part_flushes/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p; +-- +ok +== +RESET partitioned_write_flush_threshold; +-- +ok +== +COPY t TO '{TEST_DIR}/int_part_rows' (FORMAT PARQUET, PARTITION_BY (p), ROW_GROUP_SIZE 1000); +-- +ok +== +SELECT count(*) >= 16, max(row_group_num_rows) <= 1000 + 2048, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/int_part_rows/p=*/*.parquet') WHERE column_id = 0; +-- +ok +== +CREATE TABLE wide AS SELECT i % 4 AS p, i AS v, CASE WHEN i % 500 = 0 THEN repeat('x', 100000) ELSE 'short' END AS s FROM range(4000) tbl(i); +-- +ok +== +COPY wide TO '{TEST_DIR}/int_part_bytes' (FORMAT PARQUET, COMPRESSION uncompressed, ROW_GROUP_SIZE_BYTES 500000, PARTITION_BY (p)); +-- +ok +== +SELECT max(row_group_bytes) < 700000 FROM parquet_metadata('{TEST_DIR}/int_part_bytes/p=*/*.parquet'); +-- +ok +== +SELECT count(*) FROM (FROM wide EXCEPT ALL SELECT p, v, s FROM parquet_scan('{TEST_DIR}/int_part_bytes/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/order_by_without_partition.test b/parser/testdata/corpus/sql/copy/partitioned/order_by_without_partition.test index b79924ec..1fe97b9e 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/order_by_without_partition.test +++ b/parser/testdata/corpus/sql/copy/partitioned/order_by_without_partition.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/order_by_without_partition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET partitioned_write_flush_threshold=2048; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partition_by_syntax.test b/parser/testdata/corpus/sql/copy/partitioned/partition_by_syntax.test index 643e5513..74e23b5a 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partition_by_syntax.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partition_by_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partition_by_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 AS a, 2 AS payload) TO '{TEST_DIR}/single_partition' PARTITION BY a, HEADER; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partition_issue_6304.test b/parser/testdata/corpus/sql/copy/partitioned/partition_issue_6304.test index a48db038..f1ec92f1 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partition_issue_6304.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partition_issue_6304.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partition_issue_6304.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select NULL as i, NULL as j from range(100000)) to '{TEST_DIR}/issue6304_null' (format parquet, partition_by(i), overwrite_or_ignore); diff --git a/parser/testdata/corpus/sql/copy/partitioned/partition_null_row_group_size_bytes.test b/parser/testdata/corpus/sql/copy/partitioned/partition_null_row_group_size_bytes.test index d3f0f4d2..e3a46551 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partition_null_row_group_size_bytes.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partition_null_row_group_size_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partition_null_row_group_size_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/partitioned/partition_path.test b/parser/testdata/corpus/sql/copy/partitioned/partition_path.test index aec88ff8..faecdc4e 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partition_path.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partition_path.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partition_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE sales AS @@ -188,10 +188,6 @@ GROUP BY dir ORDER BY dir; -- ok == -RESET partitioned_write_flush_threshold; --- -ok -== RESET partitioned_write_max_open_files; -- ok diff --git a/parser/testdata/corpus/sql/copy/partitioned/partition_path_json.test b/parser/testdata/corpus/sql/copy/partitioned/partition_path_json.test index 466019a8..aee7ace9 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partition_path_json.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partition_path_json.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partition_path_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE sales AS diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_asof_join.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_asof_join.test index fee45785..ee11710e 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_asof_join.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_asof_join.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_asof_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE datadate='2026-04-01'::DATE; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_early_finalize.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_early_finalize.test index 9a4f4a51..1dd77115 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_early_finalize.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_early_finalize.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_early_finalize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET partitioned_write_max_open_files=1024; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_file_rotation.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_file_rotation.test index 9b5549bf..7bfe4df5 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_file_rotation.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_file_rotation.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_file_rotation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partitioned_rotation_source AS diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_flush_join_race.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_flush_join_race.test index 1c081c9f..a99dd39b 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_flush_join_race.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_flush_join_race.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_flush_join_race.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=16; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_full_outer_hash_join.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_full_outer_hash_join.test new file mode 100644 index 00000000..6fb8940f --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_full_outer_hash_join.test @@ -0,0 +1,29 @@ +# source: test/sql/copy/partitioned/partitioned_full_outer_hash_join.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET partitioned_write_flush_threshold=4096; +-- +ok +== +CREATE TABLE a AS SELECT i AS k, i % 1000 AS v FROM range(2000000) t(i); +-- +ok +== +CREATE TABLE b AS SELECT i * 2 AS k, i % 7 AS w FROM range(2000000) t(i); +-- +ok +== +COPY ( + SELECT a.k AS ak, a.v, b.k AS bk, b.w, hash(a.k, b.k) % 2 AS part + FROM a FULL OUTER JOIN b ON a.k = b.k +) TO '{TEST_DIR}/partitioned_full_outer_hash_join' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*), count(ak), count(bk) +FROM read_parquet('{TEST_DIR}/partitioned_full_outer_hash_join/**/*.parquet') +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_group_by.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_group_by.test index 245dd481..21c82d57 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_group_by.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partitioned_tbl AS SELECT i%2 AS partition, i col1, i // 7 col2, (i%3)::VARCHAR col3 FROM range(10000) t(i) diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_iejoin.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_iejoin.test new file mode 100644 index 00000000..0170c4fe --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_iejoin.test @@ -0,0 +1,66 @@ +# source: test/sql/copy/partitioned/partitioned_iejoin.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET memory_limit='500MB'; +-- +ok +== +CREATE TABLE d AS +SELECT (DATE '1998-01-01' + INTERVAL (i) DAY)::DATE AS d_date, i AS d_sk +FROM range(1827) t(i); +-- +ok +== +CREATE TABLE r AS +SELECT (DATE '1998-01-08' + INTERVAL ((i * 7919) % 1996) DAY)::DATE AS r_date, i AS r_id +FROM range(2000) t(i); +-- +ok +== +SELECT count(*) FROM d JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date; +-- +ok +== +COPY ( + SELECT *, hash(d_sk, r_id) % 2 AS part + FROM d JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date +) TO '{TEST_DIR}/partitioned_iejoin' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/partitioned_iejoin/**/*.parquet'); +-- +ok +== +SELECT count(*) FROM d FULL OUTER JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date; +-- +ok +== +COPY ( + SELECT *, hash(d_sk, r_id) % 2 AS part + FROM d FULL OUTER JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date +) TO '{TEST_DIR}/partitioned_iejoin_outer' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*), count(d_sk), count(r_id) FROM read_parquet('{TEST_DIR}/partitioned_iejoin_outer/**/*.parquet'); +-- +ok +== +SELECT count(*) FROM d ANTI JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date; +-- +ok +== +COPY ( + SELECT *, d_sk % 2 AS part + FROM d ANTI JOIN r ON d.d_date >= r.r_date AND d.d_date + INTERVAL 90 DAY >= r.r_date +) TO '{TEST_DIR}/partitioned_iejoin_anti' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/partitioned_iejoin_anti/**/*.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by.test index 4b4ec447..110a23d3 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ordered_source AS diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by_flush_race.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by_flush_race.test index 46470593..6887d0c8 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by_flush_race.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_order_by_flush_race.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_order_by_flush_race.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=6; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_outer_asof_join.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_outer_asof_join.test new file mode 100644 index 00000000..f44c53a4 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_outer_asof_join.test @@ -0,0 +1,59 @@ +# source: test/sql/copy/partitioned/partitioned_outer_asof_join.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l AS SELECT i, i % 8 AS p, (i * 7919) % 1000003 AS t FROM range(1000000) t(i); +-- +ok +== +CREATE TABLE r AS SELECT i, i % 8 AS p, (i * 104729) % 1000003 AS t FROM range(1000000) t(i); +-- +ok +== +SELECT count(*), count(r.i) FROM l ASOF JOIN r ON l.t >= r.t; +-- +ok +== +COPY ( + SELECT l.i, r.i AS ri, l.i % 2 AS part + FROM l ASOF JOIN r ON l.t >= r.t +) TO '{TEST_DIR}/partitioned_asof_inner' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*), count(ri) FROM read_parquet('{TEST_DIR}/partitioned_asof_inner/**/*.parquet'); +-- +ok +== +SELECT count(*), count(l.i), count(r.i) FROM l ASOF RIGHT JOIN r ON l.t >= r.t; +-- +ok +== +COPY ( + SELECT l.i, r.i AS ri, r.i % 2 AS part, + CASE WHEN l.t < 200000 THEN md5(repeat((l.t + r.t)::VARCHAR, 200)) END AS slow + FROM l ASOF RIGHT JOIN r ON l.t >= r.t +) TO '{TEST_DIR}/partitioned_asof_right' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*), count(i), count(ri) FROM read_parquet('{TEST_DIR}/partitioned_asof_right/**/*.parquet'); +-- +ok +== +SELECT count(*), count(l.i), count(r.i) FROM l ASOF FULL JOIN r ON l.p = r.p AND l.t >= r.t; +-- +ok +== +COPY ( + SELECT l.i, r.i AS ri, hash(l.i, r.i) % 2 AS part + FROM l ASOF FULL JOIN r ON l.p = r.p AND l.t >= r.t +) TO '{TEST_DIR}/partitioned_asof_full' (FORMAT PARQUET, PARTITION_BY (part)); +-- +ok +== +SELECT count(*), count(i), count(ri) FROM read_parquet('{TEST_DIR}/partitioned_asof_full/**/*.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_row_group_size_bytes_boundary.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_row_group_size_bytes_boundary.test index d2baa6e9..30eed535 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_row_group_size_bytes_boundary.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_row_group_size_bytes_boundary.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_row_group_size_bytes_boundary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_window.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_window.test index 46233641..a30b6b5d 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_window.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_window.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partitioned_tbl AS diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_backpressure.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_backpressure.test index 4695749f..df09d013 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_backpressure.test +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_backpressure.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/partitioned_write_backpressure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit='1GB'; diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_batch_limits.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_batch_limits.test new file mode 100644 index 00000000..0761a9b0 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_write_batch_limits.test @@ -0,0 +1,111 @@ +# source: test/sql/copy/partitioned/partitioned_write_batch_limits.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET partitioned_write_flush_threshold = 10000; +-- +ok +== +CREATE TABLE byte_input AS SELECT 1::INTEGER p, i::BIGINT v, 'x'::VARCHAR s FROM range(10000) t(i); +-- +ok +== +COPY byte_input TO '{TEST_DIR}/batch_limit_bytes' (FORMAT PARQUET, PARTITION_BY (p), COMPRESSION uncompressed, ROW_GROUP_SIZE_BYTES 16384); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) <= 1024, max(row_group_bytes) < 16384 * 2, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_bytes/**/*.parquet') WHERE column_id = 0; +-- +ok +== +CREATE TABLE row_input AS SELECT repeat('x', 200) p, i::BIGINT v FROM range(10000) t(i); +-- +ok +== +COPY row_input TO '{TEST_DIR}/batch_limit_rows' (FORMAT PARQUET, PARTITION_BY (p), COMPRESSION uncompressed, ROW_GROUP_SIZE 1000, ROW_GROUP_SIZE_BYTES 200000); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) < 1000 + 2048, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_rows/**/*.parquet') WHERE column_id = 0; +-- +ok +== +CREATE TABLE ordered_rows AS SELECT repeat('x', 200) p, i::BIGINT v FROM range(10000) t(i) ORDER BY v DESC; +-- +ok +== +COPY ordered_rows TO '{TEST_DIR}/batch_limit_ordered_rows' (FORMAT PARQUET, PARTITION_BY (p), ORDER_BY (v), COMPRESSION uncompressed, ROW_GROUP_SIZE 1000, ROW_GROUP_SIZE_BYTES 200000); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) < 1000 + 2048, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_ordered_rows/**/*.parquet') WHERE column_id = 0; +-- +ok +== +WITH per_file AS ( + SELECT filename, v, lag(v) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_v + FROM read_parquet('{TEST_DIR}/batch_limit_ordered_rows/**/*.parquet', filename = true, file_row_number = true) +) +SELECT count(*) FROM per_file WHERE prev_v IS NOT NULL AND prev_v > v; +-- +ok +== +SELECT count(*) FROM (FROM ordered_rows EXCEPT ALL SELECT p, v FROM parquet_scan('{TEST_DIR}/batch_limit_ordered_rows/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== +CREATE TABLE ordered_bytes AS SELECT 1::INTEGER p, i::BIGINT v, 'x'::VARCHAR s FROM range(10000) t(i) ORDER BY v DESC; +-- +ok +== +COPY ordered_bytes TO '{TEST_DIR}/batch_limit_ordered_bytes' (FORMAT PARQUET, PARTITION_BY (p), ORDER_BY (v), COMPRESSION uncompressed, ROW_GROUP_SIZE_BYTES 16384); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) <= 1024, max(row_group_bytes) < 16384 * 2, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_ordered_bytes/**/*.parquet') WHERE column_id = 0; +-- +ok +== +WITH per_file AS ( + SELECT filename, v, lag(v) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_v + FROM read_parquet('{TEST_DIR}/batch_limit_ordered_bytes/**/*.parquet', filename = true, file_row_number = true) +) +SELECT count(*) FROM per_file WHERE prev_v IS NOT NULL AND prev_v > v; +-- +ok +== +SELECT count(*) FROM (FROM ordered_bytes EXCEPT ALL SELECT p, v, s FROM parquet_scan('{TEST_DIR}/batch_limit_ordered_bytes/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== +COPY byte_input TO '{TEST_DIR}/batch_limit_bytes4' (FORMAT PARQUET, PARTITION_BY (p), COMPRESSION uncompressed, ROW_GROUP_SIZE_BYTES 16384); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) <= 1024, max(row_group_bytes) < 16384 * 2, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_bytes4/**/*.parquet') WHERE column_id = 0; +-- +ok +== +COPY row_input TO '{TEST_DIR}/batch_limit_rows4' (FORMAT PARQUET, PARTITION_BY (p), COMPRESSION uncompressed, ROW_GROUP_SIZE 1000, ROW_GROUP_SIZE_BYTES 200000); +-- +ok +== +SELECT count(*) > 1, max(row_group_num_rows) < 1000 + 2048, sum(row_group_num_rows) +FROM parquet_metadata('{TEST_DIR}/batch_limit_rows4/**/*.parquet') WHERE column_id = 0; +-- +ok +== +SELECT count(*) FROM (FROM byte_input EXCEPT ALL SELECT p, v, s FROM parquet_scan('{TEST_DIR}/batch_limit_bytes4/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== +SELECT count(*) FROM (FROM row_input EXCEPT ALL SELECT p, v FROM parquet_scan('{TEST_DIR}/batch_limit_rows4/p=*/*.parquet', HIVE_PARTITIONING=1)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_batch_bytes.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_batch_bytes.test new file mode 100644 index 00000000..b86f2968 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_batch_bytes.test @@ -0,0 +1,167 @@ +# source: test/sql/copy/partitioned/partitioned_written_batch_bytes.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET max_execution_time=60000; +-- +ok +== +CREATE MACRO batches() AS TABLE +SELECT regexp_extract(message, 'rows=(\d+)', 1)::BIGINT AS rows, + regexp_extract(message, 'size=(\d+)', 1)::BIGINT AS bytes, + regexp_extract(message, 'reason=([A-Z_]+)', 1) AS reason +FROM duckdb_logs WHERE type='PhysicalOperator' AND message LIKE '%FlushBatch%'; +-- +ok +== +SET partitioned_write_flush_threshold=16384; +-- +ok +== +CREATE TABLE fixed_input AS +SELECT i AS k, 1::BIGINT AS payload, hash(i,6364136223846793005)%4 AS bucket +FROM range(131072) t(i); +-- +ok +== +CALL enable_logging(level='debug', storage='memory'); +-- +ok +== +COPY fixed_input TO '{TEST_DIR}/fixed' +(FORMAT PARQUET, PARTITION_BY bucket, ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 131072); +-- +ok +== +SELECT count(*) FILTER (WHERE reason='BATCH_SIZE_BYTES') >= 8, + min(bytes) FILTER (WHERE reason='BATCH_SIZE_BYTES') >= 131072, + count(*) FILTER (WHERE reason='FORCED_FLUSH') <= 4, + sum(rows)=131072 +FROM batches(); +-- +ok +== +SELECT count(*), count(DISTINCT k), min(k), max(k), + bool_and(payload=1), bool_and(bucket=hash(k,6364136223846793005)%4) +FROM read_parquet('{TEST_DIR}/fixed/**/*.parquet', hive_partitioning=true); +-- +ok +== +SET partitioned_write_flush_threshold=8000; +-- +ok +== +CREATE TABLE nested_input AS +SELECT i AS k, repeat(CASE WHEN i%2=0 THEN 'a' ELSE 'b' END,200) AS part, + repeat(md5(i::VARCHAR),8) AS s, + struct_pack(x := CASE WHEN i%7=0 THEN NULL ELSE i END, + ys := [i, NULL, i+1]) AS payload +FROM range(16000) t(i); +-- +ok +== +COPY nested_input TO '{TEST_DIR}/sorted' +(FORMAT PARQUET, PARTITION_BY part, ORDER_BY k, ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 2097152); +-- +ok +== +SELECT count(*) FILTER (WHERE bytes >= 2097152 * 328 // 337) >= 2, + count(*) FILTER (WHERE bytes < 2097152 * 328 // 337) <= 2, + max(rows) <= (2097152 + 327) // 328, + sum(rows)=16000 +FROM batches(); +-- +ok +== +SELECT (SELECT count(*) FROM (FROM nested_input EXCEPT ALL SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/sorted/**/*.parquet',hive_partitioning=true))), + (SELECT count(*) FROM (SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/sorted/**/*.parquet',hive_partitioning=true) EXCEPT ALL FROM nested_input)); +-- +ok +== +COPY nested_input TO '{TEST_DIR}/written_partition' +(FORMAT PARQUET, PARTITION_BY part, ORDER_BY k, WRITE_PARTITION_COLUMNS, + ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 2097152); +-- +ok +== +SELECT count(*) FILTER (WHERE bytes >= 2097152 * 544 // 553) >= 4, + count(*) FILTER (WHERE bytes < 2097152 * 544 // 553) <= 2, + max(rows) <= (2097152 + 543) // 544, + sum(rows)=16000 +FROM batches(); +-- +ok +== +SELECT (SELECT count(*) FROM (FROM nested_input EXCEPT ALL SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/written_partition/**/*.parquet',hive_partitioning=false))), + (SELECT count(*) FROM (SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/written_partition/**/*.parquet',hive_partitioning=false) EXCEPT ALL FROM nested_input)); +-- +ok +== +WITH ordered AS ( + SELECT k, lag(k) OVER (PARTITION BY filename ORDER BY file_row_number) AS previous + FROM read_parquet('{TEST_DIR}/written_partition/**/*.parquet',filename=true,file_row_number=true) +) +SELECT count(*) FROM ordered WHERE previous > k; +-- +ok +== +COPY (SELECT k, repeat('a',200) AS part, s, payload FROM nested_input) +TO '{TEST_DIR}/single_string_partition' +(FORMAT PARQUET, PARTITION_BY part, ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 2097152); +-- +ok +== +SELECT count(*) FILTER (WHERE bytes >= 2097152 * 328 // 337) >= 2, + count(*) FILTER (WHERE bytes < 2097152 * 328 // 337) <= 1, + max(rows) <= (2097152 + 327) // 328, + sum(rows)=16000 +FROM batches(); +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT k,s,payload FROM nested_input EXCEPT ALL SELECT k,s,payload FROM read_parquet('{TEST_DIR}/single_string_partition/**/*.parquet',hive_partitioning=true))), + (SELECT count(*) FROM (SELECT k,s,payload FROM read_parquet('{TEST_DIR}/single_string_partition/**/*.parquet',hive_partitioning=true) EXCEPT ALL SELECT k,s,payload FROM nested_input)), + (SELECT bool_and(part=repeat('a',200)) FROM read_parquet('{TEST_DIR}/single_string_partition/**/*.parquet',hive_partitioning=true)); +-- +ok +== +CREATE TABLE direct_input AS +SELECT k%100 AS k, CASE WHEN k%3=0 THEN NULL ELSE k%3 END AS part, s, payload +FROM nested_input UNION ALL SELECT k%100, CASE WHEN k%3=0 THEN NULL ELSE k%3 END, s, payload FROM nested_input; +-- +ok +== +COPY direct_input TO '{TEST_DIR}/direct_nested' +(FORMAT PARQUET, PARTITION_BY part, ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 65536); +-- +ok +== +SELECT count(*) FILTER (WHERE bytes >= 65536 * 328 // 337) > 10, + count(*) FILTER (WHERE bytes < 65536 * 328 // 337) <= 3, + max(rows) <= (65536 + 327) // 328, + sum(rows)=32000 +FROM batches(); +-- +ok +== +SELECT (SELECT count(*) FROM (FROM direct_input EXCEPT ALL SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/direct_nested/**/*.parquet',hive_partitioning=true))), + (SELECT count(*) FROM (SELECT k,part,s,payload FROM read_parquet('{TEST_DIR}/direct_nested/**/*.parquet',hive_partitioning=true) EXCEPT ALL FROM direct_input)); +-- +ok +== +COPY (SELECT i AS k, i%2 AS bucket FROM range(10000) t(i)) +TO '{TEST_DIR}/row_limit' (FORMAT PARQUET, PARTITION_BY bucket, ROW_GROUP_SIZE 2048); +-- +ok +== +SELECT count(*) FILTER (WHERE reason='BATCH_SIZE') > 0, + count(*) FILTER (WHERE reason='BATCH_SIZE_BYTES'), sum(rows) +FROM batches(); +-- +ok +== +SELECT count(*), count(DISTINCT k) FROM read_parquet('{TEST_DIR}/row_limit/**/*.parquet'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_key_edges.test b/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_key_edges.test new file mode 100644 index 00000000..78536125 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/partitioned/partitioned_written_key_edges.test @@ -0,0 +1,41 @@ +# source: test/sql/copy/partitioned/partitioned_written_key_edges.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO batches() AS TABLE +SELECT regexp_extract(message, 'rows=(\d+)', 1)::BIGINT AS rows, + regexp_extract(message, 'size=(\d+)', 1)::BIGINT AS bytes +FROM duckdb_logs WHERE type='PhysicalOperator' AND message LIKE '%FlushBatch%'; +-- +ok +== +CREATE TABLE key_input AS +SELECT i AS k, repeat(md5(i::VARCHAR),8) AS s, + NULL::VARCHAR AS null_key, 'short' AS inline_key, + [repeat('a',80), NULL, repeat('b',80)] AS list_key, + struct_pack(s := repeat('a',160), ys := [1::BIGINT,NULL,2::BIGINT]) AS struct_key, + [repeat('a',80), NULL, repeat('b',80)]::VARCHAR[3] AS array_key +FROM range(8000) t(i); +-- +ok +== +COPY (SELECT k,s,{key} AS part FROM key_input) TO '{TEST_DIR}/{key}' +(FORMAT PARQUET, PARTITION_BY part, PARTITION_PATH 'one', + ROW_GROUP_SIZE 4194304, ROW_GROUP_SIZE_BYTES 1048576); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) FILTER (WHERE bytes >= 1048576) >= 2, + count(*) FILTER (WHERE bytes < 1048576) <= 1, + max(rows) <= (1048576 + 279) // 280, + sum(rows)=8000 +FROM batches(); +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT k,s FROM key_input EXCEPT ALL SELECT k,s FROM read_parquet('{TEST_DIR}/{key}/**/*.parquet',hive_partitioning=false))), + (SELECT count(*) FROM (SELECT k,s FROM read_parquet('{TEST_DIR}/{key}/**/*.parquet',hive_partitioning=false) EXCEPT ALL SELECT k,s FROM key_input)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/partitioned/skip_partition_column_writes.test b/parser/testdata/corpus/sql/copy/partitioned/skip_partition_column_writes.test index df500f5d..9570ca0e 100644 --- a/parser/testdata/corpus/sql/copy/partitioned/skip_partition_column_writes.test +++ b/parser/testdata/corpus/sql/copy/partitioned/skip_partition_column_writes.test @@ -1,6 +1,6 @@ # source: test/sql/copy/partitioned/skip_partition_column_writes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY test TO '{TEST_DIR}/no-part-cols' (FORMAT PARQUET, PARTITION_BY (part_col)); diff --git a/parser/testdata/corpus/sql/copy/per_thread_output.test b/parser/testdata/corpus/sql/copy/per_thread_output.test index b6a42d30..d73125b9 100644 --- a/parser/testdata/corpus/sql/copy/per_thread_output.test +++ b/parser/testdata/corpus/sql/copy/per_thread_output.test @@ -1,6 +1,6 @@ # source: test/sql/copy/per_thread_output.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigdata AS SELECT i AS col_a, i AS col_b FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/copy/return_column_types.test b/parser/testdata/corpus/sql/copy/return_column_types.test new file mode 100644 index 00000000..152466ab --- /dev/null +++ b/parser/testdata/corpus/sql/copy/return_column_types.test @@ -0,0 +1,250 @@ +# source: test/sql/copy/return_column_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1::BIGINT AS i WHERE false) TO '{TEST_DIR}/return_column_types_empty.csv' (RETURN_COLUMN_TYPES); +-- +ok +== +SET preserve_insertion_order={preserve_insertion_order}; +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT range::DECIMAL(9,2) AS d FROM range(10)) TO '{TEST_DIR}/return_column_types_{preserve_insertion_order}.parquet' (RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT range::DECIMAL(9,2) AS d FROM range(10)) TO '{TEST_DIR}/return_column_types_files_{preserve_insertion_order}.parquet' (RETURN_FILES, RETURN_COLUMN_TYPES); +-- +ok +== +SET preserve_insertion_order=true; +-- +ok +== +COPY (SELECT range % 2 AS p, range::DECIMAL(9,2) AS d FROM range(10)) TO '{TEST_DIR}/return_column_types_partitioned' (FORMAT PARQUET, PARTITION_BY p, RETURN_STATS, RETURN_COLUMN_TYPES); +-- +ok +== +WITH copied AS (COPY (SELECT 1 AS i) TO '{TEST_DIR}/return_column_types_typeof.csv' (RETURN_COLUMN_TYPES)) +SELECT typeof(columns) FROM copied; +-- +ok +== +WITH copied AS (COPY (SELECT 1.5::DECIMAL(9,2) AS d, [1, 2]::INTEGER[2] AS a, uuid() AS u) TO '{TEST_DIR}/return_column_types_get_type.csv' (RETURN_COLUMN_TYPES)) +SELECT columns[1].type = get_type(1.5::DECIMAL(9,2)), columns[2].type = get_type([1, 2]::INTEGER[2]), + columns[3].type = get_type(uuid()) +FROM copied; +-- +ok +== +WITH copied AS (COPY (SELECT 1.5::DECIMAL(9,2) AS d) TO '{TEST_DIR}/return_column_types_cast.csv' (RETURN_COLUMN_TYPES)) +SELECT columns[1].type::VARCHAR, typeof(columns[1].type) FROM copied; +-- +ok +== +COPY (SELECT 1 AS i) TO '{TEST_DIR}/return_column_types_off.csv' (RETURN_COLUMN_TYPES false); +-- +ok +== +COPY (SELECT 1 AS i) TO '{TEST_DIR}/return_column_types_error.csv' (RETURN_COLUMN_TYPES 'maybe'); +-- +ok +== +COPY (SELECT 1 AS i) TO '{TEST_DIR}/return_column_types_null.csv' (RETURN_COLUMN_TYPES NULL); +-- +ok +== +CREATE TABLE return_column_types_target (i INTEGER); +-- +ok +== +COPY return_column_types_target FROM '{TEST_DIR}/return_column_types_off.csv' (RETURN_COLUMN_TYPES); +-- +ok +== +CREATE TABLE return_column_types_tbl (a INTEGER, "My Col" VARCHAR, d DECIMAL(38,10)); +-- +ok +== +INSERT INTO return_column_types_tbl VALUES (1, 'x', 1.5); +-- +ok +== +COPY return_column_types_tbl (d, a) TO '{TEST_DIR}/return_column_types_tbl_cols.csv' (RETURN_COLUMN_TYPES); +-- +ok +== +PREPARE copy_parameter AS COPY (SELECT $1 AS x) TO '{TEST_DIR}/return_column_types_parameter.csv' (RETURN_COLUMN_TYPES, OVERWRITE); +-- +ok +== +EXECUTE copy_parameter(1.5::DECIMAL(5,2)); +-- +ok +== +EXECUTE copy_parameter('abc'); +-- +ok +== +CREATE TABLE return_column_types_altered (a INTEGER); +-- +ok +== +INSERT INTO return_column_types_altered VALUES (1); +-- +ok +== +PREPARE copy_altered AS COPY return_column_types_altered TO '{TEST_DIR}/return_column_types_altered.csv' (RETURN_COLUMN_TYPES, OVERWRITE); +-- +ok +== +EXECUTE copy_altered; +-- +ok +== +ALTER TABLE return_column_types_altered ADD COLUMN b DECIMAL(6,3); +-- +ok +== +COPY (SELECT 1 AS a, 2 AS a, 3 AS a_1) TO '{TEST_DIR}/return_column_types_dedup.csv' (RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT 1::HUGEINT AS h, 1::UHUGEINT AS uh) TO '{TEST_DIR}/return_column_types_huge.parquet' (RETURN_COLUMN_TYPES); +-- +ok +== +SELECT name, type FROM parquet_schema('{TEST_DIR}/return_column_types_huge.parquet') WHERE name IN ('h', 'uh') ORDER BY name; +-- +ok +== +COPY (SELECT 1 AS a WHERE false) TO '{TEST_DIR}/return_column_types_skip.parquet' (WRITE_EMPTY_FILE false, RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT 1 AS a WHERE false) TO '{TEST_DIR}/return_column_types_skip_files.parquet' (WRITE_EMPTY_FILE false, RETURN_FILES, RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT 1 AS a WHERE false) TO '{TEST_DIR}/return_column_types_skip_stats_{preserve_insertion_order}.parquet' (WRITE_EMPTY_FILE false, RETURN_STATS, RETURN_COLUMN_TYPES); +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/return_column_types_skip_stats_{preserve_insertion_order}.parquet'); +-- +ok +== +COPY (SELECT 1 AS p, 2 AS v WHERE false) TO '{TEST_DIR}/return_column_types_skip_partitioned' (FORMAT PARQUET, PARTITION_BY (p), RETURN_STATS, RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT 1 AS a WHERE false) TO '{TEST_DIR}/return_column_types_skip_stats_off.parquet' (WRITE_EMPTY_FILE false, RETURN_STATS); +-- +ok +== +WITH copied AS (COPY (SELECT range AS v, md5(range::VARCHAR) AS s FROM range(200000)) TO '{TEST_DIR}/return_column_types_rotate' (FORMAT PARQUET, ROW_GROUP_SIZE 10000, ROW_GROUPS_PER_FILE 2, RETURN_STATS, RETURN_COLUMN_TYPES)) +SELECT count(*) > 1, count(columns) = count(*), count(DISTINCT columns), any_value(columns) FROM copied; +-- +ok +== +CREATE TYPE return_column_types_int AS INTEGER; +-- +ok +== +CREATE TYPE return_column_types_mood AS ENUM ('sad', 'ok'); +-- +ok +== +WITH copied AS (COPY ( + SELECT + true AS bool_col, 1::TINYINT AS tinyint_col, 1::SMALLINT AS smallint_col, 1::INTEGER AS int_col, 1::BIGINT AS bigint_col, + 1::HUGEINT AS hugeint_col, 1::UTINYINT AS utinyint_col, 1::USMALLINT AS usmallint_col, 1::UINTEGER AS uint_col, + 1::UBIGINT AS ubigint_col, 1::UHUGEINT AS uhugeint_col, 1::BIGNUM AS bignum_col, 1.5::FLOAT AS float_col, + 1.5::DOUBLE AS double_col, 1.5::DECIMAL(4,1) AS dec_4_1, 1.5::DECIMAL(9,4) AS dec_9_4, 1.5::DECIMAL(18,6) AS dec_18_6, + 1.5::DECIMAL(38,10) AS dec_38_10, 1::DECIMAL(4,0) AS dec_4_0, + DATE '2024-01-01' AS date_col, TIME '01:02:03' AS time_col, TIMETZ '01:02:03+00' AS timetz_col, + TIMESTAMP '2024-01-01 01:02:03' AS timestamp_col, TIMESTAMP_S '2024-01-01' AS timestamp_s_col, + TIMESTAMP_MS '2024-01-01' AS timestamp_ms_col, TIMESTAMP_NS '2024-01-01' AS timestamp_ns_col, + TIMESTAMPTZ '2024-01-01 00:00:00+00' AS timestamptz_col, INTERVAL 1 DAY AS interval_col, + 'x' AS varchar_col, 'x'::BLOB AS blob_col, '101'::BIT AS bit_col, '00000000-0000-0000-0000-000000000001'::UUID AS uuid_col, + 'ok'::return_column_types_mood AS enum_col, 1::return_column_types_int AS alias_col, '{}'::JSON AS json_col, + 1::VARIANT AS variant_col, NULL AS null_col, + [1, 2] AS list_col, [[1], [2, 3]] AS list_of_list_col, [{'a': 1}] AS list_of_struct_col, + [1.5::DECIMAL(5,2)] AS list_of_decimal_col, {'a': 1, 'b': 'x'} AS struct_col, {'a': [1], 'b': ['x']} AS struct_of_list_col, + {'o': [MAP {'k': {'d': [1.5::DECIMAL(10,2)]}}]} AS deep_struct_col, (1, 'x') AS tuple_col, MAP {'k': 1} AS map_col, + MAP {[1]: {'v': 'x'}} AS map_list_key_col, union_value(n := 1)::UNION(n INTEGER, s VARCHAR) AS union_col, + [1, 2, 3]::INTEGER[3] AS array_col, [[1, 2], [3, 4]]::INTEGER[2][2] AS array_of_array_col, + [{'x': 1}, {'x': 2}]::STRUCT(x INTEGER)[2] AS array_of_struct_col, [[1, 2]::INTEGER[2]] AS list_of_array_col, + [[1], [2, 3]]::INTEGER[][2] AS array_of_list_col +) TO '{TEST_DIR}/return_column_types_all_types.{format}' (FORMAT {format}, RETURN_COLUMN_TYPES)) +SELECT unnest(columns, recursive := true) FROM copied; +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT 1 AS i) TO '{TEST_DIR}/return_column_types_null.json' (RETURN_COLUMN_TYPES NULL); +-- +ok +== +PREPARE copy_json_parameter AS COPY (SELECT $1 AS x) TO '{TEST_DIR}/return_column_types_parameter.json' (RETURN_COLUMN_TYPES, OVERWRITE); +-- +ok +== +EXECUTE copy_json_parameter(1.5::DECIMAL(5,2)); +-- +ok +== +EXECUTE copy_json_parameter(42); +-- +ok +== +CREATE SEQUENCE return_column_types_seq_off; +-- +ok +== +CREATE SEQUENCE return_column_types_seq_on; +-- +ok +== +COPY (FROM range(nextval('return_column_types_seq_off'))) TO '{TEST_DIR}/return_column_types_seq_off.json'; +-- +ok +== +COPY (FROM range(nextval('return_column_types_seq_on'))) TO '{TEST_DIR}/return_column_types_seq_on.json' (RETURN_COLUMN_TYPES); +-- +ok +== +SELECT (SELECT count(*) FROM '{TEST_DIR}/return_column_types_seq_on.json') = (SELECT count(*) FROM '{TEST_DIR}/return_column_types_seq_off.json'), + currval('return_column_types_seq_on') = currval('return_column_types_seq_off'); +-- +ok +== +COPY (SELECT 'x' AS s, range % 2 AS p, range::DECIMAL(9,2) AS d FROM range(4)) TO '{TEST_DIR}/return_column_types_json_partitioned_{write_partition_columns}' (FORMAT JSON, PARTITION_BY (p), WRITE_PARTITION_COLUMNS {write_partition_columns}, RETURN_FILES, RETURN_COLUMN_TYPES); +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT DATE '2024-01-01' + range::INTEGER AS dt, range::DECIMAL(4,1) AS v FROM range(2)) TO '{TEST_DIR}/return_column_types_json_dateformat' (FORMAT JSON, PARTITION_BY (dt), DATEFORMAT '%Y%m%d', RETURN_FILES, RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT DATE '2024-01-02' AS dt, TIMESTAMP '2024-01-02 03:04:05' AS ts, 1.5::DECIMAL(4,1) AS v) TO '{TEST_DIR}/return_column_types_json_formats.json' (FORMAT JSON, DATEFORMAT '%Y%m%d', TIMESTAMPFORMAT '%Y/%m/%d %H', RETURN_COLUMN_TYPES); +-- +ok +== +SELECT dt, ts, v FROM read_json('{TEST_DIR}/return_column_types_json_formats.json', columns := {'dt': 'VARCHAR', 'ts': 'VARCHAR', 'v': 'DOUBLE'}); +-- +ok +== +COPY (SELECT 1 AS a, 'x' AS a, 3 AS a_1) TO '{TEST_DIR}/return_column_types_duplicates.json' (RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT 1 AS id, 'POINT (1 2)'::GEOMETRY AS geom, 1.5::DECIMAL(4,1) AS v) TO '{TEST_DIR}/return_column_types.geojson' (FORMAT GEOJSON, RETURN_COLUMN_TYPES); +-- +ok +== +COPY (SELECT range::INTEGER AS id, 'POINT (1 2)'::GEOMETRY AS geom, range % 2 AS p FROM range(2)) TO '{TEST_DIR}/return_column_types_geojson_partitioned' (FORMAT GEOJSON, PARTITION_BY (p), RETURN_FILES, RETURN_COLUMN_TYPES); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/return_files.test b/parser/testdata/corpus/sql/copy/return_files.test index deb8e4d7..d9866b5f 100644 --- a/parser/testdata/corpus/sql/copy/return_files.test +++ b/parser/testdata/corpus/sql/copy/return_files.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_files.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT range i FROM range(200000); @@ -15,10 +15,6 @@ COPY integers TO '{TEST_DIR}/test_copy_to_file.parquet' (RETURN_FILES); -- ok == -SET preserve_insertion_order=true; --- -ok -== COPY integers TO '{TEST_DIR}/test_batch_copy_to_file.parquet' (RETURN_FILES TRUE); -- ok diff --git a/parser/testdata/corpus/sql/copy/return_stats.test b/parser/testdata/corpus/sql/copy/return_stats.test index 199a406c..92fc0036 100644 --- a/parser/testdata/corpus/sql/copy/return_stats.test +++ b/parser/testdata/corpus/sql/copy/return_stats.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bools AS SELECT i::bool i FROM range(2) i(i); @@ -319,3 +319,15 @@ COPY nested_nan_rg TO '{TEST_DIR}/nested_nan_rg.parquet' (FORMAT PARQUET, ROW_GR -- ok == +COPY (SELECT [NULL, {'a': 1}] AS l) TO '{TEST_DIR}/list_struct_null.parquet' (RETURN_STATS); +-- +ok +== +CREATE TABLE list_struct_nulls AS SELECT CASE WHEN i % 10 = 0 THEN NULL ELSE [NULL, {'a': i}, CASE WHEN i % 3 = 0 THEN NULL ELSE {'a': NULL} END] END ls FROM range(4096) t(i); +-- +ok +== +COPY list_struct_nulls TO '{TEST_DIR}/list_struct_nulls.parquet' (ROW_GROUP_SIZE 2048, RETURN_STATS); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/return_stats_all_null_row_group.test b/parser/testdata/corpus/sql/copy/return_stats_all_null_row_group.test new file mode 100644 index 00000000..808c7ce8 --- /dev/null +++ b/parser/testdata/corpus/sql/copy/return_stats_all_null_row_group.test @@ -0,0 +1,20 @@ +# source: test/sql/copy/return_stats_all_null_row_group.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT CASE WHEN r < 2048 THEN NULL ELSE r END AS i, + CASE WHEN r < 2048 THEN 'row_' || r END AS s, + NULL::INTEGER AS n + FROM range(4096) t(r)) +TO '{TEST_DIR}/all_null_row_group.parquet' (ROW_GROUP_SIZE 2048, RETURN_STATS); +-- +ok +== +SELECT path_in_schema, row_group_id, stats_min_value, stats_max_value +FROM parquet_metadata('{TEST_DIR}/all_null_row_group.parquet') +WHERE path_in_schema IN ('i', 's') +ORDER BY path_in_schema, row_group_id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/return_stats_extra_info.test b/parser/testdata/corpus/sql/copy/return_stats_extra_info.test index 360f934a..55dec54d 100644 --- a/parser/testdata/corpus/sql/copy/return_stats_extra_info.test +++ b/parser/testdata/corpus/sql/copy/return_stats_extra_info.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_stats_extra_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT range i FROM range(10000); diff --git a/parser/testdata/corpus/sql/copy/return_stats_nested.test b/parser/testdata/corpus/sql/copy/return_stats_nested.test index e116e891..d259a56c 100644 --- a/parser/testdata/corpus/sql/copy/return_stats_nested.test +++ b/parser/testdata/corpus/sql/copy/return_stats_nested.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_stats_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE containers ( diff --git a/parser/testdata/corpus/sql/copy/return_stats_truncate.test b/parser/testdata/corpus/sql/copy/return_stats_truncate.test index 2cd10196..00a52944 100644 --- a/parser/testdata/corpus/sql/copy/return_stats_truncate.test +++ b/parser/testdata/corpus/sql/copy/return_stats_truncate.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_stats_truncate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT repeat('\xFF', 300)::BLOB as blob) TO '{TEST_DIR}/test_truncate_blob.parquet' (RETURN_STATS); diff --git a/parser/testdata/corpus/sql/copy/return_stats_variant.test b/parser/testdata/corpus/sql/copy/return_stats_variant.test index bb3044a8..777632bc 100644 --- a/parser/testdata/corpus/sql/copy/return_stats_variant.test +++ b/parser/testdata/corpus/sql/copy/return_stats_variant.test @@ -1,6 +1,6 @@ # source: test/sql/copy/return_stats_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE list_variants AS diff --git a/parser/testdata/corpus/sql/copy/row_groups_per_file.test b/parser/testdata/corpus/sql/copy/row_groups_per_file.test index dae590c8..2de70528 100644 --- a/parser/testdata/corpus/sql/copy/row_groups_per_file.test +++ b/parser/testdata/corpus/sql/copy/row_groups_per_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/row_groups_per_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY bigdata TO '{TEST_DIR}/row_groups_per_file1' (FORMAT PARQUET, ROW_GROUP_SIZE 2000, ROW_GROUPS_PER_FILE 1) @@ -149,3 +149,15 @@ FROM files; -- ok == +COPY bigdata TO '{TEST_DIR}/row_groups_per_file_and_size' (FORMAT PARQUET, ROW_GROUP_SIZE 2000, ROW_GROUPS_PER_FILE 1, FILE_SIZE_BYTES '1GB') +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/row_groups_per_file_and_size/*.parquet') +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/row_groups_per_file_and_size/*.parquet' +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy/tmp_file.test b/parser/testdata/corpus/sql/copy/tmp_file.test index 0ee47b32..e82bf5db 100644 --- a/parser/testdata/corpus/sql/copy/tmp_file.test +++ b/parser/testdata/corpus/sql/copy/tmp_file.test @@ -1,6 +1,6 @@ # source: test/sql/copy/tmp_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42 as x) to '{TEST_DIR}/foo'; diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_different_types.test b/parser/testdata/corpus/sql/copy_database/copy_database_different_types.test index ab14073d..cf9050c4 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_different_types.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_different_types.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_different_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/copy_database_different_types.db' AS db1 diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_errors.test b/parser/testdata/corpus/sql/copy_database/copy_database_errors.test index 16487b13..3f8b2e89 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_errors.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_errors.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE db1.test(a INTEGER, b INTEGER, c VARCHAR); diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_fk.test b/parser/testdata/corpus/sql/copy_database/copy_database_fk.test index 79b32f1c..c438a54d 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_fk.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_fk.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_fk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads = 4 diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_fk_order.test b/parser/testdata/corpus/sql/copy_database/copy_database_fk_order.test index 62d3ea58..ff023294 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_fk_order.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_fk_order.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_fk_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET preserve_insertion_order = {preserve_order} diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_gen_col.test b/parser/testdata/corpus/sql/copy_database/copy_database_gen_col.test index 503db7aa..6d5d6946 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_gen_col.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_gen_col.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_gen_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into test VALUES (42); diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_index.test b/parser/testdata/corpus/sql/copy_database/copy_database_index.test index 470bcb97..0d52b97f 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_index.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_index.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/copy_database_index.db' AS db1; diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_multiple.test b/parser/testdata/corpus/sql/copy_database/copy_database_multiple.test index d0ec57d6..8ac3d41c 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_multiple.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_multiple.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_multiple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE db1.tbl1 AS FROM range(3) r(i); diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_simple.test b/parser/testdata/corpus/sql/copy_database/copy_database_simple.test index 633d0f17..fa3a6135 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_simple.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_simple.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/copy_database_simple.db' AS db1 diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_system_catalog.test b/parser/testdata/corpus/sql/copy_database/copy_database_system_catalog.test new file mode 100644 index 00000000..fc8061cc --- /dev/null +++ b/parser/testdata/corpus/sql/copy_database/copy_database_system_catalog.test @@ -0,0 +1,17 @@ +# source: test/sql/copy_database/copy_database_system_catalog.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS src; +-- +ok +== +COPY FROM DATABASE src TO system; +-- +ok +== +COPY FROM DATABASE src TO system (SCHEMA); +-- +ok +== diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_with_index.test b/parser/testdata/corpus/sql/copy_database/copy_database_with_index.test index f7423e4d..3e4239f2 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_with_index.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_with_index.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_with_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE data AS diff --git a/parser/testdata/corpus/sql/copy_database/copy_database_with_unique_index.test b/parser/testdata/corpus/sql/copy_database/copy_database_with_unique_index.test index 15d96410..a63dd237 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_database_with_unique_index.test +++ b/parser/testdata/corpus/sql/copy_database/copy_database_with_unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_database_with_unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/copy_db_old.db' AS old; diff --git a/parser/testdata/corpus/sql/copy_database/copy_table_with_sequence.test b/parser/testdata/corpus/sql/copy_database/copy_table_with_sequence.test index 0ba097ff..33249a10 100644 --- a/parser/testdata/corpus/sql/copy_database/copy_table_with_sequence.test +++ b/parser/testdata/corpus/sql/copy_database/copy_table_with_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/copy_database/copy_table_with_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/backup.db'; diff --git a/parser/testdata/corpus/sql/create/create_as.test b/parser/testdata/corpus/sql/create/create_as.test index 49f8de9f..3b63f85f 100644 --- a/parser/testdata/corpus/sql/create/create_as.test +++ b/parser/testdata/corpus/sql/create/create_as.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_as.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 AS SELECT 1; diff --git a/parser/testdata/corpus/sql/create/create_as_issue_11968.test b/parser/testdata/corpus/sql/create/create_as_issue_11968.test index ca577a5a..72eaee95 100644 --- a/parser/testdata/corpus/sql/create/create_as_issue_11968.test +++ b/parser/testdata/corpus/sql/create/create_as_issue_11968.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_as_issue_11968.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INTEGER[]); diff --git a/parser/testdata/corpus/sql/create/create_as_partition_sorted_options.test b/parser/testdata/corpus/sql/create/create_as_partition_sorted_options.test index 10e05886..1a542390 100644 --- a/parser/testdata/corpus/sql/create/create_as_partition_sorted_options.test +++ b/parser/testdata/corpus/sql/create/create_as_partition_sorted_options.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_as_partition_sorted_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers PARTITIONED BY (i) as select range i from range(10); diff --git a/parser/testdata/corpus/sql/create/create_database.test b/parser/testdata/corpus/sql/create/create_database.test index 3d26b942..0a52e630 100644 --- a/parser/testdata/corpus/sql/create/create_database.test +++ b/parser/testdata/corpus/sql/create/create_database.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE DATABASE mydb; diff --git a/parser/testdata/corpus/sql/create/create_index_on_issue_13643.test b/parser/testdata/corpus/sql/create/create_index_on_issue_13643.test index 45aaca4f..ddf147c7 100644 --- a/parser/testdata/corpus/sql/create/create_index_on_issue_13643.test +++ b/parser/testdata/corpus/sql/create/create_index_on_issue_13643.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_index_on_issue_13643.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA db0; diff --git a/parser/testdata/corpus/sql/create/create_objects_readonly.test b/parser/testdata/corpus/sql/create/create_objects_readonly.test index b70c1ccb..f0fb018f 100644 --- a/parser/testdata/corpus/sql/create/create_objects_readonly.test +++ b/parser/testdata/corpus/sql/create/create_objects_readonly.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_objects_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select 'c1' as c1 diff --git a/parser/testdata/corpus/sql/create/create_or_replace.test b/parser/testdata/corpus/sql/create/create_or_replace.test index ca41b341..3c2e5db2 100644 --- a/parser/testdata/corpus/sql/create/create_or_replace.test +++ b/parser/testdata/corpus/sql/create/create_or_replace.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_or_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE integers(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/create/create_schema_options.test b/parser/testdata/corpus/sql/create/create_schema_options.test index 971fece4..7e658b2d 100644 --- a/parser/testdata/corpus/sql/create/create_schema_options.test +++ b/parser/testdata/corpus/sql/create/create_schema_options.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_schema_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA s1 WITH ('location'='s3://bucket/folder', 'format'='parquet'); diff --git a/parser/testdata/corpus/sql/create/create_table_as_duplicate_names.test b/parser/testdata/corpus/sql/create/create_table_as_duplicate_names.test index 38e9b875..adfcd094 100644 --- a/parser/testdata/corpus/sql/create/create_table_as_duplicate_names.test +++ b/parser/testdata/corpus/sql/create/create_table_as_duplicate_names.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_as_duplicate_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(5) tbl1(i) JOIN range(5) tbl2(i) ON tbl1.i=tbl2.i; diff --git a/parser/testdata/corpus/sql/create/create_table_as_error.test b/parser/testdata/corpus/sql/create/create_table_as_error.test index 1a0804b0..1af24bab 100644 --- a/parser/testdata/corpus/sql/create/create_table_as_error.test +++ b/parser/testdata/corpus/sql/create/create_table_as_error.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_as_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS EXECUTE tbl; diff --git a/parser/testdata/corpus/sql/create/create_table_as_no_data_limit.test b/parser/testdata/corpus/sql/create/create_table_as_no_data_limit.test new file mode 100644 index 00000000..21666d39 --- /dev/null +++ b/parser/testdata/corpus/sql/create/create_table_as_no_data_limit.test @@ -0,0 +1,37 @@ +# source: test/sql/create/create_table_as_no_data_limit.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t1 AS SELECT 1 a LIMIT 1 WITH NO DATA; +-- +ok +== +SELECT count(*) FROM t1; +-- +ok +== +CREATE TABLE t2 AS SELECT range a FROM range(5) ORDER BY a LIMIT 2 OFFSET 1 WITH NO DATA; +-- +ok +== +SELECT count(*) FROM t2; +-- +ok +== +CREATE TABLE t3 AS SELECT 1 a WITH NO DATA; +-- +ok +== +SELECT count(*) FROM t3; +-- +ok +== +CREATE TABLE t4 AS SELECT range a FROM range(5) ORDER BY a LIMIT 2 WITH DATA; +-- +ok +== +SELECT count(*) FROM t4; +-- +ok +== diff --git a/parser/testdata/corpus/sql/create/create_table_compression.test b/parser/testdata/corpus/sql/create/create_table_compression.test index 7dbba099..85387079 100644 --- a/parser/testdata/corpus/sql/create/create_table_compression.test +++ b/parser/testdata/corpus/sql/create/create_table_compression.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T (a INTEGER USING COMPRESSION RLE) diff --git a/parser/testdata/corpus/sql/create/create_table_empty_name.test b/parser/testdata/corpus/sql/create/create_table_empty_name.test index da56185f..61322c32 100644 --- a/parser/testdata/corpus/sql/create/create_table_empty_name.test +++ b/parser/testdata/corpus/sql/create/create_table_empty_name.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_empty_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE '' AS SELECT 42; diff --git a/parser/testdata/corpus/sql/create/create_table_extra_options.test b/parser/testdata/corpus/sql/create/create_table_extra_options.test index acf334e1..6e9d43a7 100644 --- a/parser/testdata/corpus/sql/create/create_table_extra_options.test +++ b/parser/testdata/corpus/sql/create/create_table_extra_options.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_extra_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER) PARTITIONED BY (i); diff --git a/parser/testdata/corpus/sql/create/create_table_with_arraybounds.test b/parser/testdata/corpus/sql/create/create_table_with_arraybounds.test index a858415f..c63d6410 100644 --- a/parser/testdata/corpus/sql/create/create_table_with_arraybounds.test +++ b/parser/testdata/corpus/sql/create/create_table_with_arraybounds.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_table_with_arraybounds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table T ( diff --git a/parser/testdata/corpus/sql/create/create_using_index.test b/parser/testdata/corpus/sql/create/create_using_index.test index cc23f671..4bdf2d47 100644 --- a/parser/testdata/corpus/sql/create/create_using_index.test +++ b/parser/testdata/corpus/sql/create/create_using_index.test @@ -1,6 +1,6 @@ # source: test/sql/create/create_using_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (i INT, CONSTRAINT any_constraint UNIQUE USING INDEX any_non_existed_index); diff --git a/parser/testdata/corpus/sql/cte/cte_bc.test b/parser/testdata/corpus/sql/cte/cte_bc.test index 98ae61d1..9dc0404b 100644 --- a/parser/testdata/corpus/sql/cte/cte_bc.test +++ b/parser/testdata/corpus/sql/cte/cte_bc.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_bc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/cte_v1.db' (READ_ONLY) diff --git a/parser/testdata/corpus/sql/cte/cte_colname_issue_10074.test b/parser/testdata/corpus/sql/cte/cte_colname_issue_10074.test index 31606b14..0132db02 100644 --- a/parser/testdata/corpus/sql/cte/cte_colname_issue_10074.test +++ b/parser/testdata/corpus/sql/cte/cte_colname_issue_10074.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_colname_issue_10074.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t as with q(id,s) as (values(1,42)), diff --git a/parser/testdata/corpus/sql/cte/cte_describe.test b/parser/testdata/corpus/sql/cte/cte_describe.test index 3af7b9c3..09d2b901 100644 --- a/parser/testdata/corpus/sql/cte/cte_describe.test +++ b/parser/testdata/corpus/sql/cte/cte_describe.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_describe.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DESCRIBE select 42 AS a diff --git a/parser/testdata/corpus/sql/cte/cte_filter_pushdown_predicates.test b/parser/testdata/corpus/sql/cte/cte_filter_pushdown_predicates.test index 104efefe..4eb36306 100644 --- a/parser/testdata/corpus/sql/cte/cte_filter_pushdown_predicates.test +++ b/parser/testdata/corpus/sql/cte/cte_filter_pushdown_predicates.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_filter_pushdown_predicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(s VARCHAR, id INTEGER); diff --git a/parser/testdata/corpus/sql/cte/cte_inlining_empty_result.test b/parser/testdata/corpus/sql/cte/cte_inlining_empty_result.test index 0497e325..6b82e36f 100644 --- a/parser/testdata/corpus/sql/cte/cte_inlining_empty_result.test +++ b/parser/testdata/corpus/sql/cte/cte_inlining_empty_result.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_inlining_empty_result.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE typed_scalars(id INT); diff --git a/parser/testdata/corpus/sql/cte/cte_issue_17311.test b/parser/testdata/corpus/sql/cte/cte_issue_17311.test index f2931c48..cb41eb85 100644 --- a/parser/testdata/corpus/sql/cte/cte_issue_17311.test +++ b/parser/testdata/corpus/sql/cte/cte_issue_17311.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_issue_17311.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE RECURSIVE VIEW nums (n) AS diff --git a/parser/testdata/corpus/sql/cte/cte_null_values.test b/parser/testdata/corpus/sql/cte/cte_null_values.test index e336c70a..1a928b0c 100644 --- a/parser/testdata/corpus/sql/cte/cte_null_values.test +++ b/parser/testdata/corpus/sql/cte/cte_null_values.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_null_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH diff --git a/parser/testdata/corpus/sql/cte/cte_on_conflict_issue.test b/parser/testdata/corpus/sql/cte/cte_on_conflict_issue.test index dbdb27fa..e363f62a 100644 --- a/parser/testdata/corpus/sql/cte/cte_on_conflict_issue.test +++ b/parser/testdata/corpus/sql/cte/cte_on_conflict_issue.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_on_conflict_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 ( diff --git a/parser/testdata/corpus/sql/cte/cte_schema.test b/parser/testdata/corpus/sql/cte/cte_schema.test index 30326d1d..a19db7bb 100644 --- a/parser/testdata/corpus/sql/cte/cte_schema.test +++ b/parser/testdata/corpus/sql/cte/cte_schema.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table s1.tbl(a varchar); diff --git a/parser/testdata/corpus/sql/cte/cte_with_replacement_scan.test b/parser/testdata/corpus/sql/cte/cte_with_replacement_scan.test index 35ca86d3..672a5de3 100644 --- a/parser/testdata/corpus/sql/cte/cte_with_replacement_scan.test +++ b/parser/testdata/corpus/sql/cte/cte_with_replacement_scan.test @@ -1,6 +1,6 @@ # source: test/sql/cte/cte_with_replacement_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42 as answer) to '{TEST_DIR}/df.parquet'; diff --git a/parser/testdata/corpus/sql/cte/dml_cte.test b/parser/testdata/corpus/sql/cte/dml_cte.test index 6dc7070f..909db040 100644 --- a/parser/testdata/corpus/sql/cte/dml_cte.test +++ b/parser/testdata/corpus/sql/cte/dml_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/dml_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (i INTEGER, j INTEGER); @@ -354,10 +354,6 @@ SELECT 1; -- ok == -SELECT count(*) FROM t1; --- -ok -== CREATE TABLE t_unique (i INTEGER UNIQUE); -- ok diff --git a/parser/testdata/corpus/sql/cte/incorrect_recursive_cte.test b/parser/testdata/corpus/sql/cte/incorrect_recursive_cte.test index 6d8f89b7..d420c98a 100644 --- a/parser/testdata/corpus/sql/cte/incorrect_recursive_cte.test +++ b/parser/testdata/corpus/sql/cte/incorrect_recursive_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/incorrect_recursive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE cte AS (SELECT 42) SELECT * FROM cte; diff --git a/parser/testdata/corpus/sql/cte/insert_cte_bug_3417.test b/parser/testdata/corpus/sql/cte/insert_cte_bug_3417.test index 0f4c458c..ea631380 100644 --- a/parser/testdata/corpus/sql/cte/insert_cte_bug_3417.test +++ b/parser/testdata/corpus/sql/cte/insert_cte_bug_3417.test @@ -1,6 +1,6 @@ # source: test/sql/cte/insert_cte_bug_3417.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE table1 (id INTEGER, a INTEGER); diff --git a/parser/testdata/corpus/sql/cte/lazy_cte_bind.test b/parser/testdata/corpus/sql/cte/lazy_cte_bind.test index 532501ba..fe9d1f2f 100644 --- a/parser/testdata/corpus/sql/cte/lazy_cte_bind.test +++ b/parser/testdata/corpus/sql/cte/lazy_cte_bind.test @@ -1,6 +1,6 @@ # source: test/sql/cte/lazy_cte_bind.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte as (select * from read_parquet('does/not/exist/file.parquet')) diff --git a/parser/testdata/corpus/sql/cte/lazy_cte_bind_correlated.test b/parser/testdata/corpus/sql/cte/lazy_cte_bind_correlated.test index ee824065..adfd2d13 100644 --- a/parser/testdata/corpus/sql/cte/lazy_cte_bind_correlated.test +++ b/parser/testdata/corpus/sql/cte/lazy_cte_bind_correlated.test @@ -1,6 +1,6 @@ # source: test/sql/cte/lazy_cte_bind_correlated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT query, diff --git a/parser/testdata/corpus/sql/cte/materialized/annotated_and_auto_materialized.test b/parser/testdata/corpus/sql/cte/materialized/annotated_and_auto_materialized.test index d5ff7b3c..879c2199 100644 --- a/parser/testdata/corpus/sql/cte/materialized/annotated_and_auto_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/annotated_and_auto_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/annotated_and_auto_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table batch ( diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle.test b/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle.test new file mode 100644 index 00000000..ceaee57d --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle.test @@ -0,0 +1,29 @@ +# source: test/sql/cte/materialized/cte_buffered_consumer_cycle.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(a INTEGER, b VARCHAR); +-- +ok +== +INSERT INTO t VALUES (0, '0'), (1, '1'); +-- +ok +== +CREATE TABLE u(a INTEGER); +-- +ok +== +INSERT INTO u SELECT 1 FROM range(1000); +-- +ok +== +SELECT count(nullif((SELECT min(1) FROM t t2 WHERE t2.a >= u.a), 1)) AS c1, count(CASE WHEN NOT EXISTS ((SELECT 1, 1, 1, 1 FROM (SELECT 1 WHERE false) WHERE NOT EXISTS (SELECT t.b)) EXCEPT ALL (SELECT 1, 1, t.a, 1)) THEN 1 END) AS c2 FROM u, t; +-- +ok +== +EXPLAIN ANALYZE SELECT count(nullif((SELECT min(1) FROM t t2 WHERE t2.a >= u.a), 1)) AS c1, count(CASE WHEN NOT EXISTS ((SELECT 1, 1, 1, 1 FROM (SELECT 1 WHERE false) WHERE NOT EXISTS (SELECT t.b)) EXCEPT ALL (SELECT 1, 1, t.a, 1)) THEN 1 END) AS c2 FROM u, t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle_demotion.test b/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle_demotion.test new file mode 100644 index 00000000..d0cd3068 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_buffered_consumer_cycle_demotion.test @@ -0,0 +1,107 @@ +# source: test/sql/cte/materialized/cte_buffered_consumer_cycle_demotion.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL enable_logging('PhysicalOperator', storage='memory'); +-- +ok +== +SET memory_limit='200MB'; +-- +ok +== +WITH c2 AS MATERIALIZED (SELECT range AS a FROM range(15000000)), c1 AS MATERIALIZED (SELECT a FROM c2 LIMIT 5) SELECT count(*) FROM c2 JOIN c1 ON c2.a = c1.a; +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=CYCLE%'; +-- +ok +== +WITH c2 AS MATERIALIZED (SELECT range a FROM range(2000000)), d AS MATERIALIZED (SELECT a FROM c2 WHERE a % 100000 = 0) SELECT count(*) FROM (SELECT c2.a FROM c2 JOIN d ON c2.a = d.a LIMIT 3) q; +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=GATED%'; +-- +ok +== +WITH c AS MATERIALIZED (SELECT range i FROM range(2000000)), d AS MATERIALIZED (SELECT i FROM c WHERE i % 100000 = 0) SELECT count(*) FROM ((SELECT i FROM c LIMIT 1) UNION ALL (SELECT c.i FROM c JOIN d ON c.i = d.i LIMIT 3) LIMIT 4) q; +-- +ok +== +SET debug_verify_progress_ignore='STALLED:CTE_SCAN'; +-- +ok +== +WITH c AS MATERIALIZED (SELECT i FROM range(1000000) r(i)) SELECT count(*) FROM ((SELECT i FROM c LIMIT 1) UNION ALL (SELECT i FROM c LIMIT 1) LIMIT 2) q; +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%mode=MATERIALIZED%'; +-- +ok +== +CREATE TABLE rf_t AS SELECT (range % 2000000)::BIGINT k FROM range(8000000); +-- +ok +== +WITH c AS MATERIALIZED (SELECT range i FROM range(2000000)), + d AS MATERIALIZED (SELECT i FROM c WHERE i % 100000 = 0) +SELECT count(*) FROM ( + SELECT g.k FROM ( + SELECT k FROM ( + (SELECT 0::BIGINT AS k) + UNION ALL + (SELECT k FROM rf_t GROUP BY k) + UNION ALL + (SELECT i AS k FROM c LIMIT 3) + ) u GROUP BY k + ) g JOIN d ON g.k = d.i +) q; +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=GATED%'; +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%mode=BUFFERED%'; +-- +ok +== +CREATE TEMP TABLE gated_with_filters AS +SELECT count(*) AS demotions FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=GATED%'; +-- +ok +== +SET disabled_optimizers='join_filter_pushdown'; +-- +ok +== +SELECT demotions >= (SELECT count(*) FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=GATED%') +FROM gated_with_filters; +-- +ok +== +DROP TABLE gated_with_filters; +-- +ok +== +RESET disabled_optimizers; +-- +ok +== +DROP TABLE rf_t; +-- +ok +== +WITH c AS MATERIALIZED ( + SELECT i FROM range(10000000) r(i) +) +SELECT (SELECT count(*) FROM (SELECT * FROM c LIMIT 1)) AS x, + (SELECT count(*) FROM (SELECT * FROM c LIMIT 1)) AS y; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_filter_pusher.test b/parser/testdata/corpus/sql/cte/materialized/cte_filter_pusher.test index f2feda44..519a90c5 100644 --- a/parser/testdata/corpus/sql/cte/materialized/cte_filter_pusher.test +++ b/parser/testdata/corpus/sql/cte/materialized/cte_filter_pusher.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/cte_filter_pusher.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer.test b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer.test new file mode 100644 index 00000000..b284b619 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer.test @@ -0,0 +1,133 @@ +# source: test/sql/cte/materialized/cte_gated_buffered_consumer.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +WITH c2 AS MATERIALIZED (SELECT range a FROM range(2000000)), + d AS MATERIALIZED (SELECT a FROM c2 WHERE a % 100000 = 0) +SELECT count(*) FROM (SELECT c2.a FROM c2 JOIN d ON c2.a = d.a LIMIT 3) q; +-- +ok +== +WITH c2 AS MATERIALIZED (SELECT range a FROM range(2000000)), + d AS MATERIALIZED (SELECT a FROM c2 WHERE a % 100000 = 0), + e AS MATERIALIZED (SELECT a FROM d LIMIT 100000000) +SELECT count(*) FROM (SELECT c2.a FROM c2 JOIN e ON c2.a = e.a LIMIT 3) q; +-- +ok +== +WITH c AS MATERIALIZED (SELECT range i FROM range(2000000)), + d AS MATERIALIZED (SELECT i FROM c WHERE i % 100000 = 0) +SELECT count(*) +FROM ( + (SELECT i FROM c LIMIT 1) + UNION ALL + (SELECT c.i FROM c JOIN d ON c.i = d.i LIMIT 3) + LIMIT 4 +) q; +-- +ok +== +WITH c AS MATERIALIZED ( + SELECT i FROM range(500000) r(i) + UNION ALL + SELECT i + 500000 FROM range(500000) r(i) +) +SELECT count(*) +FROM ( + (SELECT i FROM c LIMIT 100000) + UNION ALL + (SELECT i FROM c LIMIT 1) + LIMIT 100001 +) q; +-- +ok +== +WITH c AS MATERIALIZED ( + SELECT i FROM range(1000000) r(i) +) +SELECT sum(v) +FROM ( + (SELECT row_number() OVER (ORDER BY i) AS v FROM c) + UNION ALL + (SELECT 0::BIGINT AS v FROM c LIMIT 1) + LIMIT 1000001 +) q; +-- +ok +== +SET debug_disable_optimizer=true; +-- +ok +== +WITH a AS MATERIALIZED ( + SELECT i FROM range(1000000) r(i) +), b AS MATERIALIZED ( + SELECT i FROM a LIMIT 1000000 +), d AS MATERIALIZED ( + SELECT i FROM a WHERE i % 100000 = 0 +) +SELECT count(*) +FROM ( + (SELECT a.i FROM a JOIN d ON a.i = d.i LIMIT 3) + UNION ALL + (SELECT b.i FROM b LIMIT 3) + LIMIT 6 +) q; +-- +ok +== +WITH a AS MATERIALIZED ( + SELECT i FROM range(1000000) r(i) +), b AS MATERIALIZED ( + SELECT i FROM a LIMIT 1000000 +), d AS MATERIALIZED ( + SELECT i FROM a WHERE i % 100000 = 0 +) +SELECT count(*) FROM (SELECT b.i FROM b JOIN d ON b.i = d.i LIMIT 3) q; +-- +ok +== +WITH a AS MATERIALIZED ( + SELECT i FROM range(1000000) r(i) +), b AS MATERIALIZED ( + SELECT i FROM a LIMIT 1 +) +SELECT count(*) +FROM ( + (SELECT i FROM b LIMIT 1) + UNION ALL + (SELECT i FROM a LIMIT 1) + LIMIT 2 +) q; +-- +ok +== +WITH a AS MATERIALIZED ( + SELECT i FROM range(1000000) r(i) +), d AS MATERIALIZED ( + SELECT i FROM a WHERE i % 100000 = 0 +), b AS MATERIALIZED ( + SELECT i FROM d +) +SELECT count(*) +FROM ( + (SELECT i FROM b LIMIT 100000000) + UNION ALL + (SELECT i FROM a LIMIT 1) + LIMIT 100000001 +) q; +-- +ok +== +WITH a AS MATERIALIZED (SELECT i FROM range(1000000) r(i)), + b AS MATERIALIZED (SELECT i FROM range(1000000) r(i)) +SELECT count(*) +FROM ( + (SELECT a.i FROM a JOIN b ON a.i = b.i LIMIT 3) + UNION ALL + (SELECT b.i FROM b JOIN a ON b.i = a.i LIMIT 3) +) q; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_27925.test b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_27925.test new file mode 100644 index 00000000..eb22bc23 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_27925.test @@ -0,0 +1,52 @@ +# source: test/sql/cte/materialized/cte_gated_buffered_consumer_27925.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +WITH dude AS (SELECT range AS k FROM range(1000000)) +SELECT * +FROM (SELECT * FROM dude LIMIT 1) a, + (SELECT count(*) FROM (SELECT k FROM dude ORDER BY k)) b; +-- +ok +== +CREATE TABLE own AS +SELECT DATE '2024-01-01' AS report_date, + i AS plant_id_eia, + 'g' || (i % 7) AS generator_id, + CASE WHEN i = 0 THEN 1.05 WHEN i = 1 THEN 0.99 ELSE 0.5 END AS fraction_owned +FROM range(300000) r(i); +-- +ok +== +WITH OwnSum AS ( + SELECT report_date, plant_id_eia, generator_id, + sum(fraction_owned) AS fraction_owned, 1 AS toy_join + FROM own + GROUP BY report_date, plant_id_eia, generator_id + HAVING fraction_owned IS NOT NULL +), OwnSumInvalid AS ( + SELECT * FROM OwnSum WHERE fraction_owned > 1.02 + LIMIT 1000000 OFFSET 0 +), PercentileScores AS ( + SELECT fraction_owned, + row_number() OVER w AS "row_number", + percent_rank() OVER w AS "percent_rank" + FROM OwnSum + WINDOW w AS (ORDER BY fraction_owned) +), PercentileMissing AS ( + SELECT percent_rank AS pct_missing, 1 AS toy_join + FROM PercentileScores + WHERE fraction_owned >= 0.98 + LIMIT 1 +), Summary AS ( + SELECT * FROM OwnSumInvalid RIGHT JOIN PercentileMissing USING (toy_join) +) +SELECT count(*) FROM Summary WHERE (report_date IS NOT NULL) OR (pct_missing >= 0.5); +-- +ok +== +DROP TABLE own; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_runtime_filter.test b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_runtime_filter.test new file mode 100644 index 00000000..e9069e39 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_gated_buffered_consumer_runtime_filter.test @@ -0,0 +1,53 @@ +# source: test/sql/cte/materialized/cte_gated_buffered_consumer_runtime_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT (range % 2000000)::BIGINT k FROM range(8000000); +-- +ok +== +WITH c AS MATERIALIZED (SELECT range i FROM range(2000000)), + d AS MATERIALIZED (SELECT i FROM c WHERE i % 100000 = 0) +SELECT count(*) FROM ( + SELECT g.k FROM ( + SELECT k FROM ( + (SELECT 0::BIGINT AS k) + UNION ALL + (SELECT k FROM t GROUP BY k) + UNION ALL + (SELECT i AS k FROM c LIMIT 3) + ) u GROUP BY k + ) g JOIN d ON g.k = d.i +) q; +-- +ok +== +CREATE TABLE sel AS SELECT (range * 100000)::BIGINT k FROM range(10); +-- +ok +== +CREATE TABLE t2 AS SELECT (range % 2000000)::BIGINT k FROM range(8000000); +-- +ok +== +WITH c AS MATERIALIZED (SELECT t.k FROM t JOIN sel ON t.k = sel.k), + d AS MATERIALIZED (SELECT k FROM c WHERE k % 100000 = 0) +SELECT count(*) FROM ( + SELECT g.k FROM ( + SELECT k FROM ( + (SELECT 0::BIGINT AS k) + UNION ALL + (SELECT k FROM t2 GROUP BY k) + UNION ALL + (SELECT k FROM c LIMIT 3) + ) u GROUP BY k + ) g JOIN d ON g.k = d.k +) q; +-- +ok +== +DROP TABLE sel; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_nested_buffered_consumer_cycle.test b/parser/testdata/corpus/sql/cte/materialized/cte_nested_buffered_consumer_cycle.test new file mode 100644 index 00000000..f6971aa1 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_nested_buffered_consumer_cycle.test @@ -0,0 +1,19 @@ +# source: test/sql/cte/materialized/cte_nested_buffered_consumer_cycle.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +EXPLAIN ANALYZE WITH c2 AS MATERIALIZED (SELECT range AS a FROM range(15000000)), c1 AS MATERIALIZED (SELECT a FROM c2 LIMIT 5) SELECT count(*) FROM c2 JOIN c1 ON c2.a = c1.a; +-- +ok +== +WITH c AS MATERIALIZED (SELECT i FROM range(1000000) r(i)) +SELECT count(*) FROM ( + (SELECT i FROM c LIMIT 1) + UNION ALL + (SELECT i FROM c LIMIT 1) + LIMIT 2 +) q; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_effects.test b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_effects.test new file mode 100644 index 00000000..3e58f79b --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_effects.test @@ -0,0 +1,115 @@ +# source: test/sql/cte/materialized/cte_runtime_filter_effects.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='cte_filter_pusher,statistics_propagation,join_order,build_side_probe_side,compressed_materialization'; +-- +ok +== +SET max_execution_time=5000; +-- +ok +== +CREATE TABLE probe AS SELECT i AS k FROM range(10000) t(i); +-- +ok +== +CREATE TABLE b(s VARCHAR); +-- +ok +== +CREATE TABLE c(s VARCHAR); +-- +ok +== +INSERT INTO b VALUES ('1'); +-- +ok +== +INSERT INTO c VALUES ('2'); +-- +ok +== +PREPARE changing_builds AS +WITH p AS MATERIALIZED (SELECT k FROM probe) +SELECT p.k FROM p JOIN b ON p.k=CAST(b.s AS BIGINT) +UNION ALL SELECT p.k FROM p JOIN c ON p.k=CAST(c.s AS BIGINT); +-- +ok +== +EXECUTE changing_builds; +-- +ok +== +INSERT INTO b VALUES ('bad'); +-- +ok +== +DELETE FROM b; +-- +ok +== +INSERT INTO b VALUES ('3'); +-- +ok +== +CREATE TABLE wide(k BIGINT); +-- +ok +== +INSERT INTO wide VALUES (1),(2),(5000000000); +-- +ok +== +WITH p AS MATERIALIZED (SELECT CAST(k AS INTEGER) k FROM wide) +SELECT p.k FROM p JOIN b ON p.k=CAST(b.s AS BIGINT) +UNION ALL SELECT p.k FROM p JOIN c ON p.k=CAST(c.s AS BIGINT); +-- +ok +== +CREATE SEQUENCE cte_effect_seq; +-- +ok +== +CREATE TABLE sequence_probe AS SELECT i AS k FROM range(20) t(i); +-- +ok +== +WITH p AS MATERIALIZED (SELECT k,nextval('cte_effect_seq') n FROM sequence_probe) +SELECT count(*),bool_and(n>0)::INTEGER FROM ( + SELECT p.n FROM p JOIN b ON p.k=CAST(b.s AS BIGINT) + UNION ALL SELECT p.n FROM p JOIN c ON p.k=CAST(c.s AS BIGINT) +) matches; +-- +ok +== +SELECT currval('cte_effect_seq'); +-- +ok +== +CREATE TABLE miss_a AS SELECT 100::BIGINT k; +-- +ok +== +CREATE TABLE miss_b AS SELECT 101::BIGINT k; +-- +ok +== +CREATE SEQUENCE sibling_effect_seq; +-- +ok +== +WITH p AS MATERIALIZED (SELECT k FROM sequence_probe) +SELECT count(n) FROM ( + SELECT v.n FROM (SELECT i k,nextval('sibling_effect_seq') n FROM range(10) t(i)) v + JOIN p ON v.k=p.k JOIN miss_a ON p.k=miss_a.k + UNION ALL SELECT p.k FROM p JOIN miss_b ON p.k=miss_b.k +) matches; +-- +ok +== +SELECT currval('sibling_effect_seq'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_modes.test b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_modes.test new file mode 100644 index 00000000..8915d4d5 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_modes.test @@ -0,0 +1,100 @@ +# source: test/sql/cte/materialized/cte_runtime_filter_modes.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET memory_limit='64MB'; +-- +ok +== +SET operator_memory_limit='256KB'; +-- +ok +== +SET disabled_optimizers='cte_filter_pusher,build_side_probe_side'; +-- +ok +== +CREATE TABLE facts AS SELECT i AS k,repeat('x',64) AS payload FROM range(50000) t(i); +-- +ok +== +CREATE TABLE b AS SELECT * FROM (VALUES (1),(3)) t(k); +-- +ok +== +CREATE TABLE c AS SELECT * FROM (VALUES (3),(5)) t(k); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT (SELECT sum(length(payload)) FROM p JOIN b USING(k)), + (SELECT count(*) FROM p JOIN c USING(k)); +-- +ok +== +EXPLAIN (ANALYZE, FORMAT JSON) +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT (SELECT sum(length(payload)) FROM p JOIN b USING(k)), + (SELECT count(*) FROM p JOIN c USING(k)); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT (SELECT count(*) FROM (SELECT k FROM p JOIN b USING(k) LIMIT 1) t), + (SELECT count(*) FROM (SELECT k FROM p JOIN c USING(k) LIMIT 1) t); +-- +ok +== +EXPLAIN (ANALYZE, FORMAT JSON) +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT (SELECT count(*) FROM (SELECT k FROM p JOIN b USING(k) LIMIT 1) t), + (SELECT count(*) FROM (SELECT k FROM p JOIN c USING(k) LIMIT 1) t); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT count(*),sum(length(x.payload)) +FROM (SELECT p.* FROM p JOIN b USING(k)) x +JOIN (SELECT p.* FROM p JOIN c USING(k)) y USING(k); +-- +ok +== +EXPLAIN (ANALYZE, FORMAT JSON) +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT count(*),sum(length(x.payload)) +FROM (SELECT p.* FROM p JOIN b USING(k)) x +JOIN (SELECT p.* FROM p JOIN c USING(k)) y USING(k); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM facts) +SELECT (SELECT sum(length(payload)) FROM p JOIN b USING(k)), + (SELECT count(*) FROM p); +-- +ok +== +CREATE TABLE large_facts AS SELECT i AS k FROM range(600000) t(i); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM large_facts) +SELECT (SELECT count(*) FROM ( + SELECT p.k FROM p JOIN (SELECT i AS k FROM range(600000) t(i) WHERE i IN (1,3)) b USING(k) LIMIT 1 + ) t), + (SELECT count(*) FROM (SELECT k FROM p JOIN c USING(k) LIMIT 1) t); +-- +ok +== +WITH p AS MATERIALIZED ( + SELECT * FROM large_facts WHERE k<300000 + UNION ALL + SELECT * FROM large_facts WHERE k>=300000 +) +SELECT (SELECT count(*) FROM ( + SELECT p.k FROM p JOIN (SELECT i AS k FROM range(600000) t(i) WHERE i IN (1,3)) b USING(k) LIMIT 1 + ) t), + (SELECT count(*) FROM (SELECT k FROM p JOIN c USING(k) LIMIT 1) t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_selection.test b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_selection.test new file mode 100644 index 00000000..3d3914c9 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_selection.test @@ -0,0 +1,27 @@ +# source: test/sql/cte/materialized/cte_runtime_filter_selection.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS + SELECT CASE WHEN i = 0 THEN NULL ELSE repeat(chr(97 + (i % 3)::INT), 16) END AS s + FROM range(15) r(i); +-- +ok +== +CREATE TABLE x AS SELECT * FROM (VALUES ('aaaaaaaaaaaaaaaa'), ('cccccccccccccccc')) v(id); +-- +ok +== +CREATE TABLE y AS SELECT * FROM (VALUES ('bbbbbbbbbbbbbbbb')) v(id); +-- +ok +== +WITH counts AS (SELECT s, count(*) AS n FROM t WHERE s IS NOT NULL GROUP BY s) +SELECT id, n FROM x LEFT JOIN counts ON s = id +UNION ALL +SELECT id, n FROM y LEFT JOIN counts ON s = id +ORDER BY id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_sibling_dependencies.test b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_sibling_dependencies.test new file mode 100644 index 00000000..852a4f7c --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filter_sibling_dependencies.test @@ -0,0 +1,98 @@ +# source: test/sql/cte/materialized/cte_runtime_filter_sibling_dependencies.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='cte_filter_pusher'; +-- +ok +== +CREATE TABLE facts AS SELECT i%10000 AS k,i AS v FROM range(200000) t(i); +-- +ok +== +CREATE TABLE dates AS SELECT i AS k,i//10 AS g FROM range(10000) t(i); +-- +ok +== +CREATE TABLE b AS SELECT i AS g FROM range(100,300) t(i); +-- +ok +== +CREATE TABLE c AS SELECT i AS g FROM range(500,700) t(i); +-- +ok +== +PREPARE consumers AS +WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g) +SELECT sum(x.v),sum(y.v) +FROM (SELECT p.* FROM p JOIN b USING(g)) x +JOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400; +-- +ok +== +EXECUTE consumers; +-- +ok +== +EXPLAIN (ANALYZE, FORMAT JSON) +WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g) +SELECT sum(x.v),sum(y.v) +FROM (SELECT p.* FROM p JOIN b USING(g)) x +JOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400; +-- +ok +== +WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g) +SELECT sum(x.v),sum(y.v) +FROM (SELECT p.* FROM p JOIN (FROM b WHERE g<200 UNION ALL FROM b WHERE g>=200) t USING(g)) x +JOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400; +-- +ok +== +WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g) +SELECT sum(x.v),sum(y.v) +FROM (SELECT p.* FROM p JOIN (SELECT 100+unnest(range(20000))%200 AS g) t USING(g)) x +JOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400; +-- +ok +== +RESET debug_force_external; +-- +ok +== +INSERT INTO b SELECT i FROM range(120,140) t(i); +-- +ok +== +SET memory_limit='512MB'; +-- +ok +== +CREATE OR REPLACE TABLE facts AS SELECT i%200000 AS k,i AS v FROM range(400000) t(i); +-- +ok +== +CREATE OR REPLACE TABLE dates AS SELECT i AS k,i+100000 AS g FROM range(200000) t(i); +-- +ok +== +CREATE OR REPLACE TABLE b AS SELECT 100100+i AS g FROM range(200) t(i); +-- +ok +== +CREATE OR REPLACE TABLE c AS SELECT i AS g FROM range(100500,100700) t(i); +-- +ok +== +INSERT INTO b SELECT 100100+i%200 FROM range(999800) t(i); +-- +ok +== +WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g) +SELECT sum(x.v),sum(y.v) +FROM (SELECT p.* FROM p JOIN b USING(g)) x +JOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filters.test b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filters.test new file mode 100644 index 00000000..f1d99ac8 --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_runtime_filters.test @@ -0,0 +1,189 @@ +# source: test/sql/cte/materialized/cte_runtime_filters.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE probe AS SELECT i AS k,i%7 AS v FROM range(10000) t(i); +-- +ok +== +CREATE TABLE b(k BIGINT); +-- +ok +== +CREATE TABLE c(k BIGINT); +-- +ok +== +INSERT INTO b VALUES (1),(42); +-- +ok +== +INSERT INTO c VALUES (42),(99); +-- +ok +== +PREPARE consumers AS +WITH p AS MATERIALIZED (SELECT k FROM probe) +SELECT p.k,'b' AS consumer FROM p JOIN b ON p.k=b.k +UNION ALL SELECT p.k,'c' FROM p JOIN c ON p.k=c.k; +-- +ok +== +DELETE FROM c; +-- +ok +== +INSERT INTO b VALUES (12),(NULL); +-- +ok +== +INSERT INTO c VALUES (17),(12); +-- +ok +== +INSERT INTO b VALUES (NULL); +-- +ok +== +INSERT INTO c VALUES (NULL); +-- +ok +== +INSERT INTO b VALUES (1); +-- +ok +== +INSERT INTO c VALUES (9999); +-- +ok +== +WITH p AS MATERIALIZED (SELECT k FROM probe) +SELECT (SELECT k FROM p ORDER BY k LIMIT 1), + (SELECT count(*) FROM p JOIN b USING(k)), + (SELECT count(*) FROM p JOIN c USING(k)); +-- +ok +== +WITH p AS MATERIALIZED (SELECT k FROM probe) +SELECT sum(n) FROM ( + SELECT count(*) n FROM p JOIN b USING(k) + UNION ALL + SELECT count(*) n FROM p x JOIN (SELECT y.k FROM p y JOIN c USING(k)) z USING(k) +) counts; +-- +ok +== +WITH p AS MATERIALIZED (SELECT CAST(k AS INTEGER) alias,count(*) n FROM probe GROUP BY k) +SELECT p.alias,p.n FROM p JOIN b ON p.alias=b.k +UNION ALL SELECT p.alias,p.n FROM p JOIN c ON p.alias=c.k; +-- +ok +== +WITH p AS MATERIALIZED (SELECT k,row_number() OVER (PARTITION BY k ORDER BY v) n FROM probe) +SELECT p.k,p.n FROM p JOIN b USING(k) +UNION ALL SELECT p.k,p.n FROM p JOIN c USING(k); +-- +ok +== +WITH p AS MATERIALIZED (SELECT k FROM probe ORDER BY k LIMIT 3) +SELECT p.k FROM p JOIN b USING(k) +UNION ALL SELECT p.k FROM p JOIN c USING(k); +-- +ok +== +WITH q AS MATERIALIZED (SELECT k FROM probe),p AS MATERIALIZED (SELECT k FROM q) +SELECT p.k FROM p JOIN b USING(k) +UNION ALL SELECT p.k FROM p JOIN c USING(k); +-- +ok +== +CREATE TABLE pairs(a BIGINT,b BIGINT); +-- +ok +== +INSERT INTO pairs VALUES (1,2),(1,4),(3,2),(3,4),(NULL,2); +-- +ok +== +CREATE TABLE first_pair AS SELECT 1::BIGINT a,2::BIGINT b; +-- +ok +== +CREATE TABLE second_pair AS SELECT 3::BIGINT a,4::BIGINT b; +-- +ok +== +WITH p AS MATERIALIZED (SELECT b AS y,a AS x FROM pairs) +SELECT p.x,p.y FROM p JOIN first_pair f ON p.x=f.a AND p.y=f.b +UNION ALL SELECT p.x,p.y FROM p JOIN second_pair s ON p.x=s.a AND p.y=s.b; +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM pairs) +SELECT p.a,p.b FROM p JOIN first_pair f ON p.b=f.b WHERE p.a=1 +UNION ALL SELECT p.a,p.b FROM p JOIN second_pair s ON p.b=s.b WHERE p.a=3; +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM pairs) +SELECT p.a,p.b FROM p JOIN first_pair f ON p.a=f.a +UNION ALL SELECT p.a,p.b FROM p JOIN second_pair s ON p.b=s.b WHERE p.a=3; +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM pairs) +SELECT p.a,p.b FROM p JOIN first_pair f ON p.b=f.b WHERE p.a IS NULL +UNION ALL SELECT p.a,p.b FROM p JOIN second_pair s ON p.b=s.b WHERE p.a=3 +ORDER BY 1 NULLS FIRST; +-- +ok +== +WITH p AS MATERIALIZED (SELECT a FROM pairs) +SELECT count(*),count(*) FILTER (WHERE a IS NULL) FROM ( + SELECT p.a FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.k + UNION ALL SELECT p.a FROM p JOIN first_pair f ON p.a=f.a +) result; +-- +ok +== +WITH p AS MATERIALIZED (SELECT a FROM pairs) +SELECT count(*),count(*) FILTER (WHERE a IS NULL) FROM ( + SELECT p.a FROM p LEFT JOIN b ON p.a=b.k + UNION ALL SELECT p.a FROM p JOIN first_pair f ON p.a=f.a +) result; +-- +ok +== +CREATE TABLE strings AS SELECT repeat(s,100) s FROM (VALUES ('a'),('m'),('z'),(NULL)) t(s); +-- +ok +== +CREATE TABLE string_b AS SELECT repeat('a',100) s; +-- +ok +== +CREATE TABLE string_c AS SELECT repeat('z',100) s; +-- +ok +== +WITH p AS MATERIALIZED (SELECT s FROM strings) +SELECT length(p.s),left(p.s,1) FROM p JOIN string_b b USING(s) +UNION ALL SELECT length(p.s),left(p.s,1) FROM p JOIN string_c c USING(s); +-- +ok +== +CREATE TABLE nested(k BIGINT,payload INTEGER[]); +-- +ok +== +INSERT INTO nested VALUES (1,[NULL,2]),(9999,[3,4]); +-- +ok +== +WITH p AS MATERIALIZED (SELECT * FROM nested) +SELECT p.k,p.payload FROM p JOIN b USING(k) +UNION ALL SELECT p.k,p.payload FROM p JOIN c USING(k); +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/cte_streaming_over_materialization.test b/parser/testdata/corpus/sql/cte/materialized/cte_streaming_over_materialization.test new file mode 100644 index 00000000..898bf3bd --- /dev/null +++ b/parser/testdata/corpus/sql/cte/materialized/cte_streaming_over_materialization.test @@ -0,0 +1,9 @@ +# source: test/sql/cte/materialized/cte_streaming_over_materialization.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET temp_directory=''; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/materialized/dml_materialized_cte.test b/parser/testdata/corpus/sql/cte/materialized/dml_materialized_cte.test index 78ad0024..0c0f7c92 100644 --- a/parser/testdata/corpus/sql/cte/materialized/dml_materialized_cte.test +++ b/parser/testdata/corpus/sql/cte/materialized/dml_materialized_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/dml_materialized_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a(i integer); diff --git a/parser/testdata/corpus/sql/cte/materialized/incorrect_recursive_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/incorrect_recursive_cte_materialized.test index 9f3b89f8..d71011b0 100644 --- a/parser/testdata/corpus/sql/cte/materialized/incorrect_recursive_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/incorrect_recursive_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/incorrect_recursive_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE cte AS MATERIALIZED (SELECT 42) SELECT * FROM cte; diff --git a/parser/testdata/corpus/sql/cte/materialized/internal_3004.test b/parser/testdata/corpus/sql/cte/materialized/internal_3004.test index 9fd7a84d..5feeb89c 100644 --- a/parser/testdata/corpus/sql/cte/materialized/internal_3004.test +++ b/parser/testdata/corpus/sql/cte/materialized/internal_3004.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/internal_3004.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with diff --git a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_modifiers.test b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_modifiers.test index 0eccc011..52c942d7 100644 --- a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_modifiers.test +++ b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_modifiers.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/materialized_cte_modifiers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit call dsdgen(sf=0) diff --git a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_order_preservation.test b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_order_preservation.test index 7749046e..e9903d49 100644 --- a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_order_preservation.test +++ b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_order_preservation.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/materialized_cte_order_preservation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cte_order_batch AS SELECT i FROM range(1000000) tbl(i); diff --git a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_buffered.test b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_buffered.test index 7b974de4..e9e6ba70 100644 --- a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_buffered.test +++ b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_buffered.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/materialized_cte_parallel_buffered.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cte_parallel_left AS SELECT i FROM range(600000) tbl(i); diff --git a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_scan.test b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_scan.test index 5dae8444..d2b4c653 100644 --- a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_scan.test +++ b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_parallel_scan.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/materialized_cte_parallel_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_progress='error'; diff --git a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_prepared.test b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_prepared.test index 26b3cccb..116396ae 100644 --- a/parser/testdata/corpus/sql/cte/materialized/materialized_cte_prepared.test +++ b/parser/testdata/corpus/sql/cte/materialized/materialized_cte_prepared.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/materialized_cte_prepared.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE direct_fanout_cte AS diff --git a/parser/testdata/corpus/sql/cte/materialized/recursive_array_slice_materialized.test b/parser/testdata/corpus/sql/cte/materialized/recursive_array_slice_materialized.test index 9120fe62..f705e0bc 100644 --- a/parser/testdata/corpus/sql/cte/materialized/recursive_array_slice_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/recursive_array_slice_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/recursive_array_slice_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE p(loc int8); diff --git a/parser/testdata/corpus/sql/cte/materialized/recursive_cte_complex_pipelines.test b/parser/testdata/corpus/sql/cte/materialized/recursive_cte_complex_pipelines.test index b4510441..6bd0691b 100644 --- a/parser/testdata/corpus/sql/cte/materialized/recursive_cte_complex_pipelines.test +++ b/parser/testdata/corpus/sql/cte/materialized/recursive_cte_complex_pipelines.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/recursive_cte_complex_pipelines.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t AS MATERIALIZED diff --git a/parser/testdata/corpus/sql/cte/materialized/recursive_cte_error_materialized.test b/parser/testdata/corpus/sql/cte/materialized/recursive_cte_error_materialized.test index 8983939e..5b1bfbe6 100644 --- a/parser/testdata/corpus/sql/cte/materialized/recursive_cte_error_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/recursive_cte_error_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/recursive_cte_error_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tag(id int, name string, subclassof int); diff --git a/parser/testdata/corpus/sql/cte/materialized/recursive_hang_2745_materialized.test b/parser/testdata/corpus/sql/cte/materialized/recursive_hang_2745_materialized.test index 4cf951d1..73301314 100644 --- a/parser/testdata/corpus/sql/cte/materialized/recursive_hang_2745_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/recursive_hang_2745_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/recursive_hang_2745_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with RECURSIVE parents_tab (id , value , parent ) diff --git a/parser/testdata/corpus/sql/cte/materialized/test_bug_922_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_bug_922_materialized.test index cf7cd825..74dd7305 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_bug_922_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_bug_922_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_bug_922_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH my_list(value) AS MATERIALIZED (VALUES (1), (2), (3)) diff --git a/parser/testdata/corpus/sql/cte/materialized/test_correlated_recursive_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_correlated_recursive_cte_materialized.test index e87e44eb..c5a13b90 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_correlated_recursive_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_correlated_recursive_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_correlated_recursive_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x, y diff --git a/parser/testdata/corpus/sql/cte/materialized/test_cte_hash_join_exchange.test b/parser/testdata/corpus/sql/cte/materialized/test_cte_hash_join_exchange.test index f174f428..1bd4877a 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_cte_hash_join_exchange.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_cte_hash_join_exchange.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_cte_hash_join_exchange.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='join_order,build_side_probe_side'; @@ -222,14 +222,6 @@ EXECUTE cte_hash_join; -- ok == -SET memory_limit='64MB'; --- -ok -== -SET operator_memory_limit='256KB'; --- -ok -== EXPLAIN ANALYZE WITH c AS MATERIALIZED ( SELECT i, repeat('x', 32) payload FROM range(10000) t(i) @@ -315,7 +307,3 @@ SELECT count(*) FROM c l JOIN c r USING (i); -- ok == -RESET disabled_optimizers; --- -ok -== diff --git a/parser/testdata/corpus/sql/cte/materialized/test_cte_in_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_cte_in_cte_materialized.test index 3a78c37d..56beb406 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_cte_in_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_cte_in_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_cte_in_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte1 as MATERIALIZED (Select i as j from a) select * from cte1; diff --git a/parser/testdata/corpus/sql/cte/materialized/test_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_cte_materialized.test index 5f8c32f5..d73854ec 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte1 as MATERIALIZED (Select i as j from a) select x from cte1 t1(x); diff --git a/parser/testdata/corpus/sql/cte/materialized/test_cte_overflow_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_cte_overflow_materialized.test index 90f41483..ef9beba0 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_cte_overflow_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_cte_overflow_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_cte_overflow_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a (id integer) diff --git a/parser/testdata/corpus/sql/cte/materialized/test_issue_10260.test b/parser/testdata/corpus/sql/cte/materialized/test_issue_10260.test index 4ae300fe..64e77a85 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_issue_10260.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_issue_10260.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_issue_10260.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T0(C1 INT); diff --git a/parser/testdata/corpus/sql/cte/materialized/test_materialized_cte.test b/parser/testdata/corpus/sql/cte/materialized/test_materialized_cte.test index 4e4a0f0f..137f4d1e 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_materialized_cte.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_materialized_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_materialized_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t(x) AS MATERIALIZED (SELECT 1) SELECT * FROM t; diff --git a/parser/testdata/corpus/sql/cte/materialized/test_nested_recursive_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_nested_recursive_cte_materialized.test index ccf83c5a..7296c6a0 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_nested_recursive_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_nested_recursive_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_nested_recursive_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(x) AS MATERIALIZED diff --git a/parser/testdata/corpus/sql/cte/materialized/test_outer_joins_recursive_cte_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_outer_joins_recursive_cte_materialized.test index 235d5f7b..4424a370 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_outer_joins_recursive_cte_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_outer_joins_recursive_cte_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_outer_joins_recursive_cte_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v(x INT); diff --git a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_tutorial_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_tutorial_materialized.test index 7df47e8c..0a83c1dc 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_tutorial_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_tutorial_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_recursive_cte_tutorial_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE emp (empno INTEGER PRIMARY KEY, diff --git a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_all_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_all_materialized.test index d666a01d..45ae2f5e 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_all_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_all_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_recursive_cte_union_all_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with recursive t as MATERIALIZED (select 1 as x union all select x+1 from t where x < 3) select * from t diff --git a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_materialized.test b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_materialized.test index 5cb9667d..0e4305b6 100644 --- a/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_materialized.test +++ b/parser/testdata/corpus/sql/cte/materialized/test_recursive_cte_union_materialized.test @@ -1,6 +1,6 @@ # source: test/sql/cte/materialized/test_recursive_cte_union_materialized.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with recursive t as MATERIALIZED (select 1 as x union select x+1 from t where x < 3) select * from t order by x diff --git a/parser/testdata/corpus/sql/cte/recursive_array_slice.test b/parser/testdata/corpus/sql/cte/recursive_array_slice.test index 1964b1f6..81e05872 100644 --- a/parser/testdata/corpus/sql/cte/recursive_array_slice.test +++ b/parser/testdata/corpus/sql/cte/recursive_array_slice.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_array_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(y, arr) AS diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_batch_index.test b/parser/testdata/corpus/sql/cte/recursive_cte_batch_index.test index 96da2c49..5c24e51f 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_batch_index.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_batch_index.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_batch_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_column_pruning.test b/parser/testdata/corpus/sql/cte/recursive_cte_column_pruning.test index fc642d52..9a856f01 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_column_pruning.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_column_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_column_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN WITH RECURSIVE t(i, unused) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_complex_pipelines.test b/parser/testdata/corpus/sql/cte/recursive_cte_complex_pipelines.test index 02888427..587741b6 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_complex_pipelines.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_complex_pipelines.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_complex_pipelines.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t AS diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_correlated_bindings.test b/parser/testdata/corpus/sql/cte/recursive_cte_correlated_bindings.test index bc6edced..16ab819f 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_correlated_bindings.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_correlated_bindings.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_correlated_bindings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA {mode}; diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_correlated_complex.test b/parser/testdata/corpus/sql/cte/recursive_cte_correlated_complex.test index a2135e42..6d4d660b 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_correlated_complex.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_correlated_complex.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_correlated_complex.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s.s_name, COUNT(*) AS numwait diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_error.test b/parser/testdata/corpus/sql/cte/recursive_cte_error.test index e8079bc1..9c22e85b 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_error.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_error.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE tag_hierarchy(id, source, path, target) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build.test b/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build.test index cf800e4c..a17c19ef 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_invariant_build.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET enable_caching_operators=true diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build_logging.test b/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build_logging.test index 31e776a7..76b5ffe0 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build_logging.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_invariant_build_logging.test @@ -1,12 +1,8 @@ # source: test/sql/cte/recursive_cte_invariant_build_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CALL enable_logging('PhysicalOperator'); --- -ok -== WITH RECURSIVE r(i, sampled) AS ( VALUES (0, 0::BIGINT) UNION ALL @@ -22,10 +18,6 @@ SELECT count(*) FROM r; -- ok == -CALL disable_logging(); --- -ok -== SELECT info.retained_build_executions::UBIGINT FROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'PhysicalRecursiveCTE' AND event = 'RuntimeMetrics'; diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregate_subquery.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregate_subquery.test new file mode 100644 index 00000000..c24e170b --- /dev/null +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregate_subquery.test @@ -0,0 +1,85 @@ +# source: test/sql/cte/recursive_cte_key_aggregate_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +WITH RECURSIVE r(k, v) USING KEY (k, max((SELECT 1)) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(v + (SELECT 1)) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(EXISTS (SELECT 1)::INTEGER) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max((v IN (SELECT 10))::INTEGER) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max((SELECT max(k) FROM r)) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +CREATE MACRO sq() AS (SELECT 1); +-- +ok +== +CREATE MACRO plus_sq(x) AS x + (SELECT 1); +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(sq()) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(plus_sq(v)) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(v + 1) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + 1 FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== +WITH RECURSIVE r(k, v) USING KEY (k, max(v) AS v) AS ( + VALUES (1, 10) + UNION ALL + SELECT k + 1, v + (SELECT 1) FROM r WHERE k < 2) +SELECT * FROM r ORDER BY k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregation.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregation.test index 6374ae7f..eefcc88e 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregation.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_aggregation.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_aggregation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE tbl(a, b) USING KEY (a , max(b)) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_final_drain.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_final_drain.test index cbea56d1..6998bdc6 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_final_drain.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_final_drain.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_final_drain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET enable_caching_operators=true; diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_hll_aggregation.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_hll_aggregation.test index 07c3deae..80abe49c 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_hll_aggregation.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_hll_aggregation.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_hll_aggregation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table customers (id integer, cname varchar); diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_probe.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_probe.test index b830b072..9d25a8da 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_probe.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_probe.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_probe.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN WITH RECURSIVE t(k, v) USING KEY (k) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_snapshot.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_snapshot.test index 57724e91..4da89474 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_snapshot.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_snapshot.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_snapshot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(k, v) USING KEY (k) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_union.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_union.test index f7819671..7401c51b 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_union.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_union.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(k, v) USING KEY (k) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_key_union_plan.test b/parser/testdata/corpus/sql/cte/recursive_cte_key_union_plan.test index 9f373374..2a099d14 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_key_union_plan.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_key_union_plan.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_key_union_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN WITH RECURSIVE t(k, total) USING KEY (k, sum(total)) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_limit.test b/parser/testdata/corpus/sql/cte/recursive_cte_limit.test index 5779fd5e..384504aa 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_limit.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_limit.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(i) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_logging.test b/parser/testdata/corpus/sql/cte/recursive_cte_logging.test index d1e15e27..7621aff9 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_logging.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_logging.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(i) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_ordered_aggregate.test b/parser/testdata/corpus/sql/cte/recursive_cte_ordered_aggregate.test index 73ada237..44166b6d 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_ordered_aggregate.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_ordered_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_ordered_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE recursive_sorted_aggregate AS diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_ordered_member.test b/parser/testdata/corpus/sql/cte/recursive_cte_ordered_member.test index 9694d4d0..7e089715 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_ordered_member.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_ordered_member.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_ordered_member.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE recursive_ordered_member AS diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_output_publication.test b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_output_publication.test index 98ddceec..356fa205 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_output_publication.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_output_publication.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_parallel_output_publication.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH candidates AS MATERIALIZED ( diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_all_sink.test b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_all_sink.test index 45aa9e85..61713da9 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_all_sink.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_all_sink.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_parallel_union_all_sink.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(i, level) AS ( @@ -47,10 +47,6 @@ SELECT count(*), sum(i), max(level) FROM t; -- ok == -SET temp_directory=''; --- -ok -== WITH RECURSIVE t(i) AS ( VALUES (0::BIGINT) UNION ALL diff --git a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_distinct_sink.test b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_distinct_sink.test index bd18f013..3a6f32c4 100644 --- a/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_distinct_sink.test +++ b/parser/testdata/corpus/sql/cte/recursive_cte_parallel_union_distinct_sink.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_cte_parallel_union_distinct_sink.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(i, digest, level) AS ( diff --git a/parser/testdata/corpus/sql/cte/recursive_hang_2745.test b/parser/testdata/corpus/sql/cte/recursive_hang_2745.test index 51e023f9..92ba8716 100644 --- a/parser/testdata/corpus/sql/cte/recursive_hang_2745.test +++ b/parser/testdata/corpus/sql/cte/recursive_hang_2745.test @@ -1,6 +1,6 @@ # source: test/sql/cte/recursive_hang_2745.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with RECURSIVE parents_tab (id , value , parent ) diff --git a/parser/testdata/corpus/sql/cte/test_bug_922.test b/parser/testdata/corpus/sql/cte/test_bug_922.test index d1efb551..a0cff9df 100644 --- a/parser/testdata/corpus/sql/cte/test_bug_922.test +++ b/parser/testdata/corpus/sql/cte/test_bug_922.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_bug_922.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH my_list(value) AS (VALUES (1), (2), (3)) diff --git a/parser/testdata/corpus/sql/cte/test_cte.test b/parser/testdata/corpus/sql/cte/test_cte.test index a8758dfd..e9a466e8 100644 --- a/parser/testdata/corpus/sql/cte/test_cte.test +++ b/parser/testdata/corpus/sql/cte/test_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte1 as (Select i as j from a) select * from cte1; diff --git a/parser/testdata/corpus/sql/cte/test_cte_in_cte.test b/parser/testdata/corpus/sql/cte/test_cte_in_cte.test index fb80987b..fbab5ff2 100644 --- a/parser/testdata/corpus/sql/cte/test_cte_in_cte.test +++ b/parser/testdata/corpus/sql/cte/test_cte_in_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_cte_in_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte1 as (with b as (Select i as j from a) Select j from b) select x from cte1 t1(x); diff --git a/parser/testdata/corpus/sql/cte/test_cte_overflow.test b/parser/testdata/corpus/sql/cte/test_cte_overflow.test index 3f0c59c0..1a71654d 100644 --- a/parser/testdata/corpus/sql/cte/test_cte_overflow.test +++ b/parser/testdata/corpus/sql/cte/test_cte_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_cte_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view va as (with v as (select * from a) select * from v) diff --git a/parser/testdata/corpus/sql/cte/test_issue_5673.test b/parser/testdata/corpus/sql/cte/test_issue_5673.test index 3196dc62..41da124d 100644 --- a/parser/testdata/corpus/sql/cte/test_issue_5673.test +++ b/parser/testdata/corpus/sql/cte/test_issue_5673.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_issue_5673.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table orders(ordered_at int); diff --git a/parser/testdata/corpus/sql/cte/test_moderate_union_all.test b/parser/testdata/corpus/sql/cte/test_moderate_union_all.test index 242338c1..09ca1bf9 100644 --- a/parser/testdata/corpus/sql/cte/test_moderate_union_all.test +++ b/parser/testdata/corpus/sql/cte/test_moderate_union_all.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_moderate_union_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW union_view AS diff --git a/parser/testdata/corpus/sql/cte/test_nested_recursive_cte.test b/parser/testdata/corpus/sql/cte/test_nested_recursive_cte.test index 5befc033..c42cd410 100644 --- a/parser/testdata/corpus/sql/cte/test_nested_recursive_cte.test +++ b/parser/testdata/corpus/sql/cte/test_nested_recursive_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_nested_recursive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(x) AS diff --git a/parser/testdata/corpus/sql/cte/test_outer_joins_recursive_cte.test b/parser/testdata/corpus/sql/cte/test_outer_joins_recursive_cte.test index 1d04c2c5..cfadf5a8 100644 --- a/parser/testdata/corpus/sql/cte/test_outer_joins_recursive_cte.test +++ b/parser/testdata/corpus/sql/cte/test_outer_joins_recursive_cte.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_outer_joins_recursive_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE t(x) AS diff --git a/parser/testdata/corpus/sql/cte/test_recursive_cte_recurring.test b/parser/testdata/corpus/sql/cte/test_recursive_cte_recurring.test index 542bef28..65225b90 100644 --- a/parser/testdata/corpus/sql/cte/test_recursive_cte_recurring.test +++ b/parser/testdata/corpus/sql/cte/test_recursive_cte_recurring.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_recursive_cte_recurring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE deduction AS ( diff --git a/parser/testdata/corpus/sql/cte/test_recursive_cte_tutorial.test b/parser/testdata/corpus/sql/cte/test_recursive_cte_tutorial.test index 60681c0d..7206f9b5 100644 --- a/parser/testdata/corpus/sql/cte/test_recursive_cte_tutorial.test +++ b/parser/testdata/corpus/sql/cte/test_recursive_cte_tutorial.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_recursive_cte_tutorial.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE ctename AS ( diff --git a/parser/testdata/corpus/sql/cte/test_recursive_cte_union.test b/parser/testdata/corpus/sql/cte/test_recursive_cte_union.test index 3495146b..618c5b07 100644 --- a/parser/testdata/corpus/sql/cte/test_recursive_cte_union.test +++ b/parser/testdata/corpus/sql/cte/test_recursive_cte_union.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_recursive_cte_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with recursive t as (select 1 as x union select x+1 from t where x < 3) select * from t order by x diff --git a/parser/testdata/corpus/sql/cte/test_recursive_cte_union_all.test b/parser/testdata/corpus/sql/cte/test_recursive_cte_union_all.test index 3d316ff5..316084be 100644 --- a/parser/testdata/corpus/sql/cte/test_recursive_cte_union_all.test +++ b/parser/testdata/corpus/sql/cte/test_recursive_cte_union_all.test @@ -1,6 +1,6 @@ # source: test/sql/cte/test_recursive_cte_union_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with recursive t as (select 1 as x union all select x+1 from t where x < 3) select * from t diff --git a/parser/testdata/corpus/sql/cte/using_key_aggregate_qualification.test b/parser/testdata/corpus/sql/cte/using_key_aggregate_qualification.test index 739256f4..e3d1e88c 100644 --- a/parser/testdata/corpus/sql/cte/using_key_aggregate_qualification.test +++ b/parser/testdata/corpus/sql/cte/using_key_aggregate_qualification.test @@ -1,6 +1,6 @@ # source: test/sql/cte/using_key_aggregate_qualification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE r(k,v) USING KEY(k,system.main.max(v)) AS (VALUES(1,10) UNION ALL SELECT k+1,v+1 FROM r WHERE k<3) SELECT * FROM r ORDER BY k; diff --git a/parser/testdata/corpus/sql/delete/bulk_delete_version_info_memory.test b/parser/testdata/corpus/sql/delete/bulk_delete_version_info_memory.test index c0af9427..4e89374f 100644 --- a/parser/testdata/corpus/sql/delete/bulk_delete_version_info_memory.test +++ b/parser/testdata/corpus/sql/delete/bulk_delete_version_info_memory.test @@ -1,6 +1,6 @@ # source: test/sql/delete/bulk_delete_version_info_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT i FROM range(1228800) t(i) diff --git a/parser/testdata/corpus/sql/delete/cleanup_delete_on_conflict.test b/parser/testdata/corpus/sql/delete/cleanup_delete_on_conflict.test index d5507614..a4534178 100644 --- a/parser/testdata/corpus/sql/delete/cleanup_delete_on_conflict.test +++ b/parser/testdata/corpus/sql/delete/cleanup_delete_on_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/delete/cleanup_delete_on_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/delete/delete_compression_after_restart.test b/parser/testdata/corpus/sql/delete/delete_compression_after_restart.test index fe3b93e0..ce3cf900 100644 --- a/parser/testdata/corpus/sql/delete/delete_compression_after_restart.test +++ b/parser/testdata/corpus/sql/delete/delete_compression_after_restart.test @@ -1,6 +1,6 @@ # source: test/sql/delete/delete_compression_after_restart.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i FROM range(122880) t(i); diff --git a/parser/testdata/corpus/sql/delete/delete_compression_blocked_by_old_snapshot.test b/parser/testdata/corpus/sql/delete/delete_compression_blocked_by_old_snapshot.test index cc17773b..c09c1e62 100644 --- a/parser/testdata/corpus/sql/delete/delete_compression_blocked_by_old_snapshot.test +++ b/parser/testdata/corpus/sql/delete/delete_compression_blocked_by_old_snapshot.test @@ -1,6 +1,6 @@ # source: test/sql/delete/delete_compression_blocked_by_old_snapshot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE base_mem = (SELECT memory_usage_bytes FROM duckdb_memory() WHERE tag='BASE_TABLE') diff --git a/parser/testdata/corpus/sql/delete/delete_query_node.test b/parser/testdata/corpus/sql/delete/delete_query_node.test index d60ba225..ef07faf2 100644 --- a/parser/testdata/corpus/sql/delete/delete_query_node.test +++ b/parser/testdata/corpus/sql/delete/delete_query_node.test @@ -1,6 +1,6 @@ # source: test/sql/delete/delete_query_node.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INT, b TEXT, c DOUBLE); diff --git a/parser/testdata/corpus/sql/delete/delete_using_duplicate_local_rows.test b/parser/testdata/corpus/sql/delete/delete_using_duplicate_local_rows.test new file mode 100644 index 00000000..334ce296 --- /dev/null +++ b/parser/testdata/corpus/sql/delete/delete_using_duplicate_local_rows.test @@ -0,0 +1,73 @@ +# source: test/sql/delete/delete_using_duplicate_local_rows.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE w(id INT PRIMARY KEY, v INT); +-- +ok +== +INSERT INTO w VALUES (1,1),(2,2),(3,3); +-- +ok +== +DELETE FROM w USING (VALUES (2),(2)) d(x) WHERE w.id = d.x RETURNING id; +-- +ok +== +SELECT id, v FROM w ORDER BY id; +-- +ok +== +CREATE TABLE u(id INT UNIQUE, v INT); +-- +ok +== +INSERT INTO u VALUES (1,1); +-- +ok +== +INSERT INTO u VALUES (2,2),(3,3); +-- +ok +== +DELETE FROM u USING (VALUES (1),(1),(2),(2)) d(x) WHERE u.id = d.x; +-- +ok +== +SELECT id, v FROM u ORDER BY id; +-- +ok +== +CREATE TABLE c(id INT PRIMARY KEY, v INT); +-- +ok +== +INSERT INTO c VALUES (1,1),(2,2); +-- +ok +== +DELETE FROM c USING (SELECT 2 FROM range(5000)) d(x) WHERE c.id = d.x; +-- +ok +== +SELECT id, v FROM c ORDER BY id; +-- +ok +== +CREATE TABLE l(id INT PRIMARY KEY); +-- +ok +== +INSERT INTO l SELECT range FROM range(5000); +-- +ok +== +DELETE FROM l USING (SELECT range FROM range(5000) UNION ALL SELECT 4999) d(x) WHERE l.id = d.x; +-- +ok +== +SELECT count(*), count(DISTINCT id) FROM l; +-- +ok +== diff --git a/parser/testdata/corpus/sql/delete/full_vector_delete_conflict.test b/parser/testdata/corpus/sql/delete/full_vector_delete_conflict.test index 84223bab..458315c4 100644 --- a/parser/testdata/corpus/sql/delete/full_vector_delete_conflict.test +++ b/parser/testdata/corpus/sql/delete/full_vector_delete_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/delete/full_vector_delete_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i FROM range(4096) t(i); diff --git a/parser/testdata/corpus/sql/delete/full_vector_delete_rollback.test b/parser/testdata/corpus/sql/delete/full_vector_delete_rollback.test index a919641d..c51ae1ef 100644 --- a/parser/testdata/corpus/sql/delete/full_vector_delete_rollback.test +++ b/parser/testdata/corpus/sql/delete/full_vector_delete_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/delete/full_vector_delete_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM tbl WHERE i < 100 diff --git a/parser/testdata/corpus/sql/delete/large_deletes_transactions.test b/parser/testdata/corpus/sql/delete/large_deletes_transactions.test index 62c7ccf9..4e19afaa 100644 --- a/parser/testdata/corpus/sql/delete/large_deletes_transactions.test +++ b/parser/testdata/corpus/sql/delete/large_deletes_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/delete/large_deletes_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT * FROM range(1000000) t1(i); diff --git a/parser/testdata/corpus/sql/delete/list_delete.test b/parser/testdata/corpus/sql/delete/list_delete.test index bbb56ee7..fb8b9d2e 100644 --- a/parser/testdata/corpus/sql/delete/list_delete.test +++ b/parser/testdata/corpus/sql/delete/list_delete.test @@ -1,6 +1,6 @@ # source: test/sql/delete/list_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE aggr (k int[]); diff --git a/parser/testdata/corpus/sql/delete/masked_vector_further_delete.test b/parser/testdata/corpus/sql/delete/masked_vector_further_delete.test index e9583bc7..a39f913a 100644 --- a/parser/testdata/corpus/sql/delete/masked_vector_further_delete.test +++ b/parser/testdata/corpus/sql/delete/masked_vector_further_delete.test @@ -1,6 +1,6 @@ # source: test/sql/delete/masked_vector_further_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i FROM range(4096) t(i) diff --git a/parser/testdata/corpus/sql/delete/masked_vector_rollback.test b/parser/testdata/corpus/sql/delete/masked_vector_rollback.test index dfa6149a..2613d98c 100644 --- a/parser/testdata/corpus/sql/delete/masked_vector_rollback.test +++ b/parser/testdata/corpus/sql/delete/masked_vector_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/delete/masked_vector_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE r AS SELECT i FROM range(4096) t(i) diff --git a/parser/testdata/corpus/sql/delete/partial_delete_version_info_memory.test b/parser/testdata/corpus/sql/delete/partial_delete_version_info_memory.test index e860c357..35adbf13 100644 --- a/parser/testdata/corpus/sql/delete/partial_delete_version_info_memory.test +++ b/parser/testdata/corpus/sql/delete/partial_delete_version_info_memory.test @@ -1,6 +1,6 @@ # source: test/sql/delete/partial_delete_version_info_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM a WHERE i % 2 = 0 diff --git a/parser/testdata/corpus/sql/delete/test_delete.test b/parser/testdata/corpus/sql/delete/test_delete.test index 5149fb5e..025a1a31 100644 --- a/parser/testdata/corpus/sql/delete/test_delete.test +++ b/parser/testdata/corpus/sql/delete/test_delete.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(i INTEGER); diff --git a/parser/testdata/corpus/sql/delete/test_delete_indexed.test b/parser/testdata/corpus/sql/delete/test_delete_indexed.test index 7836af66..e9c2c99d 100644 --- a/parser/testdata/corpus/sql/delete/test_delete_indexed.test +++ b/parser/testdata/corpus/sql/delete/test_delete_indexed.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_delete_indexed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id INT PRIMARY KEY, s TEXT, j BIGINT); diff --git a/parser/testdata/corpus/sql/delete/test_large_delete.test b/parser/testdata/corpus/sql/delete/test_large_delete.test index 6b961e0c..8aab5202 100644 --- a/parser/testdata/corpus/sql/delete/test_large_delete.test +++ b/parser/testdata/corpus/sql/delete/test_large_delete.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_large_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT * FROM range(0, 10000, 1) t1(i); diff --git a/parser/testdata/corpus/sql/delete/test_parallel_delete_transaction_local.test b/parser/testdata/corpus/sql/delete/test_parallel_delete_transaction_local.test index fd125c7b..b6b08879 100644 --- a/parser/testdata/corpus/sql/delete/test_parallel_delete_transaction_local.test +++ b/parser/testdata/corpus/sql/delete/test_parallel_delete_transaction_local.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_parallel_delete_transaction_local.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=8 diff --git a/parser/testdata/corpus/sql/delete/test_segment_deletes.test b/parser/testdata/corpus/sql/delete/test_segment_deletes.test index 04e3836d..ea491309 100644 --- a/parser/testdata/corpus/sql/delete/test_segment_deletes.test +++ b/parser/testdata/corpus/sql/delete/test_segment_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_segment_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a SELECT * FROM range(0, 1024, 1); diff --git a/parser/testdata/corpus/sql/delete/test_truncate.test b/parser/testdata/corpus/sql/delete/test_truncate.test index 29e50fb3..5287ce35 100644 --- a/parser/testdata/corpus/sql/delete/test_truncate.test +++ b/parser/testdata/corpus/sql/delete/test_truncate.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_truncate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit TRUNCATE TABLE a diff --git a/parser/testdata/corpus/sql/delete/test_using_delete.test b/parser/testdata/corpus/sql/delete/test_using_delete.test index 0852eb35..a45cb99f 100644 --- a/parser/testdata/corpus/sql/delete/test_using_delete.test +++ b/parser/testdata/corpus/sql/delete/test_using_delete.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_using_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES (1), (2), (3); diff --git a/parser/testdata/corpus/sql/delete/test_using_delete_duplicates.test b/parser/testdata/corpus/sql/delete/test_using_delete_duplicates.test index a7b27238..e9dc82ab 100644 --- a/parser/testdata/corpus/sql/delete/test_using_delete_duplicates.test +++ b/parser/testdata/corpus/sql/delete/test_using_delete_duplicates.test @@ -1,6 +1,6 @@ # source: test/sql/delete/test_using_delete_duplicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers as select * from generate_series(0, 9, 1); diff --git a/parser/testdata/corpus/sql/detailed_profiler/test_detailed_profiler.test b/parser/testdata/corpus/sql/detailed_profiler/test_detailed_profiler.test index 4ba3f4ca..5877d408 100644 --- a/parser/testdata/corpus/sql/detailed_profiler/test_detailed_profiler.test +++ b/parser/testdata/corpus/sql/detailed_profiler/test_detailed_profiler.test @@ -1,6 +1,6 @@ # source: test/sql/detailed_profiler/test_detailed_profiler.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_profiling='json' diff --git a/parser/testdata/corpus/sql/error/aggregate_order_by.test b/parser/testdata/corpus/sql/error/aggregate_order_by.test index 2f441c42..bdbcf306 100644 --- a/parser/testdata/corpus/sql/error/aggregate_order_by.test +++ b/parser/testdata/corpus/sql/error/aggregate_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/error/aggregate_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lists_tbl AS SELECT i%20 as groups, i AS l FROM range(1000) tmp(i); diff --git a/parser/testdata/corpus/sql/error/correlated_at_clause.test b/parser/testdata/corpus/sql/error/correlated_at_clause.test index e6be0da9..d7b85bb4 100644 --- a/parser/testdata/corpus/sql/error/correlated_at_clause.test +++ b/parser/testdata/corpus/sql/error/correlated_at_clause.test @@ -1,6 +1,6 @@ # source: test/sql/error/correlated_at_clause.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (i VARCHAR) diff --git a/parser/testdata/corpus/sql/error/error_location_copied_query.test b/parser/testdata/corpus/sql/error/error_location_copied_query.test new file mode 100644 index 00000000..e95069b8 --- /dev/null +++ b/parser/testdata/corpus/sql/error/error_location_copied_query.test @@ -0,0 +1,63 @@ +# source: test/sql/error/error_location_copied_query.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (a INTEGER, b INTEGER) +-- +ok +== +CREATE TABLE x (q INTEGER) +-- +ok +== +SELECT * FROM t NATURAL JOIN x +-- +ok +== +COPY (SELECT * FROM t NATURAL JOIN x) +TO '{TEST_DIR}/error_location_copied_query.csv' +-- +ok +== +CREATE VIEW v AS SELECT * FROM t NATURAL JOIN x +-- +ok +== +CREATE VIEW v AS SELECT * FROM missing_table +-- +ok +== +SELECT * FROM t PIVOT (sum(b) FOR a IN (1, 1)) +-- +ok +== +COPY (SELECT * FROM t PIVOT (sum(b) FOR a IN (1, 1))) +TO '{TEST_DIR}/error_location_copied_query.csv' +-- +ok +== +CREATE VIEW v AS SELECT * FROM t PIVOT (sum(b) FOR a IN (1, 1)) +-- +ok +== +SELECT * FROM t UNPIVOT (val FOR n IN (missing_column)) +-- +ok +== +CREATE VIEW v AS SELECT * FROM t UNPIVOT (val FOR n IN (missing_column)) +-- +ok +== +PIVOT (SELECT * FROM t NATURAL JOIN x) ON a USING sum(b) +-- +ok +== +(SELECT * FROM t NATURAL JOIN x UNION SELECT 1, 2) ORDER BY a + 1 +-- +ok +== +FROM v +-- +ok +== diff --git a/parser/testdata/corpus/sql/error/error_location_multicaret.test b/parser/testdata/corpus/sql/error/error_location_multicaret.test index bbaf391c..e9bc1dfc 100644 --- a/parser/testdata/corpus/sql/error/error_location_multicaret.test +++ b/parser/testdata/corpus/sql/error/error_location_multicaret.test @@ -1,6 +1,6 @@ # source: test/sql/error/error_location_multicaret.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT foo_bar_col FROM (SELECT 1 AS a) diff --git a/parser/testdata/corpus/sql/error/error_location_not_duplicated.test b/parser/testdata/corpus/sql/error/error_location_not_duplicated.test index 41492f4f..a7916220 100644 --- a/parser/testdata/corpus/sql/error/error_location_not_duplicated.test +++ b/parser/testdata/corpus/sql/error/error_location_not_duplicated.test @@ -1,6 +1,6 @@ # source: test/sql/error/error_location_not_duplicated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 AS foo frommmm b; diff --git a/parser/testdata/corpus/sql/error/error_position.test b/parser/testdata/corpus/sql/error/error_position.test index 2d012915..bf9942c0 100644 --- a/parser/testdata/corpus/sql/error/error_position.test +++ b/parser/testdata/corpus/sql/error/error_position.test @@ -1,6 +1,6 @@ # source: test/sql/error/error_position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set errors_as_json=true; diff --git a/parser/testdata/corpus/sql/error/error_position_json_execute.test b/parser/testdata/corpus/sql/error/error_position_json_execute.test index 1a9b7a0e..085e4abb 100644 --- a/parser/testdata/corpus/sql/error/error_position_json_execute.test +++ b/parser/testdata/corpus/sql/error/error_position_json_execute.test @@ -1,6 +1,6 @@ # source: test/sql/error/error_position_json_execute.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1, 2 FROM json_execute_serialized_sql(json_serialize_sql('SELECT * FROM no_such_tbl')); diff --git a/parser/testdata/corpus/sql/error/escape_percent_sign.test b/parser/testdata/corpus/sql/error/escape_percent_sign.test index 4bd0b379..688e0ca2 100644 --- a/parser/testdata/corpus/sql/error/escape_percent_sign.test +++ b/parser/testdata/corpus/sql/error/escape_percent_sign.test @@ -1,6 +1,6 @@ # source: test/sql/error/escape_percent_sign.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW list_int AS diff --git a/parser/testdata/corpus/sql/error/extension_function_error.test b/parser/testdata/corpus/sql/error/extension_function_error.test index 569d1210..62b6ff21 100644 --- a/parser/testdata/corpus/sql/error/extension_function_error.test +++ b/parser/testdata/corpus/sql/error/extension_function_error.test @@ -1,6 +1,6 @@ # source: test/sql/error/extension_function_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT dbgen(); diff --git a/parser/testdata/corpus/sql/error/identifier_quoting_in_messages.test b/parser/testdata/corpus/sql/error/identifier_quoting_in_messages.test new file mode 100644 index 00000000..95adfa9a --- /dev/null +++ b/parser/testdata/corpus/sql/error/identifier_quoting_in_messages.test @@ -0,0 +1,45 @@ +# source: test/sql/error/identifier_quoting_in_messages.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 1 AS a, 2 AS a UNION BY NAME SELECT 3 AS a +-- +ok +== +SELECT {'a': 1, 'a': 2} +-- +ok +== +CREATE SEQUENCE seq_max START 1 MAXVALUE 2 +-- +ok +== +SELECT nextval('seq_max'), nextval('seq_max') +-- +ok +== +SELECT nextval('seq_max') +-- +ok +== +CREATE TABLE altered_under_us(i INTEGER) +-- +ok +== +SELECT * FROM altered_under_us +-- +ok +== +ALTER TABLE altered_under_us ADD COLUMN j INTEGER +-- +ok +== +INSERT INTO altered_under_us VALUES (1) +-- +ok +== +SELECT 1 AS "my col", 2 AS "my col" UNION BY NAME SELECT 3 AS "my col" +-- +ok +== diff --git a/parser/testdata/corpus/sql/error/incorrect_sql.test b/parser/testdata/corpus/sql/error/incorrect_sql.test index 81f8fee3..68934f78 100644 --- a/parser/testdata/corpus/sql/error/incorrect_sql.test +++ b/parser/testdata/corpus/sql/error/incorrect_sql.test @@ -1,6 +1,6 @@ # source: test/sql/error/incorrect_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELEC 42; diff --git a/parser/testdata/corpus/sql/error/lineitem_errors.test b/parser/testdata/corpus/sql/error/lineitem_errors.test index 2fc54e4b..8f3ee3b9 100644 --- a/parser/testdata/corpus/sql/error/lineitem_errors.test +++ b/parser/testdata/corpus/sql/error/lineitem_errors.test @@ -1,6 +1,6 @@ # source: test/sql/error/lineitem_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(l_orderkey BIGINT NOT NULL, l_partkey BIGINT NOT NULL, l_suppkey BIGINT NOT NULL, l_linenumber BIGINT NOT NULL, l_quantity DECIMAL(15,2) NOT NULL, l_extendedprice DECIMAL(15,2) NOT NULL, l_discount DECIMAL(15,2) NOT NULL, l_tax DECIMAL(15,2) NOT NULL, l_returnflag VARCHAR NOT NULL, l_linestatus VARCHAR NOT NULL, l_shipdate DATE NOT NULL, l_commitdate DATE NOT NULL, l_receiptdate DATE NOT NULL, l_shipinstruct VARCHAR NOT NULL, l_shipmode VARCHAR NOT NULL, l_comment VARCHAR NOT NULL); diff --git a/parser/testdata/corpus/sql/error/missing_type.test b/parser/testdata/corpus/sql/error/missing_type.test index dae87b17..3e856657 100644 --- a/parser/testdata/corpus/sql/error/missing_type.test +++ b/parser/testdata/corpus/sql/error/missing_type.test @@ -1,6 +1,6 @@ # source: test/sql/error/missing_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ''::blobb diff --git a/parser/testdata/corpus/sql/error/mix_aggregate_and_non_aggregate.test b/parser/testdata/corpus/sql/error/mix_aggregate_and_non_aggregate.test index 2e66c338..3f6f0336 100644 --- a/parser/testdata/corpus/sql/error/mix_aggregate_and_non_aggregate.test +++ b/parser/testdata/corpus/sql/error/mix_aggregate_and_non_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/error/mix_aggregate_and_non_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(name VARCHAR, style VARCHAR, brewery_id INTEGER, abv DOUBLE, ibu INTEGER); diff --git a/parser/testdata/corpus/sql/error/qualified_column_error.test b/parser/testdata/corpus/sql/error/qualified_column_error.test index 7bfb5482..a285e888 100644 --- a/parser/testdata/corpus/sql/error/qualified_column_error.test +++ b/parser/testdata/corpus/sql/error/qualified_column_error.test @@ -1,6 +1,6 @@ # source: test/sql/error/qualified_column_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema "dbt_temp" diff --git a/parser/testdata/corpus/sql/error/subquery_single_column.test b/parser/testdata/corpus/sql/error/subquery_single_column.test index 25300875..a0995b1c 100644 --- a/parser/testdata/corpus/sql/error/subquery_single_column.test +++ b/parser/testdata/corpus/sql/error/subquery_single_column.test @@ -1,6 +1,6 @@ # source: test/sql/error/subquery_single_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 42, 84) diff --git a/parser/testdata/corpus/sql/error/table_function_as_scalar_function.test b/parser/testdata/corpus/sql/error/table_function_as_scalar_function.test index defe8e7e..d2aa56fd 100644 --- a/parser/testdata/corpus/sql/error/table_function_as_scalar_function.test +++ b/parser/testdata/corpus/sql/error/table_function_as_scalar_function.test @@ -1,6 +1,6 @@ # source: test/sql/error/table_function_as_scalar_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT read_csv('test.csv') diff --git a/parser/testdata/corpus/sql/error/test_try_common_subexpression.test b/parser/testdata/corpus/sql/error/test_try_common_subexpression.test new file mode 100644 index 00000000..d7d460a6 --- /dev/null +++ b/parser/testdata/corpus/sql/error/test_try_common_subexpression.test @@ -0,0 +1,41 @@ +# source: test/sql/error/test_try_common_subexpression.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT 'bad' AS s, 0 AS z, '2x' AS ds, 'bad' AS s2; +-- +ok +== +SELECT TRY(s::INTEGER) AS a, TRY(s::INTEGER + 5) AS b FROM t; +-- +ok +== +SELECT TRY(s::INTEGER) AS a, TRY(s::INTEGER * 2) AS b FROM t; +-- +ok +== +SELECT TRY(100 // z) AS a, TRY(100 // z + 1) AS b FROM t; +-- +ok +== +SELECT TRY(ds::DATE) AS a, TRY(ds::DATE + 1) AS b FROM t; +-- +ok +== +SELECT s::INTEGER AS a, s::INTEGER + 1 AS b, TRY(s::INTEGER + 5) AS c FROM t; +-- +ok +== +SELECT TRY(x::INTEGER) AS a, TRY(x::INTEGER + 5) AS b FROM (VALUES ('1'), ('bad'), ('3')) v(x); +-- +ok +== +SELECT TRY(s::INTEGER + 5) AS a, TRY(s::INTEGER + 5) AS b FROM t; +-- +ok +== +SELECT sum(TRY(x::INTEGER)) AS a, sum(TRY(x::INTEGER + 5)) AS b FROM (VALUES ('1'), ('bad'), ('3')) v(x); +-- +ok +== diff --git a/parser/testdata/corpus/sql/error/test_try_constant_regex.test b/parser/testdata/corpus/sql/error/test_try_constant_regex.test new file mode 100644 index 00000000..6de871f7 --- /dev/null +++ b/parser/testdata/corpus/sql/error/test_try_constant_regex.test @@ -0,0 +1,62 @@ +# source: test/sql/error/test_try_constant_regex.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT 'abc' AS s, '(' AS pat; +-- +ok +== +SELECT TRY(regexp_matches(s, pat)) FROM t; +-- +ok +== +SELECT TRY(regexp_matches('abc', '(')); +-- +ok +== +SELECT TRY(regexp_matches(s, '(')) FROM t; +-- +ok +== +SELECT TRY(regexp_full_match(s, '(')), TRY(regexp_replace(s, '(', 'x')), TRY(regexp_extract(s, '(')), + TRY(regexp_extract_all(s, '(')), TRY(regexp_split_to_array(s, '(')) FROM t; +-- +ok +== +SELECT TRY(regexp_matches(s, 'b')) FROM t; +-- +ok +== +SELECT regexp_matches(s, '(') FROM t; +-- +ok +== +SELECT regexp_matches('abc', '('); +-- +ok +== +SELECT regexp_replace(s, '(', 'x') FROM t; +-- +ok +== +CREATE TABLE e(s VARCHAR); +-- +ok +== +SELECT regexp_matches(s, '(') FROM e; +-- +ok +== +SELECT TRY(CASE WHEN s = 'x' THEN regexp_matches(s, '(') ELSE true END) FROM t; +-- +ok +== +SELECT TRY(CASE WHEN s = 'abc' THEN regexp_matches(s, '(') ELSE true END) FROM t; +-- +ok +== +SELECT coalesce(TRY(regexp_matches(s, '(')), false) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/error/test_try_in_clause.test b/parser/testdata/corpus/sql/error/test_try_in_clause.test new file mode 100644 index 00000000..eb39a05d --- /dev/null +++ b/parser/testdata/corpus/sql/error/test_try_in_clause.test @@ -0,0 +1,65 @@ +# source: test/sql/error/test_try_in_clause.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT * FROM (VALUES (0::BIGINT, true), (100::BIGINT, false)) v(b, ok); +-- +ok +== +SELECT b, TRY((100 // b) IN (1, 3, 7, 11, 13)) FROM t ORDER BY b; +-- +ok +== +SELECT b, TRY((100 // b) NOT IN (1, 3, 7, 11, 13)) FROM t ORDER BY b; +-- +ok +== +SELECT b, TRY((100 // b) IN (1, 3)) FROM t ORDER BY b; +-- +ok +== +SELECT b, CASE WHEN b = 0 THEN false ELSE (100 // b) IN (1, 3, 7, 11, 13) END FROM t ORDER BY b; +-- +ok +== +SELECT b, COALESCE(ok, (100 // b) IN (1, 3, 7, 11, 13)) FROM (VALUES (0::BIGINT, true), (100::BIGINT, NULL::BOOLEAN)) v(b, ok) ORDER BY b; +-- +ok +== +SELECT b, CASE WHEN b <> 0 AND (100 // b) IN (1, 3, 7, 11, 13) THEN 1 ELSE 0 END FROM t ORDER BY b; +-- +ok +== +SELECT b, CASE WHEN b = 0 OR (100 // b) IN (1, 3, 7, 11, 13) THEN 1 ELSE 0 END FROM t ORDER BY b; +-- +ok +== +SELECT b, TRY(list_contains([1, 3, 7, 11, 13], 100 // b)) FROM t ORDER BY b; +-- +ok +== +EXPLAIN SELECT b, TRY((100 // b) IN (1, 3, 7, 11, 13)) FROM t; +-- +ok +== +EXPLAIN SELECT b FROM t WHERE (b + 1) IN (1, 3, 7, 11, 13, 17, 19, 23); +-- +ok +== +EXPLAIN SELECT (b + 1) IN (1, 3, 7, 11, 13, 17, 19, 23) AND b <> 0 FROM t; +-- +ok +== +EXPLAIN SELECT b FROM t WHERE ok AND (b + 1) IN (1, 3, 7, 11, 13, 17, 19, 23); +-- +ok +== +EXPLAIN SELECT NOT ((b + 1) IN (1, 3, 7, 11, 13, 17, 19, 23)) FROM t; +-- +ok +== +SELECT (100 // b) IN (1, 3, 7, 11, 13) FROM t ORDER BY b; +-- +ok +== diff --git a/parser/testdata/corpus/sql/error/test_try_nested_conditional.test b/parser/testdata/corpus/sql/error/test_try_nested_conditional.test index 73ce33fb..5d4e9bc4 100644 --- a/parser/testdata/corpus/sql/error/test_try_nested_conditional.test +++ b/parser/testdata/corpus/sql/error/test_try_nested_conditional.test @@ -1,6 +1,6 @@ # source: test/sql/error/test_try_nested_conditional.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT * FROM (VALUES (0), (1), (2), (3), (4)) AS t(x); diff --git a/parser/testdata/corpus/sql/error/unknown_window_function.test b/parser/testdata/corpus/sql/error/unknown_window_function.test index 7cfbe9e7..eb53ff64 100644 --- a/parser/testdata/corpus/sql/error/unknown_window_function.test +++ b/parser/testdata/corpus/sql/error/unknown_window_function.test @@ -1,6 +1,6 @@ # source: test/sql/error/unknown_window_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT substr('hello', 3, 2) OVER (); diff --git a/parser/testdata/corpus/sql/execution/column_binding_resolver.test b/parser/testdata/corpus/sql/execution/column_binding_resolver.test index 96080d52..98f3454b 100644 --- a/parser/testdata/corpus/sql/execution/column_binding_resolver.test +++ b/parser/testdata/corpus/sql/execution/column_binding_resolver.test @@ -1,6 +1,6 @@ # source: test/sql/execution/column_binding_resolver.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE binding_left(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/execution/function_null_verification.test b/parser/testdata/corpus/sql/execution/function_null_verification.test index 935a5ddf..5a875b5c 100644 --- a/parser/testdata/corpus/sql/execution/function_null_verification.test +++ b/parser/testdata/corpus/sql/execution/function_null_verification.test @@ -1,6 +1,6 @@ # source: test/sql/execution/function_null_verification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verification_mode = 'verify_functions' diff --git a/parser/testdata/corpus/sql/execution/limit_percent_runtime.test b/parser/testdata/corpus/sql/execution/limit_percent_runtime.test index 51158882..cb46284a 100644 --- a/parser/testdata/corpus/sql/execution/limit_percent_runtime.test +++ b/parser/testdata/corpus/sql/execution/limit_percent_runtime.test @@ -1,6 +1,6 @@ # source: test/sql/execution/limit_percent_runtime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE runtime_percent AS SELECT i FROM range(10) t(i) LIMIT ?% diff --git a/parser/testdata/corpus/sql/execution/physical_verify_vector.test b/parser/testdata/corpus/sql/execution/physical_verify_vector.test index 664d25c2..78e87922 100644 --- a/parser/testdata/corpus/sql/execution/physical_verify_vector.test +++ b/parser/testdata/corpus/sql/execution/physical_verify_vector.test @@ -1,6 +1,6 @@ # source: test/sql/execution/physical_verify_vector.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_vector = 'dictionary_operator' diff --git a/parser/testdata/corpus/sql/execution/positional_scan_nested.test b/parser/testdata/corpus/sql/execution/positional_scan_nested.test index 7fa35a82..8ac5b60a 100644 --- a/parser/testdata/corpus/sql/execution/positional_scan_nested.test +++ b/parser/testdata/corpus/sql/execution/positional_scan_nested.test @@ -1,6 +1,6 @@ # source: test/sql/execution/positional_scan_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * diff --git a/parser/testdata/corpus/sql/explain/explain_all_statements.test b/parser/testdata/corpus/sql/explain/explain_all_statements.test index b06e7066..177b4a50 100644 --- a/parser/testdata/corpus/sql/explain/explain_all_statements.test +++ b/parser/testdata/corpus/sql/explain/explain_all_statements.test @@ -1,6 +1,6 @@ # source: test/sql/explain/explain_all_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit explain PRAGMA enable_checkpoint_on_shutdown @@ -79,6 +79,26 @@ explain CHECKPOINT -- ok == +explain TRUNCATE integers +-- +ok +== +explain INSTALL json +-- +ok +== +explain FORCE INSTALL json +-- +ok +== +explain UPDATE EXTENSIONS +-- +ok +== +explain UPDATE EXTENSIONS (json) +-- +ok +== explain BEGIN TRANSACTION -- ok diff --git a/parser/testdata/corpus/sql/explain/explain_execute.test b/parser/testdata/corpus/sql/explain/explain_execute.test index 358354d1..0ba87da4 100644 --- a/parser/testdata/corpus/sql/explain/explain_execute.test +++ b/parser/testdata/corpus/sql/explain/explain_execute.test @@ -1,6 +1,6 @@ # source: test/sql/explain/explain_execute.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER) diff --git a/parser/testdata/corpus/sql/explain/explain_formats.test b/parser/testdata/corpus/sql/explain/explain_formats.test index 3c5ff1e9..f3537c02 100644 --- a/parser/testdata/corpus/sql/explain/explain_formats.test +++ b/parser/testdata/corpus/sql/explain/explain_formats.test @@ -1,6 +1,6 @@ # source: test/sql/explain/explain_formats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE renderer_t AS SELECT i AS i, i % 7 AS g, 'v' || (i % 3)::VARCHAR AS s FROM range(200) t(i) diff --git a/parser/testdata/corpus/sql/explain/order_by_topn_explain_fqn.test b/parser/testdata/corpus/sql/explain/order_by_topn_explain_fqn.test index 0393727a..a547829e 100644 --- a/parser/testdata/corpus/sql/explain/order_by_topn_explain_fqn.test +++ b/parser/testdata/corpus/sql/explain/order_by_topn_explain_fqn.test @@ -1,6 +1,6 @@ # source: test/sql/explain/order_by_topn_explain_fqn.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE date_table (d DATE); diff --git a/parser/testdata/corpus/sql/explain/test_explain.test b/parser/testdata/corpus/sql/explain/test_explain.test index 584ea249..08af2548 100644 --- a/parser/testdata/corpus/sql/explain/test_explain.test +++ b/parser/testdata/corpus/sql/explain/test_explain.test @@ -1,6 +1,6 @@ # source: test/sql/explain/test_explain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN SELECT * FROM integers diff --git a/parser/testdata/corpus/sql/explain/test_explain_analyze.test b/parser/testdata/corpus/sql/explain/test_explain_analyze.test index 14f2d6ab..92f73781 100644 --- a/parser/testdata/corpus/sql/explain/test_explain_analyze.test +++ b/parser/testdata/corpus/sql/explain/test_explain_analyze.test @@ -1,6 +1,6 @@ # source: test/sql/explain/test_explain_analyze.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(100) tbl(i); diff --git a/parser/testdata/corpus/sql/explain/test_explain_limit.test b/parser/testdata/corpus/sql/explain/test_explain_limit.test index b271df53..acbc7ee6 100644 --- a/parser/testdata/corpus/sql/explain/test_explain_limit.test +++ b/parser/testdata/corpus/sql/explain/test_explain_limit.test @@ -1,6 +1,6 @@ # source: test/sql/explain/test_explain_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(100) tbl(i) diff --git a/parser/testdata/corpus/sql/explain/tree_renderer_branches.test b/parser/testdata/corpus/sql/explain/tree_renderer_branches.test index 996f63dd..e4ef8b31 100644 --- a/parser/testdata/corpus/sql/explain/tree_renderer_branches.test +++ b/parser/testdata/corpus/sql/explain/tree_renderer_branches.test @@ -1,6 +1,6 @@ # source: test/sql/explain/tree_renderer_branches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA this_is_a_very_long_schema_name diff --git a/parser/testdata/corpus/sql/export/empty_export.test b/parser/testdata/corpus/sql/export/empty_export.test index 3b37b6a9..b8d11cbd 100644 --- a/parser/testdata/corpus/sql/export/empty_export.test +++ b/parser/testdata/corpus/sql/export/empty_export.test @@ -1,6 +1,6 @@ # source: test/sql/export/empty_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPORT DATABASE '{TEST_DIR}/empty_export' (FORMAT CSV) diff --git a/parser/testdata/corpus/sql/export/export_compression_level.test b/parser/testdata/corpus/sql/export/export_compression_level.test index abd7b268..a8b6e0dc 100644 --- a/parser/testdata/corpus/sql/export/export_compression_level.test +++ b/parser/testdata/corpus/sql/export/export_compression_level.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_compression_level.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table ( diff --git a/parser/testdata/corpus/sql/export/export_csv_empty_strings.test b/parser/testdata/corpus/sql/export/export_csv_empty_strings.test index 15a5bb15..89abf161 100644 --- a/parser/testdata/corpus/sql/export/export_csv_empty_strings.test +++ b/parser/testdata/corpus/sql/export/export_csv_empty_strings.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_csv_empty_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE m AS ENUM ('', 'a'); @@ -39,3 +39,27 @@ IMPORT DATABASE '{TEST_DIR}/export_csv_empty_strings_nullstr'; -- ok == +CREATE TYPE mood AS ENUM ('', 'ok'); +-- +ok +== +CREATE TABLE t(id INT, v VARCHAR, b BLOB, e mood); +-- +ok +== +INSERT INTO t VALUES (1, '', ''::BLOB, ''), (2, NULL, NULL, NULL), (3, 'x', 'x'::BLOB, 'ok'); +-- +ok +== +EXPORT DATABASE '{TEST_DIR}/export_csv_empty_strings_upper' (FORMAT CSV); +-- +ok +== +IMPORT DATABASE '{TEST_DIR}/export_csv_empty_strings_upper'; +-- +ok +== +SELECT id, v IS NULL AS v_null, b IS NULL AS b_null, e IS NULL AS e_null FROM t ORDER BY id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/export/export_database.test b/parser/testdata/corpus/sql/export/export_database.test index 0da5b79b..35e0f60a 100644 --- a/parser/testdata/corpus/sql/export/export_database.test +++ b/parser/testdata/corpus/sql/export/export_database.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPORT DATABASE '' (FORMAT X!); diff --git a/parser/testdata/corpus/sql/export/export_external_access.test b/parser/testdata/corpus/sql/export/export_external_access.test index 35b47895..98e6622e 100644 --- a/parser/testdata/corpus/sql/export/export_external_access.test +++ b/parser/testdata/corpus/sql/export/export_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPORT DATABASE '{TEST_DIR}/export_permissions_test' (FORMAT CSV) diff --git a/parser/testdata/corpus/sql/export/export_functions.test b/parser/testdata/corpus/sql/export/export_functions.test index 69c03f0b..f8ae64a8 100644 --- a/parser/testdata/corpus/sql/export/export_functions.test +++ b/parser/testdata/corpus/sql/export/export_functions.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl( diff --git a/parser/testdata/corpus/sql/export/export_generated_columns.test b/parser/testdata/corpus/sql/export/export_generated_columns.test index 8a8f79d8..cd0dd2d6 100644 --- a/parser/testdata/corpus/sql/export/export_generated_columns.test +++ b/parser/testdata/corpus/sql/export/export_generated_columns.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_generated_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma storage_compatibility_version='v1.2.0' diff --git a/parser/testdata/corpus/sql/export/export_hive_path.test b/parser/testdata/corpus/sql/export/export_hive_path.test index 17526140..e5f39c3a 100644 --- a/parser/testdata/corpus/sql/export/export_hive_path.test +++ b/parser/testdata/corpus/sql/export/export_hive_path.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_hive_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (42); diff --git a/parser/testdata/corpus/sql/export/export_indexes.test b/parser/testdata/corpus/sql/export/export_indexes.test index 65e61598..f11c7d6a 100644 --- a/parser/testdata/corpus/sql/export/export_indexes.test +++ b/parser/testdata/corpus/sql/export/export_indexes.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_indexes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO elaborate_macro(x, y := 7) AS x + y; diff --git a/parser/testdata/corpus/sql/export/export_legacy_options.test b/parser/testdata/corpus/sql/export/export_legacy_options.test new file mode 100644 index 00000000..4af406c4 --- /dev/null +++ b/parser/testdata/corpus/sql/export/export_legacy_options.test @@ -0,0 +1,85 @@ +# source: test/sql/export/export_legacy_options.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(a INT, b INT); +-- +ok +== +INSERT INTO t VALUES (1, 2), (NULL, 3); +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_delim' DELIMITER '|' +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_delim/t.csv') +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_delim_as' DELIMITER AS '|' HEADER +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_delim_as/t.csv') +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_quote' CSV QUOTE '*' FORCE QUOTE * +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_quote/t.csv') +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_null' NULL 'nil' +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_null/t.csv') +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_parens' (FORMAT CSV, DELIMITER ';') +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_parens/t.csv') +-- +ok +== +CREATE TABLE db2.t(a INT, b INT); +-- +ok +== +INSERT INTO db2.t VALUES (1, 2); +-- +ok +== +EXPORT DATABASE db2 TO '__TEST_DIR__/export_source' DELIMITER '|' +-- +ok +== +SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_source/t.csv') +-- +ok +== +SELECT contains(content, 'delimiter ''|''') FROM read_text('__TEST_DIR__/export_delim/load.sql') +-- +ok +== +IMPORT DATABASE '__TEST_DIR__/export_delim' +-- +ok +== +SELECT * FROM t ORDER BY a NULLS LAST +-- +ok +== +EXPORT DATABASE '__TEST_DIR__/export_format' FORMAT PARQUET +-- +error: Parser Error: syntax error at or near "FORMAT" +== diff --git a/parser/testdata/corpus/sql/export/export_macros.test b/parser/testdata/corpus/sql/export/export_macros.test index d6c8bdbd..eaca3f45 100644 --- a/parser/testdata/corpus/sql/export/export_macros.test +++ b/parser/testdata/corpus/sql/export/export_macros.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_macros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set enable_macro_dependencies=true; diff --git a/parser/testdata/corpus/sql/export/export_quoted_enum.test b/parser/testdata/corpus/sql/export/export_quoted_enum.test index 0be89467..eb1c3d65 100644 --- a/parser/testdata/corpus/sql/export/export_quoted_enum.test +++ b/parser/testdata/corpus/sql/export/export_quoted_enum.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_quoted_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE "group" AS ENUM ( 'one', 'two'); diff --git a/parser/testdata/corpus/sql/export/export_quoted_structs.test b/parser/testdata/corpus/sql/export/export_quoted_structs.test index b08a815a..73de331f 100644 --- a/parser/testdata/corpus/sql/export/export_quoted_structs.test +++ b/parser/testdata/corpus/sql/export/export_quoted_structs.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_quoted_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a (s STRUCT("end" VARCHAR)); diff --git a/parser/testdata/corpus/sql/export/export_quoted_union.test b/parser/testdata/corpus/sql/export/export_quoted_union.test index d1366ea7..89f26df2 100644 --- a/parser/testdata/corpus/sql/export/export_quoted_union.test +++ b/parser/testdata/corpus/sql/export/export_quoted_union.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_quoted_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a ( diff --git a/parser/testdata/corpus/sql/export/export_temp_tables.test b/parser/testdata/corpus/sql/export/export_temp_tables.test index c5dd95c5..107c4ddc 100644 --- a/parser/testdata/corpus/sql/export/export_temp_tables.test +++ b/parser/testdata/corpus/sql/export/export_temp_tables.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_temp_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE temp_only AS SELECT 42 AS i diff --git a/parser/testdata/corpus/sql/export/export_typed_null.test b/parser/testdata/corpus/sql/export/export_typed_null.test index fb87c3c2..fdd7d807 100644 --- a/parser/testdata/corpus/sql/export/export_typed_null.test +++ b/parser/testdata/corpus/sql/export/export_typed_null.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_typed_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO typed_null(value := NULL::INTEGER) AS value diff --git a/parser/testdata/corpus/sql/export/export_types.test b/parser/testdata/corpus/sql/export/export_types.test index 9aeee3d0..b58bb61b 100644 --- a/parser/testdata/corpus/sql/export/export_types.test +++ b/parser/testdata/corpus/sql/export/export_types.test @@ -1,6 +1,6 @@ # source: test/sql/export/export_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE doom as mood; diff --git a/parser/testdata/corpus/sql/export/import_database_non_copy_load.test b/parser/testdata/corpus/sql/export/import_database_non_copy_load.test new file mode 100644 index 00000000..3eba757c --- /dev/null +++ b/parser/testdata/corpus/sql/export/import_database_non_copy_load.test @@ -0,0 +1,21 @@ +# source: test/sql/export/import_database_non_copy_load.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(i INT); +-- +ok +== +EXPORT DATABASE '{TEST_DIR}/imp_non_copy'; +-- +ok +== +COPY (SELECT 'SELECT 42;') TO '{TEST_DIR}/imp_non_copy/load.sql' (HEADER false, QUOTE '', DELIMITER '|'); +-- +ok +== +IMPORT DATABASE '{TEST_DIR}/imp_non_copy'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_bit.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_bit.test index 5fcbb32a..279f88cd 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_bit.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_bit.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select "bit" from test_all_types(), range(3); diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_enum.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_enum.test index 40acd0d1..7d845f15 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_enum.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_enum.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create type my_enum as enum ('1', '2', '3') diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_hugeint.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_hugeint.test index 73ae6bb1..9ae81f2f 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_hugeint.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select "hugeint" from test_all_types(), range(3); diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_json.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_json.test index 875c1d54..4879a8fe 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_json.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_json.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select val from ( select json_structure('{"a": 42}') val), range(3); diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_list.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_list.test index 75c54a09..0eb14811 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_list.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_list.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select val from ( diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_map.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_map.test index 10642129..2f8711c8 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_map.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_map.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table unsupported_key as select val from ( diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_struct.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_struct.test index 0544296a..701b0d6c 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_struct.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_struct.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select val from ( diff --git a/parser/testdata/corpus/sql/export/parquet/export_parquet_union.test b/parser/testdata/corpus/sql/export/parquet/export_parquet_union.test index 829ca7fb..4797e084 100644 --- a/parser/testdata/corpus/sql/export/parquet/export_parquet_union.test +++ b/parser/testdata/corpus/sql/export/parquet/export_parquet_union.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet/export_parquet_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select "union" from test_all_types(), range(3); diff --git a/parser/testdata/corpus/sql/export/parquet_export.test b/parser/testdata/corpus/sql/export/parquet_export.test index b89d5c4a..776ea869 100644 --- a/parser/testdata/corpus/sql/export/parquet_export.test +++ b/parser/testdata/corpus/sql/export/parquet_export.test @@ -1,6 +1,6 @@ # source: test/sql/export/parquet_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER NOT NULL, j INTEGER) diff --git a/parser/testdata/corpus/sql/extensions/aliasing.test b/parser/testdata/corpus/sql/extensions/aliasing.test index 5231eae0..bb836efa 100644 --- a/parser/testdata/corpus/sql/extensions/aliasing.test +++ b/parser/testdata/corpus/sql/extensions/aliasing.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/aliasing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD '{BUILD_DIRECTORY}/test/extension/loadable_extension_demo.duckdb_extension' AS demo @@ -47,3 +47,35 @@ SELECT dedicated_schema_function_alias(); -- ok == +SET extension_directories=['{TEST_DIR}/aliasing_installed'] +-- +ok +== +INSTALL '{BUILD_DIRECTORY}/test/extension/loadable_extension_demo.duckdb_extension' +-- +ok +== +LOAD loadable_extension_demo AS demo +-- +ok +== +SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE extension_name IN ('demo', 'loadable_extension_demo') ORDER BY ALL +-- +ok +== +INSTALL '{BUILD_DIRECTORY}/test/extension/loadable_extension_demo_double.duckdb_extension' +-- +ok +== +LOAD loadable_extension_demo_double AS double +-- +ok +== +LOAD loadable_extension_demo_double AS second +-- +ok +== +SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE extension_name IN ('double', 'second', 'loadable_extension_demo_double') ORDER BY ALL +-- +ok +== diff --git a/parser/testdata/corpus/sql/extensions/allowed_directories_install.test b/parser/testdata/corpus/sql/extensions/allowed_directories_install.test index 40eeec3b..16df25e2 100644 --- a/parser/testdata/corpus/sql/extensions/allowed_directories_install.test +++ b/parser/testdata/corpus/sql/extensions/allowed_directories_install.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/allowed_directories_install.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set extension_directory='{TEST_DIR}/extension_dir' @@ -15,6 +15,10 @@ INSTALL bogus FROM 'http://127.0.0.1:1/allowed'; -- ok == +INSTALL 'http://127.0.0.1:1/allowed/file%2eext.duckdb_extension'; +-- +ok +== INSTALL bogus FROM 'http://example.com'; -- ok @@ -31,6 +35,10 @@ INSTALL bogus FROM 'http://127.0.0.1:1/allowed/..'; -- ok == +INSTALL 'http://127.0.0.1:1/allowed/sub%2f..%2f..%2fbogus.duckdb_extension'; +-- +ok +== SET custom_extension_repository='http://example.com/repository'; -- ok diff --git a/parser/testdata/corpus/sql/extensions/attach_type_alias_conflict.test b/parser/testdata/corpus/sql/extensions/attach_type_alias_conflict.test index 52ae5084..36446971 100644 --- a/parser/testdata/corpus/sql/extensions/attach_type_alias_conflict.test +++ b/parser/testdata/corpus/sql/extensions/attach_type_alias_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/attach_type_alias_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET autoinstall_known_extensions=true; diff --git a/parser/testdata/corpus/sql/extensions/checked_load.test b/parser/testdata/corpus/sql/extensions/checked_load.test index 4cd4966b..976559f4 100644 --- a/parser/testdata/corpus/sql/extensions/checked_load.test +++ b/parser/testdata/corpus/sql/extensions/checked_load.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/checked_load.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD 'README.md'; diff --git a/parser/testdata/corpus/sql/extensions/concurrent_failed_aliased_load.test b/parser/testdata/corpus/sql/extensions/concurrent_failed_aliased_load.test index 0313d036..21696068 100644 --- a/parser/testdata/corpus/sql/extensions/concurrent_failed_aliased_load.test +++ b/parser/testdata/corpus/sql/extensions/concurrent_failed_aliased_load.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/concurrent_failed_aliased_load.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD does_not_exist_extension AS concurrent_alias; diff --git a/parser/testdata/corpus/sql/extensions/extension_repositories.test b/parser/testdata/corpus/sql/extensions/extension_repositories.test index 16d5869d..3e2c6bf8 100644 --- a/parser/testdata/corpus/sql/extensions/extension_repositories.test +++ b/parser/testdata/corpus/sql/extensions/extension_repositories.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/extension_repositories.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_repository_directory='{TEST_DIR}/extension_repositories' @@ -27,6 +27,14 @@ SELECT repository_name FROM duckdb_extension_repositories() WHERE type='USER_PRO -- ok == +DROP EXTENSION REPOSITORY core +-- +ok +== +DROP EXTENSION REPOSITORY IF EXISTS core_nightly +-- +ok +== CREATE EXTENSION REPOSITORY acme WITH PREFIX 'http://other.acme.com' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt9+KeDkWJa7SiBb7AMdXAPV2qpRunztoC2c7DtRmN9+Lq2YQm4rMQmmAQcwyxTxcK8vwPKOiE4mLMwmQMvTty9tL+buREfvg5KJ+FY3Bv05cZYsf7VuYgUDcw41zSEE5W1thh5PiafcrMn7CPF0jN0oFfVvAHB/fAM0yaZGPKs3WYqnHAHa6v/cVMeiWZ/lQORCBqqL2hii1fEiuIqw6AOEoZVsN0/lqm7GfnD899zrzLOPRuP4YFg46drL1UyNdg+4TquJ2OV9kR4CAfdGRexqHFWLmoxkTfnUxJ4yL+gkV57K1H+smEdKrDhDX68pEFM/34E2eVKZoRU/0paxDZQIDAQAB' -- ok @@ -199,7 +207,7 @@ SELECT count(*) FROM duckdb_extension_repositories() WHERE prefix='http://evil.e -- ok == -SET allow_extension_repositories='undecided' +SET allow_extension_repositories='hosts' -- ok == diff --git a/parser/testdata/corpus/sql/extensions/extension_repositories_lock.test b/parser/testdata/corpus/sql/extensions/extension_repositories_lock.test index 47fbbf81..84d6f6f3 100644 --- a/parser/testdata/corpus/sql/extensions/extension_repositories_lock.test +++ b/parser/testdata/corpus/sql/extensions/extension_repositories_lock.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/extension_repositories_lock.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_repository_directory='{TEST_DIR}/extension_repositories_lock' diff --git a/parser/testdata/corpus/sql/extensions/extension_repository_from_host.test b/parser/testdata/corpus/sql/extensions/extension_repository_from_host.test new file mode 100644 index 00000000..fda9c36f --- /dev/null +++ b/parser/testdata/corpus/sql/extensions/extension_repository_from_host.test @@ -0,0 +1,193 @@ +# source: test/sql/extensions/extension_repository_from_host.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE EXTENSION REPOSITORY pointing.example WITH PREFIX '{TEST_DIR}/repo' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt9+KeDkWJa7SiBb7AMdXAPV2qpRunztoC2c7DtRmN9+Lq2YQm4rMQmmAQcwyxTxcK8vwPKOiE4mLMwmQMvTty9tL+buREfvg5KJ+FY3Bv05cZYsf7VuYgUDcw41zSEE5W1thh5PiafcrMn7CPF0jN0oFfVvAHB/fAM0yaZGPKs3WYqnHAHa6v/cVMeiWZ/lQORCBqqL2hii1fEiuIqw6AOEoZVsN0/lqm7GfnD899zrzLOPRuP4YFg46drL1UyNdg+4TquJ2OV9kR4CAfdGRexqHFWLmoxkTfnUxJ4yL+gkV57K1H+smEdKrDhDX68pEFM/34E2eVKZoRU/0paxDZQIDAQAB' +-- +ok +== +SELECT repository_name, prefix, host FROM duckdb_extension_repositories() WHERE type='USER_PROVIDED' +-- +ok +== +INSTALL nonexistent_extension FROM pointing.example +-- +ok +== +INSTALL nonexistent_extension FROM 'pointing.example' +-- +ok +== +LOAD nonexistent_extension FROM pointing.example +-- +ok +== +INSTALL nonexistent_extension FROM unknown.example +-- +ok +== +CREATE EXTENSION REPOSITORY IF NOT EXISTS pointing.example +-- +ok +== +CREATE EXTENSION REPOSITORY IF NOT EXISTS 'POINTING.example' +-- +ok +== +CREATE EXTENSION REPOSITORY pointing.example +-- +ok +== +CREATE OR REPLACE EXTENSION REPOSITORY pointing.example +-- +ok +== +SELECT prefix, host FROM duckdb_extension_repositories() WHERE repository_name = 'pointing.example' +-- +ok +== +CREATE OR REPLACE EXTENSION REPOSITORY pointing.example WITH PREFIX '' +-- +error: Parser Error: CREATE EXTENSION REPOSITORY: the prefix cannot be empty. Leave WITH PREFIX out to resolve the repository from its host +== +CREATE OR REPLACE EXTENSION REPOSITORY pointing.example WITH PREFIX '' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA42wcKQCSwoEFA89qFVyjug5NIRKtExLQ+cCIdb8tbKICvGmiK6aQY5sO1iNiTxaRzfeDcxH4dSVxBIY7RZoNPjPpakd1K06gGv2R31LUg2JZY6P/oqvliHdhxMOcMdMnzsyQPJuSXFrzBXsy4xpAbYfNbdjZfPgH27iORiiUEjG6gmEeXzWe9bis5hEExvWD5GIRV6B+YCaAt41+g+nP4byZ5MPCw9dXHIk5+OMakOsiM/dTj66SxdRfeYJE7HBdmk2zXD2t1st3gHydJQyX3Ov6a1Q/mhnWJq3tni5ZzkmaDKHHcnitI7iQxrCp+XWzVsT5N9wQeFvQLcFLcrR9ZQIDAQAB' +-- +error: Parser Error: CREATE EXTENSION REPOSITORY: the prefix cannot be empty. Leave WITH PREFIX out to resolve the repository from its host +== +DROP EXTENSION REPOSITORY 'pointing.example' +-- +ok +== +CREATE EXTENSION REPOSITORY my-pointing.example WITH PREFIX '{TEST_DIR}/repo' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt9+KeDkWJa7SiBb7AMdXAPV2qpRunztoC2c7DtRmN9+Lq2YQm4rMQmmAQcwyxTxcK8vwPKOiE4mLMwmQMvTty9tL+buREfvg5KJ+FY3Bv05cZYsf7VuYgUDcw41zSEE5W1thh5PiafcrMn7CPF0jN0oFfVvAHB/fAM0yaZGPKs3WYqnHAHa6v/cVMeiWZ/lQORCBqqL2hii1fEiuIqw6AOEoZVsN0/lqm7GfnD899zrzLOPRuP4YFg46drL1UyNdg+4TquJ2OV9kR4CAfdGRexqHFWLmoxkTfnUxJ4yL+gkV57K1H+smEdKrDhDX68pEFM/34E2eVKZoRU/0paxDZQIDAQAB' +-- +ok +== +INSTALL nonexistent_extension FROM my-pointing.example +-- +ok +== +CREATE EXTENSION REPOSITORY IF NOT EXISTS My-Pointing.EXAMPLE +-- +ok +== +CREATE EXTENSION REPOSITORY community-extensionz.duckdb.org +-- +ok +== +CREATE EXTENSION REPOSITORY s3-like.my-pointing.example +-- +ok +== +CREATE EXTENSION REPOSITORY xn--bcher-kva.example +-- +ok +== +CREATE EXTENSION REPOSITORY 'xn--bcher-kva.example' +-- +ok +== +CREATE EXTENSION REPOSITORY 'my--site.example' +-- +ok +== +CREATE EXTENSION REPOSITORY münchen.de +-- +ok +== +CREATE EXTENSION REPOSITORY "my-site".com +-- +error: Parser Error: syntax error at or near "." +== +CREATE EXTENSION REPOSITORY my - pointing.example +-- +error: Parser Error: syntax error at or near "-" +== +CREATE EXTENSION REPOSITORY my-pointing .example +-- +error: Parser Error: syntax error at or near "-" +== +CREATE EXTENSION REPOSITORY -my.example +-- +error: Parser Error: syntax error at or near "-" +== +CREATE EXTENSION REPOSITORY my-.example +-- +error: Parser Error: syntax error at or near "-" +== +DROP EXTENSION REPOSITORY my-pointing.example +-- +ok +== +CREATE EXTENSION REPOSITORY myrepo +-- +ok +== +CREATE EXTENSION REPOSITORY '10.0.0.5' +-- +ok +== +CREATE EXTENSION REPOSITORY 127.0.0.1 +-- +ok +== +INSTALL nonexistent_extension FROM 127.0.0.1 +-- +ok +== +CREATE EXTENSION REPOSITORY localhost +-- +ok +== +CREATE EXTENSION REPOSITORY repo.localhost +-- +ok +== +CREATE EXTENSION REPOSITORY under_score.example +-- +ok +== +CREATE EXTENSION REPOSITORY 'bad-.example' +-- +ok +== +CREATE EXTENSION REPOSITORY myrepo WITH PREFIX '{TEST_DIR}/repo' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt9+KeDkWJa7SiBb7AMdXAPV2qpRunztoC2c7DtRmN9+Lq2YQm4rMQmmAQcwyxTxcK8vwPKOiE4mLMwmQMvTty9tL+buREfvg5KJ+FY3Bv05cZYsf7VuYgUDcw41zSEE5W1thh5PiafcrMn7CPF0jN0oFfVvAHB/fAM0yaZGPKs3WYqnHAHa6v/cVMeiWZ/lQORCBqqL2hii1fEiuIqw6AOEoZVsN0/lqm7GfnD899zrzLOPRuP4YFg46drL1UyNdg+4TquJ2OV9kR4CAfdGRexqHFWLmoxkTfnUxJ4yL+gkV57K1H+smEdKrDhDX68pEFM/34E2eVKZoRU/0paxDZQIDAQAB' +-- +ok +== +DROP EXTENSION REPOSITORY myrepo +-- +ok +== +CREATE EXTENSION REPOSITORY core_nightly +-- +ok +== +CREATE EXTENSION REPOSITORY 'bad..name' WITH PREFIX '{TEST_DIR}/repo' +-- +ok +== +CREATE EXTENSION REPOSITORY '.hidden' WITH PREFIX '{TEST_DIR}/repo' +-- +ok +== +CREATE EXTENSION REPOSITORY byprefix WITH PREFIX '{TEST_DIR}/repo' USING PUBLIC KEY 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt9+KeDkWJa7SiBb7AMdXAPV2qpRunztoC2c7DtRmN9+Lq2YQm4rMQmmAQcwyxTxcK8vwPKOiE4mLMwmQMvTty9tL+buREfvg5KJ+FY3Bv05cZYsf7VuYgUDcw41zSEE5W1thh5PiafcrMn7CPF0jN0oFfVvAHB/fAM0yaZGPKs3WYqnHAHa6v/cVMeiWZ/lQORCBqqL2hii1fEiuIqw6AOEoZVsN0/lqm7GfnD899zrzLOPRuP4YFg46drL1UyNdg+4TquJ2OV9kR4CAfdGRexqHFWLmoxkTfnUxJ4yL+gkV57K1H+smEdKrDhDX68pEFM/34E2eVKZoRU/0paxDZQIDAQAB' +-- +ok +== +SET allow_extension_repositories='hosts_only' +-- +ok +== +CREATE EXTENSION REPOSITORY other WITH PREFIX '{TEST_DIR}/repo' +-- +ok +== +INSTALL nonexistent_extension FROM byprefix +-- +ok +== +DROP EXTENSION REPOSITORY byprefix +-- +ok +== diff --git a/parser/testdata/corpus/sql/extensions/extension_repository_from_host_httpfs.test b/parser/testdata/corpus/sql/extensions/extension_repository_from_host_httpfs.test new file mode 100644 index 00000000..cef7e6e7 --- /dev/null +++ b/parser/testdata/corpus/sql/extensions/extension_repository_from_host_httpfs.test @@ -0,0 +1,21 @@ +# source: test/sql/extensions/extension_repository_from_host_httpfs.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SECRET lax (TYPE http, VERIFY_SSL false); +-- +ok +== +CREATE EXTENSION REPOSITORY 'lax.example' +-- +ok +== +DROP SECRET lax +-- +ok +== +CREATE SECRET lax_elsewhere (TYPE http, VERIFY_SSL false, SCOPE 'https://other.example'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/extensions/extension_repository_from_host_no_httpfs.test b/parser/testdata/corpus/sql/extensions/extension_repository_from_host_no_httpfs.test new file mode 100644 index 00000000..9016fa44 --- /dev/null +++ b/parser/testdata/corpus/sql/extensions/extension_repository_from_host_no_httpfs.test @@ -0,0 +1,17 @@ +# source: test/sql/extensions/extension_repository_from_host_no_httpfs.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET autoload_known_extensions=false +-- +ok +== +CREATE EXTENSION REPOSITORY 'needs-httpfs.example' +-- +ok +== +CREATE EXTENSION REPOSITORY byurl WITH PREFIX 'https://needs-httpfs.example/repo' +-- +ok +== diff --git a/parser/testdata/corpus/sql/extensions/extension_repository_not_autoloaded.test b/parser/testdata/corpus/sql/extensions/extension_repository_not_autoloaded.test index a42bc4df..3f4d98aa 100644 --- a/parser/testdata/corpus/sql/extensions/extension_repository_not_autoloaded.test +++ b/parser/testdata/corpus/sql/extensions/extension_repository_not_autoloaded.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/extension_repository_not_autoloaded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_directory='{TEST_DIR}/repo_not_autoloaded' diff --git a/parser/testdata/corpus/sql/extensions/load_arbitrary_path.test b/parser/testdata/corpus/sql/extensions/load_arbitrary_path.test index 9ea2ec2d..ac015b8a 100644 --- a/parser/testdata/corpus/sql/extensions/load_arbitrary_path.test +++ b/parser/testdata/corpus/sql/extensions/load_arbitrary_path.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/load_arbitrary_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD 'folder/a.csv'; diff --git a/parser/testdata/corpus/sql/extensions/load_use_extension_one_query.test b/parser/testdata/corpus/sql/extensions/load_use_extension_one_query.test index 60ab931f..41842765 100644 --- a/parser/testdata/corpus/sql/extensions/load_use_extension_one_query.test +++ b/parser/testdata/corpus/sql/extensions/load_use_extension_one_query.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/load_use_extension_one_query.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD '{BUILD_DIRECTORY}/test/extension/loadable_extension_demo.duckdb_extension'; quack quack quack; diff --git a/parser/testdata/corpus/sql/extensions/permissions_duckdb_extension.test b/parser/testdata/corpus/sql/extensions/permissions_duckdb_extension.test index 5653cf3c..95776d75 100644 --- a/parser/testdata/corpus/sql/extensions/permissions_duckdb_extension.test +++ b/parser/testdata/corpus/sql/extensions/permissions_duckdb_extension.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/permissions_duckdb_extension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42) TO '{TEMP_DIR}/name.duckdb_extension'; @@ -59,3 +59,15 @@ FROM read_blob('build/*/repository/*/*/parquet.duckdb_extension'); -- ok == +COPY (SELECT 42) TO '{TEMP_DIR}/name.DUCKDB_EXTENSION'; +-- +ok +== +COPY (SELECT 42) TO '{TEMP_DIR}/name.Duckdb_Extension.Info' (FORMAT CSV); +-- +ok +== +COPY (SELECT 42) TO '{TEMP_DIR}/name.duckdb_extension.'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/extensions/quack_peeling.test b/parser/testdata/corpus/sql/extensions/quack_peeling.test index 4361e15c..120dacfa 100644 --- a/parser/testdata/corpus/sql/extensions/quack_peeling.test +++ b/parser/testdata/corpus/sql/extensions/quack_peeling.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/quack_peeling.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit LOAD '{BUILD_DIRECTORY}/test/extension/loadable_extension_demo.duckdb_extension'; diff --git a/parser/testdata/corpus/sql/extensions/require_direct_load.test b/parser/testdata/corpus/sql/extensions/require_direct_load.test index 60151b5e..68203a0b 100644 --- a/parser/testdata/corpus/sql/extensions/require_direct_load.test +++ b/parser/testdata/corpus/sql/extensions/require_direct_load.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/require_direct_load.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) diff --git a/parser/testdata/corpus/sql/extensions/sqlite_alter_table_add_pk.test b/parser/testdata/corpus/sql/extensions/sqlite_alter_table_add_pk.test index d2013df0..aac9a728 100644 --- a/parser/testdata/corpus/sql/extensions/sqlite_alter_table_add_pk.test +++ b/parser/testdata/corpus/sql/extensions/sqlite_alter_table_add_pk.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/sqlite_alter_table_add_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/my_sqlite' AS sqlite_db (TYPE SQLITE); diff --git a/parser/testdata/corpus/sql/extensions/version_is_valid_sqlite.test b/parser/testdata/corpus/sql/extensions/version_is_valid_sqlite.test index 8716a114..bd9e866d 100644 --- a/parser/testdata/corpus/sql/extensions/version_is_valid_sqlite.test +++ b/parser/testdata/corpus/sql/extensions/version_is_valid_sqlite.test @@ -1,6 +1,6 @@ # source: test/sql/extensions/version_is_valid_sqlite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET GLOBAL sqlite_all_varchar = true; diff --git a/parser/testdata/corpus/sql/filter/between_nested_exponential.test b/parser/testdata/corpus/sql/filter/between_nested_exponential.test new file mode 100644 index 00000000..c56ff15c --- /dev/null +++ b/parser/testdata/corpus/sql/filter/between_nested_exponential.test @@ -0,0 +1,17 @@ +# source: test/sql/filter/between_nested_exponential.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET max_execution_time=20000; +-- +ok +== +SELECT ((((((((((((((((((((((((((((((1 BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2)::INT BETWEEN 0 AND 2; +-- +ok +== +SELECT 1 BETWEEN 0 AND 2; +-- +ok +== diff --git a/parser/testdata/corpus/sql/filter/disjunctive_compressed_filter.test b/parser/testdata/corpus/sql/filter/disjunctive_compressed_filter.test new file mode 100644 index 00000000..73e35c5f --- /dev/null +++ b/parser/testdata/corpus/sql/filter/disjunctive_compressed_filter.test @@ -0,0 +1,36 @@ +# source: test/sql/filter/disjunctive_compressed_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET force_compression='rle'; +-- +ok +== +CREATE TABLE runs AS SELECT (i//10)::INTEGER AS v FROM range(100000) t(i); +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('runs') WHERE column_name='v' AND compression='RLE'; +-- +ok +== +SELECT count(*) FROM runs WHERE v BETWEEN 1000 AND 4000 OR v BETWEEN 6000 AND 9000; +-- +ok +== +COPY (SELECT lpad((i%10000)::VARCHAR,6,'0') AS v FROM range(100000) t(i)) +TO '{TEST_DIR}/disjunctive_compressed_filter.parquet' (FORMAT parquet); +-- +ok +== +SELECT count(*) > 0 FROM parquet_metadata('{TEST_DIR}/disjunctive_compressed_filter.parquet') +WHERE encodings LIKE '%DICTIONARY%'; +-- +ok +== +SELECT count(*) FROM '{TEST_DIR}/disjunctive_compressed_filter.parquet' +WHERE v BETWEEN '001000' AND '004000' OR v BETWEEN '006000' AND '009000'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/filter/filter_cache.test b/parser/testdata/corpus/sql/filter/filter_cache.test index f8224772..b3a226f1 100644 --- a/parser/testdata/corpus/sql/filter/filter_cache.test +++ b/parser/testdata/corpus/sql/filter/filter_cache.test @@ -1,6 +1,6 @@ # source: test/sql/filter/filter_cache.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT a FROM generate_series(0, 9999, 1) tbl(a), generate_series(0, 9, 1) tbl2(b); diff --git a/parser/testdata/corpus/sql/filter/filter_cache_dictionary.test b/parser/testdata/corpus/sql/filter/filter_cache_dictionary.test index 1c04bd5c..b19ee24d 100644 --- a/parser/testdata/corpus/sql/filter/filter_cache_dictionary.test +++ b/parser/testdata/corpus/sql/filter/filter_cache_dictionary.test @@ -1,6 +1,6 @@ # source: test/sql/filter/filter_cache_dictionary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='dictionary' diff --git a/parser/testdata/corpus/sql/filter/null_selection.test b/parser/testdata/corpus/sql/filter/null_selection.test index 7d7b4e06..df10c0e1 100644 --- a/parser/testdata/corpus/sql/filter/null_selection.test +++ b/parser/testdata/corpus/sql/filter/null_selection.test @@ -1,6 +1,6 @@ # source: test/sql/filter/null_selection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE null_inputs AS @@ -133,10 +133,6 @@ DROP SEQUENCE null_selection_seq; -- ok == -SET force_compression='rle'; --- -ok -== CREATE TABLE null_runs AS SELECT i, CASE WHEN i%7<>0 THEN i%31 END AS n FROM range(20003) t(i); -- diff --git a/parser/testdata/corpus/sql/filter/test_alias_filter.test b/parser/testdata/corpus/sql/filter/test_alias_filter.test index 1dbe7f20..5a168e27 100644 --- a/parser/testdata/corpus/sql/filter/test_alias_filter.test +++ b/parser/testdata/corpus/sql/filter/test_alias_filter.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_alias_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i % 2 AS k FROM integers WHERE k<>0; diff --git a/parser/testdata/corpus/sql/filter/test_columns_filter.test b/parser/testdata/corpus/sql/filter/test_columns_filter.test index 53a116d5..f6aa99f2 100644 --- a/parser/testdata/corpus/sql/filter/test_columns_filter.test +++ b/parser/testdata/corpus/sql/filter/test_columns_filter.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_columns_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(x) FILTER (WHERE COLUMNS(*) IS NOT NULL) diff --git a/parser/testdata/corpus/sql/filter/test_constant_comparisons.test b/parser/testdata/corpus/sql/filter/test_constant_comparisons.test index 6c5934a5..93c6d47d 100644 --- a/parser/testdata/corpus/sql/filter/test_constant_comparisons.test +++ b/parser/testdata/corpus/sql/filter/test_constant_comparisons.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_constant_comparisons.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(a INTEGER, b INTEGER) diff --git a/parser/testdata/corpus/sql/filter/test_dynamic_filter_nullable.test b/parser/testdata/corpus/sql/filter/test_dynamic_filter_nullable.test index 1a24ceea..3f9a443d 100644 --- a/parser/testdata/corpus/sql/filter/test_dynamic_filter_nullable.test +++ b/parser/testdata/corpus/sql/filter/test_dynamic_filter_nullable.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_dynamic_filter_nullable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c3 JSON); diff --git a/parser/testdata/corpus/sql/filter/test_expression_executor_select.test b/parser/testdata/corpus/sql/filter/test_expression_executor_select.test index d1eb8015..508e88e9 100644 --- a/parser/testdata/corpus/sql/filter/test_expression_executor_select.test +++ b/parser/testdata/corpus/sql/filter/test_expression_executor_select.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_expression_executor_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE const_eq AS diff --git a/parser/testdata/corpus/sql/filter/test_illegal_filters.test b/parser/testdata/corpus/sql/filter/test_illegal_filters.test index aded11a5..2a28477a 100644 --- a/parser/testdata/corpus/sql/filter/test_illegal_filters.test +++ b/parser/testdata/corpus/sql/filter/test_illegal_filters.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_illegal_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE SUM(a)>10 diff --git a/parser/testdata/corpus/sql/filter/test_last_option_corruption.test b/parser/testdata/corpus/sql/filter/test_last_option_corruption.test index c1ef5fa2..15f01e0a 100644 --- a/parser/testdata/corpus/sql/filter/test_last_option_corruption.test +++ b/parser/testdata/corpus/sql/filter/test_last_option_corruption.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_last_option_corruption.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('binary_as_string')::BOOLEAN; diff --git a/parser/testdata/corpus/sql/filter/test_like_null.test b/parser/testdata/corpus/sql/filter/test_like_null.test index 80f345ba..faabeb21 100644 --- a/parser/testdata/corpus/sql/filter/test_like_null.test +++ b/parser/testdata/corpus/sql/filter/test_like_null.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_like_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(c1 VARCHAR); diff --git a/parser/testdata/corpus/sql/filter/test_obsolete_filters.test b/parser/testdata/corpus/sql/filter/test_obsolete_filters.test index 756c627f..b9d94932 100644 --- a/parser/testdata/corpus/sql/filter/test_obsolete_filters.test +++ b/parser/testdata/corpus/sql/filter/test_obsolete_filters.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_obsolete_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 10), (2, 12), (3, 14), (4, 16), (5, NULL), (NULL, NULL) diff --git a/parser/testdata/corpus/sql/filter/test_or_pushdown.test b/parser/testdata/corpus/sql/filter/test_or_pushdown.test index d7cd6c65..806c59fe 100644 --- a/parser/testdata/corpus/sql/filter/test_or_pushdown.test +++ b/parser/testdata/corpus/sql/filter/test_or_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_or_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select range a, 'foo' || (range%100)::VARCHAR b, 100000-range c, timestamp '1992-01-01' + interval (range * 20) minute d from range(900000); diff --git a/parser/testdata/corpus/sql/filter/test_struct_pushdown.test b/parser/testdata/corpus/sql/filter/test_struct_pushdown.test index b3dcc92d..41331c43 100644 --- a/parser/testdata/corpus/sql/filter/test_struct_pushdown.test +++ b/parser/testdata/corpus/sql/filter/test_struct_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_struct_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_structs(i STRUCT(a integer, b bool)); diff --git a/parser/testdata/corpus/sql/filter/test_throwing_filter_pushdown.test b/parser/testdata/corpus/sql/filter/test_throwing_filter_pushdown.test index a489c184..06f78c83 100644 --- a/parser/testdata/corpus/sql/filter/test_throwing_filter_pushdown.test +++ b/parser/testdata/corpus/sql/filter/test_throwing_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_throwing_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dict_strings AS diff --git a/parser/testdata/corpus/sql/filter/test_transitive_filters.test b/parser/testdata/corpus/sql/filter/test_transitive_filters.test index 44191734..913ca54a 100644 --- a/parser/testdata/corpus/sql/filter/test_transitive_filters.test +++ b/parser/testdata/corpus/sql/filter/test_transitive_filters.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_transitive_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vals1 AS SELECT i AS i, i AS j FROM range(0, 11, 1) t1(i) diff --git a/parser/testdata/corpus/sql/filter/test_try_filter_doesnt_mutate_columns.test b/parser/testdata/corpus/sql/filter/test_try_filter_doesnt_mutate_columns.test index d90ac82e..6e4f28dc 100644 --- a/parser/testdata/corpus/sql/filter/test_try_filter_doesnt_mutate_columns.test +++ b/parser/testdata/corpus/sql/filter/test_try_filter_doesnt_mutate_columns.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_try_filter_doesnt_mutate_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 INT, c1 INT); diff --git a/parser/testdata/corpus/sql/filter/test_variant_filter.test b/parser/testdata/corpus/sql/filter/test_variant_filter.test index fbcf968b..ac380027 100644 --- a/parser/testdata/corpus/sql/filter/test_variant_filter.test +++ b/parser/testdata/corpus/sql/filter/test_variant_filter.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_variant_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte as ( diff --git a/parser/testdata/corpus/sql/filter/test_zonemap_disjunctions.test b/parser/testdata/corpus/sql/filter/test_zonemap_disjunctions.test index 8f57e59c..1708f698 100644 --- a/parser/testdata/corpus/sql/filter/test_zonemap_disjunctions.test +++ b/parser/testdata/corpus/sql/filter/test_zonemap_disjunctions.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_zonemap_disjunctions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE t AS SELECT range a, length(range::VARCHAR) b, mod(range,10000) c, 5 d, 10000 e FROM range(1000000); diff --git a/parser/testdata/corpus/sql/filter/test_zonemap_segment.test b/parser/testdata/corpus/sql/filter/test_zonemap_segment.test index 0cdbe6f3..9b1cfc19 100644 --- a/parser/testdata/corpus/sql/filter/test_zonemap_segment.test +++ b/parser/testdata/corpus/sql/filter/test_zonemap_segment.test @@ -1,6 +1,6 @@ # source: test/sql/filter/test_zonemap_segment.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT 1 FROM range(65534); diff --git a/parser/testdata/corpus/sql/filter/transitive_filter_bounds.test b/parser/testdata/corpus/sql/filter/transitive_filter_bounds.test index 0b1ee7ce..175bcbbd 100644 --- a/parser/testdata/corpus/sql/filter/transitive_filter_bounds.test +++ b/parser/testdata/corpus/sql/filter/transitive_filter_bounds.test @@ -1,6 +1,6 @@ # source: test/sql/filter/transitive_filter_bounds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE transitive_calls; diff --git a/parser/testdata/corpus/sql/function/array/array_and_map.test b/parser/testdata/corpus/sql/function/array/array_and_map.test index b32d430f..505f6eac 100644 --- a/parser/testdata/corpus/sql/function/array/array_and_map.test +++ b/parser/testdata/corpus/sql/function/array/array_and_map.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_and_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP([MAP([ARRAY_VALUE('1', NULL), ARRAY_VALUE(NULL, '2')], [1, 2])], [1]); diff --git a/parser/testdata/corpus/sql/function/array/array_cosine_distance.test b/parser/testdata/corpus/sql/function/array/array_cosine_distance.test index 282ed707..cbab896c 100644 --- a/parser/testdata/corpus/sql/function/array/array_cosine_distance.test +++ b/parser/testdata/corpus/sql/function/array/array_cosine_distance.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_cosine_distance.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_cosine_distance([1, 2, 3]::{type}[3], [1, 2, 3]::{type}[3]); diff --git a/parser/testdata/corpus/sql/function/array/array_cosine_similarity.test b/parser/testdata/corpus/sql/function/array/array_cosine_similarity.test index b2e139fe..1e0cd261 100644 --- a/parser/testdata/corpus/sql/function/array/array_cosine_similarity.test +++ b/parser/testdata/corpus/sql/function/array/array_cosine_similarity.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_cosine_similarity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_cosine_similarity([1, 2, 3]::{type}[3], [1, 2, 3]::{type}[3]); diff --git a/parser/testdata/corpus/sql/function/array/array_cosine_similarity_extreme.test b/parser/testdata/corpus/sql/function/array/array_cosine_similarity_extreme.test index c1bc6a27..da356ed5 100644 --- a/parser/testdata/corpus/sql/function/array/array_cosine_similarity_extreme.test +++ b/parser/testdata/corpus/sql/function/array/array_cosine_similarity_extreme.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_cosine_similarity_extreme.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_cosine_similarity([1e308,1e308,1e308]::DOUBLE[3], [1e308,1e308,1e308]::DOUBLE[3]) diff --git a/parser/testdata/corpus/sql/function/array/array_cross_product.test b/parser/testdata/corpus/sql/function/array/array_cross_product.test index fb09333e..27348b97 100644 --- a/parser/testdata/corpus/sql/function/array/array_cross_product.test +++ b/parser/testdata/corpus/sql/function/array/array_cross_product.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_cross_product(l, r) FROM (VALUES diff --git a/parser/testdata/corpus/sql/function/array/array_distance.test b/parser/testdata/corpus/sql/function/array/array_distance.test index d884f599..d3d7ea47 100644 --- a/parser/testdata/corpus/sql/function/array/array_distance.test +++ b/parser/testdata/corpus/sql/function/array/array_distance.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_distance.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_distance([1, 2, 3]::{type}[3], [1, 2, 3]::{type}[3]); diff --git a/parser/testdata/corpus/sql/function/array/array_flatten.test b/parser/testdata/corpus/sql/function/array/array_flatten.test index 3fedb5dd..d0cf1a2b 100644 --- a/parser/testdata/corpus/sql/function/array/array_flatten.test +++ b/parser/testdata/corpus/sql/function/array/array_flatten.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_flatten.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select flatten(['a', 'b', 'c']::varchar[3]); diff --git a/parser/testdata/corpus/sql/function/array/array_inner_product.test b/parser/testdata/corpus/sql/function/array/array_inner_product.test index 209d4a29..4b8b7476 100644 --- a/parser/testdata/corpus/sql/function/array/array_inner_product.test +++ b/parser/testdata/corpus/sql/function/array/array_inner_product.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_inner_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_inner_product('foo', 'bar'); diff --git a/parser/testdata/corpus/sql/function/array/array_length.test b/parser/testdata/corpus/sql/function/array/array_length.test index 5dae37a6..bd7e7ced 100644 --- a/parser/testdata/corpus/sql/function/array/array_length.test +++ b/parser/testdata/corpus/sql/function/array/array_length.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length(array_value(1, 2, 3)); diff --git a/parser/testdata/corpus/sql/function/array/array_list_functions.test b/parser/testdata/corpus/sql/function/array/array_list_functions.test index fbd9ded7..43ec4b81 100644 --- a/parser/testdata/corpus/sql/function/array/array_list_functions.test +++ b/parser/testdata/corpus/sql/function/array/array_list_functions.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_list_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_distinct(array_value(1,1,2,3,3)) = list_distinct([1,1,2,3,3]); diff --git a/parser/testdata/corpus/sql/function/array/array_size_mismatch_argument.test b/parser/testdata/corpus/sql/function/array/array_size_mismatch_argument.test new file mode 100644 index 00000000..e00f14ee --- /dev/null +++ b/parser/testdata/corpus/sql/function/array/array_size_mismatch_argument.test @@ -0,0 +1,29 @@ +# source: test/sql/function/array/array_size_mismatch_argument.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT list_concat([[1,2,3]::INT[3]], [[5]::INT[1]]); +-- +ok +== +SELECT list_append([[1]::INT[1]], [9,8]::INT[2]); +-- +ok +== +SELECT greatest([5,9]::INT[2], [1,2,3]::INT[3]); +-- +ok +== +SELECT list_concat([[1,2]::INT[2]], [[5,6]::INT[2]]); +-- +ok +== +UNPIVOT (SELECT [[1,2],[7,8]]::INT[2][] a, [[3,4,5]]::INT[3][] b) ON a, b INTO NAME n VALUE v; +-- +ok +== +UNPIVOT (SELECT [1,2]::INT[2] a, [3,4,5]::INT[3] b) ON a, b INTO NAME n VALUE v; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/array/array_value_size_mismatch.test b/parser/testdata/corpus/sql/function/array/array_value_size_mismatch.test index 4274843d..809939d9 100644 --- a/parser/testdata/corpus/sql/function/array/array_value_size_mismatch.test +++ b/parser/testdata/corpus/sql/function/array/array_value_size_mismatch.test @@ -1,6 +1,6 @@ # source: test/sql/function/array/array_value_size_mismatch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_value(array_value(1, 2), array_value(3, 4, 3)); diff --git a/parser/testdata/corpus/sql/function/autocomplete/alter_table.test b/parser/testdata/corpus/sql/function/autocomplete/alter_table.test index 59eab191..faa238c8 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/alter_table.test +++ b/parser/testdata/corpus/sql/function/autocomplete/alter_table.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/alter_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE my_table(first_column bigint); diff --git a/parser/testdata/corpus/sql/function/autocomplete/copy.test b/parser/testdata/corpus/sql/function/autocomplete/copy.test index 25150f7f..d3e81e81 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/copy.test +++ b/parser/testdata/corpus/sql/function/autocomplete/copy.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('COP') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/create_function.test b/parser/testdata/corpus/sql/function/autocomplete/create_function.test index ccc4bd2b..45c22383 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/create_function.test +++ b/parser/testdata/corpus/sql/function/autocomplete/create_function.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/create_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE MA') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/create_schema.test b/parser/testdata/corpus/sql/function/autocomplete/create_schema.test index 2badfdc5..778f831f 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/create_schema.test +++ b/parser/testdata/corpus/sql/function/autocomplete/create_schema.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/create_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start, suggestion_type FROM sql_auto_complete('CREATE SCH') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/create_sequence.test b/parser/testdata/corpus/sql/function/autocomplete/create_sequence.test index ba197e9e..4d8e536e 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/create_sequence.test +++ b/parser/testdata/corpus/sql/function/autocomplete/create_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/create_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE SEQ') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/create_table.test b/parser/testdata/corpus/sql/function/autocomplete/create_table.test index 385c7062..1b10131e 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/create_table.test +++ b/parser/testdata/corpus/sql/function/autocomplete/create_table.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/create_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('CR') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/create_type.test b/parser/testdata/corpus/sql/function/autocomplete/create_type.test index 4e00b5c2..c98e7e98 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/create_type.test +++ b/parser/testdata/corpus/sql/function/autocomplete/create_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/create_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE TY') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/drop.test b/parser/testdata/corpus/sql/function/autocomplete/drop.test index d2188b97..78557ffc 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/drop.test +++ b/parser/testdata/corpus/sql/function/autocomplete/drop.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('DRO') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/explain_sql.test b/parser/testdata/corpus/sql/function/autocomplete/explain_sql.test index 5a82cf28..be304535 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/explain_sql.test +++ b/parser/testdata/corpus/sql/function/autocomplete/explain_sql.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/explain_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT sum(i) AS total FROM range(5) t(i) WHERE i > 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/expressions.test b/parser/testdata/corpus/sql/function/autocomplete/expressions.test index 1c4dfddf..72db6ed1 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/expressions.test +++ b/parser/testdata/corpus/sql/function/autocomplete/expressions.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT NULL FR') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/hidden_database.test b/parser/testdata/corpus/sql/function/autocomplete/hidden_database.test index 417744ca..81231b19 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/hidden_database.test +++ b/parser/testdata/corpus/sql/function/autocomplete/hidden_database.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/hidden_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM sql_auto_complete('SELECT * FROM hidden_') WHERE suggestion LIKE 'hidden_db%' diff --git a/parser/testdata/corpus/sql/function/autocomplete/identical_schema_table.test b/parser/testdata/corpus/sql/function/autocomplete/identical_schema_table.test index 216fa148..d4308de9 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/identical_schema_table.test +++ b/parser/testdata/corpus/sql/function/autocomplete/identical_schema_table.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/identical_schema_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA my_catalog_entry; diff --git a/parser/testdata/corpus/sql/function/autocomplete/insert_into.test b/parser/testdata/corpus/sql/function/autocomplete/insert_into.test index 3fb08abf..629b25eb 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/insert_into.test +++ b/parser/testdata/corpus/sql/function/autocomplete/insert_into.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/insert_into.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('INS') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/nested_parentheses.test b/parser/testdata/corpus/sql/function/autocomplete/nested_parentheses.test new file mode 100644 index 00000000..a07b00ad --- /dev/null +++ b/parser/testdata/corpus/sql/function/autocomplete/nested_parentheses.test @@ -0,0 +1,13 @@ +# source: test/sql/function/autocomplete/nested_parentheses.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) > 0 FROM sql_auto_complete(repeat('(', 25)); +-- +ok +== +SELECT count(*) > 0 FROM sql_auto_complete('SELECT ' || repeat('(', 25)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/autocomplete/pragma.test b/parser/testdata/corpus/sql/function/autocomplete/pragma.test index a086d5ee..73baa7d5 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/pragma.test +++ b/parser/testdata/corpus/sql/function/autocomplete/pragma.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/pragma.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('PRAGMA show_t') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/scalar_functions.test b/parser/testdata/corpus/sql/function/autocomplete/scalar_functions.test index 9bf14108..35633c41 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/scalar_functions.test +++ b/parser/testdata/corpus/sql/function/autocomplete/scalar_functions.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/scalar_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('select gam') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/select.test b/parser/testdata/corpus/sql/function/autocomplete/select.test index 57a930ed..19f6641f 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/select.test +++ b/parser/testdata/corpus/sql/function/autocomplete/select.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('SEL') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/setting.test b/parser/testdata/corpus/sql/function/autocomplete/setting.test index 25d70393..486e1973 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/setting.test +++ b/parser/testdata/corpus/sql/function/autocomplete/setting.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/setting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('SET e_directory') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/show.test b/parser/testdata/corpus/sql/function/autocomplete/show.test index 32c1c8e7..ece2e2e4 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/show.test +++ b/parser/testdata/corpus/sql/function/autocomplete/show.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/show.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('DESCR') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/sql_format.test b/parser/testdata/corpus/sql/function/autocomplete/sql_format.test index 51f8f849..435a880b 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/sql_format.test +++ b/parser/testdata/corpus/sql/function/autocomplete/sql_format.test @@ -1,8 +1,65 @@ # source: test/sql/function/autocomplete/sql_format.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit +SELECT duckdb_format_sql('select $customer, $MiXeD, $select, $year, $1') = $$SELECT $customer, $MiXeD, $select, $year, $1$$ +-- +ok +== +SELECT duckdb_format_sql('SELECT $customer, $MiXeD, $SELECT, $YEAR, $1', MAP {'keyword_case': 'lower'}) = $$select $customer, $MiXeD, $SELECT, $YEAR, $1$$ +-- +ok +== +SELECT duckdb_format_sql('select $select from t where id=$1', MAP {'inline_threshold': '0'}) = $$SELECT + $select +FROM + t +WHERE + id = $1$$ +-- +ok +== +SELECT duckdb_format_sql('select ''$customer, $select'', $1') = $$SELECT '$customer, $select', $1$$ +-- +ok +== +SELECT duckdb_format_sql('Select $customer, $MiXeD, $SELECT, $YEAR, $1', MAP {'keyword_case': 'preserve'}) = $$Select $customer, $MiXeD, $SELECT, $YEAR, $1$$ +-- +ok +== +PREPARE formatted_parameter AS +SELECT $"{parameter}"::INTEGER AS supplied, * +FROM query(duckdb_format_sql('SELECT $' || '{parameter}' || '::INTEGER AS value', MAP {'keyword_case': '{keyword_case}'})); +-- +ok +== +EXECUTE formatted_parameter("{parameter}" := 42); +-- +ok +== +SELECT contains(formatted, '$' || '{parameter}'), starts_with(formatted, 'SELECT CASE' || chr(10)) +FROM (SELECT duckdb_format_sql( + 'SELECT CASE WHEN $' || '{parameter}' || ' THEN repeat(''x'', 120) ELSE repeat(''y'', 120) END AS very_long_result_column_alias_0123456789', + MAP {'inline_threshold': '{threshold}'}) AS formatted); +-- +ok +== +PREPARE formatted_case AS +SELECT $"{parameter}" AS supplied, * FROM query(duckdb_format_sql( + 'SELECT CASE WHEN $' || '{parameter}' || ' THEN repeat(''x'', 120) ELSE repeat(''y'', 120) END AS very_long_result_column_alias_0123456789', + MAP {'inline_threshold': '{threshold}'})); +-- +ok +== +EXECUTE formatted_case("{parameter}" := true); +-- +ok +== +EXECUTE formatted_case("{parameter}" := false); +-- +ok +== SELECT duckdb_format_sql('select a,b,c from t where x=1 and y=2 group by a,b order by a desc limit 10') = $$SELECT a, b, c FROM t WHERE x = 1 AND y = 2 diff --git a/parser/testdata/corpus/sql/function/autocomplete/sql_format_literals.test b/parser/testdata/corpus/sql/function/autocomplete/sql_format_literals.test index 29ccea54..100dcb88 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/sql_format_literals.test +++ b/parser/testdata/corpus/sql/function/autocomplete/sql_format_literals.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/sql_format_literals.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT duckdb_format_sql($query$SELECT 'a diff --git a/parser/testdata/corpus/sql/function/autocomplete/suggest_file.test b/parser/testdata/corpus/sql/function/autocomplete/suggest_file.test index 70724416..ee1cd07f 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/suggest_file.test +++ b/parser/testdata/corpus/sql/function/autocomplete/suggest_file.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/suggest_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion FROM sql_auto_complete('COPY tbl FROM ''{DATA_DIR}/parq') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/table_functions.test b/parser/testdata/corpus/sql/function/autocomplete/table_functions.test index 37e3a128..57786683 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/table_functions.test +++ b/parser/testdata/corpus/sql/function/autocomplete/table_functions.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/table_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('call histo') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/tpch.test b/parser/testdata/corpus/sql/function/autocomplete/tpch.test index 4c72f8e2..f3162b90 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/tpch.test +++ b/parser/testdata/corpus/sql/function/autocomplete/tpch.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/tpch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT l_ord') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/autocomplete/views.test b/parser/testdata/corpus/sql/function/autocomplete/views.test index be063d05..cf3c5bee 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/views.test +++ b/parser/testdata/corpus/sql/function/autocomplete/views.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT 42 my_column_name diff --git a/parser/testdata/corpus/sql/function/autocomplete/window.test b/parser/testdata/corpus/sql/function/autocomplete/window.test index 4ad21790..cb68a278 100644 --- a/parser/testdata/corpus/sql/function/autocomplete/window.test +++ b/parser/testdata/corpus/sql/function/autocomplete/window.test @@ -1,6 +1,6 @@ # source: test/sql/function/autocomplete/window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT row_number() OVER (RANG') LIMIT 1; diff --git a/parser/testdata/corpus/sql/function/blob/base64.test b/parser/testdata/corpus/sql/function/blob/base64.test index 22f17fda..6192c678 100644 --- a/parser/testdata/corpus/sql/function/blob/base64.test +++ b/parser/testdata/corpus/sql/function/blob/base64.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/base64.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT base64(encode('')) diff --git a/parser/testdata/corpus/sql/function/blob/create_sort_key.test b/parser/testdata/corpus/sql/function/blob/create_sort_key.test index 26c4e8a2..b75d2f3c 100644 --- a/parser/testdata/corpus/sql/function/blob/create_sort_key.test +++ b/parser/testdata/corpus/sql/function/blob/create_sort_key.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/create_sort_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers ORDER BY create_sort_key(i, 'ASC NULLS LAST') diff --git a/parser/testdata/corpus/sql/function/blob/create_sort_key_blob_escapes.test b/parser/testdata/corpus/sql/function/blob/create_sort_key_blob_escapes.test index 730c92ca..d7bc0447 100644 --- a/parser/testdata/corpus/sql/function/blob/create_sort_key_blob_escapes.test +++ b/parser/testdata/corpus/sql/function/blob/create_sort_key_blob_escapes.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/create_sort_key_blob_escapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT hex(create_sort_key('\xAA\x00\xBB\x01\xCC'::BLOB, 'ASC NULLS LAST')) diff --git a/parser/testdata/corpus/sql/function/blob/encode.test b/parser/testdata/corpus/sql/function/blob/encode.test index 0f4b2cab..f479a978 100644 --- a/parser/testdata/corpus/sql/function/blob/encode.test +++ b/parser/testdata/corpus/sql/function/blob/encode.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/encode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT encode('ü') diff --git a/parser/testdata/corpus/sql/function/blob/from_base64_padding.test b/parser/testdata/corpus/sql/function/blob/from_base64_padding.test new file mode 100644 index 00000000..1fa12d7e --- /dev/null +++ b/parser/testdata/corpus/sql/function/blob/from_base64_padding.test @@ -0,0 +1,21 @@ +# source: test/sql/function/blob/from_base64_padding.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT from_base64('AP=8'); +-- +ok +== +SELECT from_base64('A=8='); +-- +ok +== +SELECT from_base64('AP=='); +-- +ok +== +SELECT from_base64('APA='); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/blob/from_base64_padding_order.test b/parser/testdata/corpus/sql/function/blob/from_base64_padding_order.test new file mode 100644 index 00000000..0241814a --- /dev/null +++ b/parser/testdata/corpus/sql/function/blob/from_base64_padding_order.test @@ -0,0 +1,13 @@ +# source: test/sql/function/blob/from_base64_padding_order.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT from_base64('QUJDQP=8'); +-- +ok +== +SELECT from_base64('QQ=='), from_base64('QUI='), from_base64('QUJD'), from_base64('QUJDQQ=='); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/blob/test_blob_array_slice.test b/parser/testdata/corpus/sql/function/blob/test_blob_array_slice.test index d69aea7b..64fa0599 100644 --- a/parser/testdata/corpus/sql/function/blob/test_blob_array_slice.test +++ b/parser/testdata/corpus/sql/function/blob/test_blob_array_slice.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/test_blob_array_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select array_slice(blob '\x00\x01\x02\x03\x04\x05', 2, 4) diff --git a/parser/testdata/corpus/sql/function/blob/test_concat_blob.test b/parser/testdata/corpus/sql/function/blob/test_concat_blob.test index 19963d92..59f8e963 100644 --- a/parser/testdata/corpus/sql/function/blob/test_concat_blob.test +++ b/parser/testdata/corpus/sql/function/blob/test_concat_blob.test @@ -1,6 +1,6 @@ # source: test/sql/function/blob/test_concat_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT blob 'aaa\x80' || blob 'aaa\x80' diff --git a/parser/testdata/corpus/sql/function/comparison/between_nested_types.test b/parser/testdata/corpus/sql/function/comparison/between_nested_types.test new file mode 100644 index 00000000..7e14ce72 --- /dev/null +++ b/parser/testdata/corpus/sql/function/comparison/between_nested_types.test @@ -0,0 +1,129 @@ +# source: test/sql/function/comparison/between_nested_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE sheet(cell STRUCT(col VARCHAR, "row" INTEGER)); +-- +ok +== +INSERT INTO sheet VALUES + ({'col': 'A', 'row': 1}), ({'col': 'A', 'row': 2}), ({'col': 'A', 'row': 3}), + ({'col': 'B', 'row': 1}), ({'col': 'B', 'row': 2}), + ({'col': 'C', 'row': 1}), + (NULL), + ({'col': NULL, 'row': 1}), + ({'col': 'A', 'row': NULL}); +-- +ok +== +SELECT count(*) FROM sheet WHERE cell BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2}; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet WHERE cell BETWEEN {'col': 'A', 'row': 2} AND {'col': 'B', 'row': 1} ORDER BY ALL; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet WHERE cell > {'col': 'A', 'row': 2} AND cell <= {'col': 'B', 'row': 1} ORDER BY ALL; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet WHERE cell >= {'col': 'A', 'row': 2} AND cell < {'col': 'B', 'row': 1} ORDER BY ALL; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet WHERE cell > {'col': 'A', 'row': 2} AND cell < {'col': 'B', 'row': 1} ORDER BY ALL; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet WHERE cell NOT BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2} ORDER BY ALL; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet +WHERE (CASE WHEN random() >= 0 THEN cell END) BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2} +ORDER BY ALL; +-- +ok +== +SELECT cell BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2} FROM sheet ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM sheet AS s, (SELECT {'col': 'A', 'row': 1}::STRUCT(col VARCHAR, "row" INTEGER) lo, + {'col': 'B', 'row': 2}::STRUCT(col VARCHAR, "row" INTEGER) hi) b +WHERE s.cell BETWEEN b.lo AND b.hi; +-- +ok +== +SELECT cell.col, cell."row" FROM sheet +WHERE cell."row" = 1 AND cell BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2} +ORDER BY ALL; +-- +ok +== +CREATE TABLE null_first(cell STRUCT(col VARCHAR, "row" INTEGER)); +-- +ok +== +INSERT INTO null_first VALUES (NULL), ({'col': 'A', 'row': NULL}); +-- +ok +== +SELECT count(*) FROM null_first WHERE cell BETWEEN {'col': 'A', 'row': 1} AND {'col': 'B', 'row': 2}; +-- +ok +== +CREATE TABLE nested(v STRUCT(a STRUCT(x INTEGER, y VARCHAR), b INTEGER)); +-- +ok +== +INSERT INTO nested VALUES + ({'a': {'x': 1, 'y': 'a'}, 'b': 1}), + ({'a': {'x': 1, 'y': 'b'}, 'b': 0}), + ({'a': {'x': 2, 'y': 'a'}, 'b': 5}), + ({'a': NULL, 'b': 2}), + (NULL); +-- +ok +== +SELECT count(*) FROM nested WHERE v BETWEEN {'a': {'x': 1, 'y': 'a'}, 'b': 1} AND {'a': {'x': 2, 'y': 'a'}, 'b': 5}; +-- +ok +== +CREATE TABLE lists(l INTEGER[]); +-- +ok +== +INSERT INTO lists VALUES ([]), ([1]), ([1, 2]), ([1, NULL]), ([2]), ([3, 0]), (NULL); +-- +ok +== +SELECT l FROM lists WHERE l BETWEEN [1] AND [2] ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM (VALUES ([{'k': 1}]), ([{'k': 2}]), ([{'k': 3}])) t(v) +WHERE v BETWEEN [{'k': 1}] AND [{'k': 2}]; +-- +ok +== +SELECT count(*) FROM (VALUES (array_value(1, 1)), (array_value(1, 2)), (array_value(2, 1))) t(v) +WHERE v BETWEEN array_value(1, 1) AND array_value(1, 9); +-- +ok +== +CREATE TABLE many AS SELECT {'col': chr(65 + (i % 3)::INTEGER), 'row': i // 3} AS cell FROM range(9000) t(i); +-- +ok +== +SELECT count(*) FROM many WHERE cell BETWEEN {'col': 'A', 'row': 100} AND {'col': 'B', 'row': 200}; +-- +ok +== +SELECT count(*) FROM many AS m, (VALUES ({'col': 'A', 'row': 100}, {'col': 'B', 'row': 200})) b(lo, hi) +WHERE m.cell BETWEEN b.lo AND b.hi; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/comparison/between_physical_types.test b/parser/testdata/corpus/sql/function/comparison/between_physical_types.test index 49061f4e..11ce8584 100644 --- a/parser/testdata/corpus/sql/function/comparison/between_physical_types.test +++ b/parser/testdata/corpus/sql/function/comparison/between_physical_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/comparison/between_physical_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) diff --git a/parser/testdata/corpus/sql/function/date/date_add.test b/parser/testdata/corpus/sql/function/date/date_add.test index 8107127e..44819ba3 100644 --- a/parser/testdata/corpus/sql/function/date/date_add.test +++ b/parser/testdata/corpus/sql/function/date/date_add.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_add.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO dates VALUES (DATE '1992-01-01') diff --git a/parser/testdata/corpus/sql/function/date/date_diff_extreme_dates.test b/parser/testdata/corpus/sql/function/date/date_diff_extreme_dates.test index a851c892..8a9257d7 100644 --- a/parser/testdata/corpus/sql/function/date/date_diff_extreme_dates.test +++ b/parser/testdata/corpus/sql/function/date/date_diff_extreme_dates.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_diff_extreme_dates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT datediff('week', DATE '-5877641-06-25', DATE '5881580-07-10'); diff --git a/parser/testdata/corpus/sql/function/date/date_part_stats.test b/parser/testdata/corpus/sql/function/date/date_part_stats.test index 8d37ac57..ba78593d 100644 --- a/parser/testdata/corpus/sql/function/date/date_part_stats.test +++ b/parser/testdata/corpus/sql/function/date/date_part_stats.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_part_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT EXTRACT(year FROM d) FROM dates; diff --git a/parser/testdata/corpus/sql/function/date/date_trunc_4202.test b/parser/testdata/corpus/sql/function/date/date_trunc_4202.test index b1225d75..5a4c9e5a 100644 --- a/parser/testdata/corpus/sql/function/date/date_trunc_4202.test +++ b/parser/testdata/corpus/sql/function/date/date_trunc_4202.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_trunc_4202.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 (date timestamp); diff --git a/parser/testdata/corpus/sql/function/date/date_trunc_min_date.test b/parser/testdata/corpus/sql/function/date/date_trunc_min_date.test index 5946b753..439b4ff3 100644 --- a/parser/testdata/corpus/sql/function/date/date_trunc_min_date.test +++ b/parser/testdata/corpus/sql/function/date/date_trunc_min_date.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_trunc_min_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT date_trunc('week', DATE '-5877641-06-25') diff --git a/parser/testdata/corpus/sql/function/date/date_trunc_stats.test b/parser/testdata/corpus/sql/function/date/date_trunc_stats.test index a83d1884..524b8e72 100644 --- a/parser/testdata/corpus/sql/function/date/date_trunc_stats.test +++ b/parser/testdata/corpus/sql/function/date/date_trunc_stats.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_trunc_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE table T1(A0 TIMESTAMP) diff --git a/parser/testdata/corpus/sql/function/date/date_trunc_stats_out_of_range.test b/parser/testdata/corpus/sql/function/date/date_trunc_stats_out_of_range.test index 5264ac90..a0576472 100644 --- a/parser/testdata/corpus/sql/function/date/date_trunc_stats_out_of_range.test +++ b/parser/testdata/corpus/sql/function/date/date_trunc_stats_out_of_range.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/date_trunc_stats_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE d(dt DATE, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/date/strftime_iso_year_range.test b/parser/testdata/corpus/sql/function/date/strftime_iso_year_range.test index e6a607a8..4c440dc4 100644 --- a/parser/testdata/corpus/sql/function/date/strftime_iso_year_range.test +++ b/parser/testdata/corpus/sql/function/date/strftime_iso_year_range.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/strftime_iso_year_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strftime(d, '%Y|%G|%V') FROM (VALUES (DATE '12345-06-01'), (DATE '-0005-06-01'), (DATE '0000-01-01'), (DATE '-12345-06-01'), (DATE '2024-12-30'), (DATE '0001-01-01')) t(d) diff --git a/parser/testdata/corpus/sql/function/date/test_date_part.test b/parser/testdata/corpus/sql/function/date/test_date_part.test index 37c85bec..49b33ee2 100644 --- a/parser/testdata/corpus/sql/function/date/test_date_part.test +++ b/parser/testdata/corpus/sql/function/date/test_date_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_date_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(d DATE, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/date/test_date_trunc.test b/parser/testdata/corpus/sql/function/date/test_date_trunc.test index c8f6a426..a9a38e74 100644 --- a/parser/testdata/corpus/sql/function/date/test_date_trunc.test +++ b/parser/testdata/corpus/sql/function/date/test_date_trunc.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_date_trunc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(d TIMESTAMP, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/date/test_epoch_ns_try.test b/parser/testdata/corpus/sql/function/date/test_epoch_ns_try.test new file mode 100644 index 00000000..01a33283 --- /dev/null +++ b/parser/testdata/corpus/sql/function/date/test_epoch_ns_try.test @@ -0,0 +1,49 @@ +# source: test/sql/function/date/test_epoch_ns_try.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(o TIMESTAMP); +-- +ok +== +INSERT INTO t VALUES (TIMESTAMP '2300-01-01'), (TIMESTAMP '2000-01-01'); +-- +ok +== +SELECT TRY(epoch_ns(o)) FROM t; +-- +ok +== +SELECT epoch_ns(o) FROM t; +-- +ok +== +CREATE TABLE d(o DATE); +-- +ok +== +INSERT INTO d VALUES (DATE '2300-01-01'), (DATE '2000-01-01'); +-- +ok +== +SELECT TRY(epoch_ns(o)) FROM d; +-- +ok +== +CREATE TABLE d_us(o DATE); +-- +ok +== +INSERT INTO d_us VALUES (DATE '300000-01-01'), (DATE '2000-01-01'); +-- +ok +== +SELECT TRY(epoch_us(o)) FROM d_us; +-- +ok +== +SELECT epoch_us(o) FROM d_us; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/date/test_extract.test b/parser/testdata/corpus/sql/function/date/test_extract.test index 9a1f196d..bf68c340 100644 --- a/parser/testdata/corpus/sql/function/date/test_extract.test +++ b/parser/testdata/corpus/sql/function/date/test_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(i DATE) diff --git a/parser/testdata/corpus/sql/function/date/test_extract_edge_cases.test b/parser/testdata/corpus/sql/function/date/test_extract_edge_cases.test index 9a99cc35..ee4e70e8 100644 --- a/parser/testdata/corpus/sql/function/date/test_extract_edge_cases.test +++ b/parser/testdata/corpus/sql/function/date/test_extract_edge_cases.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_extract_edge_cases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT EXTRACT(century FROM cast('2000-10-10' AS DATE)); diff --git a/parser/testdata/corpus/sql/function/date/test_extract_month.test b/parser/testdata/corpus/sql/function/date/test_extract_month.test index dfbce3ec..0cf8226c 100644 --- a/parser/testdata/corpus/sql/function/date/test_extract_month.test +++ b/parser/testdata/corpus/sql/function/date/test_extract_month.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_extract_month.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select date '1992-01-01' + interval (i) days, month(date '1992-01-01' + interval (i) days) from range(0, 366) tbl(i); diff --git a/parser/testdata/corpus/sql/function/date/test_extract_year.test b/parser/testdata/corpus/sql/function/date/test_extract_year.test index 7d47f6bd..e018759d 100644 --- a/parser/testdata/corpus/sql/function/date/test_extract_year.test +++ b/parser/testdata/corpus/sql/function/date/test_extract_year.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_extract_year.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates AS SELECT date '1970-01-01' + concat(i, ' years')::interval AS d from range(0, 430) tbl(i); diff --git a/parser/testdata/corpus/sql/function/date/test_strftime.test b/parser/testdata/corpus/sql/function/date/test_strftime.test index 86b64709..8fc64d6e 100644 --- a/parser/testdata/corpus/sql/function/date/test_strftime.test +++ b/parser/testdata/corpus/sql/function/date/test_strftime.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_strftime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strftime(DATE '1992-01-01', '%Y'); diff --git a/parser/testdata/corpus/sql/function/date/test_strftime_exhaustive.test b/parser/testdata/corpus/sql/function/date/test_strftime_exhaustive.test index fff2186a..f563d58c 100644 --- a/parser/testdata/corpus/sql/function/date/test_strftime_exhaustive.test +++ b/parser/testdata/corpus/sql/function/date/test_strftime_exhaustive.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_strftime_exhaustive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(d DATE); diff --git a/parser/testdata/corpus/sql/function/date/test_time_bucket_date.test b/parser/testdata/corpus/sql/function/date/test_time_bucket_date.test index e32d007c..d7ac3b16 100644 --- a/parser/testdata/corpus/sql/function/date/test_time_bucket_date.test +++ b/parser/testdata/corpus/sql/function/date/test_time_bucket_date.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/test_time_bucket_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(w INTERVAL, d DATE, shift INTERVAL, origin DATE); diff --git a/parser/testdata/corpus/sql/function/date/week_parts_minimum_date.test b/parser/testdata/corpus/sql/function/date/week_parts_minimum_date.test new file mode 100644 index 00000000..d30b0b7b --- /dev/null +++ b/parser/testdata/corpus/sql/function/date/week_parts_minimum_date.test @@ -0,0 +1,24 @@ +# source: test/sql/function/date/week_parts_minimum_date.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT weekofyear(d), isoyear(d), yearweek(d), week(d), strftime(d, '%U %W %V') +FROM (VALUES (DATE '5877642-06-25 (BC)'), (DATE '0359-06-25')) t(d) ORDER BY d; +-- +ok +== +SELECT date_part('week', d), date_part('isoyear', d), date_part('yearweek', d) +FROM (VALUES (DATE '5877642-06-25 (BC)'), (DATE '5877642-12-31 (BC)'), (DATE '5881580-07-10')) t(d) ORDER BY d; +-- +ok +== +SELECT date_part(['week', 'isoyear', 'yearweek'], DATE '5877642-06-25 (BC)'); +-- +ok +== +SELECT d, isoyear(d), weekofyear(d), yearweek(d), strftime(d, '%U %W') +FROM (VALUES (DATE '5877641-01-01 (BC)'), (DATE '5877641-01-03 (BC)'), (DATE '5877641-01-04 (BC)')) t(d) ORDER BY d; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/date/yearweek_bc_statistics.test b/parser/testdata/corpus/sql/function/date/yearweek_bc_statistics.test index 2aa23ecc..b8e7bb91 100644 --- a/parser/testdata/corpus/sql/function/date/yearweek_bc_statistics.test +++ b/parser/testdata/corpus/sql/function/date/yearweek_bc_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/function/date/yearweek_bc_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wt AS SELECT DATE '0100-01-01 (BC)' + INTERVAL (i) DAY d FROM range(3000) r(i); diff --git a/parser/testdata/corpus/sql/function/enum/enum_range_large.test b/parser/testdata/corpus/sql/function/enum/enum_range_large.test index f8fb4499..ad3e8fb8 100644 --- a/parser/testdata/corpus/sql/function/enum/enum_range_large.test +++ b/parser/testdata/corpus/sql/function/enum/enum_range_large.test @@ -1,6 +1,6 @@ # source: test/sql/function/enum/enum_range_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE big AS ENUM (SELECT 'value_' || i FROM range(100000) t(i)); diff --git a/parser/testdata/corpus/sql/function/enum/test_enum_code.test b/parser/testdata/corpus/sql/function/enum/test_enum_code.test index 2710e888..6a4c843b 100644 --- a/parser/testdata/corpus/sql/function/enum/test_enum_code.test +++ b/parser/testdata/corpus/sql/function/enum/test_enum_code.test @@ -1,6 +1,6 @@ # source: test/sql/function/enum/test_enum_code.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy', 'anxious') diff --git a/parser/testdata/corpus/sql/function/enum/test_enum_first.test b/parser/testdata/corpus/sql/function/enum/test_enum_first.test index 409bf6d8..216a36ef 100644 --- a/parser/testdata/corpus/sql/function/enum/test_enum_first.test +++ b/parser/testdata/corpus/sql/function/enum/test_enum_first.test @@ -1,6 +1,6 @@ # source: test/sql/function/enum/test_enum_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple'); diff --git a/parser/testdata/corpus/sql/function/enum/test_enum_last.test b/parser/testdata/corpus/sql/function/enum/test_enum_last.test index 19f81ead..55423ebf 100644 --- a/parser/testdata/corpus/sql/function/enum/test_enum_last.test +++ b/parser/testdata/corpus/sql/function/enum/test_enum_last.test @@ -1,6 +1,6 @@ # source: test/sql/function/enum/test_enum_last.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT enum_last(null::rainbow) diff --git a/parser/testdata/corpus/sql/function/enum/test_enum_range.test b/parser/testdata/corpus/sql/function/enum/test_enum_range.test index 7f98db58..48652bc7 100644 --- a/parser/testdata/corpus/sql/function/enum/test_enum_range.test +++ b/parser/testdata/corpus/sql/function/enum/test_enum_range.test @@ -1,6 +1,6 @@ # source: test/sql/function/enum/test_enum_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE currency AS ENUM ('usd', 'brl', 'eur'); diff --git a/parser/testdata/corpus/sql/function/generic/assert_true.test b/parser/testdata/corpus/sql/function/generic/assert_true.test index dca5dd7f..e4af9ca5 100644 --- a/parser/testdata/corpus/sql/function/generic/assert_true.test +++ b/parser/testdata/corpus/sql/function/generic/assert_true.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/assert_true.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT assert_true(true) diff --git a/parser/testdata/corpus/sql/function/generic/can_cast_implicitly.test b/parser/testdata/corpus/sql/function/generic/can_cast_implicitly.test index 6a88b1b0..a69e6eee 100644 --- a/parser/testdata/corpus/sql/function/generic/can_cast_implicitly.test +++ b/parser/testdata/corpus/sql/function/generic/can_cast_implicitly.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/can_cast_implicitly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT * FROM range(10) tbl(i) diff --git a/parser/testdata/corpus/sql/function/generic/case_condition.test b/parser/testdata/corpus/sql/function/generic/case_condition.test index a7fcb95f..a30aceb1 100644 --- a/parser/testdata/corpus/sql/function/generic/case_condition.test +++ b/parser/testdata/corpus/sql/function/generic/case_condition.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/case_condition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM tbl diff --git a/parser/testdata/corpus/sql/function/generic/case_null_fill.test b/parser/testdata/corpus/sql/function/generic/case_null_fill.test index 8a8c6939..c2e2e020 100644 --- a/parser/testdata/corpus/sql/function/generic/case_null_fill.test +++ b/parser/testdata/corpus/sql/function/generic/case_null_fill.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/case_null_fill.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE case_inputs AS diff --git a/parser/testdata/corpus/sql/function/generic/case_short_circuit.test b/parser/testdata/corpus/sql/function/generic/case_short_circuit.test index a4a11134..d80b3fda 100644 --- a/parser/testdata/corpus/sql/function/generic/case_short_circuit.test +++ b/parser/testdata/corpus/sql/function/generic/case_short_circuit.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/case_short_circuit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (n text); diff --git a/parser/testdata/corpus/sql/function/generic/case_varchar.test b/parser/testdata/corpus/sql/function/generic/case_varchar.test index 9d682fe7..fb17656f 100644 --- a/parser/testdata/corpus/sql/function/generic/case_varchar.test +++ b/parser/testdata/corpus/sql/function/generic/case_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/case_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i, 'thisisalongstring' || i::VARCHAR s FROM range(10) tbl(i) diff --git a/parser/testdata/corpus/sql/function/generic/cast_to_type.test b/parser/testdata/corpus/sql/function/generic/cast_to_type.test index 17d3b6c9..ae2a57e5 100644 --- a/parser/testdata/corpus/sql/function/generic/cast_to_type.test +++ b/parser/testdata/corpus/sql/function/generic/cast_to_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/cast_to_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cast_to_type(' 42', NULL::INT) diff --git a/parser/testdata/corpus/sql/function/generic/cast_to_type_collation.test b/parser/testdata/corpus/sql/function/generic/cast_to_type_collation.test index 239442ee..9ada09cb 100644 --- a/parser/testdata/corpus/sql/function/generic/cast_to_type_collation.test +++ b/parser/testdata/corpus/sql/function/generic/cast_to_type_collation.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/cast_to_type_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cast_to_type('a', NULL::VARCHAR COLLATE nocase) = 'A' diff --git a/parser/testdata/corpus/sql/function/generic/constant_argument_errors.test b/parser/testdata/corpus/sql/function/generic/constant_argument_errors.test new file mode 100644 index 00000000..e2496f6f --- /dev/null +++ b/parser/testdata/corpus/sql/function/generic/constant_argument_errors.test @@ -0,0 +1,53 @@ +# source: test/sql/function/generic/constant_argument_errors.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT COALESCE(42::{type}, -(1::{type} // 0::{type})); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT CASE WHEN count(*) = 1 THEN 42::{type} ELSE -(1::{type} // 0::{type}) END; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT TRY(-(1::{type} // 0::{type})); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT COALESCE(NULL::{type}, -(1::{type} // 0::{type})); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT COALESCE(42, -CAST('not-an-integer' AS INTEGER)); +-- +ok +== +SELECT -CAST('not-an-integer' AS INTEGER); +-- +ok +== +SELECT COALESCE('kept', substring('abc', 1 // 0)); +-- +ok +== +SELECT COALESCE(42, list_extract([1, 2], 1 // 0)); +-- +ok +== +SELECT substring('abc', 1 // 0); +-- +ok +== +SELECT list_extract([1, 2], 1 // 0); +-- +ok +== +PREPARE failing_negation AS SELECT -(1 // 0); +-- +ok +== +EXECUTE failing_negation; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/generic/constant_or_null.test b/parser/testdata/corpus/sql/function/generic/constant_or_null.test index bc2b2bd2..f076b2c3 100644 --- a/parser/testdata/corpus/sql/function/generic/constant_or_null.test +++ b/parser/testdata/corpus/sql/function/generic/constant_or_null.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/constant_or_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT constant_or_null(1, NULL), constant_or_null(1, 10) diff --git a/parser/testdata/corpus/sql/function/generic/error.test b/parser/testdata/corpus/sql/function/generic/error.test index 01645157..b9ee5c8f 100644 --- a/parser/testdata/corpus/sql/function/generic/error.test +++ b/parser/testdata/corpus/sql/function/generic/error.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT error('test') diff --git a/parser/testdata/corpus/sql/function/generic/fold_constant_arguments.test b/parser/testdata/corpus/sql/function/generic/fold_constant_arguments.test index 73c00147..92ecae17 100644 --- a/parser/testdata/corpus/sql/function/generic/fold_constant_arguments.test +++ b/parser/testdata/corpus/sql/function/generic/fold_constant_arguments.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/fold_constant_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_verification diff --git a/parser/testdata/corpus/sql/function/generic/hash_comparison_keys.test b/parser/testdata/corpus/sql/function/generic/hash_comparison_keys.test new file mode 100644 index 00000000..50f75ac4 --- /dev/null +++ b/parser/testdata/corpus/sql/function/generic/hash_comparison_keys.test @@ -0,0 +1,145 @@ +# source: test/sql/function/generic/hash_comparison_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE vals AS SELECT * FROM (VALUES (1::TINYINT::VARIANT, 'i8'), (1::BIGINT::VARIANT, 'i64'), (1::UINTEGER::VARIANT, 'u32'), (1.00::DECIMAL(5,2)::VARIANT, 'dec'), (1::BIGNUM::VARIANT, 'bignum'), (1.0::DOUBLE::VARIANT, 'dbl'), (1.0::FLOAT::VARIANT, 'flt'), (2::INTEGER::VARIANT, 'two'), ('1'::VARIANT, 'str')) t(v, label); +-- +ok +== +SELECT count(*) FROM vals a JOIN vals b ON a.v = b.v +-- +ok +== +SELECT count(*) FROM vals a JOIN vals b ON a.v = b.v WHERE hash(a.v) <> hash(b.v) +-- +ok +== +SELECT count(*) FROM vals a JOIN vals b ON hash(a.v) = hash(b.v) WHERE a.v <> b.v +-- +ok +== +SELECT count(DISTINCT v), count(DISTINCT hash(v)), count(DISTINCT hash(v, label = 'two')) +FROM vals +-- +ok +== +SELECT list(label ORDER BY label), count(*) FROM vals GROUP BY hash(v) ORDER BY ALL +-- +ok +== +SELECT hash({'a': 1::TINYINT::VARIANT, 'b': 'x'}) = hash({'a': 1::BIGINT::VARIANT, 'b': 'x'}), + hash([1::TINYINT::VARIANT, NULL]) = hash([1.00::DECIMAL(5,2)::VARIANT, NULL]), + hash([1::UINTEGER::VARIANT, 2::INTEGER::VARIANT]::VARIANT[2]) = hash([1::BIGNUM::VARIANT, 2.0::DECIMAL(3,1)::VARIANT]::VARIANT[2]) +-- +ok +== +SELECT hash({'a': 1::TINYINT, 'b': [2::SMALLINT]}::VARIANT) = hash({'b': [2::BIGINT], 'a': 1::INTEGER}::VARIANT), + hash({'a': 1}::VARIANT) = hash({'a': 2}::VARIANT) +-- +ok +== +SELECT hash(1::TINYINT::VARIANT, 'x') = hash(1::BIGINT::VARIANT, 'x'), hash(0, 'x', 1::TINYINT::VARIANT) = hash(0, 'x', 1::BIGINT::VARIANT) +-- +ok +== +SELECT hash(NULL::VARIANT) = hash(NULL), hash({'a': NULL::VARIANT}) = hash({'a': NULL::INTEGER}) +-- +ok +== +CREATE TABLE nested AS SELECT * FROM (VALUES + (1, [1::TINYINT::VARIANT, NULL], {'a': 1::TINYINT::VARIANT, 'b': [2::SMALLINT::VARIANT]}, (1::TINYINT::VARIANT, 'x')), + (2, [1.00::DECIMAL(5,2)::VARIANT, NULL], {'a': 1::BIGINT::VARIANT, 'b': [2.0::DECIMAL(3,1)::VARIANT]}, (1::BIGNUM::VARIANT, 'x')), + (3, [], {'a': NULL, 'b': []}, (NULL, NULL)), + (4, [], {'a': NULL, 'b': []}, (NULL, NULL)), + (5, NULL, NULL, NULL), + (6, NULL, NULL, NULL) +) t(id, l, s, r); +-- +ok +== +SELECT count(*) FROM nested a JOIN nested b ON a.l IS NOT DISTINCT FROM b.l AND a.s IS NOT DISTINCT FROM b.s AND a.r IS NOT DISTINCT FROM b.r +-- +ok +== +SELECT count(*) FROM nested a JOIN nested b ON a.l IS NOT DISTINCT FROM b.l AND a.s IS NOT DISTINCT FROM b.s AND a.r IS NOT DISTINCT FROM b.r WHERE hash(a.l, a.s, a.r) <> hash(b.l, b.s, b.r) +-- +ok +== +SELECT count(*) FROM (SELECT id, hash(l, s, r) AS h FROM nested WHERE id % 2 = 0) even JOIN (SELECT id, hash(l, s, r) AS h FROM nested WHERE id % 2 = 1) odd ON even.id = odd.id + 1 AND even.h = odd.h +-- +ok +== +CREATE TABLE stored AS SELECT i, (i % 3)::TINYINT::VARIANT AS a, (i % 3)::DECIMAL(10, 1)::VARIANT AS b FROM range(5000) t(i); +-- +ok +== +SELECT DISTINCT segment_type FROM pragma_storage_info('stored') WHERE segment_type IN ('TINYINT', 'DECIMAL(10,1)') ORDER BY segment_type +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE hash(a) = hash(b) AND hash(a) = hash((i % 3)::BIGINT::VARIANT)) +FROM stored +-- +ok +== +SELECT count(DISTINCT hash(v)) FROM (SELECT a AS v FROM stored UNION ALL SELECT b FROM stored) +-- +ok +== +SELECT hash('A' COLLATE NOCASE) = hash('a' COLLATE NOCASE), hash('é' COLLATE NOACCENT) = hash('e' COLLATE NOACCENT), + hash({'s': 'A' COLLATE NOCASE}) = hash({'s': 'a' COLLATE NOCASE}), hash('A' COLLATE NOCASE) = hash('b' COLLATE NOCASE) +-- +ok +== +CREATE TABLE collated AS SELECT i, CASE WHEN i % 2 = 0 THEN 'ABC' ELSE 'abc' END::VARCHAR COLLATE NOCASE AS s FROM range(5000) t(i); +-- +ok +== +SELECT count(DISTINCT s), count(DISTINCT hash(s)) FROM collated +-- +ok +== +SELECT count(*) FROM (VALUES + (INTERVAL '-2147483648 months -2147483648 days -9223372036854775807 microseconds', INTERVAL '-2147483648 months -2147483648 days -9223372036854775806 microseconds'), + (INTERVAL '-2147483648 months -2147483648 days -9223372036854775807 microseconds', INTERVAL '-2147483648 months -2147483647 days -9223372036854775807 microseconds'), + (INTERVAL '2147483647 months 2147483647 days 9223372036854775806 microseconds', INTERVAL '2147483647 months 2147483647 days 9223372036854775807 microseconds'), + (INTERVAL '1 month', INTERVAL '30 days'), + (INTERVAL '1 month', INTERVAL '31 days') +) t(a, b) WHERE (a = b) IS DISTINCT FROM (hash(a) = hash(b)) +-- +ok +== +SELECT count(*) FROM (VALUES ('12:00:00+01'::TIMETZ, '11:00:00+00'::TIMETZ), ('12:00:00+01'::TIMETZ, '12:00:00+01'::TIMETZ)) t(a, b) +WHERE (a = b) IS DISTINCT FROM (hash(a) = hash(b)) +-- +ok +== +SELECT count(*) FROM (VALUES ('0101'::BIT, '0101'::BIT), ('0101'::BIT, '0110'::BIT)) t(a, b) WHERE (a = b) IS DISTINCT FROM (hash(a) = hash(b)) +-- +ok +== +SELECT hash('a' COLLATE NOCASE, 'b' COLLATE NOACCENT) +-- +ok +== +SELECT hash('A') = hash('a'), hash({'s': 'A'}) = hash({'s': 'a'}) +-- +ok +== +CREATE TABLE names (s VARCHAR COLLATE NOCASE); +-- +ok +== +INSERT INTO names VALUES ('A'), ('b'); +-- +ok +== +CREATE INDEX names_hash ON names (hash(s)); +-- +ok +== +SELECT s FROM names WHERE hash(s) = hash('a') +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/generic/hash_func.test b/parser/testdata/corpus/sql/function/generic/hash_func.test index 08f9420e..79d2badf 100644 --- a/parser/testdata/corpus/sql/function/generic/hash_func.test +++ b/parser/testdata/corpus/sql/function/generic/hash_func.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/hash_func.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT HASH(NULL::{datatype}); diff --git a/parser/testdata/corpus/sql/function/generic/invoke.test b/parser/testdata/corpus/sql/function/generic/invoke.test index a89708aa..0887973d 100644 --- a/parser/testdata/corpus/sql/function/generic/invoke.test +++ b/parser/testdata/corpus/sql/function/generic/invoke.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/invoke.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select invoke(lambda x: x * x, 2) as square_of_x diff --git a/parser/testdata/corpus/sql/function/generic/least_greatest_enum.test b/parser/testdata/corpus/sql/function/generic/least_greatest_enum.test index 72b255f8..78e4dfb0 100644 --- a/parser/testdata/corpus/sql/function/generic/least_greatest_enum.test +++ b/parser/testdata/corpus/sql/function/generic/least_greatest_enum.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/least_greatest_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE t AS ENUM ('z','y','x'); diff --git a/parser/testdata/corpus/sql/function/generic/least_greatest_types.test b/parser/testdata/corpus/sql/function/generic/least_greatest_types.test index a8de5f34..03ca048d 100644 --- a/parser/testdata/corpus/sql/function/generic/least_greatest_types.test +++ b/parser/testdata/corpus/sql/function/generic/least_greatest_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/least_greatest_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types AS FROM test_all_types() diff --git a/parser/testdata/corpus/sql/function/generic/make_type_empty_name.test b/parser/testdata/corpus/sql/function/generic/make_type_empty_name.test index c1109ff4..198193ac 100644 --- a/parser/testdata/corpus/sql/function/generic/make_type_empty_name.test +++ b/parser/testdata/corpus/sql/function/generic/make_type_empty_name.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/make_type_empty_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT make_type(''); diff --git a/parser/testdata/corpus/sql/function/generic/null_constant_collation.test b/parser/testdata/corpus/sql/function/generic/null_constant_collation.test index 4f8d0029..44889408 100644 --- a/parser/testdata/corpus/sql/function/generic/null_constant_collation.test +++ b/parser/testdata/corpus/sql/function/generic/null_constant_collation.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/null_constant_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT get_type(lower(NULL::VARCHAR COLLATE NOCASE))=get_type(NULL::VARCHAR COLLATE NOCASE), diff --git a/parser/testdata/corpus/sql/function/generic/null_constant_return_type.test b/parser/testdata/corpus/sql/function/generic/null_constant_return_type.test index 5d913781..293b6fc1 100644 --- a/parser/testdata/corpus/sql/function/generic/null_constant_return_type.test +++ b/parser/testdata/corpus/sql/function/generic/null_constant_return_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/null_constant_return_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(repeat(CAST(NULL AS VARCHAR) || 'z', 2)) @@ -43,7 +43,27 @@ SELECT typeof(list_extract(NULL::INT[], 1)), typeof(array_extract(NULL::DATE[3], -- ok == -SELECT typeof(struct_extract(NULL::STRUCT(a DATE), 'a')), typeof(union_extract(NULL::UNION(a DATE, b INT), 'a')) +SELECT typeof(struct_extract(NULL::STRUCT(a DATE), 'a')) +-- +ok +== +SELECT typeof(union_extract(NULL::UNION(a DATE, b INT), 'a')) +-- +ok +== +SELECT typeof(constant_or_null(true, 1)), typeof(constant_or_null(true, NULL::INT)), typeof(constant_or_null(1::BIGINT, 2, NULL::VARCHAR)), typeof(constant_or_null(NULL::DATE, 1)), typeof(constant_or_null([1, 2], NULL::INT[])) +-- +ok +== +SELECT constant_or_null(true, NULL::INT), constant_or_null(NULL::DATE, 1) +-- +ok +== +CREATE TABLE folded_constant_or_null AS SELECT constant_or_null(1::BIGINT, NULL::INT) AS c, constant_or_null({'a': 'x'}, NULL::INT) AS s +-- +ok +== +SELECT typeof(c), typeof(s) FROM folded_constant_or_null -- ok == @@ -135,6 +155,10 @@ SELECT typeof(NULL || 'z'), typeof([1] || NULL), typeof(NULL || NULL), typeof(li -- ok == +SELECT typeof(constant_or_null(true, NULL)) +-- +ok +== SELECT typeof(upper(NULL::VARCHAR)), typeof(concat(NULL::VARCHAR, 'z')), typeof(length(NULL::VARCHAR)), typeof(abs(NULL::DOUBLE)) -- ok diff --git a/parser/testdata/corpus/sql/function/generic/replace_type.test b/parser/testdata/corpus/sql/function/generic/replace_type.test index f42af8bc..1f2ce384 100644 --- a/parser/testdata/corpus/sql/function/generic/replace_type.test +++ b/parser/testdata/corpus/sql/function/generic/replace_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/replace_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT replace_type(' 42', NULL::VARCHAR, NULL::INT) diff --git a/parser/testdata/corpus/sql/function/generic/table_func_varargs.test b/parser/testdata/corpus/sql/function/generic/table_func_varargs.test index 9f7575b2..f9b86254 100644 --- a/parser/testdata/corpus/sql/function/generic/table_func_varargs.test +++ b/parser/testdata/corpus/sql/function/generic/table_func_varargs.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/table_func_varargs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM repeat_row(1, 2, 'foo', num_rows=3) diff --git a/parser/testdata/corpus/sql/function/generic/test_approx_database_count.test b/parser/testdata/corpus/sql/function/generic/test_approx_database_count.test index 3f6911f9..0558e724 100644 --- a/parser/testdata/corpus/sql/function/generic/test_approx_database_count.test +++ b/parser/testdata/corpus/sql/function/generic/test_approx_database_count.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_approx_database_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/board1.db' AS b1; diff --git a/parser/testdata/corpus/sql/function/generic/test_barrier.test b/parser/testdata/corpus/sql/function/generic/test_barrier.test index ff5298fb..f34446ad 100644 --- a/parser/testdata/corpus/sql/function/generic/test_barrier.test +++ b/parser/testdata/corpus/sql/function/generic/test_barrier.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_barrier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT __internal_barrier(42), __internal_barrier('hello'), __internal_barrier(NULL), __internal_barrier([1, 2, 3]), __internal_barrier({'a': 1}) diff --git a/parser/testdata/corpus/sql/function/generic/test_between.test b/parser/testdata/corpus/sql/function/generic/test_between.test index ad8187da..37c13368 100644 --- a/parser/testdata/corpus/sql/function/generic/test_between.test +++ b/parser/testdata/corpus/sql/function/generic/test_between.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_between.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10 BETWEEN 10 AND 20 diff --git a/parser/testdata/corpus/sql/function/generic/test_between_sideeffects.test b/parser/testdata/corpus/sql/function/generic/test_between_sideeffects.test index 4a5f0301..d9cfbac4 100644 --- a/parser/testdata/corpus/sql/function/generic/test_between_sideeffects.test +++ b/parser/testdata/corpus/sql/function/generic/test_between_sideeffects.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_between_sideeffects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT ? BETWEEN 1 AND 2 diff --git a/parser/testdata/corpus/sql/function/generic/test_boolean_test.test b/parser/testdata/corpus/sql/function/generic/test_boolean_test.test index 4af8d033..77db7989 100644 --- a/parser/testdata/corpus/sql/function/generic/test_boolean_test.test +++ b/parser/testdata/corpus/sql/function/generic/test_boolean_test.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_boolean_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select true is true diff --git a/parser/testdata/corpus/sql/function/generic/test_connection_count.test b/parser/testdata/corpus/sql/function/generic/test_connection_count.test index 12eaf800..8580ab9b 100644 --- a/parser/testdata/corpus/sql/function/generic/test_connection_count.test +++ b/parser/testdata/corpus/sql/function/generic/test_connection_count.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_connection_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count FROM duckdb_connection_count(); diff --git a/parser/testdata/corpus/sql/function/generic/test_if.test b/parser/testdata/corpus/sql/function/generic/test_if.test index f82eaadf..4778cc81 100644 --- a/parser/testdata/corpus/sql/function/generic/test_if.test +++ b/parser/testdata/corpus/sql/function/generic/test_if.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_if.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT IF(true, 1, 10), IF(false, 1, 10), IF(NULL, 1, 10) diff --git a/parser/testdata/corpus/sql/function/generic/test_if_null.test b/parser/testdata/corpus/sql/function/generic/test_if_null.test index 1dd9ef39..f3141a8a 100644 --- a/parser/testdata/corpus/sql/function/generic/test_if_null.test +++ b/parser/testdata/corpus/sql/function/generic/test_if_null.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_if_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT IFNULL(NULL, NULL), IFNULL(NULL, 10), IFNULL(1, 10) diff --git a/parser/testdata/corpus/sql/function/generic/test_in.test b/parser/testdata/corpus/sql/function/generic/test_in.test index 54197730..94ac5a58 100644 --- a/parser/testdata/corpus/sql/function/generic/test_in.test +++ b/parser/testdata/corpus/sql/function/generic/test_in.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE i IN (1, 2) ORDER BY i diff --git a/parser/testdata/corpus/sql/function/generic/test_least_greatest.test b/parser/testdata/corpus/sql/function/generic/test_least_greatest.test index 16606e39..b2446058 100644 --- a/parser/testdata/corpus/sql/function/generic/test_least_greatest.test +++ b/parser/testdata/corpus/sql/function/generic/test_least_greatest.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_least_greatest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LEAST(1) diff --git a/parser/testdata/corpus/sql/function/generic/test_null_if.test b/parser/testdata/corpus/sql/function/generic/test_null_if.test index 0abd30dc..165383f5 100644 --- a/parser/testdata/corpus/sql/function/generic/test_null_if.test +++ b/parser/testdata/corpus/sql/function/generic/test_null_if.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_null_if.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULLIF(NULLIF ('hello', 'world'), 'blabla'); diff --git a/parser/testdata/corpus/sql/function/generic/test_resolve_types.test b/parser/testdata/corpus/sql/function/generic/test_resolve_types.test index e1e352ea..889bfb8b 100644 --- a/parser/testdata/corpus/sql/function/generic/test_resolve_types.test +++ b/parser/testdata/corpus/sql/function/generic/test_resolve_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_resolve_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 99999999999999999999999999999999999999::DECIMAL(38,0) + 1::DECIMAL(38,0); diff --git a/parser/testdata/corpus/sql/function/generic/test_set.test b/parser/testdata/corpus/sql/function/generic/test_set.test index ec530ad1..48489586 100644 --- a/parser/testdata/corpus/sql/function/generic/test_set.test +++ b/parser/testdata/corpus/sql/function/generic/test_set.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_set.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CURRENT_SETTING('a'); diff --git a/parser/testdata/corpus/sql/function/generic/test_sleep.test b/parser/testdata/corpus/sql/function/generic/test_sleep.test index 1dd167f6..ac1fbec9 100644 --- a/parser/testdata/corpus/sql/function/generic/test_sleep.test +++ b/parser/testdata/corpus/sql/function/generic/test_sleep.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_sleep.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sleep_ms(1) diff --git a/parser/testdata/corpus/sql/function/generic/test_stats.test b/parser/testdata/corpus/sql/function/generic/test_stats.test index 4fd7c6b3..70a79493 100644 --- a/parser/testdata/corpus/sql/function/generic/test_stats.test +++ b/parser/testdata/corpus/sql/function/generic/test_stats.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1=1 diff --git a/parser/testdata/corpus/sql/function/generic/test_table_param.test b/parser/testdata/corpus/sql/function/generic/test_table_param.test index 49130204..7e4919e4 100644 --- a/parser/testdata/corpus/sql/function/generic/test_table_param.test +++ b/parser/testdata/corpus/sql/function/generic/test_table_param.test @@ -1,6 +1,6 @@ # source: test/sql/function/generic/test_table_param.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a (i double, j double); diff --git a/parser/testdata/corpus/sql/function/index/index_key.test b/parser/testdata/corpus/sql/function/index/index_key.test index 041a6a12..6d8259ef 100644 --- a/parser/testdata/corpus/sql/function/index/index_key.test +++ b/parser/testdata/corpus/sql/function/index/index_key.test @@ -1,6 +1,6 @@ # source: test/sql/function/index/index_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1( diff --git a/parser/testdata/corpus/sql/function/interval/date_part_monotonicity.test b/parser/testdata/corpus/sql/function/interval/date_part_monotonicity.test index 5bc9e089..befc503a 100644 --- a/parser/testdata/corpus/sql/function/interval/date_part_monotonicity.test +++ b/parser/testdata/corpus/sql/function/interval/date_part_monotonicity.test @@ -1,6 +1,6 @@ # source: test/sql/function/interval/date_part_monotonicity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE intervals(i INTERVAL); diff --git a/parser/testdata/corpus/sql/function/interval/test_date_part.test b/parser/testdata/corpus/sql/function/interval/test_date_part.test index 83ca491b..e3b4d7d8 100644 --- a/parser/testdata/corpus/sql/function/interval/test_date_part.test +++ b/parser/testdata/corpus/sql/function/interval/test_date_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/interval/test_date_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE intervals(i INTERVAL, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/interval/test_extract.test b/parser/testdata/corpus/sql/function/interval/test_extract.test index 8ad454fc..5c50295c 100644 --- a/parser/testdata/corpus/sql/function/interval/test_extract.test +++ b/parser/testdata/corpus/sql/function/interval/test_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/interval/test_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO intervals VALUES ('2 years'), ('16 months'), ('42 days'), ('2066343400 microseconds'), (NULL); diff --git a/parser/testdata/corpus/sql/function/interval/test_interval_muldiv.test b/parser/testdata/corpus/sql/function/interval/test_interval_muldiv.test index 2cdcf1f2..07e6a5d0 100644 --- a/parser/testdata/corpus/sql/function/interval/test_interval_muldiv.test +++ b/parser/testdata/corpus/sql/function/interval/test_interval_muldiv.test @@ -1,6 +1,6 @@ # source: test/sql/function/interval/test_interval_muldiv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE INTERVAL_MULDIV_TBL (span interval); diff --git a/parser/testdata/corpus/sql/function/interval/test_interval_trunc.test b/parser/testdata/corpus/sql/function/interval/test_interval_trunc.test index 22c88392..a6869f2a 100644 --- a/parser/testdata/corpus/sql/function/interval/test_interval_trunc.test +++ b/parser/testdata/corpus/sql/function/interval/test_interval_trunc.test @@ -1,6 +1,6 @@ # source: test/sql/function/interval/test_interval_trunc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO intervals VALUES diff --git a/parser/testdata/corpus/sql/function/list/aggregates/any_value.test b/parser/testdata/corpus/sql/function/list/aggregates/any_value.test index 0e59e01c..ae4e2180 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/any_value.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/any_value.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/any_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_aggr([NULL, 1, 2], 'any_value') diff --git a/parser/testdata/corpus/sql/function/list/aggregates/approx_count_distinct.test b/parser/testdata/corpus/sql/function/list/aggregates/approx_count_distinct.test index c8d7afbb..d1ee46ab 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/approx_count_distinct.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/approx_count_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/approx_count_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE list_ints (l INTEGER[]); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/avg.test b/parser/testdata/corpus/sql/function/list/aggregates/avg.test index 9756ef17..384f215e 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/avg.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/avg.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_avg([nextval('seq')]); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/bigints_sum_avg.test b/parser/testdata/corpus/sql/function/list/aggregates/bigints_sum_avg.test index e76b650f..038a0c72 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/bigints_sum_avg.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/bigints_sum_avg.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/bigints_sum_avg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigints (i BIGINT[]); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/bit_and.test b/parser/testdata/corpus/sql/function/list/aggregates/bit_and.test index e14eb943..f1d06687 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/bit_and.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/bit_and.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/bit_and.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_bit_and([nextval('seq')]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/bit_or.test b/parser/testdata/corpus/sql/function/list/aggregates/bit_or.test index e7731cf8..b8995946 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/bit_or.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/bit_or.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/bit_or.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_bit_or([nextval('seq')]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/bit_xor.test b/parser/testdata/corpus/sql/function/list/aggregates/bit_xor.test index ac0b73c4..7b4c015d 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/bit_xor.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/bit_xor.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/bit_xor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_bit_xor([nextval('seq')]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/bool_and_or.test b/parser/testdata/corpus/sql/function/list/aggregates/bool_and_or.test index 1128a0a0..8759341d 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/bool_and_or.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/bool_and_or.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/bool_and_or.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_bool_or() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/count.test b/parser/testdata/corpus/sql/function/list/aggregates/count.test index 27fff82e..f868a37b 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/count.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/count.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_count([1, 2, 3]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/entropy.test b/parser/testdata/corpus/sql/function/list/aggregates/entropy.test index 8f76a7d1..e62d5b90 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/entropy.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/entropy.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/entropy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_entropy() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/first.test b/parser/testdata/corpus/sql/function/list/aggregates/first.test index c0e3b4e3..d2053f61 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/first.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/first.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_aggr([1, 2], 'arbitrary') diff --git a/parser/testdata/corpus/sql/function/list/aggregates/histogram.test b/parser/testdata/corpus/sql/function/list/aggregates/histogram.test index 6112c9cb..11771370 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/histogram.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/histogram.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/histogram.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE const AS SELECT LIST(2) AS i FROM range(200) t1(i) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/histogram_decimal.test b/parser/testdata/corpus/sql/function/list/aggregates/histogram_decimal.test index 917f2c28..fb72d55e 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/histogram_decimal.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/histogram_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/histogram_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte AS (FROM (VALUES (0.0), (9.9)) df(l_orderkey)) SELECT * FROM histogram_values(cte, l_orderkey) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/hugeint.test b/parser/testdata/corpus/sql/function/list/aggregates/hugeint.test index f5616be3..ac557c5b 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/hugeint.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(h HUGEINT[]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/incorrect.test b/parser/testdata/corpus/sql/function/list/aggregates/incorrect.test index 9dfdb2d4..9d011ccd 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/incorrect.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_aggr([1], 2) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/kurtosis.test b/parser/testdata/corpus/sql/function/list/aggregates/kurtosis.test index da42d5ca..a89ce7ef 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/kurtosis.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/kurtosis.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/kurtosis.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_kurtosis([1]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/last.test b/parser/testdata/corpus/sql/function/list/aggregates/last.test index cd8651bd..f7cd69ac 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/last.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/last.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/last.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_last() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/mad.test b/parser/testdata/corpus/sql/function/list/aggregates/mad.test index becd7e7e..2078ab89 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/mad.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/mad.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/mad.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_mad([1]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/max.test b/parser/testdata/corpus/sql/function/list/aggregates/max.test index e9841d97..c8e0dd2d 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/max.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/max.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/max.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_max() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/median.test b/parser/testdata/corpus/sql/function/list/aggregates/median.test index 7abfa244..3eff27d8 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/median.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/median.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/median.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE quantile AS SELECT LIST(r::{type}) AS r FROM range(10000) t1(r); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/min.test b/parser/testdata/corpus/sql/function/list/aggregates/min.test index e0698629..5f24cf2b 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/min.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/min.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/min.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_min() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/minmax_nested.test b/parser/testdata/corpus/sql/function/list/aggregates/minmax_nested.test index 9c7cf039..4d682497 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/minmax_nested.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/minmax_nested.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/minmax_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE structs AS SELECT {'i': i} s FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/mode.test b/parser/testdata/corpus/sql/function/list/aggregates/mode.test index a3b5f9c0..bc96790b 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/mode.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/mode.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_mode() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/nested.test b/parser/testdata/corpus/sql/function/list/aggregates/nested.test index 778e13fe..eac28c08 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/nested.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/nested.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_min(list_concat([1, 2], [-1])) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/null_or_empty.test b/parser/testdata/corpus/sql/function/list/aggregates/null_or_empty.test index fd1029b3..6e3e1b63 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/null_or_empty.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/null_or_empty.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/null_or_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_aggr(NULL, '{func_name}') diff --git a/parser/testdata/corpus/sql/function/list/aggregates/product.test b/parser/testdata/corpus/sql/function/list/aggregates/product.test index 4c4081a5..963bf855 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/product.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/product.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_product() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/sem.test b/parser/testdata/corpus/sql/function/list/aggregates/sem.test index ca5c6e86..5b01c583 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/sem.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/sem.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/sem.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_sem() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/skewness.test b/parser/testdata/corpus/sql/function/list/aggregates/skewness.test index cde5bc30..1caeb3cb 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/skewness.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/skewness.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/skewness.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_skewness() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/string_agg.test b/parser/testdata/corpus/sql/function/list/aggregates/string_agg.test index 75e14adb..7baf9a86 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/string_agg.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/string_agg.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/string_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_string_agg() diff --git a/parser/testdata/corpus/sql/function/list/aggregates/sum.test b/parser/testdata/corpus/sql/function/list/aggregates/sum.test index d5b7f58c..3e44fa45 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/sum.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/sum.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/sum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_sum([2, 2]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/sum_bool.test b/parser/testdata/corpus/sql/function/list/aggregates/sum_bool.test index 019b2217..89abeef0 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/sum_bool.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/sum_bool.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/sum_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT CASE WHEN i%3=0 THEN NULL ELSE i END i FROM range(10000) t(i); diff --git a/parser/testdata/corpus/sql/function/list/aggregates/sum_no_overflow.test b/parser/testdata/corpus/sql/function/list/aggregates/sum_no_overflow.test index bca61388..599966ea 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/sum_no_overflow.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/sum_no_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/sum_no_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum_no_overflow(42) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/uhugeint.test b/parser/testdata/corpus/sql/function/list/aggregates/uhugeint.test index c8609871..0c963d18 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/uhugeint.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/uhugeint.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/uhugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uhugeints(h UHUGEINT[]) diff --git a/parser/testdata/corpus/sql/function/list/aggregates/var_stddev.test b/parser/testdata/corpus/sql/function/list/aggregates/var_stddev.test index fa52fedc..432804c9 100644 --- a/parser/testdata/corpus/sql/function/list/aggregates/var_stddev.test +++ b/parser/testdata/corpus/sql/function/list/aggregates/var_stddev.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/aggregates/var_stddev.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table stddev_test(val integer[]) diff --git a/parser/testdata/corpus/sql/function/list/array_length.test b/parser/testdata/corpus/sql/function/list/array_length.test index 446f79e7..5618968a 100644 --- a/parser/testdata/corpus/sql/function/list/array_length.test +++ b/parser/testdata/corpus/sql/function/list/array_length.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/array_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length([1,2,3]) diff --git a/parser/testdata/corpus/sql/function/list/array_to_string.test b/parser/testdata/corpus/sql/function/list/array_to_string.test index 87404e94..8ff9aaef 100644 --- a/parser/testdata/corpus/sql/function/list/array_to_string.test +++ b/parser/testdata/corpus/sql/function/list/array_to_string.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/array_to_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_to_string([1,2,3], '') diff --git a/parser/testdata/corpus/sql/function/list/array_to_string_comma_default.test b/parser/testdata/corpus/sql/function/list/array_to_string_comma_default.test index 75ca7e7a..3b9d8c17 100644 --- a/parser/testdata/corpus/sql/function/list/array_to_string_comma_default.test +++ b/parser/testdata/corpus/sql/function/list/array_to_string_comma_default.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/array_to_string_comma_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_to_string_comma_default([1,2,3]) diff --git a/parser/testdata/corpus/sql/function/list/cardinality_list.test b/parser/testdata/corpus/sql/function/list/cardinality_list.test index 6abcacae..0886ccd6 100644 --- a/parser/testdata/corpus/sql/function/list/cardinality_list.test +++ b/parser/testdata/corpus/sql/function/list/cardinality_list.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/cardinality_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cardinality([1, 2, 3]) diff --git a/parser/testdata/corpus/sql/function/list/flatten.test b/parser/testdata/corpus/sql/function/list/flatten.test index f97afc46..5250bc4c 100644 --- a/parser/testdata/corpus/sql/function/list/flatten.test +++ b/parser/testdata/corpus/sql/function/list/flatten.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/flatten.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT flatten([[1, 2, 3, 4]]) diff --git a/parser/testdata/corpus/sql/function/list/generate_series.test b/parser/testdata/corpus/sql/function/list/generate_series.test index 1c95f9e8..ed72cbfb 100644 --- a/parser/testdata/corpus/sql/function/list/generate_series.test +++ b/parser/testdata/corpus/sql/function/list/generate_series.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/generate_series.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT range(3) diff --git a/parser/testdata/corpus/sql/function/list/generate_series_timestamp.test b/parser/testdata/corpus/sql/function/list/generate_series_timestamp.test index cbb78575..0fded138 100644 --- a/parser/testdata/corpus/sql/function/list/generate_series_timestamp.test +++ b/parser/testdata/corpus/sql/function/list/generate_series_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/generate_series_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT generate_series(timestamp '2020-01-01', timestamp '2020-07-01', interval '3' month); diff --git a/parser/testdata/corpus/sql/function/list/generate_series_timestamp_range_end.test b/parser/testdata/corpus/sql/function/list/generate_series_timestamp_range_end.test new file mode 100644 index 00000000..4820946f --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/generate_series_timestamp_range_end.test @@ -0,0 +1,43 @@ +# source: test/sql/function/list/generate_series_timestamp_range_end.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM generate_series(TIMESTAMP '294247-01-01', TIMESTAMP '294247-01-10', INTERVAL 3 DAY); +-- +ok +== +SELECT * FROM generate_series(TIMESTAMP '290309-12-23 (BC)', TIMESTAMP '290309-12-22 (BC)', INTERVAL '-1 day'); +-- +ok +== +SELECT count(*) FROM range(TIMESTAMP '294247-01-01', TIMESTAMP '294247-01-10', INTERVAL 3 DAY); +-- +ok +== +SELECT count(*) FROM range(TIMESTAMP '2000-01-01', make_timestamp(-9223372036854775806), -INTERVAL 100000 YEAR); +-- +ok +== +SELECT count(*) FROM range(TIMESTAMP '2000-01-01', make_timestamp(-9223372036854775807 - 1), -INTERVAL 100000 YEAR); +-- +ok +== +SELECT count(*) FROM generate_series(TIMESTAMP '2000-01-01', make_timestamp(-9223372036854775807 - 1), -INTERVAL 100000 YEAR); +-- +ok +== +SELECT count(*) FILTER (WHERE NOT isfinite(r)) FROM generate_series(TIMESTAMP '2000-01-01', make_timestamp(-9223372036854775807 - 1), -INTERVAL 100000 YEAR) t(r); +-- +ok +== +SELECT count(*) FROM generate_series(TIMESTAMP '2000-01-01', make_timestamp(-9223372036854775807 - 1), -INTERVAL 100 YEAR); +-- +ok +== +SELECT y, count(r), count(DISTINCT r), min(r), max(r) +FROM (VALUES (2000), (2001)) inputs(y), LATERAL generate_series(make_timestamp(y, 1, 1, 0, 0, 0), make_timestamp(-9223372036854775807 - 1 + y * 0), -INTERVAL 100000 YEAR) t(r) +GROUP BY y ORDER BY y; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/generate_subscripts.test b/parser/testdata/corpus/sql/function/list/generate_subscripts.test index 4584ff5f..0e95491e 100644 --- a/parser/testdata/corpus/sql/function/list/generate_subscripts.test +++ b/parser/testdata/corpus/sql/function/list/generate_subscripts.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/generate_subscripts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT generate_subscripts([4,5,6], 1) diff --git a/parser/testdata/corpus/sql/function/list/icu_generate_series_timestamptz.test b/parser/testdata/corpus/sql/function/list/icu_generate_series_timestamptz.test index 964e7748..3b2e934b 100644 --- a/parser/testdata/corpus/sql/function/list/icu_generate_series_timestamptz.test +++ b/parser/testdata/corpus/sql/function/list/icu_generate_series_timestamptz.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/icu_generate_series_timestamptz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT generate_series(timestamptz '2020-01-01', timestamptz '2020-07-01', interval '3' month); diff --git a/parser/testdata/corpus/sql/function/list/lambda_constant_null.test b/parser/testdata/corpus/sql/function/list/lambda_constant_null.test index 2fe445cd..9f53d3bb 100644 --- a/parser/testdata/corpus/sql/function/list/lambda_constant_null.test +++ b/parser/testdata/corpus/sql/function/list/lambda_constant_null.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambda_constant_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT quantile(NULL, filter(NULL, (lambda c103: 'babea54a-2261-4b0c-b14b-1d0e9b794e1a'))); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/arrow_storage_before_v2.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/arrow_storage_before_v2.test new file mode 100644 index 00000000..749d3294 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/arrow_storage_before_v2.test @@ -0,0 +1,101 @@ +# source: test/sql/function/list/lambdas/arrow/arrow_storage_before_v2.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET lambda_syntax = 'ENABLE_SINGLE_ARROW' +-- +ok +== +ATTACH '{TEST_DIR}/arrow_v1_5.db' AS v15 (STORAGE_VERSION 'v1.5.0') +-- +ok +== +CREATE VIEW v15.v AS SELECT list_transform([1, 2], x -> x + 1) AS r +-- +ok +== +CREATE MACRO v15.m(l) AS list_transform(l, (x, i) -> x + i) +-- +ok +== +ATTACH '{TEST_DIR}/arrow_v2_0.db' AS v20 (STORAGE_VERSION 'v2.0.0') +-- +ok +== +CREATE VIEW v20.v AS SELECT list_transform([1, 2], x -> x + 1) AS r +-- +ok +== +RESET lambda_syntax +-- +ok +== +ATTACH '{TEST_DIR}/arrow_v1_5.db' AS v15 +-- +ok +== +SELECT r FROM v15.v +-- +ok +== +SELECT v15.m([10, 20]) +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs WHERE log_level = 'WARNING' AND starts_with(message, 'Deprecated lambda arrow') +-- +ok +== +SELECT list_transform([1, 2], lambda x: x + 1) +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE log_level = 'WARNING' AND starts_with(message, 'Deprecated lambda arrow') +-- +ok +== +SELECT list_transform([1, 2], x -> x + 1) +-- +ok +== +CREATE VIEW v15.w AS SELECT list_transform([1, 2], x -> x + 1) AS r +-- +ok +== +ATTACH '{TEST_DIR}/arrow_v2_0.db' AS v20 +-- +ok +== +SELECT r FROM v20.v +-- +ok +== +SET lambda_syntax = 'DISABLE_SINGLE_ARROW' +-- +ok +== +ATTACH '{TEST_DIR}/arrow_wal_v1_5.db' AS wal15 (STORAGE_VERSION 'v1.5.0') +-- +ok +== +SET checkpoint_threshold = '10GB' +-- +ok +== +CREATE VIEW wal15.v AS SELECT list_transform([1, 2], x -> x + 1) AS r +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/arrow_wal_v1_5.db.wal') +-- +ok +== +ATTACH '{TEST_DIR}/arrow_wal_v1_5.db' AS wal15 +-- +ok +== +SELECT r FROM wal15.v +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/expression_iterator_cases_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/expression_iterator_cases_deprecated.test index 5453fcb3..2f9e4b6f 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/expression_iterator_cases_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/expression_iterator_cases_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/expression_iterator_cases_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET lambda_syntax='ENABLE_SINGLE_ARROW' diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/filter_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/filter_deprecated.test index 2b2123d4..4918380c 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/filter_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/filter_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/filter_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] AS l, list_filter([1], l -> l > 1) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambda_scope_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambda_scope_deprecated.test index 18ec9ffc..862471d8 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambda_scope_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambda_scope_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/lambda_scope_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT [1, 2, 3] AS x; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_functions_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_functions_deprecated.test index 7c9abab2..2e2a0300 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_functions_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_functions_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/lambdas_and_functions_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE function demo(n, z) AS TABLE ( diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_group_by_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_group_by_deprecated.test index e80ae970..3d76f491 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_group_by_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_group_by_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/lambdas_and_group_by_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (tag_product VARCHAR); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_macros_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_macros_deprecated.test index e2800876..d75f9252 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_macros_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/lambdas_and_macros_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/lambdas_and_macros_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select range i from range(3); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/list_comprehension_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/list_comprehension_deprecated.test index 81ca990b..c13b2cc8 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/list_comprehension_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/list_comprehension_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/list_comprehension_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_transform(list_filter([0, 1, 2, 3, 4, 5], x -> x % 2 = 0), y -> y * y) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_deprecated.test index 67518db6..6f7310dd 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/reduce_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reduce([1, 2, 3], (x, y) -> x + y); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_initial_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_initial_deprecated.test index 28664868..7dc8b4a0 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_initial_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/reduce_initial_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/reduce_initial_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reduce([1, 2, 3], (x, y) -> x + y, 100); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/rhs_parameters_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/rhs_parameters_deprecated.test index 167c1295..7610254c 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/rhs_parameters_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/rhs_parameters_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/rhs_parameters_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_apply([1,2], x -> list_apply([3,4], y -> {'x': x, 'y': y})) AS bug; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/storage_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/storage_deprecated.test index ba2a24c2..9db70133 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/storage_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/storage_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/storage_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO my_transform(list) AS list_transform(list, x -> x * x) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/table_functions_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/table_functions_deprecated.test index 71ed5704..a2cae220 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/table_functions_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/table_functions_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/table_functions_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tmp AS SELECT range AS id FROM range(10); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_deprecated_lambda.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_deprecated_lambda.test index 86fdd96d..a0f7353e 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_deprecated_lambda.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_deprecated_lambda.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/test_deprecated_lambda.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET lambda_syntax='DISABLE_SINGLE_ARROW' diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_lambda_arrow_storage_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_lambda_arrow_storage_deprecated.test index f0449b69..49b20f74 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_lambda_arrow_storage_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/test_lambda_arrow_storage_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/test_lambda_arrow_storage_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/deprecated_syntax.db'; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_deprecated.test index 9a7b6fea..1446d7a7 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/transform_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] AS l, list_transform([1], l -> l + 1) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_with_index_deprecated.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_with_index_deprecated.test index 210e0b1d..8bda54a5 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_with_index_deprecated.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/transform_with_index_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/transform_with_index_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_transform([1, 2, 3], x -> list_transform([4, 5, 6], (y, y_i) -> x + y + y_i)); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/arrow/warn_deprecated_arrow.test b/parser/testdata/corpus/sql/function/list/lambdas/arrow/warn_deprecated_arrow.test index 2e4c6a26..00a28a99 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/arrow/warn_deprecated_arrow.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/arrow/warn_deprecated_arrow.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/arrow/warn_deprecated_arrow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT log_level, message[0:37] FROM duckdb_logs diff --git a/parser/testdata/corpus/sql/function/list/lambdas/expression_iterator_cases.test b/parser/testdata/corpus/sql/function/list/lambdas/expression_iterator_cases.test index 692221aa..6f643df6 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/expression_iterator_cases.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/expression_iterator_cases.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/expression_iterator_cases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_transform([10], lambda x: sum(1) + x) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/filter.test b/parser/testdata/corpus/sql/function/list/lambdas/filter.test index a9b73708..dad85f0b 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/filter.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/filter.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] AS l, list_filter([1], lambda l: l > 1) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/incorrect.test b/parser/testdata/corpus/sql/function/list/lambdas/incorrect.test index 7a5d1fb9..71389dcf 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/incorrect.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/incorrect.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/incorrect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE incorrect_test (i INTEGER); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_aggregate_reference.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_aggregate_reference.test index 7ecc2ff1..c0d325b1 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/lambda_aggregate_reference.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_aggregate_reference.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/lambda_aggregate_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [fruit for fruit in ['apple', 'banana'] if string_agg(fruit, 'a')]; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls.test new file mode 100644 index 00000000..80fc52f4 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls.test @@ -0,0 +1,213 @@ +# source: test/sql/function/list/lambdas/lambda_dot_calls.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t_scope (y INTEGER); +-- +ok +== +INSERT INTO t_scope VALUES (5); +-- +ok +== +SELECT list_transform([-2], lambda y: y.abs()); +-- +ok +== +SELECT list_transform([-2], lambda y: y.abs()) FROM t_scope; +-- +ok +== +SELECT list_filter([-2, 3], lambda y: y.abs() = 2) FROM t_scope; +-- +ok +== +CREATE TABLE t_scope_ab (a INTEGER, b INTEGER); +-- +ok +== +INSERT INTO t_scope_ab VALUES (5, 7); +-- +ok +== +SELECT list_reduce([-2, -3], lambda a, b: a.abs() + b.abs()) FROM t_scope_ab; +-- +ok +== +SELECT list_transform(['A'], lambda y: y.lower().trim()) FROM (VALUES (' XYZ ')) t(y); +-- +ok +== +SELECT list_transform([[-2]], lambda y: list_transform(y, lambda z: z.abs())) FROM (VALUES (5)) t(z); +-- +ok +== +SELECT list_transform([-2], lambda y: list_transform([1], lambda z: y.abs() + z)) FROM t_scope; +-- +ok +== +SELECT [y.abs() FOR y IN [-2]] FROM t_scope; +-- +ok +== +SELECT list_transform(['A'], lambda system: system.lower()); +-- +ok +== +SELECT list_transform(['A'], lambda main: main.lower()); +-- +ok +== +SELECT (SELECT list_transform([-2], lambda y: y.abs())) FROM t_scope; +-- +ok +== +SELECT y, r FROM (VALUES (5)) t(y), LATERAL (SELECT list_transform([-2], lambda y: y.abs()) AS r); +-- +ok +== +CREATE MACRO abs_all(l) AS list_transform(l, lambda y: y.abs()); +-- +ok +== +SELECT abs_all([-2]) FROM t_scope; +-- +ok +== +SELECT y.abs() FROM (VALUES (-5)) t(y); +-- +ok +== +SELECT list_transform([1], lambda z: y.abs() + z) FROM (VALUES (-5)) t(y); +-- +ok +== +CREATE MACRO s1.plus_one(a) AS a + 1; +-- +ok +== +SELECT list_transform([1], lambda z: s1.plus_one(z)); +-- +ok +== +SELECT list_transform([-2], lambda s1: s1.abs()); +-- +ok +== +SELECT list_transform([1], lambda s1: s1.plus_one(s1)); +-- +ok +== +SELECT list_transform([-2], lambda y: y.nosuchfunc()); +-- +ok +== +SELECT y FROM t_scope WHERE list_transform([-2], lambda y: y.abs()) = [2]; +-- +ok +== +SELECT y FROM t_scope WHERE list_transform(['A'], lambda system: system.lower()) = ['a']; +-- +ok +== +SELECT * FROM (VALUES (5)) t(y) JOIN (VALUES (1)) u(z) ON list_transform([-2], lambda y: y.abs()) = [2]; +-- +ok +== +CREATE TABLE upd_scope (y INTEGER, r INTEGER[]); +-- +ok +== +INSERT INTO upd_scope VALUES (5, NULL); +-- +ok +== +UPDATE upd_scope SET r = list_transform([-2], lambda y: y.abs()); +-- +ok +== +SELECT r FROM upd_scope; +-- +ok +== +CREATE TABLE del_scope (y INTEGER); +-- +ok +== +INSERT INTO del_scope VALUES (5), (6); +-- +ok +== +DELETE FROM del_scope WHERE list_transform([-2], lambda y: y.abs()) = [2]; +-- +ok +== +SELECT y FROM (VALUES (-5)) t(y) WHERE y.abs() = 5; +-- +ok +== +SELECT 1 WHERE list_transform([1], lambda s1: s1.plus_one(s1)) = [2]; +-- +ok +== +ATTACH ':memory:' AS aux; +-- +ok +== +CREATE MACRO aux.main.only_here(v) AS v + 1; +-- +ok +== +SELECT list_transform([1], lambda aux: aux.only_here(aux)); +-- +ok +== +SELECT 1 WHERE list_transform([1], lambda aux: aux.only_here(aux)) = [2]; +-- +ok +== +SELECT list_transform(['A'], lambda aux: aux.lower()); +-- +ok +== +CREATE SCHEMA aux.s2; +-- +ok +== +CREATE MACRO aux.s2.plus_two(v) AS v + 2; +-- +ok +== +SELECT list_transform([1], lambda z: aux.s2.plus_two(z)); +-- +ok +== +SELECT list_transform([1], lambda aux: aux.s2.plus_two(aux)); +-- +ok +== +SELECT list_transform([{'f': -2}], lambda y: y.f.abs()); +-- +ok +== +SELECT list_transform([-2], y -> y.abs()); +-- +ok +== +SELECT y FROM t_scope WHERE list_transform([-2], y -> y.abs()) = [2]; +-- +ok +== +SELECT list_transform([-2], lambda y: list_transform([1], z -> y.abs() + z)); +-- +ok +== +SELECT list_transform([-2], y -> list_transform([1], lambda z: y.abs() + z)); +-- +ok +== +SELECT list_transform([-2], lambda y: list_transform([-3], y -> y.abs())); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_json.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_json.test new file mode 100644 index 00000000..3c23e59d --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_json.test @@ -0,0 +1,37 @@ +# source: test/sql/function/list/lambdas/lambda_dot_calls_json.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SCHEMA j; +-- +ok +== +CREATE MACRO j.pick() AS 'a'; +-- +ok +== +CREATE MACRO pick(v) AS 'b'; +-- +ok +== +SELECT json_extract_string(j -> j.pick(), '$') FROM (VALUES ('{"a":1,"b":222}'::JSON)) t(j); +-- +ok +== +SELECT count(*) FROM (VALUES ('{"a":1,"b":222}'::JSON)) t(j) WHERE json_extract_string(j -> j.pick(), '$') = '1'; +-- +ok +== +SELECT list_transform(['x'], lambda j: pick(j)); +-- +ok +== +SELECT list_transform(['x'], lambda j: j.pick()); +-- +ok +== +SELECT list_transform(['x'], j -> j.pick()); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_nested_schema.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_nested_schema.test new file mode 100644 index 00000000..2421d834 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_dot_calls_nested_schema.test @@ -0,0 +1,29 @@ +# source: test/sql/function/list/lambdas/lambda_dot_calls_nested_schema.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE nested_db; +-- +ok +== +CREATE SCHEMA n1.n2; +-- +ok +== +CREATE MACRO n1.n2.times_ten(v) AS v * 10; +-- +ok +== +SELECT list_transform([3], lambda n1: n1.n2.times_ten(n1)); +-- +ok +== +SELECT list_transform([3], lambda z: n1.n2.times_ten(z)); +-- +ok +== +SELECT list_transform([3], lambda nested_db: nested_db.n1.n2.times_ten(nested_db)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_parameter_named_argument.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_parameter_named_argument.test new file mode 100644 index 00000000..e27aa9c6 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_parameter_named_argument.test @@ -0,0 +1,85 @@ +# source: test/sql/function/list/lambdas/lambda_parameter_named_argument.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE tt (x INTEGER); +-- +ok +== +INSERT INTO tt VALUES (10), (20); +-- +ok +== +SELECT list_transform([1, 2], lambda x: struct_pack(a := x)) FROM tt +-- +ok +== +CREATE MACRO m(x) AS list_transform([1, 2], lambda x: struct_pack(a := x)); +-- +ok +== +SELECT m(10) +-- +ok +== +SELECT (SELECT max(list_transform([1, 2], lambda x: struct_pack(a := x))[2].a) FROM range(3)) FROM tt +-- +ok +== +SELECT (SELECT count(*) + max(list_transform([1, 2], lambda x: struct_pack(a := x))[2].a) FROM range(3)) FROM tt +-- +ok +== +SELECT r FROM tt, LATERAL (SELECT max(list_transform([1, 2], lambda x: struct_pack(a := x))[2].a) AS r FROM range(3)) +-- +ok +== +CREATE TABLE up (k INTEGER PRIMARY KEY, x INTEGER, l STRUCT(a INTEGER)[]); +-- +ok +== +INSERT INTO up VALUES (1, 10, NULL); +-- +ok +== +INSERT INTO up VALUES (1, 20, NULL) ON CONFLICT DO UPDATE SET l = list_transform([1, 2], lambda x: struct_pack(a := x)); +-- +ok +== +SELECT x, l FROM up +-- +ok +== +CREATE TABLE ck (x INTEGER, CHECK (list_transform([x], lambda x: struct_pack(a := x)) IS NOT NULL)); +-- +ok +== +CREATE TABLE ck_column (y INTEGER, CHECK (list_transform([1], lambda x: struct_pack(x := y)) = [{'x': 5}])); +-- +ok +== +CREATE TABLE ck_capture (y INTEGER, CHECK (list_transform([7], lambda x: y) = [7])); +-- +ok +== +CREATE TABLE ck_qualified (z INTEGER, y INTEGER, CHECK (list_transform([7], lambda x: ck_qualified.y) = [5])); +-- +ok +== +CREATE TABLE ck_constant (y INTEGER, CHECK (list_transform([y], lambda x: 7) = [7]), CHECK (y > 0)); +-- +ok +== +INSERT INTO ck_constant VALUES (5); +-- +ok +== +INSERT INTO ck_constant VALUES (0); +-- +ok +== +SELECT y FROM ck_constant +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambda_scope.test b/parser/testdata/corpus/sql/function/list/lambdas/lambda_scope.test index b46f9a36..58825d7d 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/lambda_scope.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambda_scope.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/lambda_scope.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_apply(['hello'], lambda x: x) FROM t1; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_functions.test b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_functions.test index 197c2e1b..529e4ab1 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_functions.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_functions.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/lambdas_and_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE function demo(n, z) AS TABLE ( diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_group_by.test b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_group_by.test index baa49c4b..b0855312 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_group_by.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/lambdas_and_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT tag_product, list_aggr(list_transform( diff --git a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_macros.test b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_macros.test index 3a4c007b..61b8978f 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_macros.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/lambdas_and_macros.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/lambdas_and_macros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT range i FROM range(3); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/list_comprehension.test b/parser/testdata/corpus/sql/function/list/lambdas/list_comprehension.test index d484402e..342c4ddb 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/list_comprehension.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/list_comprehension.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/list_comprehension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_transform(list_filter([0, 1, 2, 3, 4, 5], lambda x: x % 2 = 0), lambda y: y * y) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce.test index 00c7eda5..80f59868 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/reduce.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/reduce.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reduce([1, 2, 3], lambda x, y: x * y); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce_alias_initial_value_type.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce_alias_initial_value_type.test index 115d1eed..6d4caac8 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/reduce_alias_initial_value_type.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce_alias_initial_value_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/reduce_alias_initial_value_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT reduce([1.0, 2.0, 3.0], lambda x, y: x + y, 100), array_reduce([1.0, 2.0, 3.0], lambda x, y: x + y, 100), list_reduce([1.0, 2.0, 3.0], lambda x, y: x + y, 100), reduce([1.5, 2.5], lambda x, y: x + y, 100); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce_captured_columns.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce_captured_columns.test index 88a186dd..47d65f00 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/reduce_captured_columns.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce_captured_columns.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/reduce_captured_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reduce(l, lambda acc, x: acc + x + v, 0) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce_initial.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce_initial.test index c977f56c..6a54e781 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/reduce_initial.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce_initial.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/reduce_initial.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reduce([1, 2, 3], lambda x, y: x + y, 100); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce_try_empty.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce_try_empty.test new file mode 100644 index 00000000..e2b3c698 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce_try_empty.test @@ -0,0 +1,33 @@ +# source: test/sql/function/list/lambdas/reduce_try_empty.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT TRY(list_reduce([]::INTEGER[], lambda x, y: x + y)); +-- +ok +== +SELECT TRY(list_reduce([10, 20], lambda x, y: x // 0)); +-- +ok +== +CREATE TABLE t AS SELECT i, range(0, (i % 3)) AS lst FROM range(5) t(i); +-- +ok +== +SELECT i, TRY(list_reduce(lst, lambda x, y: x + y)) FROM t ORDER BY i; +-- +ok +== +SELECT list_reduce([]::INTEGER[], lambda x, y: x + y); +-- +ok +== +SELECT i, list_reduce(lst, lambda x, y: x + y) FROM t ORDER BY i; +-- +ok +== +SELECT list_reduce([]::INTEGER[], lambda x, y: x + y, 99); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/reduce_volatile.test b/parser/testdata/corpus/sql/function/list/lambdas/reduce_volatile.test new file mode 100644 index 00000000..2b0d4812 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/lambdas/reduce_volatile.test @@ -0,0 +1,21 @@ +# source: test/sql/function/list/lambdas/reduce_volatile.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(DISTINCT r), sum(r) FROM (SELECT list_reduce([1, 2], lambda a, x: a + nextval('s'), 0) r FROM range(3)); +-- +ok +== +SELECT count(DISTINCT list_reduce([1, 2], lambda a, x: a + random(), 0.0)) > 1 FROM range(100); +-- +ok +== +SELECT count(DISTINCT list_reduce([1.0, 2.0], lambda a, x: a + random())) > 1 FROM range(100); +-- +ok +== +SELECT count(DISTINCT list_reduce([1, 2], lambda a, x: a + x, 0)) FROM range(100); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/lambdas/rhs_parameters.test b/parser/testdata/corpus/sql/function/list/lambdas/rhs_parameters.test index 0ffa6308..667ced51 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/rhs_parameters.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/rhs_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/rhs_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_apply([1,2], lambda x: list_apply([3,4], lambda y: {'x': x, 'y': y})) AS bug; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/storage.test b/parser/testdata/corpus/sql/function/list/lambdas/storage.test index 67b046f6..1ffd6b9e 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/storage.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/storage.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO my_transform(list) AS list_transform(list, lambda x: x * x) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/table_functions.test b/parser/testdata/corpus/sql/function/list/lambdas/table_functions.test index a7bc63e9..e8d8996f 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/table_functions.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/table_functions.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/table_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM read_parquet('{TEST_DIR}/my_file_' || diff --git a/parser/testdata/corpus/sql/function/list/lambdas/test_lambda_storage.test b/parser/testdata/corpus/sql/function/list/lambdas/test_lambda_storage.test index 771a6ddc..9ba7fab2 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/test_lambda_storage.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/test_lambda_storage.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/test_lambda_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(list_i[1]) FROM lambda_view; diff --git a/parser/testdata/corpus/sql/function/list/lambdas/transform.test b/parser/testdata/corpus/sql/function/list/lambdas/transform.test index 0aa4411a..e2a4ad37 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/transform.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/transform.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/transform.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] AS l, list_transform([1], lambda l: l + 1) diff --git a/parser/testdata/corpus/sql/function/list/lambdas/transform_with_index.test b/parser/testdata/corpus/sql/function/list/lambdas/transform_with_index.test index 9338cc44..e2fc43a2 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/transform_with_index.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/transform_with_index.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/transform_with_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_transform([1, 2, 3], lambda x: list_transform([4, 5, 6], lambda y, y_i: x + y + y_i)); diff --git a/parser/testdata/corpus/sql/function/list/lambdas/vector_types.test b/parser/testdata/corpus/sql/function/list/lambdas/vector_types.test index 7b6ccfa4..bc4bcb8b 100644 --- a/parser/testdata/corpus/sql/function/list/lambdas/vector_types.test +++ b/parser/testdata/corpus/sql/function/list/lambdas/vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/lambdas/vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [x for x in c if x IS NOT NULL] FROM test_vector_types(NULL::INT[]) t(c); diff --git a/parser/testdata/corpus/sql/function/list/list_concat.test b/parser/testdata/corpus/sql/function/list/list_concat.test index e37f80ca..4b684ddc 100644 --- a/parser/testdata/corpus/sql/function/list/list_concat.test +++ b/parser/testdata/corpus/sql/function/list/list_concat.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_concat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_concat([1, 2], [3, 4]) diff --git a/parser/testdata/corpus/sql/function/list/list_concat_prepared_list_sort.test b/parser/testdata/corpus/sql/function/list/list_concat_prepared_list_sort.test new file mode 100644 index 00000000..8bde71e3 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_concat_prepared_list_sort.test @@ -0,0 +1,37 @@ +# source: test/sql/function/list/list_concat_prepared_list_sort.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE p1 AS SELECT list_concat([{'a': 1, 'b': 'x'}], list_sort($1)); +-- +ok +== +EXECUTE p1([{'a': 2, 'b': 'y'}]); +-- +ok +== +PREPARE p2 AS SELECT 1 WHERE list_concat([{'a': 1, 'b': 'x'}, {'a': 1, 'b': 'x'}], list_sort(?)) IS NULL; +-- +ok +== +EXECUTE p2([{'a': 2, 'b': 'y'}]); +-- +ok +== +PREPARE p3 AS SELECT list_concat([[1]], list_sort($1)); +-- +ok +== +EXECUTE p3([[3], [2]]); +-- +ok +== +PREPARE p4 AS SELECT list_concat(list_sort($1), [[1]]); +-- +ok +== +EXECUTE p4([[3], [2]]); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_contains.test b/parser/testdata/corpus/sql/function/list/list_contains.test index 17e91066..440b27c3 100644 --- a/parser/testdata/corpus/sql/function/list/list_contains.test +++ b/parser/testdata/corpus/sql/function/list/list_contains.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table TEST2 (i int[], j int); @@ -163,6 +163,18 @@ SELECT list_contains([],NULL) -- ok == +SELECT contains([], NULL), list_contains([]::VARCHAR[], NULL), list_contains([1], NULL), list_contains(NULL::INT[], NULL) +-- +ok +== +SELECT list_contains(l, x) FROM (VALUES ([]::INT[], NULL::INT), ([1], NULL), (NULL, 1), ([], 1)) t(l, x) +-- +ok +== +SELECT x, list_contains([]::INT[], x), list_contains([NULL]::INT[], x) FROM (SELECT CASE WHEN i = 0 THEN NULL ELSE i END AS x FROM range(2) t(i)) ORDER BY x NULLS FIRST +-- +ok +== SELECT list_contains([NULL,7], 7) -- ok @@ -338,3 +350,43 @@ SELECT list_filter(l1, lambda x: list_contains(l2, x)) FROM list_of_list; -- ok == +SELECT map_contains(map([]::INT[], []::INT[]), NULL::INT); +-- +ok +== +SELECT map_contains(empty_map, needle) FROM (VALUES (map([]::INT[], []::INT[]), NULL::INT)) inputs(empty_map, needle); +-- +ok +== +SELECT map_contains(empty_map, needle) FROM (VALUES (map([]::VARCHAR[], []::INT[]), NULL::VARCHAR COLLATE NOCASE)) inputs(empty_map, needle); +-- +ok +== +SELECT map_contains(m, NULL::INT) FROM (VALUES (map([1], [1]))) t(m); +-- +ok +== +SET debug_verification_mode = 'verify_functions'; +-- +ok +== +RESET debug_verification_mode; +-- +ok +== +CREATE SEQUENCE empty_list_seq; +-- +ok +== +SELECT list_contains([]::BIGINT[], nextval('empty_list_seq')); +-- +ok +== +SELECT nextval('empty_list_seq'); +-- +ok +== +SELECT list_contains([]::INT[], needle::INT) FROM (VALUES ('x')) inputs(needle); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_contains_variant.test b/parser/testdata/corpus/sql/function/list/list_contains_variant.test new file mode 100644 index 00000000..41c6e46a --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_contains_variant.test @@ -0,0 +1,54 @@ +# source: test/sql/function/list/list_contains_variant.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 1::TINYINT::VARIANT = 1::BIGINT::VARIANT, + list_contains([1::TINYINT::VARIANT], 1::BIGINT::VARIANT), + list_position([1::TINYINT::VARIANT], 1::BIGINT::VARIANT), + list_contains([[1::TINYINT::VARIANT]], [1::BIGINT::VARIANT]), + list_contains([{'a': 1::TINYINT::VARIANT}], {'a': 1::BIGINT::VARIANT}) +-- +ok +== +SELECT list_contains([1.00::DECIMAL(5,2)::VARIANT], 1::INTEGER::VARIANT), + list_contains([1.5::FLOAT::VARIANT], 1.5::DOUBLE::VARIANT), + list_contains([1::UBIGINT::VARIANT], 1::BIGINT::VARIANT), + list_contains([1::TINYINT::VARIANT]::VARIANT[1], 1::BIGINT::VARIANT), + list_position([2::INTEGER::VARIANT, 'x'::VARIANT, 1::TINYINT::VARIANT], 1::HUGEINT::VARIANT) +-- +ok +== +SELECT list_contains([1::TINYINT::VARIANT], 2::BIGINT::VARIANT), list_contains([1::TINYINT::VARIANT], '1'::VARIANT), + list_position([1::TINYINT::VARIANT, NULL], NULL::VARIANT) +-- +ok +== +SELECT array_contains([1::TINYINT::VARIANT], 1::BIGINT::VARIANT), list_has([1::TINYINT::VARIANT], 1::BIGINT::VARIANT), + contains([1::TINYINT::VARIANT], 1::BIGINT::VARIANT), array_position([1::TINYINT::VARIANT], 1::BIGINT::VARIANT) +-- +ok +== +CREATE TABLE t AS SELECT i AS id, [(i % 7)::TINYINT::VARIANT, 'a'::VARIANT] AS tags, (i % 3)::BIGINT::VARIANT AS needle +FROM range(5000) r(i); +-- +ok +== +SELECT count(*) FILTER (WHERE list_contains(tags, needle)), count(*) FILTER (WHERE list_contains(tags, 1::DECIMAL(4,1)::VARIANT)) +FROM t +-- +ok +== +SELECT count(*) FROM t WHERE list_contains(tags, needle) = (needle IN (SELECT unnest(tags))) +-- +ok +== +SELECT count(*) FROM (VALUES + (INTERVAL '-2147483648 months -2147483648 days -9223372036854775807 microseconds', INTERVAL '-2147483648 months -2147483648 days -9223372036854775806 microseconds'), + (INTERVAL '2147483647 months 2147483647 days 9223372036854775806 microseconds', INTERVAL '2147483647 months 2147483647 days 9223372036854775807 microseconds'), + (INTERVAL '1 month', INTERVAL '30 days'), + (INTERVAL '1 month', INTERVAL '31 days') +) t(a, b) WHERE list_contains([a], b) IS DISTINCT FROM (a = b) +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_cosine_similarity.test b/parser/testdata/corpus/sql/function/list/list_cosine_similarity.test index 6af5b766..326209cd 100644 --- a/parser/testdata/corpus/sql/function/list/list_cosine_similarity.test +++ b/parser/testdata/corpus/sql/function/list/list_cosine_similarity.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_cosine_similarity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_cosine_similarity([1, 2, 3]::{type}[], [1, 2, 3]::{type}[]); diff --git a/parser/testdata/corpus/sql/function/list/list_distance.test b/parser/testdata/corpus/sql/function/list/list_distance.test index 76f6a7c4..829a6620 100644 --- a/parser/testdata/corpus/sql/function/list/list_distance.test +++ b/parser/testdata/corpus/sql/function/list/list_distance.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_distance.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_distance([1, 2, 3]::{type}[], [1, 2, 3]::{type}[]); diff --git a/parser/testdata/corpus/sql/function/list/list_distinct.test b/parser/testdata/corpus/sql/function/list/list_distinct.test index 272dcad3..4f009c16 100644 --- a/parser/testdata/corpus/sql/function/list/list_distinct.test +++ b/parser/testdata/corpus/sql/function/list/list_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_distinct(NULL) diff --git a/parser/testdata/corpus/sql/function/list/list_functions_constant_child.test b/parser/testdata/corpus/sql/function/list/list_functions_constant_child.test index 15829275..83f9014e 100644 --- a/parser/testdata/corpus/sql/function/list/list_functions_constant_child.test +++ b/parser/testdata/corpus/sql/function/list/list_functions_constant_child.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_functions_constant_child.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_select(TRY_CAST(l AS UUID[]), [2, 1]), list_where(TRY_CAST(l AS UUID[]), [true, false]) FROM (SELECT [1, 2, 3] l) diff --git a/parser/testdata/corpus/sql/function/list/list_grade_up_ties.test b/parser/testdata/corpus/sql/function/list/list_grade_up_ties.test new file mode 100644 index 00000000..197612e2 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_grade_up_ties.test @@ -0,0 +1,25 @@ +# source: test/sql/function/list/list_grade_up_ties.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT list_grade_up(list_transform(range(10), lambda x: 1)); +-- +ok +== +SELECT list_grade_up(list_transform(range(30), lambda x: 1)) = range(1, 31); +-- +ok +== +SELECT list_grade_up([3, 1, 3, 1, 2, 3]); +-- +ok +== +SELECT list_grade_up([3, 1, 3, 1, 2, 3], 'DESC'); +-- +ok +== +SELECT list_grade_up(['b', 'a', 'b', 'a', 'c']); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_grade_up_variant.test b/parser/testdata/corpus/sql/function/list/list_grade_up_variant.test index f288abc0..cd1590c8 100644 --- a/parser/testdata/corpus/sql/function/list/list_grade_up_variant.test +++ b/parser/testdata/corpus/sql/function/list/list_grade_up_variant.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_grade_up_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_grade_up(CAST({'a': 1, 'z': regexp_matches('q', repeat(chr(81), 224) || chr(96)||chr(59)||chr(120)||chr(3)||chr(0)||chr(0)||chr(0))} AS VARIANT)) diff --git a/parser/testdata/corpus/sql/function/list/list_has_any_and_has_all.test b/parser/testdata/corpus/sql/function/list/list_has_any_and_has_all.test index f8fc8738..3e58a39a 100644 --- a/parser/testdata/corpus/sql/function/list/list_has_any_and_has_all.test +++ b/parser/testdata/corpus/sql/function/list/list_has_any_and_has_all.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_has_any_and_has_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_has_any([1,2,3], [2,3,4]); diff --git a/parser/testdata/corpus/sql/function/list/list_inner_product.test b/parser/testdata/corpus/sql/function/list/list_inner_product.test index 1afc6f91..acda70ce 100644 --- a/parser/testdata/corpus/sql/function/list/list_inner_product.test +++ b/parser/testdata/corpus/sql/function/list/list_inner_product.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_inner_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_inner_product([], []); diff --git a/parser/testdata/corpus/sql/function/list/list_intersect.test b/parser/testdata/corpus/sql/function/list/list_intersect.test index 7ca66615..63a3ceb2 100644 --- a/parser/testdata/corpus/sql/function/list/list_intersect.test +++ b/parser/testdata/corpus/sql/function/list/list_intersect.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_intersect.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_sort({f}([1,2,3], [2,3,4])); diff --git a/parser/testdata/corpus/sql/function/list/list_position.test b/parser/testdata/corpus/sql/function/list/list_position.test index 80a9c0ed..4fed4a6f 100644 --- a/parser/testdata/corpus/sql/function/list/list_position.test +++ b/parser/testdata/corpus/sql/function/list/list_position.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select list_position(i, j) from TEST2 diff --git a/parser/testdata/corpus/sql/function/list/list_position_nan.test b/parser/testdata/corpus/sql/function/list/list_position_nan.test index b6daa6cf..9be86705 100644 --- a/parser/testdata/corpus/sql/function/list/list_position_nan.test +++ b/parser/testdata/corpus/sql/function/list/list_position_nan.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_position_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_position(['NaN'::DOUBLE], 'NaN'::DOUBLE) diff --git a/parser/testdata/corpus/sql/function/list/list_position_null_needle.test b/parser/testdata/corpus/sql/function/list/list_position_null_needle.test index 66c76976..fa8bdc13 100644 --- a/parser/testdata/corpus/sql/function/list/list_position_null_needle.test +++ b/parser/testdata/corpus/sql/function/list/list_position_null_needle.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_position_null_needle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a, list_position(a, NULL) IS NOT NULL diff --git a/parser/testdata/corpus/sql/function/list/list_resize.test b/parser/testdata/corpus/sql/function/list/list_resize.test index 6ba5eabe..9bd8cfbb 100644 --- a/parser/testdata/corpus/sql/function/list/list_resize.test +++ b/parser/testdata/corpus/sql/function/list/list_resize.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_resize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_resize([1, 2, 4], 2); diff --git a/parser/testdata/corpus/sql/function/list/list_resize_error.test b/parser/testdata/corpus/sql/function/list/list_resize_error.test index e77bf7e3..b0dc649f 100644 --- a/parser/testdata/corpus/sql/function/list/list_resize_error.test +++ b/parser/testdata/corpus/sql/function/list/list_resize_error.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_resize_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit execute {q}([1, 2, 3], 'a'); diff --git a/parser/testdata/corpus/sql/function/list/list_resize_non_list.test b/parser/testdata/corpus/sql/function/list/list_resize_non_list.test new file mode 100644 index 00000000..1a2f3c57 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_resize_non_list.test @@ -0,0 +1,21 @@ +# source: test/sql/function/list/list_resize_non_list.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT {func}(1::VARIANT, 1, 1) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT {func}([3, 1, 2]::VARIANT, 1) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT {func}({'a': [1]}::VARIANT, 2, 0) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT {func}([1, 2], 3, 0), {func}([1, 2]::INT[2], 1), {func}(NULL, 2) +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/function/list/list_resize_variant.test b/parser/testdata/corpus/sql/function/list/list_resize_variant.test new file mode 100644 index 00000000..b640b7c1 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_resize_variant.test @@ -0,0 +1,21 @@ +# source: test/sql/function/list/list_resize_variant.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT list_resize([1,2,3]::VARIANT, 5); +-- +ok +== +SELECT list_resize([1]::VARIANT, 2, 0); +-- +ok +== +SELECT array_resize([1,2,3]::VARIANT, 5); +-- +ok +== +SELECT list_resize([1,2,3], 5); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_resize_vector_types.test b/parser/testdata/corpus/sql/function/list/list_resize_vector_types.test index 44ed6cbd..6c968e3b 100644 --- a/parser/testdata/corpus/sql/function/list/list_resize_vector_types.test +++ b/parser/testdata/corpus/sql/function/list/list_resize_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_resize_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(list_resize([1, 2], 3, b)) FROM test_vector_types(NULL::INT) t(b) diff --git a/parser/testdata/corpus/sql/function/list/list_reverse.test b/parser/testdata/corpus/sql/function/list/list_reverse.test index 3fb65011..369dfd41 100644 --- a/parser/testdata/corpus/sql/function/list/list_reverse.test +++ b/parser/testdata/corpus/sql/function/list/list_reverse.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_reverse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_reverse(NULL); diff --git a/parser/testdata/corpus/sql/function/list/list_select.test b/parser/testdata/corpus/sql/function/list/list_select.test index 5c8f73bc..8901a457 100644 --- a/parser/testdata/corpus/sql/function/list/list_select.test +++ b/parser/testdata/corpus/sql/function/list/list_select.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_select(values, positions) diff --git a/parser/testdata/corpus/sql/function/list/list_select_empty_child.test b/parser/testdata/corpus/sql/function/list/list_select_empty_child.test new file mode 100644 index 00000000..7350ed70 --- /dev/null +++ b/parser/testdata/corpus/sql/function/list/list_select_empty_child.test @@ -0,0 +1,42 @@ +# source: test/sql/function/list/list_select_empty_child.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT list_select(x, [1]) FROM (VALUES ([]::INTEGER[])) t(x); +-- +ok +== +SELECT list_where(x, [true]) FROM (VALUES ([]::INTEGER[])) t(x); +-- +ok +== +SELECT list_where(map_extract(MAP {'k': 1}::MAP(VARCHAR, INTEGER), v), [true]) FROM (VALUES ('z'), ('y')) t(v); +-- +ok +== +CREATE TABLE w(c2 INTEGER[]); +-- +ok +== +INSERT INTO w VALUES ([]); +-- +ok +== +UPDATE w SET c2 = list_select(list_distinct(c2), [1, 1]); +-- +ok +== +SELECT c2 FROM w +-- +ok +== +PREPARE p AS SELECT 1 FROM (VALUES (0)) v1(id) +WHERE list_contains(list_select(list_transform($1::VARCHAR[], lambda x, i: {'a': i::INTEGER, 'b': x}), [2, 1]), {'a': 1, 'b': 'x'}); +-- +ok +== +EXECUTE p([]::VARCHAR[]); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/list/list_slice_min_step.test b/parser/testdata/corpus/sql/function/list/list_slice_min_step.test index b11212d4..899ffdd7 100644 --- a/parser/testdata/corpus/sql/function/list/list_slice_min_step.test +++ b/parser/testdata/corpus/sql/function/list/list_slice_min_step.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_slice_min_step.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_slice([1,2,3,4,5], 5, 1, -9223372036854775808), [1,2,3,4,5][5:1:-9223372036854775808], list_slice([1,2,3,4,5], 1, 5, 9223372036854775807), list_slice([1,2,3,4,5], 5, 1, -2) diff --git a/parser/testdata/corpus/sql/function/list/list_sort_having.test b/parser/testdata/corpus/sql/function/list/list_sort_having.test index 578ed766..1c4929ed 100644 --- a/parser/testdata/corpus/sql/function/list/list_sort_having.test +++ b/parser/testdata/corpus/sql/function/list/list_sort_having.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_sort_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table test1 as ( diff --git a/parser/testdata/corpus/sql/function/list/list_sort_interval.test b/parser/testdata/corpus/sql/function/list/list_sort_interval.test index 0eb1cdc9..33a8b505 100644 --- a/parser/testdata/corpus/sql/function/list/list_sort_interval.test +++ b/parser/testdata/corpus/sql/function/list/list_sort_interval.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_sort_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM (VALUES (INTERVAL '31 days'), (INTERVAL '1 month')) t(i) ORDER BY i diff --git a/parser/testdata/corpus/sql/function/list/list_sort_typed_null.test b/parser/testdata/corpus/sql/function/list/list_sort_typed_null.test index bbd81566..7308879b 100644 --- a/parser/testdata/corpus/sql/function/list/list_sort_typed_null.test +++ b/parser/testdata/corpus/sql/function/list/list_sort_typed_null.test @@ -1,12 +1,8 @@ # source: test/sql/function/list/list_sort_typed_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE TABLE t(i INT); --- -ok -== SELECT typeof(list_sort(NULL::INT[])), typeof(list_reverse_sort(NULL::INT[])), typeof(array_sort(NULL::INT[3])), typeof(list_grade_up(NULL::INT[])), typeof(list_sort(NULL::VARCHAR[], 'DESC')); -- diff --git a/parser/testdata/corpus/sql/function/list/list_sort_vector_types.test b/parser/testdata/corpus/sql/function/list/list_sort_vector_types.test index 11a1f0ae..3f4d4313 100644 --- a/parser/testdata/corpus/sql/function/list/list_sort_vector_types.test +++ b/parser/testdata/corpus/sql/function/list/list_sort_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_sort_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_sort(l) FROM test_vector_types(NULL::INT[], all_flat={flatten}) tbl(l) diff --git a/parser/testdata/corpus/sql/function/list/list_unique.test b/parser/testdata/corpus/sql/function/list/list_unique.test index b933051e..c3d00587 100644 --- a/parser/testdata/corpus/sql/function/list/list_unique.test +++ b/parser/testdata/corpus/sql/function/list/list_unique.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_unique(NULL) diff --git a/parser/testdata/corpus/sql/function/list/list_value_arrays.test b/parser/testdata/corpus/sql/function/list/list_value_arrays.test index 2d7da4b2..15df29ab 100644 --- a/parser/testdata/corpus/sql/function/list/list_value_arrays.test +++ b/parser/testdata/corpus/sql/function/list/list_value_arrays.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_value_arrays.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_value([3, 2, 1]::INTEGER[3], [4, 5, 6]::INTEGER[3]); diff --git a/parser/testdata/corpus/sql/function/list/list_value_nested_lists.test b/parser/testdata/corpus/sql/function/list/list_value_nested_lists.test index bac06446..b7ac0dd3 100644 --- a/parser/testdata/corpus/sql/function/list/list_value_nested_lists.test +++ b/parser/testdata/corpus/sql/function/list/list_value_nested_lists.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_value_nested_lists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LIST_VALUE([1, 7], [2], [3]); diff --git a/parser/testdata/corpus/sql/function/list/list_value_structs.test b/parser/testdata/corpus/sql/function/list/list_value_structs.test index cfcdc3d5..4e7aca1f 100644 --- a/parser/testdata/corpus/sql/function/list/list_value_structs.test +++ b/parser/testdata/corpus/sql/function/list/list_value_structs.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_value_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_value({'a': 1, 'b': 'a'}, {'a': 2, 'b': 'b'}); diff --git a/parser/testdata/corpus/sql/function/list/list_where.test b/parser/testdata/corpus/sql/function/list/list_where.test index 6c8a1a7f..02f06929 100644 --- a/parser/testdata/corpus/sql/function/list/list_where.test +++ b/parser/testdata/corpus/sql/function/list/list_where.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (i int[]) diff --git a/parser/testdata/corpus/sql/function/list/list_zip.test b/parser/testdata/corpus/sql/function/list/list_zip.test index 7954b1db..17a71d7d 100644 --- a/parser/testdata/corpus/sql/function/list/list_zip.test +++ b/parser/testdata/corpus/sql/function/list/list_zip.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/list_zip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bools (b bool) diff --git a/parser/testdata/corpus/sql/function/list/repeat_list.test b/parser/testdata/corpus/sql/function/list/repeat_list.test index 5f7fb531..65469af5 100644 --- a/parser/testdata/corpus/sql/function/list/repeat_list.test +++ b/parser/testdata/corpus/sql/function/list/repeat_list.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/repeat_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT repeat([1], 10); diff --git a/parser/testdata/corpus/sql/function/list/test_lambda_with_struct_aliases.test b/parser/testdata/corpus/sql/function/list/test_lambda_with_struct_aliases.test index db75fb80..884d6972 100644 --- a/parser/testdata/corpus/sql/function/list/test_lambda_with_struct_aliases.test +++ b/parser/testdata/corpus/sql/function/list/test_lambda_with_struct_aliases.test @@ -1,6 +1,6 @@ # source: test/sql/function/list/test_lambda_with_struct_aliases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COALESCE(*COLUMNS(lambda c: {'title': c}.title IN ('a', 'c'))) diff --git a/parser/testdata/corpus/sql/function/nested/array_extract_unnamed_struct.test b/parser/testdata/corpus/sql/function/nested/array_extract_unnamed_struct.test index ee2a8df8..caca2942 100644 --- a/parser/testdata/corpus/sql/function/nested/array_extract_unnamed_struct.test +++ b/parser/testdata/corpus/sql/function/nested/array_extract_unnamed_struct.test @@ -1,6 +1,6 @@ # source: test/sql/function/nested/array_extract_unnamed_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (ROW(42, 84))['element'] diff --git a/parser/testdata/corpus/sql/function/nested/test_issue_5437.test b/parser/testdata/corpus/sql/function/nested/test_issue_5437.test index 201d9bbb..b7eedcc7 100644 --- a/parser/testdata/corpus/sql/function/nested/test_issue_5437.test +++ b/parser/testdata/corpus/sql/function/nested/test_issue_5437.test @@ -1,6 +1,6 @@ # source: test/sql/function/nested/test_issue_5437.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with data as ( diff --git a/parser/testdata/corpus/sql/function/nested/test_struct_insert.test b/parser/testdata/corpus/sql/function/nested/test_struct_insert.test index 8732647a..0dec2555 100644 --- a/parser/testdata/corpus/sql/function/nested/test_struct_insert.test +++ b/parser/testdata/corpus/sql/function/nested/test_struct_insert.test @@ -1,6 +1,6 @@ # source: test/sql/function/nested/test_struct_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_insert ({a: 1, b: 2}, c := 3); diff --git a/parser/testdata/corpus/sql/function/nested/test_struct_update.test b/parser/testdata/corpus/sql/function/nested/test_struct_update.test index 1bfe518e..405c5f2b 100644 --- a/parser/testdata/corpus/sql/function/nested/test_struct_update.test +++ b/parser/testdata/corpus/sql/function/nested/test_struct_update.test @@ -1,6 +1,6 @@ # source: test/sql/function/nested/test_struct_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_update ({a: 1, b: 2}, c := 3); diff --git a/parser/testdata/corpus/sql/function/numeric/abs.test b/parser/testdata/corpus/sql/function/numeric/abs.test index 6d0e3175..bfcf0ecc 100644 --- a/parser/testdata/corpus/sql/function/numeric/abs.test +++ b/parser/testdata/corpus/sql/function/numeric/abs.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/abs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT abs('-0.0'::float), abs('-0.0'::double) diff --git a/parser/testdata/corpus/sql/function/numeric/bit_count_hugeint.test b/parser/testdata/corpus/sql/function/numeric/bit_count_hugeint.test new file mode 100644 index 00000000..d384f93f --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/bit_count_hugeint.test @@ -0,0 +1,25 @@ +# source: test/sql/function/numeric/bit_count_hugeint.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT bit_count(-1::HUGEINT); +-- +ok +== +SELECT bit_count(0::HUGEINT); +-- +ok +== +SELECT bit_count(170141183460469231731687303715884105727::HUGEINT); +-- +ok +== +SELECT bit_count(-170141183460469231731687303715884105727::HUGEINT - 1); +-- +ok +== +SELECT typeof(bit_count(1::HUGEINT)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/decimal_mod.test b/parser/testdata/corpus/sql/function/numeric/decimal_mod.test index b2adb510..44cca1da 100644 --- a/parser/testdata/corpus/sql/function/numeric/decimal_mod.test +++ b/parser/testdata/corpus/sql/function/numeric/decimal_mod.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/decimal_mod.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10 % 2.4, -10 % 2.4 diff --git a/parser/testdata/corpus/sql/function/numeric/round_null_beyond_width.test b/parser/testdata/corpus/sql/function/numeric/round_null_beyond_width.test new file mode 100644 index 00000000..3a877836 --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/round_null_beyond_width.test @@ -0,0 +1,81 @@ +# source: test/sql/function/numeric/round_null_beyond_width.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE dec18(x DECIMAL(18,3)); +-- +ok +== +INSERT INTO dec18 VALUES (123.456), (NULL), (-9.5), (0), (NULL), (999999999999999.999); +-- +ok +== +SELECT x, round(x, -20), round_even(x, -20), trunc(x, -20), round(x, -16) FROM dec18 ORDER BY x NULLS FIRST; +-- +ok +== +SELECT count(*), count(round(x, -20)), count(round_even(x, -20)), count(trunc(x, -20)) FROM dec18; +-- +ok +== +CREATE TABLE dec38(x DECIMAL(38,3)); +-- +ok +== +INSERT INTO dec38 VALUES (123.456), (NULL), (-9.5), (0), (NULL), (99999999999999999999999999999999999.999); +-- +ok +== +SELECT x, round(x, -300), round_even(x, -300), trunc(x, -300), trunc(x, -36) FROM dec38 ORDER BY x NULLS FIRST; +-- +ok +== +SELECT count(*), count(round(x, -300)), count(round_even(x, -300)), count(trunc(x, -300)) FROM dec38; +-- +ok +== +CREATE TABLE dec4(x DECIMAL(4,1)); +-- +ok +== +INSERT INTO dec4 VALUES (123.4), (NULL), (-9.5); +-- +ok +== +SELECT x, round(x, -5), round_even(x, -5), trunc(x, -5) FROM dec4 ORDER BY x NULLS FIRST; +-- +ok +== +CREATE TABLE dec9(x DECIMAL(9,2)); +-- +ok +== +INSERT INTO dec9 VALUES (1234567.89), (NULL), (-9.5); +-- +ok +== +SELECT x, round(x, -10), round_even(x, -10), trunc(x, -10) FROM dec9 ORDER BY x NULLS FIRST; +-- +ok +== +SELECT round(x, -20), round_even(x, -20), trunc(x, -20) FROM (SELECT NULL::DECIMAL(18,3) x UNION ALL SELECT NULL) t; +-- +ok +== +SELECT round(NULL::DECIMAL(38,3), -300), round_even(NULL::DECIMAL(38,3), -300), trunc(NULL::DECIMAL(38,3), -300); +-- +ok +== +SELECT typeof(round(x, -20)) FROM dec18 LIMIT 1; +-- +ok +== +SELECT typeof(round(x, -300)) FROM dec38 LIMIT 1; +-- +ok +== +SELECT x, round(x, -15), round_even(x, -15), trunc(x, -15) FROM dec18 ORDER BY x NULLS FIRST; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/set_seed_for_sample.test b/parser/testdata/corpus/sql/function/numeric/set_seed_for_sample.test index 58d7d8b2..7c107527 100644 --- a/parser/testdata/corpus/sql/function/numeric/set_seed_for_sample.test +++ b/parser/testdata/corpus/sql/function/numeric/set_seed_for_sample.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/set_seed_for_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select * from generate_series(1,50) as t(number); diff --git a/parser/testdata/corpus/sql/function/numeric/setseed_pinned_values.test b/parser/testdata/corpus/sql/function/numeric/setseed_pinned_values.test new file mode 100644 index 00000000..a86bfb25 --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/setseed_pinned_values.test @@ -0,0 +1,25 @@ +# source: test/sql/function/numeric/setseed_pinned_values.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT setseed(0.42) +-- +ok +== +SELECT list(i ORDER BY i) FROM (SELECT * FROM range(100) t(i) USING SAMPLE 5 ROWS) +-- +ok +== +SELECT list(i ORDER BY i) FROM (SELECT * FROM range(100) t(i) USING SAMPLE 10 PERCENT (reservoir)) +-- +ok +== +SELECT random() +-- +ok +== +SELECT uuid() +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/test_arithmetic_aliases.test b/parser/testdata/corpus/sql/function/numeric/test_arithmetic_aliases.test index 5683622c..33fc353f 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_arithmetic_aliases.test +++ b/parser/testdata/corpus/sql/function/numeric/test_arithmetic_aliases.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_arithmetic_aliases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a integer) diff --git a/parser/testdata/corpus/sql/function/numeric/test_binom.test b/parser/testdata/corpus/sql/function/numeric/test_binom.test index 538251e6..8f2a1aad 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_binom.test +++ b/parser/testdata/corpus/sql/function/numeric/test_binom.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_binom.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT binom(5, 2); diff --git a/parser/testdata/corpus/sql/function/numeric/test_bit_count.test b/parser/testdata/corpus/sql/function/numeric/test_bit_count.test index 98fbaea0..e8da0afa 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_bit_count.test +++ b/parser/testdata/corpus/sql/function/numeric/test_bit_count.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_bit_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bits(t tinyint, s smallint, i integer, b bigint, h hugeint) diff --git a/parser/testdata/corpus/sql/function/numeric/test_even.test b/parser/testdata/corpus/sql/function/numeric/test_even.test index 7e59ee96..a3484bdd 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_even.test +++ b/parser/testdata/corpus/sql/function/numeric/test_even.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_even.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select i, even(i + 0.4) from generate_series(-4,4) tbl(i); diff --git a/parser/testdata/corpus/sql/function/numeric/test_factorial.test b/parser/testdata/corpus/sql/function/numeric/test_factorial.test index 033b729f..15b2c02a 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_factorial.test +++ b/parser/testdata/corpus/sql/function/numeric/test_factorial.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_factorial.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT factorial(0); diff --git a/parser/testdata/corpus/sql/function/numeric/test_fdiv_fmod.test b/parser/testdata/corpus/sql/function/numeric/test_fdiv_fmod.test index c788833f..2967e55f 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_fdiv_fmod.test +++ b/parser/testdata/corpus/sql/function/numeric/test_fdiv_fmod.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_fdiv_fmod.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET ieee_floating_point_ops=false; diff --git a/parser/testdata/corpus/sql/function/numeric/test_floor_ceil.test b/parser/testdata/corpus/sql/function/numeric/test_floor_ceil.test index e6f669cb..0c086199 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_floor_ceil.test +++ b/parser/testdata/corpus/sql/function/numeric/test_floor_ceil.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_floor_ceil.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(n DOUBLE) diff --git a/parser/testdata/corpus/sql/function/numeric/test_gamma.test b/parser/testdata/corpus/sql/function/numeric/test_gamma.test index d6047ef9..9401b21b 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_gamma.test +++ b/parser/testdata/corpus/sql/function/numeric/test_gamma.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_gamma.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET ieee_floating_point_ops = false; diff --git a/parser/testdata/corpus/sql/function/numeric/test_gcd_lcm.test b/parser/testdata/corpus/sql/function/numeric/test_gcd_lcm.test index d285a37f..752f803d 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_gcd_lcm.test +++ b/parser/testdata/corpus/sql/function/numeric/test_gcd_lcm.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_gcd_lcm.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a, b, gcd(a, b), gcd(a, -b), gcd(b, a), gcd(-b, a) diff --git a/parser/testdata/corpus/sql/function/numeric/test_geomean.test b/parser/testdata/corpus/sql/function/numeric/test_geomean.test index ae8284e6..a4f1c22c 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_geomean.test +++ b/parser/testdata/corpus/sql/function/numeric/test_geomean.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_geomean.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(x DOUBLE) diff --git a/parser/testdata/corpus/sql/function/numeric/test_invalid_math.test b/parser/testdata/corpus/sql/function/numeric/test_invalid_math.test index eb960ed7..e3c64a7f 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_invalid_math.test +++ b/parser/testdata/corpus/sql/function/numeric/test_invalid_math.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_invalid_math.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT log(0); diff --git a/parser/testdata/corpus/sql/function/numeric/test_is_nan.test b/parser/testdata/corpus/sql/function/numeric/test_is_nan.test index 6284fe14..4c555620 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_is_nan.test +++ b/parser/testdata/corpus/sql/function/numeric/test_is_nan.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_is_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT isnan(3::{type}), isnan('nan'::{type}), isnan(NULL::{type}) diff --git a/parser/testdata/corpus/sql/function/numeric/test_mod.test b/parser/testdata/corpus/sql/function/numeric/test_mod.test index 17900c65..64f788e0 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_mod.test +++ b/parser/testdata/corpus/sql/function/numeric/test_mod.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_mod.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE modme(a DOUBLE, b INTEGER) diff --git a/parser/testdata/corpus/sql/function/numeric/test_mod_min_negative_one.test b/parser/testdata/corpus/sql/function/numeric/test_mod_min_negative_one.test new file mode 100644 index 00000000..0d9628b0 --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/test_mod_min_negative_one.test @@ -0,0 +1,26 @@ +# source: test/sql/function/numeric/test_mod_min_negative_one.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT (-128)::TINYINT % (-1)::TINYINT, (-32768)::SMALLINT % (-1)::SMALLINT, (-2147483648)::INTEGER % (-1)::INTEGER, + (-9223372036854775808)::BIGINT % (-1)::BIGINT, (-170141183460469231731687303715884105728)::HUGEINT % (-1)::HUGEINT +-- +ok +== +CREATE TABLE t(a BIGINT, b BIGINT); +-- +ok +== +INSERT INTO t VALUES (-9223372036854775808, -1), (7, -1), (-9223372036854775808, 3); +-- +ok +== +SELECT a % b FROM t +-- +ok +== +SELECT (-9223372036854775808)::BIGINT // (-1)::BIGINT; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/test_modulo_min_by_minus_one.test b/parser/testdata/corpus/sql/function/numeric/test_modulo_min_by_minus_one.test new file mode 100644 index 00000000..8fc4b774 --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/test_modulo_min_by_minus_one.test @@ -0,0 +1,18 @@ +# source: test/sql/function/numeric/test_modulo_min_by_minus_one.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT (-128)::TINYINT % (-1)::TINYINT, (-32768)::SMALLINT % (-1)::SMALLINT, (-2147483648)::INTEGER % (-1)::INTEGER, + (-9223372036854775808)::BIGINT % (-1)::BIGINT; +-- +ok +== +SELECT (-170141183460469231731687303715884105728)::HUGEINT % (-1)::HUGEINT; +-- +ok +== +SELECT 7 % (-1), (-7) % 3; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/test_nextafter.test b/parser/testdata/corpus/sql/function/numeric/test_nextafter.test index 3c7badee..7d965310 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_nextafter.test +++ b/parser/testdata/corpus/sql/function/numeric/test_nextafter.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_nextafter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select nextafter() diff --git a/parser/testdata/corpus/sql/function/numeric/test_pg_math.test b/parser/testdata/corpus/sql/function/numeric/test_pg_math.test index 761ea73c..f226fd80 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_pg_math.test +++ b/parser/testdata/corpus/sql/function/numeric/test_pg_math.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_pg_math.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select abs(-17.4) diff --git a/parser/testdata/corpus/sql/function/numeric/test_pow.test b/parser/testdata/corpus/sql/function/numeric/test_pow.test index 7a35cdc7..d9097ad5 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_pow.test +++ b/parser/testdata/corpus/sql/function/numeric/test_pow.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_pow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE powerme(a DOUBLE, b INTEGER) diff --git a/parser/testdata/corpus/sql/function/numeric/test_random.test b/parser/testdata/corpus/sql/function/numeric/test_random.test index c5e85357..1429753b 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_random.test +++ b/parser/testdata/corpus/sql/function/numeric/test_random.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_random.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT [random() for a IN range(1)] FROM range(2); diff --git a/parser/testdata/corpus/sql/function/numeric/test_round.test b/parser/testdata/corpus/sql/function/numeric/test_round.test index 122a7b32..492fa7e9 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_round.test +++ b/parser/testdata/corpus/sql/function/numeric/test_round.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_round.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE roundme(a DOUBLE, b INTEGER) diff --git a/parser/testdata/corpus/sql/function/numeric/test_round_double_exact_midpoint.test b/parser/testdata/corpus/sql/function/numeric/test_round_double_exact_midpoint.test new file mode 100644 index 00000000..35c2d4f4 --- /dev/null +++ b/parser/testdata/corpus/sql/function/numeric/test_round_double_exact_midpoint.test @@ -0,0 +1,45 @@ +# source: test/sql/function/numeric/test_round_double_exact_midpoint.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT round(2.675::DOUBLE, 2)::VARCHAR, round(-2.675::DOUBLE, 2)::VARCHAR, round(1.005::DOUBLE, 2)::VARCHAR, round(4.025::DOUBLE, 2)::VARCHAR, round(1.115::DOUBLE, 2)::VARCHAR, round(0.45::DOUBLE, 1)::VARCHAR, round(1.0005::DOUBLE, 3)::VARCHAR, round(-1.0005::DOUBLE, 3)::VARCHAR, round(123.456785::DOUBLE, 5)::VARCHAR, round(2.675::FLOAT, 2)::VARCHAR, round(0.125::DOUBLE, 2)::VARCHAR, round(0.375::DOUBLE, 2)::VARCHAR, round(2.5::DOUBLE, 0)::VARCHAR, round(3.5::DOUBLE, 0)::VARCHAR +-- +ok +== +SELECT round_even(2.675::DOUBLE, 2)::VARCHAR, round_even(-2.675::DOUBLE, 2)::VARCHAR, round_even(1.005::DOUBLE, 2)::VARCHAR, round_even(4.025::DOUBLE, 2)::VARCHAR, round_even(1.115::DOUBLE, 2)::VARCHAR, round_even(0.45::DOUBLE, 1)::VARCHAR, round_even(1.0005::DOUBLE, 3)::VARCHAR, round_even(-1.0005::DOUBLE, 3)::VARCHAR, round_even(123.456785::DOUBLE, 5)::VARCHAR, round_even(2.675::FLOAT, 2)::VARCHAR, round_even(0.125::DOUBLE, 2)::VARCHAR, round_even(0.375::DOUBLE, 2)::VARCHAR, round_even(2.5::DOUBLE, 0)::VARCHAR, round_even(3.5::DOUBLE, 0)::VARCHAR +-- +ok +== +SELECT round(-0.049999999999999996::DOUBLE, 1)::VARCHAR, round(0.049999999999999996::DOUBLE, 1)::VARCHAR, round(-0.49999999999999994::DOUBLE, 0)::VARCHAR, round_even(-0.049999999999999996::DOUBLE, 1)::VARCHAR, round_even(0.049999999999999996::DOUBLE, 1)::VARCHAR, round_even(-0.49999999999999994::DOUBLE, 0)::VARCHAR +-- +ok +== +SELECT round(0.49999999999999994::DOUBLE)::VARCHAR, round(-0.49999999999999994::DOUBLE)::VARCHAR, round(0.4999999701976776::FLOAT)::VARCHAR, round(0.4999999701976776::FLOAT, 0)::VARCHAR, round(0.004999999999999999::DOUBLE, 2)::VARCHAR, round(4.9999999999999996e-06::DOUBLE, 5)::VARCHAR, round(-4.9999999999999995e-11::DOUBLE, 10)::VARCHAR, round(4.9999999999999997e-23::DOUBLE, 22)::VARCHAR +-- +ok +== +SELECT round(49.99999999999999::DOUBLE, -2)::VARCHAR, round(-499.99999999999994::DOUBLE, -3)::VARCHAR, round(1.4999999999999998::DOUBLE, 0)::VARCHAR +-- +ok +== +SELECT (0.49999999999999994::DOUBLE)::DECIMAL(3,0)::VARCHAR, (0.049999999999999996::DOUBLE)::DECIMAL(3,1)::VARCHAR, (-0.049999999999999996::DOUBLE)::DECIMAL(3,1)::VARCHAR +-- +ok +== +SELECT round(1.5e-22::DOUBLE, 22)::VARCHAR, round(2.5e-22::DOUBLE, 22)::VARCHAR +-- +ok +== +CREATE TABLE doubles AS SELECT * FROM (VALUES (2.675::DOUBLE, 2), (1.005::DOUBLE, 2), (0.125::DOUBLE, 2), (-0.049999999999999996::DOUBLE, 1), (NULL, 2), (2.675::DOUBLE, NULL)) t(d, p) +-- +ok +== +SELECT round(d, p)::VARCHAR, round_even(d, p)::VARCHAR FROM doubles +-- +ok +== +SELECT round(1.5::DOUBLE, 23)::VARCHAR, round_even(1e300::DOUBLE, 10)::VARCHAR, round('inf'::DOUBLE, 2)::VARCHAR, round(NULL::DOUBLE, 2)::VARCHAR +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/numeric/test_round_even.test b/parser/testdata/corpus/sql/function/numeric/test_round_even.test index 85e49b1e..0ca43042 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_round_even.test +++ b/parser/testdata/corpus/sql/function/numeric/test_round_even.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_round_even.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT roundBankers(45, -1) diff --git a/parser/testdata/corpus/sql/function/numeric/test_round_integers.test b/parser/testdata/corpus/sql/function/numeric/test_round_integers.test index 347d2c29..d13a32e2 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_round_integers.test +++ b/parser/testdata/corpus/sql/function/numeric/test_round_integers.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_round_integers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE zz AS diff --git a/parser/testdata/corpus/sql/function/numeric/test_sign_bit.test b/parser/testdata/corpus/sql/function/numeric/test_sign_bit.test index 85f679a6..44c37db0 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_sign_bit.test +++ b/parser/testdata/corpus/sql/function/numeric/test_sign_bit.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_sign_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT signbit(3::{type}), signbit(-3::{type}), signbit(NULL::{type}) diff --git a/parser/testdata/corpus/sql/function/numeric/test_trigo.test b/parser/testdata/corpus/sql/function/numeric/test_trigo.test index 5f652819..07464125 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_trigo.test +++ b/parser/testdata/corpus/sql/function/numeric/test_trigo.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_trigo.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO numbers VALUES (-42),(-1),(0), (1), (42), (NULL) diff --git a/parser/testdata/corpus/sql/function/numeric/test_trunc.test b/parser/testdata/corpus/sql/function/numeric/test_trunc.test index ab5cf649..651c5d9c 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_trunc.test +++ b/parser/testdata/corpus/sql/function/numeric/test_trunc.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_trunc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE truncme(a DOUBLE, b INTEGER, c UINTEGER) diff --git a/parser/testdata/corpus/sql/function/numeric/test_trunc_precision.test b/parser/testdata/corpus/sql/function/numeric/test_trunc_precision.test index 86f805db..8b903ffd 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_trunc_precision.test +++ b/parser/testdata/corpus/sql/function/numeric/test_trunc_precision.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_trunc_precision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO truncme VALUES (42.123456, 37, 19), (-3.141592, -75, 5); diff --git a/parser/testdata/corpus/sql/function/numeric/test_type_resolution.test b/parser/testdata/corpus/sql/function/numeric/test_type_resolution.test index 147db641..144a5023 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_type_resolution.test +++ b/parser/testdata/corpus/sql/function/numeric/test_type_resolution.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_type_resolution.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1::TINYINT + 1::TINYINT diff --git a/parser/testdata/corpus/sql/function/numeric/test_unary.test b/parser/testdata/corpus/sql/function/numeric/test_unary.test index efdc1131..b174a437 100644 --- a/parser/testdata/corpus/sql/function/numeric/test_unary.test +++ b/parser/testdata/corpus/sql/function/numeric/test_unary.test @@ -1,6 +1,6 @@ # source: test/sql/function/numeric/test_unary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (2) diff --git a/parser/testdata/corpus/sql/function/operator/test_arithmetic.test b/parser/testdata/corpus/sql/function/operator/test_arithmetic.test index 45406694..40aa7a2a 100644 --- a/parser/testdata/corpus/sql/function/operator/test_arithmetic.test +++ b/parser/testdata/corpus/sql/function/operator/test_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i+2=5, 5=i+2 FROM integers ORDER BY i diff --git a/parser/testdata/corpus/sql/function/operator/test_arithmetic_sqllogic.test b/parser/testdata/corpus/sql/function/operator/test_arithmetic_sqllogic.test index c1dbaa4e..d3af498d 100644 --- a/parser/testdata/corpus/sql/function/operator/test_arithmetic_sqllogic.test +++ b/parser/testdata/corpus/sql/function/operator/test_arithmetic_sqllogic.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_arithmetic_sqllogic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER); diff --git a/parser/testdata/corpus/sql/function/operator/test_bitwise_ops.test b/parser/testdata/corpus/sql/function/operator/test_bitwise_ops.test index 30df58ee..f6edf5dd 100644 --- a/parser/testdata/corpus/sql/function/operator/test_bitwise_ops.test +++ b/parser/testdata/corpus/sql/function/operator/test_bitwise_ops.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_bitwise_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 << 2, NULL << 2, 2 << NULL diff --git a/parser/testdata/corpus/sql/function/operator/test_bitwise_ops_types.test b/parser/testdata/corpus/sql/function/operator/test_bitwise_ops_types.test index 50eb9627..db3f00af 100644 --- a/parser/testdata/corpus/sql/function/operator/test_bitwise_ops_types.test +++ b/parser/testdata/corpus/sql/function/operator/test_bitwise_ops_types.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_bitwise_ops_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bitwise_test(i TINYINT, j TINYINT) diff --git a/parser/testdata/corpus/sql/function/operator/test_comparison.test b/parser/testdata/corpus/sql/function/operator/test_comparison.test index 43f96683..307074a3 100644 --- a/parser/testdata/corpus/sql/function/operator/test_comparison.test +++ b/parser/testdata/corpus/sql/function/operator/test_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 == 1, 1 = 1, 1 == 0, 1 = 0, 1 == NULL diff --git a/parser/testdata/corpus/sql/function/operator/test_comparison_function_call_types.test b/parser/testdata/corpus/sql/function/operator/test_comparison_function_call_types.test new file mode 100644 index 00000000..2fb5dd22 --- /dev/null +++ b/parser/testdata/corpus/sql/function/operator/test_comparison_function_call_types.test @@ -0,0 +1,49 @@ +# source: test/sql/function/operator/test_comparison_function_call_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT "="([1,2,3], 42) +-- +ok +== +SELECT "IS DISTINCT FROM"([1], 1) +-- +ok +== +SELECT "<"(MAP{1:2}, [1]) +-- +ok +== +SELECT ">="(1, 'x') +-- +ok +== +SELECT "="({a:1,b:2}, 42) +-- +ok +== +SELECT "="([1,2]::INT[2], [1,2]), "<"({a:1,b:2}, {a:1}), "="(['a'], [1]), "!="(['a'], [1]) +-- +ok +== +SELECT "="(1, 1.0), "<"(1, 2::BIGINT), ">="('b', 'a'), "<="(DATE '2000-01-01', TIMESTAMP '2000-01-01 00:00:01'), "IS NOT DISTINCT FROM"(NULL, NULL), "IS DISTINCT FROM"(1, NULL) +-- +ok +== +SELECT "="('a' COLLATE nocase, 'A'), "="(x, 'b') FROM (SELECT 'b'::ENUM('a','b') x) +-- +ok +== +SELECT count(*) FROM range(10) t(i) WHERE ">"(i, 4.5) +-- +ok +== +SET default_collation=nocase +-- +ok +== +SELECT 'a' = 'A', "="('a', 'A') +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/operator/test_conjunction.test b/parser/testdata/corpus/sql/function/operator/test_conjunction.test index f4cb3ddf..cc774ac1 100644 --- a/parser/testdata/corpus/sql/function/operator/test_conjunction.test +++ b/parser/testdata/corpus/sql/function/operator/test_conjunction.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_conjunction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a (i integer, j integer); diff --git a/parser/testdata/corpus/sql/function/operator/test_conjunction_nulls.test b/parser/testdata/corpus/sql/function/operator/test_conjunction_nulls.test new file mode 100644 index 00000000..acbbd985 --- /dev/null +++ b/parser/testdata/corpus/sql/function/operator/test_conjunction_nulls.test @@ -0,0 +1,55 @@ +# source: test/sql/function/operator/test_conjunction_nulls.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE bools AS +SELECT + CASE WHEN i % 5 = 0 THEN NULL ELSE i % 2 = 0 END AS a, + CASE WHEN i % 3 = 0 THEN NULL ELSE i % 7 < 3 END AS b, + i % 4 = 0 AS c, + CASE WHEN i < 1500 THEN NULL ELSE i % 3 = 1 END AS d, + i +FROM range(3001) t(i); +-- +ok +== +CREATE MACRO ref_and(x, y) AS CASE WHEN x IS FALSE OR y IS FALSE THEN false WHEN x IS NULL OR y IS NULL THEN NULL ELSE true END; +-- +ok +== +CREATE MACRO ref_or(x, y) AS CASE WHEN x IS TRUE OR y IS TRUE THEN true WHEN x IS NULL OR y IS NULL THEN NULL ELSE false END; +-- +ok +== +SELECT count(*) FROM (SELECT {pair} FROM bools) t(x, y) WHERE (x AND y) IS DISTINCT FROM ref_and(x, y) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) FROM (SELECT {pair} FROM bools) t(x, y) WHERE (x OR y) IS DISTINCT FROM ref_or(x, y) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT + count(*) FILTER (WHERE (a AND b) IS NULL), + count(*) FILTER (WHERE a AND b), + count(*) FILTER (WHERE NOT (a AND b)), + count(*) FILTER (WHERE (a OR b) IS NULL), + count(*) FILTER (WHERE a OR b), + count(*) FILTER (WHERE NOT (a OR b)) +FROM bools +-- +ok +== +SELECT count(*) FROM bools WHERE (a AND b AND d) IS DISTINCT FROM ref_and(ref_and(a, b), d) +-- +ok +== +SELECT count(*) FROM bools WHERE (a OR b OR d) IS DISTINCT FROM ref_or(ref_or(a, b), d) +-- +ok +== +SELECT count(*) FROM (SELECT CASE WHEN i % 11 = 0 THEN NULL ELSE i END AS v FROM bools) WHERE (v BETWEEN 100 AND 2000) IS DISTINCT FROM ref_and(v >= 100, v <= 2000) +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/operator/test_date_arithmetic.test b/parser/testdata/corpus/sql/function/operator/test_date_arithmetic.test index 15c592ba..55597cbd 100644 --- a/parser/testdata/corpus/sql/function/operator/test_date_arithmetic.test +++ b/parser/testdata/corpus/sql/function/operator/test_date_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_date_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO dates VALUES diff --git a/parser/testdata/corpus/sql/function/operator/test_division_by_zero.test b/parser/testdata/corpus/sql/function/operator/test_division_by_zero.test index a455d22e..1ab880a6 100644 --- a/parser/testdata/corpus/sql/function/operator/test_division_by_zero.test +++ b/parser/testdata/corpus/sql/function/operator/test_division_by_zero.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_division_by_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(i INTEGER); diff --git a/parser/testdata/corpus/sql/function/operator/test_division_overflow.test b/parser/testdata/corpus/sql/function/operator/test_division_overflow.test index 54ceb25e..96e57533 100644 --- a/parser/testdata/corpus/sql/function/operator/test_division_overflow.test +++ b/parser/testdata/corpus/sql/function/operator/test_division_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_division_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (-128)::TINYINT // (-1)::TINYINT diff --git a/parser/testdata/corpus/sql/function/operator/test_in_empty_table.test b/parser/testdata/corpus/sql/function/operator/test_in_empty_table.test index 0fcd87b6..debaf872 100644 --- a/parser/testdata/corpus/sql/function/operator/test_in_empty_table.test +++ b/parser/testdata/corpus/sql/function/operator/test_in_empty_table.test @@ -1,6 +1,6 @@ # source: test/sql/function/operator/test_in_empty_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE test (a INTEGER) diff --git a/parser/testdata/corpus/sql/function/string/format_bytes.test b/parser/testdata/corpus/sql/function/string/format_bytes.test index 7d96b906..34b1c35b 100644 --- a/parser/testdata/corpus/sql/function/string/format_bytes.test +++ b/parser/testdata/corpus/sql/function/string/format_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/format_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT format_bytes(0); diff --git a/parser/testdata/corpus/sql/function/string/format_large_precision.test b/parser/testdata/corpus/sql/function/string/format_large_precision.test index c9509d5e..d7fd1a49 100644 --- a/parser/testdata/corpus/sql/function/string/format_large_precision.test +++ b/parser/testdata/corpus/sql/function/string/format_large_precision.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/format_large_precision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length(format('{:.{}f}', 1.5, 200000000)) diff --git a/parser/testdata/corpus/sql/function/string/hex.test b/parser/testdata/corpus/sql/function/string/hex.test index ba41717b..af9b107b 100644 --- a/parser/testdata/corpus/sql/function/string/hex.test +++ b/parser/testdata/corpus/sql/function/string/hex.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/hex.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT to_hex('duckdb'); @@ -35,7 +35,7 @@ SELECT to_hex(columns('^(.*int|varchar|bignum)$')) FROM test_all_types(); -- ok == -SELECT from_hex(to_hex(columns('^(.*int|varchar|bignum)$'))) FROM test_all_types(); +SELECT from_hex(to_hex(columns('^(.*int|varchar)$'))) FROM test_all_types(); -- ok == @@ -51,7 +51,7 @@ SELECT to_binary(columns('^(.*int|varchar|bignum)$')) FROM test_all_types(); -- ok == -SELECT from_binary(to_binary(columns('^(.*int|varchar|bignum)$'))) FROM test_all_types(); +SELECT from_binary(to_binary(columns('^(.*int|varchar)$'))) FROM test_all_types(); -- ok == diff --git a/parser/testdata/corpus/sql/function/string/hex_bignum.test b/parser/testdata/corpus/sql/function/string/hex_bignum.test new file mode 100644 index 00000000..0c178ec5 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/hex_bignum.test @@ -0,0 +1,65 @@ +# source: test/sql/function/string/hex_bignum.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT to_hex(256::BIGNUM), to_hex(-256::BIGNUM), bin(5::BIGNUM), to_hex(4294967296::BIGNUM * 4294967296::BIGNUM) +-- +ok +== +CREATE TABLE numbers AS SELECT i, s::BIGNUM AS v FROM (VALUES (0, '0'), (1, '1'), (2, '15'), (3, '16'), (4, '255'), (5, '256'), (6, '4096'), (7, '81985529216486895'), (8, '9223372036854775808'), (9, '18446744073709551616'), (10, '170141183460469231731687303715884105728'), (11, '340282366920938463463374607431768211456'), (12, '387165715252267757836693082728079159041'), (13, '1606938044258990275541962092341162602522202993782792835301376'), (14, '-1'), (15, '-15'), (16, '-16'), (17, '-255'), (18, '-256'), (19, '-4096'), (20, '-81985529216486895'), (21, '-9223372036854775808'), (22, '-18446744073709551616'), (23, '-170141183460469231731687303715884105728'), (24, '-340282366920938463463374607431768211456'), (25, '-387165715252267757836693082728079159041'), (26, '-1606938044258990275541962092341162602522202993782792835301376')) t(i, s) +-- +ok +== +SELECT v, to_hex(v), to_binary(v) FROM numbers ORDER BY i +-- +ok +== +SELECT count(*) FROM numbers WHERE hex(v) <> to_hex(v) OR bin(v) <> to_binary(v) +-- +ok +== +SELECT count(*), count(*) FILTER (to_hex(v) = to_hex(v::HUGEINT) AND to_binary(v) = to_binary(v::HUGEINT)) FROM numbers WHERE v >= 0 AND v < '170141183460469231731687303715884105728'::BIGNUM +-- +ok +== +SELECT count(*), count(*) FILTER (to_hex(v) = to_hex(v::UHUGEINT) AND to_binary(v) = to_binary(v::UHUGEINT)) FROM numbers WHERE v >= 0 AND v < '340282366920938463463374607431768211456'::BIGNUM +-- +ok +== +SELECT to_hex(-256::BIGNUM), to_hex(-256::HUGEINT) +-- +ok +== +SELECT count(*), count(*) FILTER (to_hex(v) = '-' || to_hex((-v)::HUGEINT) AND to_binary(v) = '-' || to_binary((-v)::HUGEINT)) FROM numbers WHERE v < 0 AND v > -('170141183460469231731687303715884105728'::BIGNUM) +-- +ok +== +CREATE TABLE with_nulls AS SELECT * FROM (VALUES (1, 255::BIGNUM), (2, NULL), (3, -4096::BIGNUM), (4, NULL)) t(i, v) +-- +ok +== +SELECT i, hex(v), bin(v) FROM with_nulls ORDER BY i +-- +ok +== +SELECT to_hex(NULL::BIGNUM), to_binary(NULL::BIGNUM) +-- +ok +== +SELECT from_hex(to_hex(-1::BIGNUM)) +-- +ok +== +SELECT from_binary(to_binary(-1::BIGNUM)) +-- +ok +== +SELECT to_hex(min(bignum)), to_hex(max(bignum)) FROM test_all_types() +-- +ok +== +SELECT to_binary(min(bignum)), to_binary(max(bignum)) FROM test_all_types() +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/hive_partition_component.test b/parser/testdata/corpus/sql/function/string/hive_partition_component.test index ff2f7315..734e09b0 100644 --- a/parser/testdata/corpus/sql/function/string/hive_partition_component.test +++ b/parser/testdata/corpus/sql/function/string/hive_partition_component.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/hive_partition_component.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT hive_partition_component('year', 2024); diff --git a/parser/testdata/corpus/sql/function/string/like_unicode.test b/parser/testdata/corpus/sql/function/string/like_unicode.test index 12a322d6..7ad73a6d 100644 --- a/parser/testdata/corpus/sql/function/string/like_unicode.test +++ b/parser/testdata/corpus/sql/function/string/like_unicode.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/like_unicode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/md5.test b/parser/testdata/corpus/sql/function/string/md5.test index b4c81184..78c4679e 100644 --- a/parser/testdata/corpus/sql/function/string/md5.test +++ b/parser/testdata/corpus/sql/function/string/md5.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/md5.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select md5('hello'), md5(NULL) diff --git a/parser/testdata/corpus/sql/function/string/nfc_normalize.test b/parser/testdata/corpus/sql/function/string/nfc_normalize.test new file mode 100644 index 00000000..b60eea4e --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/nfc_normalize.test @@ -0,0 +1,75 @@ +# source: test/sql/function/string/nfc_normalize.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT hex(nfc_normalize(chr(4352) || chr(4469) || chr(4519))), + hex(nfc_normalize(chr(44592) || chr(4519))), + hex(nfc_normalize(chr(44032) || chr(4519) || chr(4520))), + hex(nfc_normalize(chr(4352) || chr(4449) || chr(4519) || chr(4520))) +-- +ok +== +SELECT hex(nfc_normalize(chr(44033) || chr(4519))), + hex(nfc_normalize(chr(44032) || chr(4519) || chr(4519))), + hex(nfc_normalize(chr(55176) || chr(4519))), + hex(nfc_normalize(chr(51424) || chr(4519))) +-- +ok +== +SELECT hex(nfc_normalize(chr(4519))), + hex(nfc_normalize('a' || chr(4519))), + hex(nfc_normalize(chr(233) || chr(4519))), + hex(nfc_normalize('e' || chr(769) || chr(4519))) +-- +ok +== +SELECT hex(nfc_normalize(chr(4352) || chr(4449))), + hex(nfc_normalize(chr(44032) || chr(4520))), + hex(nfc_normalize(chr(44032) || chr(4546))), + hex(nfc_normalize(chr(55176) || chr(4546))), + hex(nfc_normalize(chr(44032) || chr(4547))), + hex(nfc_normalize(chr(44032) || chr(4518))) +-- +ok +== +CREATE TABLE hangul (id INTEGER, s VARCHAR) +-- +ok +== +INSERT INTO hangul VALUES + (1, chr(44032) || chr(4519)), + (2, chr(44032)), + (3, NULL), + (4, chr(4352) || chr(4449) || chr(4519)), + (5, chr(44032) || chr(4519) || chr(4520)), + (6, chr(44033)) +-- +ok +== +SELECT id, hex(nfc_normalize(s)) FROM hangul ORDER BY id +-- +ok +== +SELECT id FROM hangul WHERE s COLLATE NFC = chr(44032) ORDER BY id +-- +ok +== +SELECT id FROM hangul WHERE s COLLATE NOCASE.NFC = chr(44032) ORDER BY id +-- +ok +== +SELECT count(*) AS n FROM hangul WHERE s IS NOT NULL GROUP BY s COLLATE NFC ORDER BY n +-- +ok +== +SELECT hex(strip_accents(chr(44032) || chr(4519))), + hex(strip_accents(chr(44032) || chr(769) || chr(4519))), + hex(strip_accents(chr(44032) || chr(4520))) +-- +ok +== +SELECT id FROM hangul WHERE s COLLATE NOACCENT = chr(44032) ORDER BY id +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/null_byte.test b/parser/testdata/corpus/sql/function/string/null_byte.test index 23b8f570..a1c99ca0 100644 --- a/parser/testdata/corpus/sql/function/string/null_byte.test +++ b/parser/testdata/corpus/sql/function/string/null_byte.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/null_byte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT chr(0) diff --git a/parser/testdata/corpus/sql/function/string/overlay.test b/parser/testdata/corpus/sql/function/string/overlay.test index 301763ee..18792884 100644 --- a/parser/testdata/corpus/sql/function/string/overlay.test +++ b/parser/testdata/corpus/sql/function/string/overlay.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/overlay.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT OVERLAY('abcdef' PLACING 'XX' FROM 3) diff --git a/parser/testdata/corpus/sql/function/string/parse_formatted_bytes.test b/parser/testdata/corpus/sql/function/string/parse_formatted_bytes.test index 81d10dba..fc5487ab 100644 --- a/parser/testdata/corpus/sql/function/string/parse_formatted_bytes.test +++ b/parser/testdata/corpus/sql/function/string/parse_formatted_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/parse_formatted_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT parse_formatted_bytes('0 B'); diff --git a/parser/testdata/corpus/sql/function/string/parse_formatted_bytes_exact.test b/parser/testdata/corpus/sql/function/string/parse_formatted_bytes_exact.test new file mode 100644 index 00000000..236f03a6 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/parse_formatted_bytes_exact.test @@ -0,0 +1,25 @@ +# source: test/sql/function/string/parse_formatted_bytes_exact.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT parse_formatted_bytes('9007199254740993 B'); +-- +ok +== +SELECT parse_formatted_bytes('18446744073709551615 B'); +-- +ok +== +SELECT parse_formatted_bytes('1 GB'), parse_formatted_bytes('2 KiB'), parse_formatted_bytes('1.5 KB'), parse_formatted_bytes('1e3 B'); +-- +ok +== +SELECT parse_formatted_bytes('18446744073709551615 KB'); +-- +ok +== +SELECT parse_formatted_bytes('18446744073709551616 B'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/parse_path.test b/parser/testdata/corpus/sql/function/string/parse_path.test index 50b6ae44..d33ff07d 100644 --- a/parser/testdata/corpus/sql/function/string/parse_path.test +++ b/parser/testdata/corpus/sql/function/string/parse_path.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/parse_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (VALUES (parse_path('path/to/file.csv', 'system')), (parse_path('path/to/file.csv\file2.csv', 'both_slash')), (parse_path('path/to/file.csv', 'forward_slash')), (parse_path('path\to\file.csv/file2.csv', 'backslash'))) tbl(i); diff --git a/parser/testdata/corpus/sql/function/string/parse_path_separator.test b/parser/testdata/corpus/sql/function/string/parse_path_separator.test index 29b731a2..71faface 100644 --- a/parser/testdata/corpus/sql/function/string/parse_path_separator.test +++ b/parser/testdata/corpus/sql/function/string/parse_path_separator.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/parse_path_separator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE paths (id INTEGER, path VARCHAR, separator VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/parse_path_windows.test b/parser/testdata/corpus/sql/function/string/parse_path_windows.test index 796eaeef..531e16bc 100644 --- a/parser/testdata/corpus/sql/function/string/parse_path_windows.test +++ b/parser/testdata/corpus/sql/function/string/parse_path_windows.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/parse_path_windows.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (VALUES (parse_path('path\to\file.csv/file2.csv', 'system')), (parse_path('path/to/file.csv\file2.csv', 'both_slash')), (parse_path('path/to/file.csv', 'forward_slash')), (parse_path('path\to\file.csv/file2.csv', 'backslash'))) tbl(i); diff --git a/parser/testdata/corpus/sql/function/string/path_join.test b/parser/testdata/corpus/sql/function/string/path_join.test index 95d5ead5..4de6e570 100644 --- a/parser/testdata/corpus/sql/function/string/path_join.test +++ b/parser/testdata/corpus/sql/function/string/path_join.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/path_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT path_join('dir//subdir/', './file'); diff --git a/parser/testdata/corpus/sql/function/string/regex_capture.test b/parser/testdata/corpus/sql/function/string/regex_capture.test index 41c36f6c..5363070b 100644 --- a/parser/testdata/corpus/sql/function/string/regex_capture.test +++ b/parser/testdata/corpus/sql/function/string/regex_capture.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_capture.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE filenames (filename VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/regex_escape.test b/parser/testdata/corpus/sql/function/string/regex_escape.test index 61b823c3..f50d9cf4 100644 --- a/parser/testdata/corpus/sql/function/string/regex_escape.test +++ b/parser/testdata/corpus/sql/function/string/regex_escape.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_escape.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_escape('https://duckdb.org'); diff --git a/parser/testdata/corpus/sql/function/string/regex_extract.test b/parser/testdata/corpus/sql/function/string/regex_extract.test index 7db882e3..e1692c52 100644 --- a/parser/testdata/corpus/sql/function/string/regex_extract.test +++ b/parser/testdata/corpus/sql/function/string/regex_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract('foobarbaz', 'b..') diff --git a/parser/testdata/corpus/sql/function/string/regex_extract_all.test b/parser/testdata/corpus/sql/function/string/regex_extract_all.test index d5a5af8f..df4e4d7e 100644 --- a/parser/testdata/corpus/sql/function/string/regex_extract_all.test +++ b/parser/testdata/corpus/sql/function/string/regex_extract_all.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_extract_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract_all('1a 2b 14m', '(\d+)', 1); diff --git a/parser/testdata/corpus/sql/function/string/regex_extract_all_struct.test b/parser/testdata/corpus/sql/function/string/regex_extract_all_struct.test index 66b04ae6..ab9034ad 100644 --- a/parser/testdata/corpus/sql/function/string/regex_extract_all_struct.test +++ b/parser/testdata/corpus/sql/function/string/regex_extract_all_struct.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_extract_all_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract_all('Peter:33 Paul:14', '(\w+):(\d+)', ['name','num']) AS res; diff --git a/parser/testdata/corpus/sql/function/string/regex_extract_dictionary.test b/parser/testdata/corpus/sql/function/string/regex_extract_dictionary.test index 5d532f08..1c579fc4 100644 --- a/parser/testdata/corpus/sql/function/string/regex_extract_dictionary.test +++ b/parser/testdata/corpus/sql/function/string/regex_extract_dictionary.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_extract_dictionary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_compression='dictionary' diff --git a/parser/testdata/corpus/sql/function/string/regex_extract_empty_group_name.test b/parser/testdata/corpus/sql/function/string/regex_extract_empty_group_name.test index b854c183..3996aeb0 100644 --- a/parser/testdata/corpus/sql/function/string/regex_extract_empty_group_name.test +++ b/parser/testdata/corpus/sql/function/string/regex_extract_empty_group_name.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_extract_empty_group_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract_all('ababcd', '(ab){2}cd', ['']); diff --git a/parser/testdata/corpus/sql/function/string/regex_filter_pushdown.test b/parser/testdata/corpus/sql/function/string/regex_filter_pushdown.test index cc3fbfde..0c766b46 100644 --- a/parser/testdata/corpus/sql/function/string/regex_filter_pushdown.test +++ b/parser/testdata/corpus/sql/function/string/regex_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE regex(s STRING) diff --git a/parser/testdata/corpus/sql/function/string/regex_operators.test b/parser/testdata/corpus/sql/function/string/regex_operators.test index 9409f2f7..e00fd960 100644 --- a/parser/testdata/corpus/sql/function/string/regex_operators.test +++ b/parser/testdata/corpus/sql/function/string/regex_operators.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_operators.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('regex_match_operator_semantics') diff --git a/parser/testdata/corpus/sql/function/string/regex_operators_v1_5_view.test b/parser/testdata/corpus/sql/function/string/regex_operators_v1_5_view.test index 6e723b53..93d2acb7 100644 --- a/parser/testdata/corpus/sql/function/string/regex_operators_v1_5_view.test +++ b/parser/testdata/corpus/sql/function/string/regex_operators_v1_5_view.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_operators_v1_5_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET regex_match_operator_semantics = 'partial' diff --git a/parser/testdata/corpus/sql/function/string/regex_replace.test b/parser/testdata/corpus/sql/function/string/regex_replace.test index d89c5a2f..614dab7e 100644 --- a/parser/testdata/corpus/sql/function/string/regex_replace.test +++ b/parser/testdata/corpus/sql/function/string/regex_replace.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_replace('foobarbaz', 'b..', 'X') diff --git a/parser/testdata/corpus/sql/function/string/regex_replace_dictionary.test b/parser/testdata/corpus/sql/function/string/regex_replace_dictionary.test new file mode 100644 index 00000000..5b20f81b --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/regex_replace_dictionary.test @@ -0,0 +1,41 @@ +# source: test/sql/function/string/regex_replace_dictionary.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM strings WHERE regexp_replace(s, '://.*', '') = 'abcdefghijklé' +-- +ok +== +SELECT count(*) FILTER (WHERE k = 'abcdefghijklé'), count(*) FILTER (WHERE k = 'äabcdefghijk') FROM (SELECT regexp_replace(s, '://.*$', '') AS k FROM strings) +-- +ok +== +SELECT count(*) FROM strings WHERE regexp_replace(s, '[aeiou]', '_', 'g') LIKE '%_%' +-- +ok +== +SELECT count(*) FROM strings WHERE regexp_replace(s, '(\w+)://(\w+)', '\2://\1') LIKE '%://abcdefghijk%' +-- +ok +== +SELECT count(*) FROM strings WHERE s LIKE 'a%' AND regexp_replace(s, '\C', '') = substr(s, 2) +-- +ok +== +SELECT count(regexp_replace(s, 'a', '\1')) FROM strings +-- +ok +== +PREPARE invalid_constant_pattern AS SELECT regexp_replace(s, '[', '') FROM strings +-- +ok +== +SELECT count(TRY(regexp_replace(s, CASE i % 3 WHEN 0 THEN '^a' ELSE '[' END, ''))) FROM strings +-- +ok +== +SELECT count(TRY(regexp_replace(s, 'a', CASE i % 3 WHEN 0 THEN 'x' ELSE '\1' END))) FROM strings +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/regex_search.test b/parser/testdata/corpus/sql/function/string/regex_search.test index 95fb994b..28207919 100644 --- a/parser/testdata/corpus/sql/function/string/regex_search.test +++ b/parser/testdata/corpus/sql/function/string/regex_search.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_search.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 as FROM VALUES('asdf') t(c0); diff --git a/parser/testdata/corpus/sql/function/string/regex_single_byte.test b/parser/testdata/corpus/sql/function/string/regex_single_byte.test index ea2c3b3e..82064cf1 100644 --- a/parser/testdata/corpus/sql/function/string/regex_single_byte.test +++ b/parser/testdata/corpus/sql/function/string/regex_single_byte.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regex_single_byte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 'ä' AS s, 'aäb' AS s2, '\C' AS p, 'a\C' AS p2 diff --git a/parser/testdata/corpus/sql/function/string/regexp_split_to_table.test b/parser/testdata/corpus/sql/function/string/regexp_split_to_table.test index 2d927994..470b8feb 100644 --- a/parser/testdata/corpus/sql/function/string/regexp_split_to_table.test +++ b/parser/testdata/corpus/sql/function/string/regexp_split_to_table.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regexp_split_to_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_split_to_table('a b c', ' ') diff --git a/parser/testdata/corpus/sql/function/string/regexp_unicode_literal.test b/parser/testdata/corpus/sql/function/string/regexp_unicode_literal.test index 44961633..0884692e 100644 --- a/parser/testdata/corpus/sql/function/string/regexp_unicode_literal.test +++ b/parser/testdata/corpus/sql/function/string/regexp_unicode_literal.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/regexp_unicode_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE data(wsc INT, zipcode VARCHAR) diff --git a/parser/testdata/corpus/sql/function/string/sha1.test b/parser/testdata/corpus/sql/function/string/sha1.test index 2ae30ed1..af72cc16 100644 --- a/parser/testdata/corpus/sql/function/string/sha1.test +++ b/parser/testdata/corpus/sql/function/string/sha1.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/sha1.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sha1('hello'), sha1(NULL) diff --git a/parser/testdata/corpus/sql/function/string/sha256.test b/parser/testdata/corpus/sql/function/string/sha256.test index a2089439..943bd06c 100644 --- a/parser/testdata/corpus/sql/function/string/sha256.test +++ b/parser/testdata/corpus/sql/function/string/sha256.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/sha256.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sha256('hello'), sha256(NULL) diff --git a/parser/testdata/corpus/sql/function/string/strip_accents.test b/parser/testdata/corpus/sql/function/string/strip_accents.test index 89ab3d60..c393d90d 100644 --- a/parser/testdata/corpus/sql/function/string/strip_accents.test +++ b/parser/testdata/corpus/sql/function/string/strip_accents.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/strip_accents.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strip_accents('hello'), strip_accents('héllo') diff --git a/parser/testdata/corpus/sql/function/string/test_array_extract.test b/parser/testdata/corpus/sql/function/string/test_array_extract.test index a1f438db..8c6a36d5 100644 --- a/parser/testdata/corpus/sql/function/string/test_array_extract.test +++ b/parser/testdata/corpus/sql/function/string/test_array_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_array_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(s VARCHAR, off INTEGER); diff --git a/parser/testdata/corpus/sql/function/string/test_ascii.test b/parser/testdata/corpus/sql/function/string/test_ascii.test index 4c038d6e..35ca075d 100644 --- a/parser/testdata/corpus/sql/function/string/test_ascii.test +++ b/parser/testdata/corpus/sql/function/string/test_ascii.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ascii.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ascii('x') diff --git a/parser/testdata/corpus/sql/function/string/test_bar.test b/parser/testdata/corpus/sql/function/string/test_bar.test index 6d8d1440..fcab3ad3 100644 --- a/parser/testdata/corpus/sql/function/string/test_bar.test +++ b/parser/testdata/corpus/sql/function/string/test_bar.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_bar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select bar(x * x, 0, 100) from range(0, 11) t(x) diff --git a/parser/testdata/corpus/sql/function/string/test_bit_length.test b/parser/testdata/corpus/sql/function/string/test_bit_length.test index 9bc1a9b5..9db3e7ba 100644 --- a/parser/testdata/corpus/sql/function/string/test_bit_length.test +++ b/parser/testdata/corpus/sql/function/string/test_bit_length.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_bit_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select BIT_LENGTH(NULL), BIT_LENGTH(''), BIT_LENGTH('$'), BIT_LENGTH('¢'), BIT_LENGTH('€'), BIT_LENGTH('𐍈') diff --git a/parser/testdata/corpus/sql/function/string/test_caseconvert.test b/parser/testdata/corpus/sql/function/string/test_caseconvert.test index 5d5c451f..f7343873 100644 --- a/parser/testdata/corpus/sql/function/string/test_caseconvert.test +++ b/parser/testdata/corpus/sql/function/string/test_caseconvert.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_caseconvert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select UPPER('áaaá'), UPPER('ö'), LOWER('S̈'), UPPER('ω') diff --git a/parser/testdata/corpus/sql/function/string/test_complex_unicode.test b/parser/testdata/corpus/sql/function/string/test_complex_unicode.test index 6018d41b..ae6d8b96 100644 --- a/parser/testdata/corpus/sql/function/string/test_complex_unicode.test +++ b/parser/testdata/corpus/sql/function/string/test_complex_unicode.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_complex_unicode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length_grapheme('S̈a') diff --git a/parser/testdata/corpus/sql/function/string/test_concat.test b/parser/testdata/corpus/sql/function/string/test_concat.test index bfa4ffe7..7b7da344 100644 --- a/parser/testdata/corpus/sql/function/string/test_concat.test +++ b/parser/testdata/corpus/sql/function/string/test_concat.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_concat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s || ' ' || s FROM strings ORDER BY s diff --git a/parser/testdata/corpus/sql/function/string/test_concat_binding.test b/parser/testdata/corpus/sql/function/string/test_concat_binding.test index 18306500..ca5a5ddc 100644 --- a/parser/testdata/corpus/sql/function/string/test_concat_binding.test +++ b/parser/testdata/corpus/sql/function/string/test_concat_binding.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_concat_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select [1] || [2]; diff --git a/parser/testdata/corpus/sql/function/string/test_concat_function.test b/parser/testdata/corpus/sql/function/string/test_concat_function.test index 41867d1e..4b63eaf0 100644 --- a/parser/testdata/corpus/sql/function/string/test_concat_function.test +++ b/parser/testdata/corpus/sql/function/string/test_concat_function.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_concat_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select CONCAT(a, 'SUFFIX') FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_concat_ws.test b/parser/testdata/corpus/sql/function/string/test_concat_ws.test index 4c3099bb..bb124f6c 100644 --- a/parser/testdata/corpus/sql/function/string/test_concat_ws.test +++ b/parser/testdata/corpus/sql/function/string/test_concat_ws.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_concat_ws.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select CONCAT_WS(',',a, 'SUFFIX') FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_contains.test b/parser/testdata/corpus/sql/function/string/test_contains.test index 5b4905ab..05bea91b 100644 --- a/parser/testdata/corpus/sql/function/string/test_contains.test +++ b/parser/testdata/corpus/sql/function/string/test_contains.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CONTAINS('hello world', 'h'), diff --git a/parser/testdata/corpus/sql/function/string/test_contains_long_almost_matching_needle.test b/parser/testdata/corpus/sql/function/string/test_contains_long_almost_matching_needle.test index c6ed7002..39341a64 100644 --- a/parser/testdata/corpus/sql/function/string/test_contains_long_almost_matching_needle.test +++ b/parser/testdata/corpus/sql/function/string/test_contains_long_almost_matching_needle.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_contains_long_almost_matching_needle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT contains(repeat('a', 2000000), repeat('a', 50000) || 'b'), strpos(repeat('a', 2000000) || 'b', repeat('a', 50000) || 'b'), instr(repeat('a', 2000000), repeat('a', 50000)); diff --git a/parser/testdata/corpus/sql/function/string/test_contains_utf8.test b/parser/testdata/corpus/sql/function/string/test_contains_utf8.test index 40deef32..19b279c9 100644 --- a/parser/testdata/corpus/sql/function/string/test_contains_utf8.test +++ b/parser/testdata/corpus/sql/function/string/test_contains_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_contains_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO strings VALUES ('átomo') diff --git a/parser/testdata/corpus/sql/function/string/test_damerau_levenshtein.test b/parser/testdata/corpus/sql/function/string/test_damerau_levenshtein.test index 26570763..65afbd72 100644 --- a/parser/testdata/corpus/sql/function/string/test_damerau_levenshtein.test +++ b/parser/testdata/corpus/sql/function/string/test_damerau_levenshtein.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_damerau_levenshtein.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT damerau_levenshtein('out', 'out') diff --git a/parser/testdata/corpus/sql/function/string/test_format.test b/parser/testdata/corpus/sql/function/string/test_format.test index e731fa9f..39da888a 100644 --- a/parser/testdata/corpus/sql/function/string/test_format.test +++ b/parser/testdata/corpus/sql/function/string/test_format.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_format.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT format('hello'), format(NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_format_extensions.test b/parser/testdata/corpus/sql/function/string/test_format_extensions.test index 996d5773..b0bd4a17 100644 --- a/parser/testdata/corpus/sql/function/string/test_format_extensions.test +++ b/parser/testdata/corpus/sql/function/string/test_format_extensions.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_format_extensions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select printf('%,d', 123456789) diff --git a/parser/testdata/corpus/sql/function/string/test_glob.test b/parser/testdata/corpus/sql/function/string/test_glob.test index b6ce856a..64b18725 100644 --- a/parser/testdata/corpus/sql/function/string/test_glob.test +++ b/parser/testdata/corpus/sql/function/string/test_glob.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_glob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'aaa' GLOB 'bbb' diff --git a/parser/testdata/corpus/sql/function/string/test_glob_utf8.test b/parser/testdata/corpus/sql/function/string/test_glob_utf8.test new file mode 100644 index 00000000..a25ebb17 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/test_glob_utf8.test @@ -0,0 +1,21 @@ +# source: test/sql/function/string/test_glob_utf8.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 'é' GLOB '?', 'é' GLOB '??', '🦆x' GLOB '?x', 'aébc' GLOB 'a?bc' +-- +ok +== +SELECT 'é' GLOB '[é]', 'é' GLOB '[!x]', 'é' GLOB '[a-ö]', 'ü' GLOB '[a-é]' +-- +ok +== +SELECT 'aébc' GLOB '*b?', '🦆x' GLOB '[🦆]x', 'x🦆' GLOB '*[!a]' +-- +ok +== +SELECT 'abc' GLOB 'a?c', 'a]' GLOB 'a[]]', 'a-' GLOB 'a[-]' +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_ilike.test b/parser/testdata/corpus/sql/function/string/test_ilike.test index 8f8e266a..4f7ec285 100644 --- a/parser/testdata/corpus/sql/function/string/test_ilike.test +++ b/parser/testdata/corpus/sql/function/string/test_ilike.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ilike.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'aaa' ILIKE 'bbb' diff --git a/parser/testdata/corpus/sql/function/string/test_ilike_constant_pattern.test b/parser/testdata/corpus/sql/function/string/test_ilike_constant_pattern.test index fc6ffdb9..743c1dc6 100644 --- a/parser/testdata/corpus/sql/function/string/test_ilike_constant_pattern.test +++ b/parser/testdata/corpus/sql/function/string/test_ilike_constant_pattern.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ilike_constant_pattern.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/test_ilike_embedded_null.test b/parser/testdata/corpus/sql/function/string/test_ilike_embedded_null.test index 6c57395d..a072ded6 100644 --- a/parser/testdata/corpus/sql/function/string/test_ilike_embedded_null.test +++ b/parser/testdata/corpus/sql/function/string/test_ilike_embedded_null.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ilike_embedded_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a VARCHAR, b VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/test_ilike_escape.test b/parser/testdata/corpus/sql/function/string/test_ilike_escape.test index 04fa94a1..69165cd6 100644 --- a/parser/testdata/corpus/sql/function/string/test_ilike_escape.test +++ b/parser/testdata/corpus/sql/function/string/test_ilike_escape.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ilike_escape.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 'a%c' ilike 'a$%C' escape '$'; diff --git a/parser/testdata/corpus/sql/function/string/test_ilike_escape_constant_pattern.test b/parser/testdata/corpus/sql/function/string/test_ilike_escape_constant_pattern.test index 811b7712..30cefe22 100644 --- a/parser/testdata/corpus/sql/function/string/test_ilike_escape_constant_pattern.test +++ b/parser/testdata/corpus/sql/function/string/test_ilike_escape_constant_pattern.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_ilike_escape_constant_pattern.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES diff --git a/parser/testdata/corpus/sql/function/string/test_instr.test b/parser/testdata/corpus/sql/function/string/test_instr.test index fae2a1d7..bb9f8f78 100644 --- a/parser/testdata/corpus/sql/function/string/test_instr.test +++ b/parser/testdata/corpus/sql/function/string/test_instr.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_instr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT instr(s,'h') FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_instr_utf8.test b/parser/testdata/corpus/sql/function/string/test_instr_utf8.test index 7962f4e6..6e34abcc 100644 --- a/parser/testdata/corpus/sql/function/string/test_instr_utf8.test +++ b/parser/testdata/corpus/sql/function/string/test_instr_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_instr_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT INSTR(s,'á') FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_issue_1812.test b/parser/testdata/corpus/sql/function/string/test_issue_1812.test index 029f7380..cbb70876 100644 --- a/parser/testdata/corpus/sql/function/string/test_issue_1812.test +++ b/parser/testdata/corpus/sql/function/string/test_issue_1812.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_issue_1812.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (str VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/test_jaccard.test b/parser/testdata/corpus/sql/function/string/test_jaccard.test index 40766933..dd082d4b 100644 --- a/parser/testdata/corpus/sql/function/string/test_jaccard.test +++ b/parser/testdata/corpus/sql/function/string/test_jaccard.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_jaccard.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT jaccard('hello', 'hello') diff --git a/parser/testdata/corpus/sql/function/string/test_jaro_winkler.test b/parser/testdata/corpus/sql/function/string/test_jaro_winkler.test index 2571a738..81e95a59 100644 --- a/parser/testdata/corpus/sql/function/string/test_jaro_winkler.test +++ b/parser/testdata/corpus/sql/function/string/test_jaro_winkler.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_jaro_winkler.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select jaro_winkler_similarity('CRATE', 'TRACE') diff --git a/parser/testdata/corpus/sql/function/string/test_left.test b/parser/testdata/corpus/sql/function/string/test_left.test index a1c7b507..cefa64bf 100644 --- a/parser/testdata/corpus/sql/function/string/test_left.test +++ b/parser/testdata/corpus/sql/function/string/test_left.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_left.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {FUN}('abcd', 0), {FUN}('abc', 1), {FUN}('abc', 2), {FUN}('abc', 3), {FUN}('abc', 4) diff --git a/parser/testdata/corpus/sql/function/string/test_length.test b/parser/testdata/corpus/sql/function/string/test_length.test index d0e77a9d..49585b48 100644 --- a/parser/testdata/corpus/sql/function/string/test_length.test +++ b/parser/testdata/corpus/sql/function/string/test_length.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length(s) FROM strings ORDER BY s diff --git a/parser/testdata/corpus/sql/function/string/test_levenshtein.test b/parser/testdata/corpus/sql/function/string/test_levenshtein.test index a8e3caa2..1477919c 100644 --- a/parser/testdata/corpus/sql/function/string/test_levenshtein.test +++ b/parser/testdata/corpus/sql/function/string/test_levenshtein.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_levenshtein.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT levenshtein('hallo', 'hallo') diff --git a/parser/testdata/corpus/sql/function/string/test_levenshtein_interrupt.test b/parser/testdata/corpus/sql/function/string/test_levenshtein_interrupt.test new file mode 100644 index 00000000..c38e6ca8 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/test_levenshtein_interrupt.test @@ -0,0 +1,17 @@ +# source: test/sql/function/string/test_levenshtein_interrupt.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET max_execution_time=1000; +-- +ok +== +SET max_execution_time=0; +-- +ok +== +SELECT levenshtein('kitten', 'sitting'), damerau_levenshtein('ab', 'ba'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_like.test b/parser/testdata/corpus/sql/function/string/test_like.test index 4387afc6..682f065f 100644 --- a/parser/testdata/corpus/sql/function/string/test_like.test +++ b/parser/testdata/corpus/sql/function/string/test_like.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_like.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'aaa' LIKE 'bbb' diff --git a/parser/testdata/corpus/sql/function/string/test_like_escape.test b/parser/testdata/corpus/sql/function/string/test_like_escape.test index 45e73bd3..125bc1f2 100644 --- a/parser/testdata/corpus/sql/function/string/test_like_escape.test +++ b/parser/testdata/corpus/sql/function/string/test_like_escape.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_like_escape.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '%++' LIKE '*%++' ESCAPE '*'; diff --git a/parser/testdata/corpus/sql/function/string/test_like_many_wildcards.test b/parser/testdata/corpus/sql/function/string/test_like_many_wildcards.test index 665d2729..46a50d9f 100644 --- a/parser/testdata/corpus/sql/function/string/test_like_many_wildcards.test +++ b/parser/testdata/corpus/sql/function/string/test_like_many_wildcards.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_like_many_wildcards.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT like_escape(repeat('a', 30000), repeat('%a', 30000), ''); diff --git a/parser/testdata/corpus/sql/function/string/test_mismatches.test b/parser/testdata/corpus/sql/function/string/test_mismatches.test index 5be0f365..e7abad97 100644 --- a/parser/testdata/corpus/sql/function/string/test_mismatches.test +++ b/parser/testdata/corpus/sql/function/string/test_mismatches.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_mismatches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT mismatches('hallo', 'hallo') diff --git a/parser/testdata/corpus/sql/function/string/test_pad.test b/parser/testdata/corpus/sql/function/string/test_pad.test index 6b7d31b8..04e3bc86 100644 --- a/parser/testdata/corpus/sql/function/string/test_pad.test +++ b/parser/testdata/corpus/sql/function/string/test_pad.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_pad.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select LPAD(NULL, 7, '-'), LPAD('Base', NULL, '-'), LPAD('Base', 7, NULL), LPAD(NULL, NULL, '-'), LPAD(NULL, 7, NULL), LPAD('Base', NULL, NULL), LPAD(NULL, NULL, NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_prefix.test b/parser/testdata/corpus/sql/function/string/test_prefix.test index 7ed8fdf1..2f56a1a8 100644 --- a/parser/testdata/corpus/sql/function/string/test_prefix.test +++ b/parser/testdata/corpus/sql/function/string/test_prefix.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_prefix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT prefix('abcd', 'a') diff --git a/parser/testdata/corpus/sql/function/string/test_printf.test b/parser/testdata/corpus/sql/function/string/test_printf.test index 854211e7..c84aa042 100644 --- a/parser/testdata/corpus/sql/function/string/test_printf.test +++ b/parser/testdata/corpus/sql/function/string/test_printf.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_printf.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT printf('hello'), printf(NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_regex_match_positions.test b/parser/testdata/corpus/sql/function/string/test_regex_match_positions.test index 518078d6..ff704826 100644 --- a/parser/testdata/corpus/sql/function/string/test_regex_match_positions.test +++ b/parser/testdata/corpus/sql/function/string/test_regex_match_positions.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_regex_match_positions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT regexp_extract_all('ab', '$'), regexp_extract_all('ab', 'x*'), regexp_extract_all('axb', 'x*'), regexp_extract_all('aé中', ''); diff --git a/parser/testdata/corpus/sql/function/string/test_repeat.test b/parser/testdata/corpus/sql/function/string/test_repeat.test index bf234ba9..7ea60dfd 100644 --- a/parser/testdata/corpus/sql/function/string/test_repeat.test +++ b/parser/testdata/corpus/sql/function/string/test_repeat.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_repeat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select REPEAT(NULL, NULL), REPEAT(NULL, 3), REPEAT('MySQL', NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_replace.test b/parser/testdata/corpus/sql/function/string/test_replace.test index d5b49593..ade226c9 100644 --- a/parser/testdata/corpus/sql/function/string/test_replace.test +++ b/parser/testdata/corpus/sql/function/string/test_replace.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select REPLACE('This is the main test string', NULL, 'ALT') diff --git a/parser/testdata/corpus/sql/function/string/test_reverse.test b/parser/testdata/corpus/sql/function/string/test_reverse.test index da997e75..465cd4a4 100644 --- a/parser/testdata/corpus/sql/function/string/test_reverse.test +++ b/parser/testdata/corpus/sql/function/string/test_reverse.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_reverse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select REVERSE(''), REVERSE('Hello'), REVERSE('MotörHead'), REVERSE(NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_right.test b/parser/testdata/corpus/sql/function/string/test_right.test index 8e569f46..92d2ab74 100644 --- a/parser/testdata/corpus/sql/function/string/test_right.test +++ b/parser/testdata/corpus/sql/function/string/test_right.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_right.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT RIGHT_GRAPHEME('🦆🤦S̈', 0), RIGHT_GRAPHEME('🦆🤦S̈', 1), RIGHT_GRAPHEME('🦆🤦S̈', 2), RIGHT_GRAPHEME('🦆🤦S̈', 3) diff --git a/parser/testdata/corpus/sql/function/string/test_similar_to.test b/parser/testdata/corpus/sql/function/string/test_similar_to.test index 2d903468..3a3d7f8a 100644 --- a/parser/testdata/corpus/sql/function/string/test_similar_to.test +++ b/parser/testdata/corpus/sql/function/string/test_similar_to.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_similar_to.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'aaa' SIMILAR TO 'bbb' diff --git a/parser/testdata/corpus/sql/function/string/test_similar_to_escape.test b/parser/testdata/corpus/sql/function/string/test_similar_to_escape.test new file mode 100644 index 00000000..79e7b191 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/test_similar_to_escape.test @@ -0,0 +1,25 @@ +# source: test/sql/function/string/test_similar_to_escape.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 'abc' SIMILAR TO 'ABC' ESCAPE 'i'; +-- +error: Parser Error: ESCAPE clause is not supported with SIMILAR TO and regular expression match operators +== +SELECT 'abc' NOT SIMILAR TO 'ABC' ESCAPE 'i'; +-- +error: Parser Error: ESCAPE clause is not supported with SIMILAR TO and regular expression match operators +== +SELECT 'a.c' SIMILAR TO 'a#.c' ESCAPE '#'; +-- +error: Parser Error: ESCAPE clause is not supported with SIMILAR TO and regular expression match operators +== +SELECT 'abc' SIMILAR TO 'abc'; +-- +ok +== +SELECT 'a%c' LIKE 'a#%c' ESCAPE '#'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_similarity_utf8.test b/parser/testdata/corpus/sql/function/string/test_similarity_utf8.test new file mode 100644 index 00000000..e93873b5 --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/test_similarity_utf8.test @@ -0,0 +1,25 @@ +# source: test/sql/function/string/test_similarity_utf8.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT levenshtein('é', 'e'), editdist3('é', 'e'), damerau_levenshtein('é', 'e'), damerau_levenshtein('éü', 'üé'), hamming('é', 'e'), hamming('éa', 'üa') +-- +ok +== +SELECT jaccard('é', 'ü'), jaccard('éa', 'aé'), jaro_similarity('é', 'ü'), jaro_winkler_similarity('é', 'ü'), jaro_similarity('héllo', 'héllo') +-- +ok +== +SELECT jaro_similarity('é', s), jaro_winkler_similarity(s, 'é') FROM (VALUES (1, 'ü'), (2, 'é'), (3, 'e')) t(i, s) ORDER BY i +-- +ok +== +SELECT jaro_similarity('abc', s) FROM (VALUES (1, 'abd'), (2, 'abé'), (3, 'xyz')) t(i, s) ORDER BY i +-- +ok +== +SELECT levenshtein('kitten', 'sitting'), damerau_levenshtein('ca', 'ac'), hamming('abc', 'abd'), jaccard('ab', 'bc'), round(jaro_similarity('martha', 'marhta'), 4) +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_split_empty_string.test b/parser/testdata/corpus/sql/function/string/test_split_empty_string.test new file mode 100644 index 00000000..73dac01a --- /dev/null +++ b/parser/testdata/corpus/sql/function/string/test_split_empty_string.test @@ -0,0 +1,21 @@ +# source: test/sql/function/string/test_split_empty_string.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT a, str_split(a, '') AS s, len(str_split(a, '')) AS n, string_split(a, '') FROM UNNEST(['foo', '', NULL]) AS t(a) ORDER BY n NULLS LAST; +-- +ok +== +SELECT regexp_split_to_array('', ''), regexp_split_to_array('ab', ''); +-- +ok +== +SELECT str_split('', ','), regexp_split_to_array('', ','); +-- +ok +== +SELECT count(*) FROM (SELECT regexp_split_to_table('', '')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_split_part.test b/parser/testdata/corpus/sql/function/string/test_split_part.test index ad8fe4b5..547391e4 100644 --- a/parser/testdata/corpus/sql/function/string/test_split_part.test +++ b/parser/testdata/corpus/sql/function/string/test_split_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_split_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select split_part('a,b,c',',',1) diff --git a/parser/testdata/corpus/sql/function/string/test_starts_with_function.test b/parser/testdata/corpus/sql/function/string/test_starts_with_function.test index 59dd73d0..8b0c887e 100644 --- a/parser/testdata/corpus/sql/function/string/test_starts_with_function.test +++ b/parser/testdata/corpus/sql/function/string/test_starts_with_function.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_starts_with_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT STARTS_WITH('hello world', 'h'), diff --git a/parser/testdata/corpus/sql/function/string/test_starts_with_function_utf8.test b/parser/testdata/corpus/sql/function/string/test_starts_with_function_utf8.test index 83ab2be2..dd2ff425 100644 --- a/parser/testdata/corpus/sql/function/string/test_starts_with_function_utf8.test +++ b/parser/testdata/corpus/sql/function/string/test_starts_with_function_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_starts_with_function_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT starts_with(s,'á') FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_starts_with_operator.test b/parser/testdata/corpus/sql/function/string/test_starts_with_operator.test index 576ecd35..65892bb8 100644 --- a/parser/testdata/corpus/sql/function/string/test_starts_with_operator.test +++ b/parser/testdata/corpus/sql/function/string/test_starts_with_operator.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_starts_with_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'hello world' ^@ 'h', diff --git a/parser/testdata/corpus/sql/function/string/test_starts_with_operator_utf8.test b/parser/testdata/corpus/sql/function/string/test_starts_with_operator_utf8.test index 46344ab0..ff486b8b 100644 --- a/parser/testdata/corpus/sql/function/string/test_starts_with_operator_utf8.test +++ b/parser/testdata/corpus/sql/function/string/test_starts_with_operator_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_starts_with_operator_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s ^@ 'á' FROM strings diff --git a/parser/testdata/corpus/sql/function/string/test_string_array_slice.test b/parser/testdata/corpus/sql/function/string/test_string_array_slice.test index 3a5ad7a1..85df9343 100644 --- a/parser/testdata/corpus/sql/function/string/test_string_array_slice.test +++ b/parser/testdata/corpus/sql/function/string/test_string_array_slice.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_string_array_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'hello'[0:2] diff --git a/parser/testdata/corpus/sql/function/string/test_string_slice.test b/parser/testdata/corpus/sql/function/string/test_string_slice.test index 2caee066..1c8e6317 100644 --- a/parser/testdata/corpus/sql/function/string/test_string_slice.test +++ b/parser/testdata/corpus/sql/function/string/test_string_slice.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_string_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nulltable(n VARCHAR); diff --git a/parser/testdata/corpus/sql/function/string/test_string_split.test b/parser/testdata/corpus/sql/function/string/test_string_split.test index 043b589f..fbd04427 100644 --- a/parser/testdata/corpus/sql/function/string/test_string_split.test +++ b/parser/testdata/corpus/sql/function/string/test_string_split.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_string_split.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT string_split(NULL, NULL) diff --git a/parser/testdata/corpus/sql/function/string/test_subscript.test b/parser/testdata/corpus/sql/function/string/test_subscript.test index 216edf48..5a6f9131 100644 --- a/parser/testdata/corpus/sql/function/string/test_subscript.test +++ b/parser/testdata/corpus/sql/function/string/test_subscript.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_subscript.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '🦆ab'[1], 'abc'[2] diff --git a/parser/testdata/corpus/sql/function/string/test_substring.test b/parser/testdata/corpus/sql/function/string/test_substring.test index 7811aa5a..1b832b49 100644 --- a/parser/testdata/corpus/sql/function/string/test_substring.test +++ b/parser/testdata/corpus/sql/function/string/test_substring.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_substring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {FUN}('🦆ab', 1, 0), {FUN}('abc', 1, 0) diff --git a/parser/testdata/corpus/sql/function/string/test_substring_utf8.test b/parser/testdata/corpus/sql/function/string/test_substring_utf8.test index 11470ab8..2d018e9d 100644 --- a/parser/testdata/corpus/sql/function/string/test_substring_utf8.test +++ b/parser/testdata/corpus/sql/function/string/test_substring_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_substring_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO strings VALUES ('twoñthree₡four🦆end') @@ -47,3 +47,73 @@ SELECT substring_grapheme('ääääää', -10, 2), substring_grapheme('ääää -- ok == +SELECT substring_grapheme('xyé', -4, 1), substring_grapheme('xyé', -3, -1), substring_grapheme('xyzwé', -5, 1), + substring_grapheme('xyzwé', -5, 2), substring_grapheme('xyzwé', -6, 2), substring('xyzwé', -5, 2); +-- +ok +== +SELECT o, l FROM (VALUES (-6, 3), (-5, 1), (-4, 2), (-2, -2), (-1, 1), (-7, 4)) t(o, l) +WHERE substring_grapheme('abcdé', o, l) <> substring('abcdé', o, l); +-- +ok +== +CREATE TABLE clusters AS SELECT * FROM (VALUES + ('zwj', repeat('🦆' || chr(8205), 20) || '🦆'), + ('family', '👨‍👩‍👧‍👦'), + ('flag', '🇳🇱'), + ('combining', 'e' || repeat(chr(769), 30)), + ('hangul', chr(4352) || chr(4449) || chr(4520)), + ('indic', chr(2325) || chr(2381) || chr(2359)), + ('spacing_mark', 'a' || chr(2366)), + ('prepend', chr(1536) || chr(1537) || 'x') +) t(name, c); +-- +ok +== +SELECT name FROM clusters WHERE length_grapheme(c) <> 1; +-- +ok +== +CREATE TABLE windows AS SELECT * FROM (VALUES + ('Cabc', -3, 3, 'abc'), + ('Cabc', -2, 2, 'bc'), + ('Cabc', -4, 1, 'C'), + ('Cabc', -4, 2, 'Ca'), + ('Cabc', -5, 2, 'C'), + ('Cabc', -5, 1, ''), + ('Cabc', -3, -1, 'C'), + ('Cabc', -2, -1, 'a'), + ('Cabc', -1, -3, 'Cab'), + ('Cabc', 1, 1, 'C'), + ('Cabc', 2, 2, 'ab'), + ('abcC', -4, 3, 'abc'), + ('abcC', -2, 1, 'c'), + ('abcC', -1, 1, 'C'), + ('abcC', -5, 2, 'a'), + ('abcC', -5, 1, ''), + ('abcC', -1, -2, 'bc'), + ('abcC', 3, 1, 'c'), + ('abcC', 4, 1, 'C'), + ('abCcd', -4, 3, 'bCc'), + ('abCcd', -3, 1, 'C'), + ('abCcd', -2, 2, 'cd'), + ('abCcd', -1, 1, 'd'), + ('abCcd', -2, -2, 'bC'), + ('abCcd', -6, 3, 'ab'), + ('abCcd', 2, 1, 'b'), + ('abCcd', 3, 2, 'Cc') +) t(template, o, l, expected); +-- +ok +== +SELECT name, template, o, l FROM clusters, windows +WHERE substring_grapheme(replace(template, 'C', c), o, l) <> replace(expected, 'C', c); +-- +ok +== +SELECT substring_grapheme(s, -3), substring_grapheme(s, -4, 1), substring_grapheme(s, -5, 1), + substring_grapheme(s, -5, 2) +FROM (SELECT 'x' || repeat('🇳', 7) || 'abc' AS s); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/string/test_suffix.test b/parser/testdata/corpus/sql/function/string/test_suffix.test index 46c4939e..6803e03e 100644 --- a/parser/testdata/corpus/sql/function/string/test_suffix.test +++ b/parser/testdata/corpus/sql/function/string/test_suffix.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_suffix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT suffix('abcd', 'd') diff --git a/parser/testdata/corpus/sql/function/string/test_to_base.test b/parser/testdata/corpus/sql/function/string/test_to_base.test index 8a151a32..ffcf83a0 100644 --- a/parser/testdata/corpus/sql/function/string/test_to_base.test +++ b/parser/testdata/corpus/sql/function/string/test_to_base.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_to_base.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT to_base(-10, 2) diff --git a/parser/testdata/corpus/sql/function/string/test_translate.test b/parser/testdata/corpus/sql/function/string/test_translate.test index e898e6ea..92e09f8d 100644 --- a/parser/testdata/corpus/sql/function/string/test_translate.test +++ b/parser/testdata/corpus/sql/function/string/test_translate.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_translate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select TRANSLATE('This is the main test string', NULL, 'ALT') diff --git a/parser/testdata/corpus/sql/function/string/test_trim.test b/parser/testdata/corpus/sql/function/string/test_trim.test index f766bf70..ce8a5771 100644 --- a/parser/testdata/corpus/sql/function/string/test_trim.test +++ b/parser/testdata/corpus/sql/function/string/test_trim.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_trim.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select LTRIM(''), LTRIM('Neither'), LTRIM(' Leading'), LTRIM('Trailing '), LTRIM(' Both '), LTRIM(NULL), LTRIM(' ') diff --git a/parser/testdata/corpus/sql/function/string/test_unicode.test b/parser/testdata/corpus/sql/function/string/test_unicode.test index 01a1e5e0..8e6e14e9 100644 --- a/parser/testdata/corpus/sql/function/string/test_unicode.test +++ b/parser/testdata/corpus/sql/function/string/test_unicode.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_unicode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select UNICODE(NULL), UNICODE(''), UNICODE('$'), UNICODE('¢'), UNICODE('€'), UNICODE('𐍈') diff --git a/parser/testdata/corpus/sql/function/string/test_url_encode.test b/parser/testdata/corpus/sql/function/string/test_url_encode.test index 72856937..92e28fdc 100644 --- a/parser/testdata/corpus/sql/function/string/test_url_encode.test +++ b/parser/testdata/corpus/sql/function/string/test_url_encode.test @@ -1,6 +1,6 @@ # source: test/sql/function/string/test_url_encode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT url_encode(''), url_decode('') diff --git a/parser/testdata/corpus/sql/function/struct/struct_extract_null_struct.test b/parser/testdata/corpus/sql/function/struct/struct_extract_null_struct.test new file mode 100644 index 00000000..7e90c016 --- /dev/null +++ b/parser/testdata/corpus/sql/function/struct/struct_extract_null_struct.test @@ -0,0 +1,41 @@ +# source: test/sql/function/struct/struct_extract_null_struct.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT typeof((NULL::STRUCT(a INT, z INT)).z); +-- +ok +== +SELECT typeof(struct_extract_at(NULL::STRUCT(a VARCHAR, b DOUBLE), 2)); +-- +ok +== +SELECT typeof((NULL::TUPLE(INT, VARCHAR))[2]); +-- +ok +== +SELECT (NULL::STRUCT(a VARCHAR)).a UNION ALL SELECT 'x' ORDER BY 1 NULLS FIRST; +-- +ok +== +SELECT (NULL::STRUCT(a INT)).zzz; +-- +ok +== +SELECT struct_extract_at(NULL::STRUCT(a INT), 99); +-- +ok +== +SELECT (NULL::TUPLE(INT))[99]; +-- +ok +== +SELECT ({'a': 1, 'z': 2}).z; +-- +ok +== +SELECT ({'a': 1}).zzz; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/table/multi_file_array_parameter.test b/parser/testdata/corpus/sql/function/table/multi_file_array_parameter.test index ab4516c4..bab49940 100644 --- a/parser/testdata/corpus/sql/function/table/multi_file_array_parameter.test +++ b/parser/testdata/corpus/sql/function/table/multi_file_array_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/function/table/multi_file_array_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv(NULL::INTEGER[3]); diff --git a/parser/testdata/corpus/sql/function/table/query_function_null.test b/parser/testdata/corpus/sql/function/table/query_function_null.test new file mode 100644 index 00000000..0ae82ef6 --- /dev/null +++ b/parser/testdata/corpus/sql/function/table/query_function_null.test @@ -0,0 +1,33 @@ +# source: test/sql/function/table/query_function_null.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE a(i INT); +-- +ok +== +SELECT * FROM query_table(['a', NULL]); +-- +ok +== +PREPARE p AS SELECT * FROM query($1); +-- +ok +== +EXECUTE p(NULL); +-- +ok +== +INSERT INTO a VALUES (3); +-- +ok +== +SELECT * FROM query_table('a'); +-- +ok +== +SELECT * FROM query('SELECT 1'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/table/read_duckdb_empty_projection.test b/parser/testdata/corpus/sql/function/table/read_duckdb_empty_projection.test index 2fe539e4..bfe7f84a 100644 --- a/parser/testdata/corpus/sql/function/table/read_duckdb_empty_projection.test +++ b/parser/testdata/corpus/sql/function/table/read_duckdb_empty_projection.test @@ -1,6 +1,6 @@ # source: test/sql/function/table/read_duckdb_empty_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '__TEST_DIR__/rd_empty_projection.db' AS x diff --git a/parser/testdata/corpus/sql/function/table/read_duckdb_struct_children.test b/parser/testdata/corpus/sql/function/table/read_duckdb_struct_children.test index 121b473c..e4dda8ba 100644 --- a/parser/testdata/corpus/sql/function/table/read_duckdb_struct_children.test +++ b/parser/testdata/corpus/sql/function/table/read_duckdb_struct_children.test @@ -1,6 +1,6 @@ # source: test/sql/function/table/read_duckdb_struct_children.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '__TEST_DIR__/rd_struct.db' AS rds (STORAGE_VERSION 'v2.0.0') diff --git a/parser/testdata/corpus/sql/function/table/system_metadata_empty.test b/parser/testdata/corpus/sql/function/table/system_metadata_empty.test index e35efb8a..9c6f7e6e 100644 --- a/parser/testdata/corpus/sql/function/table/system_metadata_empty.test +++ b/parser/testdata/corpus/sql/function/table/system_metadata_empty.test @@ -1,6 +1,6 @@ # source: test/sql/function/table/system_metadata_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) >= 0 FROM duckdb_grammar_extensions(); diff --git a/parser/testdata/corpus/sql/function/test_scalar_executor.test b/parser/testdata/corpus/sql/function/test_scalar_executor.test index 01c01317..906ddd02 100644 --- a/parser/testdata/corpus/sql/function/test_scalar_executor.test +++ b/parser/testdata/corpus/sql/function/test_scalar_executor.test @@ -1,6 +1,6 @@ # source: test/sql/function/test_scalar_executor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE executor_input(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/time/epoch.test b/parser/testdata/corpus/sql/function/time/epoch.test index a5c47791..be4f8ea2 100644 --- a/parser/testdata/corpus/sql/function/time/epoch.test +++ b/parser/testdata/corpus/sql/function/time/epoch.test @@ -1,6 +1,6 @@ # source: test/sql/function/time/epoch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select epoch(TIME '14:21:13') diff --git a/parser/testdata/corpus/sql/function/time/make_time_nan.test b/parser/testdata/corpus/sql/function/time/make_time_nan.test new file mode 100644 index 00000000..14cae6d7 --- /dev/null +++ b/parser/testdata/corpus/sql/function/time/make_time_nan.test @@ -0,0 +1,21 @@ +# source: test/sql/function/time/make_time_nan.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT make_time(1, 2, 'nan'::DOUBLE); +-- +ok +== +SELECT make_time(1, 2, 'inf'::DOUBLE); +-- +ok +== +SELECT make_timestamp(2000, 1, 1, 12, 30, 'nan'::DOUBLE); +-- +ok +== +SELECT make_time(1, 2, 3.5); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/time/test_date_part.test b/parser/testdata/corpus/sql/function/time/test_date_part.test index bc7ffa82..a0ee59d8 100644 --- a/parser/testdata/corpus/sql/function/time/test_date_part.test +++ b/parser/testdata/corpus/sql/function/time/test_date_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/time/test_date_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE times(d TIME, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/time/test_extract.test b/parser/testdata/corpus/sql/function/time/test_extract.test index d4927659..53564287 100644 --- a/parser/testdata/corpus/sql/function/time/test_extract.test +++ b/parser/testdata/corpus/sql/function/time/test_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/time/test_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE times(i TIME) diff --git a/parser/testdata/corpus/sql/function/time/test_extract_stats.test b/parser/testdata/corpus/sql/function/time/test_extract_stats.test index ac92109e..058b5667 100644 --- a/parser/testdata/corpus/sql/function/time/test_extract_stats.test +++ b/parser/testdata/corpus/sql/function/time/test_extract_stats.test @@ -1,6 +1,6 @@ # source: test/sql/function/time/test_extract_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE expected_result AS FROM (VALUES diff --git a/parser/testdata/corpus/sql/function/time/test_time_bucket_time.test b/parser/testdata/corpus/sql/function/time/test_time_bucket_time.test index d577a17f..e998590a 100644 --- a/parser/testdata/corpus/sql/function/time/test_time_bucket_time.test +++ b/parser/testdata/corpus/sql/function/time/test_time_bucket_time.test @@ -1,6 +1,6 @@ # source: test/sql/function/time/test_time_bucket_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE times(w INTERVAL, t TIME, shift INTERVAL, origin TIME); diff --git a/parser/testdata/corpus/sql/function/timestamp/age.test b/parser/testdata/corpus/sql/function/timestamp/age.test index 762c5586..67552827 100644 --- a/parser/testdata/corpus/sql/function/timestamp/age.test +++ b/parser/testdata/corpus/sql/function/timestamp/age.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/age.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT AGE(TIMESTAMP '1957-06-13') t diff --git a/parser/testdata/corpus/sql/function/timestamp/current_time.test b/parser/testdata/corpus/sql/function/timestamp/current_time.test index 6fd8be29..ef14ec4d 100644 --- a/parser/testdata/corpus/sql/function/timestamp/current_time.test +++ b/parser/testdata/corpus/sql/function/timestamp/current_time.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/current_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='gregorian'; diff --git a/parser/testdata/corpus/sql/function/timestamp/current_timestamp.test b/parser/testdata/corpus/sql/function/timestamp/current_timestamp.test index 65feac5e..4d4bfcd0 100644 --- a/parser/testdata/corpus/sql/function/timestamp/current_timestamp.test +++ b/parser/testdata/corpus/sql/function/timestamp/current_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/current_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone = 'America/Chihuahua'; diff --git a/parser/testdata/corpus/sql/function/timestamp/date_sub_diff.test b/parser/testdata/corpus/sql/function/timestamp/date_sub_diff.test index 9305c887..b6713f4d 100644 --- a/parser/testdata/corpus/sql/function/timestamp/date_sub_diff.test +++ b/parser/testdata/corpus/sql/function/timestamp/date_sub_diff.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/date_sub_diff.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH parts(part) AS ( diff --git a/parser/testdata/corpus/sql/function/timestamp/date_trunc_fixed_overflow.test b/parser/testdata/corpus/sql/function/timestamp/date_trunc_fixed_overflow.test new file mode 100644 index 00000000..87f5025e --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/date_trunc_fixed_overflow.test @@ -0,0 +1,17 @@ +# source: test/sql/function/timestamp/date_trunc_fixed_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT date_trunc('{part}', make_timestamp(-9223372036854775806)); +-- +ok +== +SELECT date_trunc('day', TIMESTAMP '2020-01-01 12:34:56'); +-- +ok +== +SELECT date_trunc('hour', TIMESTAMP '1900-01-01 12:34:56'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/epoch.test b/parser/testdata/corpus/sql/function/timestamp/epoch.test index 5d805564..9b9846cb 100644 --- a/parser/testdata/corpus/sql/function/timestamp/epoch.test +++ b/parser/testdata/corpus/sql/function/timestamp/epoch.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/epoch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/function/timestamp/icu_datepart_calendar_statistics.test b/parser/testdata/corpus/sql/function/timestamp/icu_datepart_calendar_statistics.test index f39e9d47..79011f51 100644 --- a/parser/testdata/corpus/sql/function/timestamp/icu_datepart_calendar_statistics.test +++ b/parser/testdata/corpus/sql/function/timestamp/icu_datepart_calendar_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/icu_datepart_calendar_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='UTC'; diff --git a/parser/testdata/corpus/sql/function/timestamp/icu_function_stability.test b/parser/testdata/corpus/sql/function/timestamp/icu_function_stability.test new file mode 100644 index 00000000..44f01193 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/icu_function_stability.test @@ -0,0 +1,21 @@ +# source: test/sql/function/timestamp/icu_function_stability.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +LOAD icu; +-- +ok +== +SELECT function_name, parameter_types::VARCHAR, stability +FROM duckdb_functions() +WHERE function_name IN ('age', 'current_localtimestamp', 'epoch', 'make_timestamptz', 'strftime') + AND (list_contains(parameter_types, 'TIMESTAMP WITH TIME ZONE') OR function_name IN ('current_localtimestamp', 'make_timestamptz')) +ORDER BY ALL; +-- +ok +== +SELECT DISTINCT proname, provolatile FROM pg_proc WHERE proname IN ('now', 'strftime') ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/icu_get_time_overflow.test b/parser/testdata/corpus/sql/function/timestamp/icu_get_time_overflow.test index 73b2d698..41385a71 100644 --- a/parser/testdata/corpus/sql/function/timestamp/icu_get_time_overflow.test +++ b/parser/testdata/corpus/sql/function/timestamp/icu_get_time_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/icu_get_time_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='{tz}'; diff --git a/parser/testdata/corpus/sql/function/timestamp/icu_timestamptz_ns_to_date_min.test b/parser/testdata/corpus/sql/function/timestamp/icu_timestamptz_ns_to_date_min.test index 6af580d8..525a376a 100644 --- a/parser/testdata/corpus/sql/function/timestamp/icu_timestamptz_ns_to_date_min.test +++ b/parser/testdata/corpus/sql/function/timestamp/icu_timestamptz_ns_to_date_min.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/icu_timestamptz_ns_to_date_min.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TIMESTAMPTZ_NS '1677-09-21 00:12:43.145225+00'::DATE; diff --git a/parser/testdata/corpus/sql/function/timestamp/icu_try_cast_varchar_timestamptz_range.test b/parser/testdata/corpus/sql/function/timestamp/icu_try_cast_varchar_timestamptz_range.test index 943e6ca0..58e27b1c 100644 --- a/parser/testdata/corpus/sql/function/timestamp/icu_try_cast_varchar_timestamptz_range.test +++ b/parser/testdata/corpus/sql/function/timestamp/icu_try_cast_varchar_timestamptz_range.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/icu_try_cast_varchar_timestamptz_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='America/New_York'; diff --git a/parser/testdata/corpus/sql/function/timestamp/make_date.test b/parser/testdata/corpus/sql/function/timestamp/make_date.test index 7f4a7847..04bcc8ea 100644 --- a/parser/testdata/corpus/sql/function/timestamp/make_date.test +++ b/parser/testdata/corpus/sql/function/timestamp/make_date.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/make_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS dates (d date); diff --git a/parser/testdata/corpus/sql/function/timestamp/strptime_timestamp_ns_range.test b/parser/testdata/corpus/sql/function/timestamp/strptime_timestamp_ns_range.test new file mode 100644 index 00000000..f8972f36 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/strptime_timestamp_ns_range.test @@ -0,0 +1,29 @@ +# source: test/sql/function/timestamp/strptime_timestamp_ns_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT strptime('2262-04-11 23:47:16.854775807', '%Y-%m-%d %H:%M:%S.%n'); +-- +ok +== +SELECT try_strptime('2262-04-11 23:47:16.854775807', '%Y-%m-%d %H:%M:%S.%n'); +-- +ok +== +SELECT strptime('2262-04-11 23:47:16.854775806', '%Y-%m-%d %H:%M:%S.%n') = '2262-04-11 23:47:16.854775806'::TIMESTAMP_NS; +-- +ok +== +SELECT strptime('1677-09-21 00:12:43.145224194', '%Y-%m-%d %H:%M:%S.%n') = '1677-09-21 00:12:43.145224194'::TIMESTAMP_NS; +-- +ok +== +SELECT strptime('1677-09-21 00:12:43.145224193', '%Y-%m-%d %H:%M:%S.%n'); +-- +ok +== +SELECT strptime('2020-01-01 10:00:00.123456789', '%Y-%m-%d %H:%M:%S.%n')::VARCHAR; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/strptime_year_day_366.test b/parser/testdata/corpus/sql/function/timestamp/strptime_year_day_366.test new file mode 100644 index 00000000..2f173b48 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/strptime_year_day_366.test @@ -0,0 +1,21 @@ +# source: test/sql/function/timestamp/strptime_year_day_366.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT strptime('2021 366', '%Y %j'); +-- +ok +== +SELECT try_strptime('2021 366', '%Y %j'); +-- +ok +== +SELECT strptime('2020 366', '%Y %j'), strptime('2021 365', '%Y %j'), strptime('2021 001', '%Y %j'); +-- +ok +== +SELECT strptime('2021 400', '%Y %j'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_date_diff_epoch.test b/parser/testdata/corpus/sql/function/timestamp/test_date_diff_epoch.test index 2ad2d689..0b979af7 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_date_diff_epoch.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_date_diff_epoch.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_date_diff_epoch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/function/timestamp/test_date_part.test b/parser/testdata/corpus/sql/function/timestamp/test_date_part.test index 23d081de..bbf4d82d 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_date_part.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_date_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_date_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO timestamps VALUES @@ -278,3 +278,16 @@ FROM parts; -- ok == +SELECT t, + hour(t) AS h, + minute(t) AS m, + second(t) AS s, + date_part('second', t) AS dp_second, + extract('microsecond' FROM t) AS us, + epoch_ns(t) % 1000000000 AS ns_of_second +FROM (VALUES ('2026-07-01 09:59:59.999999533'::TIMESTAMP_NS), + ('2026-07-01 09:32:06.999999533'::TIMESTAMP_NS), + ('2026-07-01 09:32:06.999999499'::TIMESTAMP_NS)) v(t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_extract.test b/parser/testdata/corpus/sql/function/timestamp/test_extract.test index c2057845..74ef0332 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_extract.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(i TIMESTAMP) diff --git a/parser/testdata/corpus/sql/function/timestamp/test_extract_ms.test b/parser/testdata/corpus/sql/function/timestamp/test_extract_ms.test index af3e0fc3..14f64f0a 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_extract_ms.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_extract_ms.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_extract_ms.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(i TIMESTAMP); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_age.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_age.test index aea2605a..a7c6137d 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_age.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_age.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_age.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT AGE(TIMESTAMPTZ '1957-06-13') t; diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd.test index 452298f4..647923b6 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_dateadd.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '2021-12-01 13:54:48Z'::TIMESTAMPTZ + INTERVAL 1 DAY; @@ -66,6 +66,10 @@ select 'epoch'::timestamptz + '-9223372022400001000 microseconds'::interval -- ok == +select 'epoch'::timestamptz + '-9223372036854775807 microseconds'::interval +-- +ok +== SELECT iv, iv + '2021-12-01 13:54:48.123456Z'::TIMESTAMPTZ FROM intervals; -- ok @@ -90,6 +94,10 @@ select '-9223372022400001000 microseconds'::interval + 'epoch'::timestamptz -- ok == +select '-9223372036854775807 microseconds'::interval + 'epoch'::timestamptz +-- +ok +== select 'infinity'::timestamptz + '1 microsecond'::interval -- ok @@ -122,6 +130,10 @@ select 'epoch'::timestamptz - '9223372022400001000 microseconds'::interval -- ok == +select 'epoch'::timestamptz - '9223372036854775807 microseconds'::interval +-- +ok +== select 'infinity'::timestamptz - '1 day'::interval -- ok @@ -167,51 +179,14 @@ SELECT ts + (INTERVAL (-40) day) FROM limits WHERE label = 'tsmin'; -- ok == -SELECT ts + (INTERVAL (-1) hour) FROM limits WHERE label = 'tsmin'; --- -ok -== SELECT ts + (INTERVAL (-14) hour) FROM limits WHERE label = 'tsmin'; -- ok == -SELECT ts + (INTERVAL (-1) minute) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-72) minute) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-1) second) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-118) second) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-1) millisecond) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-150) millisecond) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-1) microsecond) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + (INTERVAL (-485) microsecond) FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + INTERVAL (-150) millisecond FROM limits WHERE label = 'tsmin'; --- -ok -== -SELECT ts + INTERVAL (-485) microsecond FROM limits WHERE label = 'tsmin'; +SELECT iv, ts + iv FROM limits, intervals +WHERE label = 'tsmin' + AND iv < INTERVAL 0 SECONDS + AND iv > INTERVAL (-2) HOUR; -- ok == diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd_ns.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd_ns.test new file mode 100644 index 00000000..03ded69a --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_dateadd_ns.test @@ -0,0 +1,188 @@ +# source: test/sql/function/timestamp/test_icu_dateadd_ns.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS + INTERVAL 1 DAY; +-- +ok +== +SELECT typeof('2021-12-01'::TIMESTAMPTZ_NS + INTERVAL 1 DAY), + typeof(INTERVAL 1 DAY + '2021-12-01'::TIMESTAMPTZ_NS), + typeof('2021-12-01'::TIMESTAMPTZ_NS - INTERVAL 1 DAY); +-- +ok +== +SELECT iv, '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS + iv FROM intervals; +-- +ok +== +SELECT iv, iv + '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS FROM intervals +WHERE iv + '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS IS DISTINCT FROM '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS + iv; +-- +ok +== +SELECT iv, '2021-12-01 13:54:48.123456789Z'::TIMESTAMPTZ_NS - iv FROM intervals; +-- +ok +== +SELECT iv, '1962-07-31 12:20:48.123456789Z'::TIMESTAMPTZ_NS + iv FROM intervals; +-- +ok +== +SELECT '1962-07-31 12:20:48.000000001Z'::TIMESTAMPTZ_NS + INTERVAL '-1 microsecond', + '1962-07-31 12:20:48.000000001Z'::TIMESTAMPTZ_NS - INTERVAL '1 microsecond'; +-- +ok +== +SELECT '1999-12-31 16:00:00.000000001-08'::TIMESTAMPTZ_NS + INTERVAL 2400 hours; +-- +ok +== +SELECT INTERVAL 2400 hours + '1999-12-31 16:00:00.000000001-08'::TIMESTAMPTZ_NS; +-- +ok +== +SELECT '2000-04-09 17:00:00.000000001-07'::TIMESTAMPTZ_NS - INTERVAL 2400 hours; +-- +ok +== +SELECT make_timestamp_ns(1638366888123456789 + i * 1000000000)::TIMESTAMPTZ_NS + INTERVAL 1 MONTH FROM range(3) t(i); +-- +ok +== +SELECT make_timestamp_ns(-234000000000000000 + i)::TIMESTAMPTZ_NS - INTERVAL 1 MICROSECOND FROM range(-1, 2) t(i); +-- +ok +== +SELECT NULL::TIMESTAMPTZ_NS + INTERVAL 1 day, INTERVAL 1 day + NULL::TIMESTAMPTZ_NS, NULL::TIMESTAMPTZ_NS - INTERVAL 1 day, + '2021-12-01'::TIMESTAMPTZ_NS + NULL::INTERVAL, '2021-12-01'::TIMESTAMPTZ_NS - NULL::INTERVAL; +-- +ok +== +SELECT 'infinity'::TIMESTAMPTZ_NS + INTERVAL '1 microsecond', + INTERVAL '1 microsecond' + 'infinity'::TIMESTAMPTZ_NS, + 'infinity'::TIMESTAMPTZ_NS - INTERVAL '1 day'; +-- +ok +== +SELECT '-infinity'::TIMESTAMPTZ_NS + INTERVAL '1 microsecond', + INTERVAL '1 microsecond' + '-infinity'::TIMESTAMPTZ_NS, + '-infinity'::TIMESTAMPTZ_NS - INTERVAL '1 day'; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS, '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS - INTERVAL 1 microsecond, + '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS + INTERVAL (-1) microsecond; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS - INTERVAL 1 month, + '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS - INTERVAL 1 year; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS + INTERVAL 1 microsecond; +-- +ok +== +SELECT INTERVAL 1 microsecond + '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS - INTERVAL (-1) microsecond; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS + INTERVAL 1 day; +-- +ok +== +SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS + INTERVAL 1 month; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS + INTERVAL 1 microsecond, + '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS - INTERVAL (-1) microsecond; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS + INTERVAL 1 month, + '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS + INTERVAL 1 year; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS - INTERVAL 1 microsecond; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS + INTERVAL (-1) microsecond; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS - INTERVAL 1 day; +-- +ok +== +SELECT '1677-09-21 00:12:43.145224192+00'::TIMESTAMPTZ_NS - INTERVAL 1 month; +-- +ok +== +SELECT '2000-01-01'::TIMESTAMPTZ_NS + INTERVAL '9223372036854775807 microseconds'; +-- +ok +== +SELECT '2000-01-01'::TIMESTAMPTZ_NS - INTERVAL '9223372036854775807 microseconds'; +-- +ok +== +SELECT TIMESTAMPTZ_NS '2024-01-01 12:00:00+00' - INTERVAL '-4611686018427387904 microseconds -4611686018427387904 microseconds'; +-- +ok +== +SET TimeZone = 'Asia/Kolkata'; +-- +ok +== +SELECT '2000-01-31 01:02:03.123456789+05:30'::TIMESTAMPTZ_NS + INTERVAL 1 month, + '2000-03-31 01:02:03.123456789+05:30'::TIMESTAMPTZ_NS - INTERVAL 1 month; +-- +ok +== +SELECT '1920-12-12 01:02:02.123456789+05:30'::TIMESTAMPTZ_NS + INTERVAL '-1 month 400 day'; +-- +ok +== +SELECT '1920-12-12 01:02:02.123456789+05:30'::TIMESTAMPTZ_NS + INTERVAL '1 month -400 day', + '1920-12-12 01:02:02.123456789+05:30'::TIMESTAMPTZ_NS - INTERVAL '-1 month 400 day'; +-- +ok +== +SET TimeZone = 'Europe/London'; +-- +ok +== +SELECT '2000-03-25 12:00:00.000000123+00'::TIMESTAMPTZ_NS + INTERVAL 1 day, + '2000-03-25 12:00:00.000000123+00'::TIMESTAMPTZ_NS + INTERVAL 24 hours; +-- +ok +== +SELECT '2000-10-28 12:00:00.000000123+01'::TIMESTAMPTZ_NS + INTERVAL 1 day, + '2000-10-28 12:00:00.000000123+01'::TIMESTAMPTZ_NS + INTERVAL 24 hours; +-- +ok +== +SELECT '2000-03-26 12:00:00.000000123+01'::TIMESTAMPTZ_NS - INTERVAL 1 day, + '2000-03-26 12:00:00.000000123+01'::TIMESTAMPTZ_NS - INTERVAL 24 hours; +-- +ok +== +SELECT '2000-10-29 12:00:00.000000123+00'::TIMESTAMPTZ_NS - INTERVAL 1 day, + '2000-10-29 12:00:00.000000123+00'::TIMESTAMPTZ_NS - INTERVAL 24 hours; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_datediff.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_datediff.test index 4c17c535..bae481cc 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_datediff.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_datediff.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_datediff.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE datetime1 AS diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart.test index 60b287f4..3c56256b 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_datepart.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart_ns.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart_ns.test new file mode 100644 index 00000000..763d0eaa --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_datepart_ns.test @@ -0,0 +1,57 @@ +# source: test/sql/function/timestamp/test_icu_datepart_ns.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE OR REPLACE TABLE nanos (ns TIMESTAMPTZ_NS); +-- +ok +== +INSERT INTO nanos VALUES ('2026-10-12 12:34:56.987654321'::TIMESTAMP_NS AT TIME ZONE 'UTC'); +-- +ok +== +INSERT INTO nanos VALUES ('1969-12-31 12:34:56.123456789'::TIMESTAMP_NS AT TIME ZONE 'UTC'); +-- +ok +== +FROM nanos; +-- +ok +== +SELECT date_part('day', ns) +FROM nanos; +-- +ok +== +SELECT date_part('microsecond', ns) +FROM nanos; +-- +ok +== +SELECT last_day(ns) +FROM nanos; +-- +ok +== +SELECT monthname(ns) +FROM nanos; +-- +ok +== +SELECT dayname(ns) +FROM nanos; +-- +ok +== +SELECT date_part(['day', 'microsecond',], ns) +FROM nanos; +-- +ok +== +SELECT + day('1969-12-31'::TIMESTAMPTZ_NS) AS d, + day('1969-12-31'::TIMESTAMPTZ) AS d_us; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_datesub.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_datesub.test index 4bc235f1..07c7e32e 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_datesub.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_datesub.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_datesub.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select DATESUB('month', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-29 13:00:00-08'::TIMESTAMPTZ); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_datetrunc.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_datetrunc.test index fd89cdc0..29e4df27 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_datetrunc.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_datetrunc.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_datetrunc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(d TIMESTAMPTZ, s VARCHAR); @@ -133,3 +133,15 @@ select date_trunc('day', '2024-05-06 16:09:28+05:00'::timestamptz) >= '2024-05-0 -- ok == +SELECT date_trunc('day', '2026-10-12 12:34:56.123456789'::TIMESTAMP_NS AT TIME ZONE 'UTC'); +-- +ok +== +SELECT date_trunc('microsecond', '2026-10-12 12:34:56.123456789'::TIMESTAMP_NS AT TIME ZONE 'UTC'); +-- +ok +== +SELECT date_trunc('microsecond', '1969-12-31 12:34:56.123456789'::TIMESTAMP_NS AT TIME ZONE 'UTC'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_makedate.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_makedate.test index 016d6da8..da7850fb 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_makedate.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_makedate.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_makedate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(ts TIMESTAMPTZ) diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_strftime.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_strftime.test index 9e7186d0..acafe451 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_strftime.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_strftime.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_strftime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps AS SELECT ts::TIMESTAMPTZ AS ts FROM (VALUES diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_strptime.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_strptime.test index 338d3e28..d3ce4926 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_strptime.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_strptime.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_strptime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select strptime('2022-03-05 17:59:17.877 CST', '%Y-%m-%d %H:%M:%S.%g %Z'); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_repeated_local_time.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_repeated_local_time.test index f9e595c1..b905ba2f 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_repeated_local_time.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_repeated_local_time.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_time_bucket_repeated_local_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT time_bucket(INTERVAL '1 month', TIMESTAMPTZ '2026-11-01 04:21:00+00', 'America/Havana') AS b, b <= TIMESTAMPTZ '2026-11-01 04:21:00+00' diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz.test index c73e65db..1316433c 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_icu_time_bucket_timestamptz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps_tz(w INTERVAL, t TIMESTAMPTZ, shift INTERVAL, origin TIMESTAMPTZ, timezone VARCHAR); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz_ns.test b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz_ns.test new file mode 100644 index 00000000..58689962 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_icu_time_bucket_timestamptz_ns.test @@ -0,0 +1,208 @@ +# source: test/sql/function/timestamp/test_icu_time_bucket_timestamptz_ns.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE timestamps_tz_ns(w INTERVAL, t TIMESTAMPTZ_NS, shift INTERVAL, origin TIMESTAMPTZ, timezone VARCHAR); +-- +ok +== +INSERT INTO timestamps_tz_ns VALUES ('10 days', '-infinity', '0 days', '1970-01-05 00:00:00+00', 'UTC'), + ('333 microseconds', '1907-11-20 04:00:00+08', '0 microseconds', '1970-03-06 00:00:00+00', 'UTC'), + ('333 microseconds', '1970-01-01 00:00:00+00', '444 microseconds', '1970-01-05 00:05:05.006006+03', 'America/Los_Angeles'), + ('333 microseconds', '1979-04-10 02:02:05.003003123-03', '-444 microseconds', '1962-12-10 00:05:05.006006-03', 'America/Los_Angeles'), + ('333 milliseconds', '1981-09-30 02:02:06.003003456+00', '0 milliseconds', '1970-02-05 00:00:00+00', 'UTC'), + ('333 milliseconds', '1982-06-15 02:02:07.003003789+04', '444 milliseconds', '1970-11-15 00:05:05.006006+04', 'Asia/Aden'), + ('333 milliseconds', '1985-02-20 02:02:08.003003012-04', '-444 milliseconds', '1980-08-05 00:05:05.006006-04', 'Asia/Aden'), + ('333 seconds', '1989-06-08 02:02:09.003003234+00', '0 seconds', '1970-11-25 00:00:00+00', 'UTC'), + ('333 seconds', '1990-07-11 02:02:10.003003567+02', '444 seconds', '1970-04-10 00:05:05.006006+02', 'Pacific/Guam'), + ('333 seconds', '1991-05-12 02:02:11.003003890-02', '-444 seconds', '1971-01-05 00:05:05.006006-02', 'Pacific/Guam'), + ('333 minutes', '1992-10-17 02:02:12.003003123+00', '0 minutes', '1950-04-24 00:00:00+00', 'UTC'), + ('333 minutes', '1994-12-05 02:02:13.003003456+05', '444 minute', '1970-06-09 00:05:05.006006+05', 'Europe/Berlin'), + ('333 minutes', '1997-01-02 02:02:14.003003789-05', '-444 minute', '1970-07-06 00:05:05.006006-05', 'Europe/Berlin'), + ('333 hours', '1999-04-26 02:02:15.003003012+00', '0 hours', '1970-02-05 00:00:00+00', 'UTC'), + ('333 hours', '2000-01-01 00:00:00+00', '444 hours', '1970-01-05 00:05:05.006006+01', 'Europe/London'), + ('333 hours', '2000-01-03 00:00:00+00', '-444 hours', '1970-03-15 00:05:05.006006-01', 'Europe/London'), + ('333 hours', '2000-03-26 02:00:00+01', '0 hours', '1980-10-05 00:00:00+00', 'Europe/London'), + ('333 hours', '2000-04-02 03:00:00-07', '0 hours', '1990-05-20 00:00:00+00', 'Europe/London'), + ('333 hours', '2000-10-29 01:00:00+00', '0 hours', '2010-07-27 00:00:00+00', 'Europe/London'), + ('333 hours', '2000-10-29 01:00:00-08', '0 hours', '2010-07-27 00:00:00+00', 'Europe/London'), + ('10 days', '2008-12-31 23:59:59.999999000+00', '0 days', '1970-02-27 00:00:00+00', 'UTC'), + ('1 week', '2010-05-03 02:02:19.003003345+00', '0 days', '1970-07-25 00:00:00+00', 'UTC'), + ('10 days', '2013-08-19 02:02:20.003003678+02', '2 days 4 hours', '2003-03-24 00:05:05.006006+02', 'Asia/Kolkata'), + ('10 days', '2014-07-15 02:02:21.003003901-02', '-2 days 4 hours', '1970-04-12 00:05:05.006006-02', 'Asia/Kolkata'), + ('2 months', '2016-03-21 02:02:22.003003234+00', '0 months', '1970-11-05 00:00:00+00', 'UTC'), + ('2 months', '2018-02-01 02:02:23.003003567+09', '1 month 1 week', '1970-05-07 00:05:05.006006+09', 'Australia/Sydney'), + ('2 months', '2019-09-30 02:02:24.003003890-09', '-1 month 1 week', '1969-10-09 00:05:05.006006-09', 'Australia/Sydney'), + ('2 year', '2020-03-20 02:02:25.003003123+11', '6 months', '2032-06-29 00:05:05.006006+11', 'Asia/Yekaterinburg'), + ('2 year', '2022-07-20 02:02:26.003003456-11', '-6 months', '1969-11-14 00:05:05.006006-11', 'Asia/Yekaterinburg'), + ('10 days', '2024-08-12 02:02:26.003003789+07', '1 year', '-infinity', 'Asia/Tokyo'), + ('10 days', '2032-12-18 02:02:26.003003012-07', '-1 year', 'infinity', 'Asia/Tokyo'), + ('10 days', 'infinity', '0 days', '1970-01-01 00:00:00+00', 'UTC'), +; +-- +ok +== +select t, time_bucket('56 seconds'::interval, t) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('3 days'::interval, t) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('3 years'::interval, t) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket(null::interval, t) from timestamps_tz_ns; +-- +ok +== +select time_bucket('3 years'::interval, null::timestamptz) from timestamps_tz_ns; +-- +ok +== +select w, t, time_bucket(w, t) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('4 seconds'::interval, t, '2 seconds'::interval) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('4 days'::interval, t, '6 hours'::interval) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('3 months'::interval, t, '6 days 11 hours'::interval) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket(null::interval, t, '2 seconds'::interval) from timestamps_tz_ns; +-- +ok +== +select time_bucket('3 months'::interval, null::timestamptz, '2 seconds'::interval) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('3 months'::interval, t, null::interval) from timestamps_tz_ns; +-- +ok +== +select w, t, shift, time_bucket(w, t, shift) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 seconds'::interval, t, '1990-12-10 08:08:10+03'::timestamptz) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 days'::interval, t, '1990-01-06 08:08:10+09'::timestamptz) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('7 months'::interval, t, '1990-01-06 08:08:10+01'::timestamptz) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket(null::interval, t, '1990-01-06 08:08:10'::timestamptz) from timestamps_tz_ns; +-- +ok +== +select time_bucket('7 months'::interval, null::timestamptz, '1990-01-06 08:08:10'::timestamptz) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('7 months'::interval, t, null::timestamptz) from timestamps_tz_ns; +-- +ok +== +select w, t, origin, time_bucket(w, t, origin) from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 seconds'::interval, t, 'Asia/Calcutta') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('5 months'::interval, t, 'Europe/Berlin') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 seconds'::interval, t, 'Europe/Berlin') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('5 months'::interval, t, 'Europe/London') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 seconds'::interval, t, 'Europe/London') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket(null::interval, t, 'Asia/Calcutta') from timestamps_tz_ns; +-- +ok +== +select time_bucket('11 seconds'::interval, null::timestamptz, 'Asia/Calcutta') from timestamps_tz_ns; +-- +ok +== +select t, time_bucket('11 seconds'::interval, t, null::text) from timestamps_tz_ns; +-- +ok +== +select w, t, timezone, time_bucket(w, t, timezone) from timestamps_tz_ns; +-- +ok +== +select + time_bucket(interval '1' day, timestamptz_ns '2000-01-03 17:40:00+00', origin) +from + generate_series(timestamptz '2000-01-03 00:00:00+00', + timestamptz '2000-01-04 00:00:00+00', + interval '1' hour) as t(origin) +order by + origin +; +-- +ok +== +select + time_bucket(interval '1' day, timestamptz_ns '2023-10-07 16:08:09+00', origin) +from + generate_series(timestamptz '2001-01-03 00:00:00+00', + timestamptz '2001-01-04 00:00:00+00', + interval '1' hour) as t(origin) +order by origin +; +-- +ok +== +select + time_bucket(interval '1' day, timestamptz_ns '2023-10-07 16:08:09+03', origin) +from + generate_series(timestamptz '2001-01-03 00:00:00+05', + timestamptz '2001-01-04 00:00:00+05', + interval '1' hour) as t(origin) +order by origin +; +-- +ok +== +select + bool_and( + date_part('epoch', time_bucket(interval '3' day, timestamptz_ns '2023-06-07 16:08:09+00', origin)) + = date_part('epoch', time_bucket(interval '3' day, timestamp '2023-06-07 16:08:09', origin at time zone 'UTC')) + ) +from + generate_series(timestamptz '2023-01-03 00:00:00+05', + timestamptz '2024-01-04 00:00:00+05', + interval '7877' minute) as t(origin) +; +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_last_modified.test b/parser/testdata/corpus/sql/function/timestamp/test_last_modified.test index c5f6847b..78519e4d 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_last_modified.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_last_modified.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_last_modified.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 42 i) to '{TEST_DIR}/last_modified_tz.csv' diff --git a/parser/testdata/corpus/sql/function/timestamp/test_now.test b/parser/testdata/corpus/sql/function/timestamp/test_now.test index 67040f60..487a0b25 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_now.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_now.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_now.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(t TIMESTAMP) diff --git a/parser/testdata/corpus/sql/function/timestamp/test_now_prepared.test b/parser/testdata/corpus/sql/function/timestamp/test_now_prepared.test index afb7ec9a..9278f1af 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_now_prepared.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_now_prepared.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_now_prepared.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(ts TIMESTAMP); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp.test b/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp.test index 12366c8a..201816f0 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_strftime_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(d TIMESTAMP); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp_ns.test b/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp_ns.test index 9ba22853..0bb51911 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp_ns.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_strftime_timestamp_ns.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_strftime_timestamp_ns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(d TIMESTAMP_NS); @@ -13,3 +13,19 @@ INSERT INTO timestamps VALUES -- ok == +SELECT strftime(TIMESTAMP '2020-01-01 00:00:00.123456', '%n|') +-- +ok +== +SELECT strftime(DATE '2020-01-01', '%n%n') +-- +ok +== +SELECT strftime(TIMESTAMP_NS '2020-01-01 00:00:00.123456789', '%n %Y') +-- +ok +== +SELECT strftime(TIMESTAMP '2020-01-01 00:00:00.123456' + to_microseconds(i), '%n|%n|%f|%g') FROM range(3) t(i) ORDER BY 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_strptime.test b/parser/testdata/corpus/sql/function/timestamp/test_strptime.test index ed02ee2a..30297a0c 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_strptime.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_strptime.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_strptime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT strptime('21 June, 2018', '%d %B, %Y') diff --git a/parser/testdata/corpus/sql/function/timestamp/test_strptime_edge_paths.test b/parser/testdata/corpus/sql/function/timestamp/test_strptime_edge_paths.test index 977a57f0..4bae0273 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_strptime_edge_paths.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_strptime_edge_paths.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_strptime_edge_paths.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT try_strptime('infinity trailing', '%Y-%m-%d') IS NULL; diff --git a/parser/testdata/corpus/sql/function/timestamp/test_strptime_nonascii.test b/parser/testdata/corpus/sql/function/timestamp/test_strptime_nonascii.test index 76ba52a9..d7767c55 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_strptime_nonascii.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_strptime_nonascii.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_strptime_nonascii.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT try_strptime('21 Jüne, 2018', '%d %B, %Y') diff --git a/parser/testdata/corpus/sql/function/timestamp/test_time_bucket_timestamp.test b/parser/testdata/corpus/sql/function/timestamp/test_time_bucket_timestamp.test index 1fd6fd74..32bca83b 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_time_bucket_timestamp.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_time_bucket_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_time_bucket_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(w INTERVAL, t TIMESTAMP, shift INTERVAL, origin TIMESTAMP); diff --git a/parser/testdata/corpus/sql/function/timestamp/test_timestamp_difference_range.test b/parser/testdata/corpus/sql/function/timestamp/test_timestamp_difference_range.test new file mode 100644 index 00000000..1ea8a0b5 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_timestamp_difference_range.test @@ -0,0 +1,50 @@ +# source: test/sql/function/timestamp/test_timestamp_difference_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE ts AS SELECT * FROM (VALUES + (TIMESTAMP '290309-12-22 (BC)', TIMESTAMP '294247-01-10 04:00:54.775806'), + (TIMESTAMP '290309-12-22 (BC)', TIMESTAMP '2000-01-01'), + (TIMESTAMP '294247-01-10 04:00:54.775806', TIMESTAMP '290309-12-22 (BC) 00:00:00.000001'), + (TIMESTAMP '2000-01-01', TIMESTAMP '2000-01-02 12:00:00') +) t(a, b); +-- +ok +== +SELECT b - a FROM ts +-- +ok +== +SELECT TIMESTAMP '290309-12-22 (BC)' - TIMESTAMP '2000-01-01' +-- +ok +== +SELECT unit, bool_and(date_sub(unit, a, b) = (epoch_us(b)::HUGEINT - epoch_us(a)::HUGEINT) // micros) FROM ts, (VALUES ('millisecond', 1000), ('second', 1000000), ('minute', 60000000), ('hour', 3600000000), ('day', 86400000000), ('week', 604800000000)) u(unit, micros) GROUP BY unit ORDER BY unit +-- +ok +== +SELECT date_sub('hour', TIMESTAMP '290309-12-22 (BC)', TIMESTAMP '2000-01-01'), date_sub('minute', TIMESTAMP '290309-12-22 (BC)', TIMESTAMP '294247-01-10'), date_sub('millisecond', TIMESTAMP '294247-01-10 04:00:54.775806', TIMESTAMP '290309-12-22 (BC)') +-- +ok +== +SELECT date_sub('microsecond', TIMESTAMP '290309-12-22 (BC)', TIMESTAMP '2000-01-01') +-- +ok +== +SET TimeZone = 'UTC' +-- +ok +== +SELECT date_sub('millisecond', a::TIMESTAMPTZ, b::TIMESTAMPTZ) = (epoch_us(b)::HUGEINT - epoch_us(a)::HUGEINT) // 1000, date_sub('second', a::TIMESTAMPTZ, b::TIMESTAMPTZ) = (epoch_us(b)::HUGEINT - epoch_us(a)::HUGEINT) // 1000000, date_sub('minute', a::TIMESTAMPTZ, b::TIMESTAMPTZ) = (epoch_us(b)::HUGEINT - epoch_us(a)::HUGEINT) // 60000000 FROM ts +-- +ok +== +SELECT date_sub('microsecond', TIMESTAMPTZ '290309-12-22 (BC) 00:00:00+00', TIMESTAMPTZ '2000-01-01 00:00:00+00') +-- +ok +== +SELECT date_diff('minute', TIMESTAMPTZ '290309-12-22 (BC) 00:00:30+00', TIMESTAMPTZ '294247-01-10 00:00:20+00'), date_sub('minute', TIMESTAMPTZ '290309-12-22 (BC) 00:00:30+00', TIMESTAMPTZ '294247-01-10 00:00:20+00'), date_diff('second', TIMESTAMPTZ '290309-12-22 (BC) 00:00:00.5+00', TIMESTAMPTZ '294247-01-10 00:00:00.25+00'), date_sub('second', TIMESTAMPTZ '290309-12-22 (BC) 00:00:00.5+00', TIMESTAMPTZ '294247-01-10 00:00:00.25+00') +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_timestamp_lower_bound.test b/parser/testdata/corpus/sql/function/timestamp/test_timestamp_lower_bound.test new file mode 100644 index 00000000..93bdcd3e --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_timestamp_lower_bound.test @@ -0,0 +1,37 @@ +# source: test/sql/function/timestamp/test_timestamp_lower_bound.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT time_bucket(INTERVAL '1 hour', TIMESTAMP '290309-12-22 (BC) 00:00:00', TIMESTAMP '2000-01-01 00:00:01')::VARCHAR +-- +ok +== +SELECT epoch_ms(-9223372022400001)::VARCHAR, make_timestamp_ms(-9223372022400001)::VARCHAR +-- +ok +== +SELECT epoch_us(to_timestamp(-9223372022401)), epoch_us(to_timestamp(-9223372036854.775808)) +-- +ok +== +SELECT epoch_ms(-9223372036854776) +-- +ok +== +SELECT to_timestamp(-9223372036855) +-- +ok +== +SELECT epoch_ms(-9223372022400000)::VARCHAR +-- +ok +== +SELECT to_timestamp(-9223372022400)::VARCHAR +-- +ok +== +SELECT time_bucket(INTERVAL '1 hour', TIMESTAMP '2020-01-01 10:30:00', TIMESTAMP '2000-01-01 00:00:01')::VARCHAR +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timestamp/test_try_strptime.test b/parser/testdata/corpus/sql/function/timestamp/test_try_strptime.test index b0810e83..9fa07730 100644 --- a/parser/testdata/corpus/sql/function/timestamp/test_try_strptime.test +++ b/parser/testdata/corpus/sql/function/timestamp/test_try_strptime.test @@ -1,6 +1,6 @@ # source: test/sql/function/timestamp/test_try_strptime.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT try_strptime('21/10/2018', '%d/%m/%Y') diff --git a/parser/testdata/corpus/sql/function/timestamp/test_try_strptime_special.test b/parser/testdata/corpus/sql/function/timestamp/test_try_strptime_special.test new file mode 100644 index 00000000..bbcde503 --- /dev/null +++ b/parser/testdata/corpus/sql/function/timestamp/test_try_strptime_special.test @@ -0,0 +1,132 @@ +# source: test/sql/function/timestamp/test_try_strptime_special.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE words AS SELECT * FROM (VALUES (1, 'epoch'), (2, 'infinity'), (3, '-infinity')) t(i, w); +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d'), strptime(w, '%Y-%m-%d') FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, '%Y'), strptime(w, '%Y') FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d %H:%M:%S.%n'), strptime(w, '%Y-%m-%d %H:%M:%S.%n') FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d %H:%M:%S.%n %z'), strptime(w, '%Y-%m-%d %H:%M:%S.%n %z') FROM words ORDER BY i +-- +ok +== +SELECT typeof(try_strptime('epoch', '%Y-%m-%d %H:%M:%S.%n')), typeof(try_strptime('epoch', '%Y-%m-%d %z')), typeof(try_strptime('epoch', '%Y-%m-%d %H:%M:%S.%n %z')) +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d %z'), strptime(w, '%Y-%m-%d %z') FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, ['%d/%m/%Y', '%Y-%m-%d']), strptime(w, ['%d/%m/%Y', '%Y-%m-%d']) FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, ['%d/%m/%Y', '%n']), strptime(w, ['%d/%m/%Y', '%n']) FROM words ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d'), TRY(strptime(w, '%Y-%m-%d')), strptime(w, '%Y-%m-%d') +FROM (VALUES (1, 'Epoch'), (2, ' epoch '), (3, 'INFINITY'), (4, '-Infinity')) t(i, w) ORDER BY i +-- +ok +== +SELECT w, try_strptime(w, '%Y-%m-%d'), TRY(strptime(w, '%Y-%m-%d')) +FROM (VALUES (1, 'epochx'), (2, 'epoch x'), (3, 'infinityy'), (4, '-infinity1'), (5, 'epo')) t(i, w) ORDER BY i +-- +ok +== +SELECT strptime('epochx', '%Y-%m-%d') +-- +ok +== +SELECT strptime('infinityy', '%Y-%m-%d') +-- +ok +== +SELECT strptime('epo', '%Y-%m-%d') +-- +ok +== +CREATE TABLE mixed AS SELECT * FROM (VALUES + (1, '2024-01-02'), + (2, 'epoch'), + (3, NULL), + (4, 'infinity'), + (5, '2024-02-30'), + (6, '-infinity'), + (7, 'not a date'), + (8, '1999-12-31') +) t(i, s); +-- +ok +== +SELECT i, try_strptime(s, '%Y-%m-%d') FROM mixed ORDER BY i +-- +ok +== +SELECT strptime(s, '%Y-%m-%d') FROM mixed WHERE i = 5 +-- +ok +== +SELECT strptime(s, '%Y-%m-%d') FROM mixed WHERE i = 7 +-- +ok +== +SELECT i, try_strptime(s, '%Y-%m-%d') IS NOT DISTINCT FROM CAST(s AS TIMESTAMP) FROM mixed WHERE i NOT IN (5, 7) ORDER BY i +-- +ok +== +COPY (SELECT s AS d, s AS t FROM mixed WHERE i NOT IN (5, 7) ORDER BY i) TO '{TEST_DIR}/special_words.csv' (HEADER) +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/special_words.csv', header = true, dateformat = '%Y-%m-%d', timestampformat = '%Y-%m-%d', columns = {'d': 'DATE', 't': 'TIMESTAMP'}) +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/special_words.csv', header = true, columns = {'d': 'DATE', 't': 'TIMESTAMP'}) +-- +ok +== +COPY (SELECT * FROM (VALUES ('02/01/2024'), ('infinity'), ('epoch'), ('-infinity'), ('13/01/2024')) t(d)) TO '{TEST_DIR}/special_words_detected.csv' (HEADER) +-- +ok +== +SELECT d, typeof(d) FROM read_csv('{TEST_DIR}/special_words_detected.csv') +-- +ok +== +COPY (SELECT s AS d, s AS t FROM mixed WHERE i NOT IN (5, 7) ORDER BY i) TO '{TEST_DIR}/special_words.json' +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/special_words.json', dateformat = '%Y-%m-%d', timestampformat = '%Y-%m-%d', columns = {'d': 'DATE', 't': 'TIMESTAMP'}) +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/special_words.json', columns = {'d': 'DATE', 't': 'TIMESTAMP'}) +-- +ok +== +COPY (SELECT * FROM (VALUES ('13-01-2024'), ('infinity'), ('epoch'), ('-infinity'), ('31-12-2024')) t(d)) TO '{TEST_DIR}/special_words_detected.json' +-- +ok +== +SELECT d, typeof(d) FROM read_json('{TEST_DIR}/special_words_detected.json') +-- +ok +== diff --git a/parser/testdata/corpus/sql/function/timetz/icu_timezone_offset_range.test b/parser/testdata/corpus/sql/function/timetz/icu_timezone_offset_range.test index 24eea854..9d3d18f8 100644 --- a/parser/testdata/corpus/sql/function/timetz/icu_timezone_offset_range.test +++ b/parser/testdata/corpus/sql/function/timetz/icu_timezone_offset_range.test @@ -1,6 +1,6 @@ # source: test/sql/function/timetz/icu_timezone_offset_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT timezone('GMT+18:00', TIMETZ '12:00:00+00'); diff --git a/parser/testdata/corpus/sql/function/timetz/test_date_part.test b/parser/testdata/corpus/sql/function/timetz/test_date_part.test index b7139bd2..a23df220 100644 --- a/parser/testdata/corpus/sql/function/timetz/test_date_part.test +++ b/parser/testdata/corpus/sql/function/timetz/test_date_part.test @@ -1,6 +1,6 @@ # source: test/sql/function/timetz/test_date_part.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timetzs(d TIMETZ, s VARCHAR); diff --git a/parser/testdata/corpus/sql/function/timetz/test_extract.test b/parser/testdata/corpus/sql/function/timetz/test_extract.test index 88fef1c7..f85c026c 100644 --- a/parser/testdata/corpus/sql/function/timetz/test_extract.test +++ b/parser/testdata/corpus/sql/function/timetz/test_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/timetz/test_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timetzs (i TIMETZ); diff --git a/parser/testdata/corpus/sql/function/timetz/timetz_group_by.test b/parser/testdata/corpus/sql/function/timetz/timetz_group_by.test index b9b9b1d0..ba7ca222 100644 --- a/parser/testdata/corpus/sql/function/timetz/timetz_group_by.test +++ b/parser/testdata/corpus/sql/function/timetz/timetz_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/function/timetz/timetz_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table time_testtz as select i::timetz as t from generate_series(TIMESTAMPtz '2001-04-10', TIMESTAMPtz '2001-04-11', INTERVAL 30 MINUTE) as t(i); diff --git a/parser/testdata/corpus/sql/function/tokenize/operator_tokenize.test b/parser/testdata/corpus/sql/function/tokenize/operator_tokenize.test index 7808f9aa..b714bfec 100644 --- a/parser/testdata/corpus/sql/function/tokenize/operator_tokenize.test +++ b/parser/testdata/corpus/sql/function/tokenize/operator_tokenize.test @@ -1,6 +1,6 @@ # source: test/sql/function/tokenize/operator_tokenize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT start, token_type, word FROM sql_tokenize('<-> ->> @ @@@ >>= ^@ && <=>'); diff --git a/parser/testdata/corpus/sql/function/tokenize/simple_tokenize.test b/parser/testdata/corpus/sql/function/tokenize/simple_tokenize.test index 7f3af6aa..8bd86e68 100644 --- a/parser/testdata/corpus/sql/function/tokenize/simple_tokenize.test +++ b/parser/testdata/corpus/sql/function/tokenize/simple_tokenize.test @@ -1,6 +1,6 @@ # source: test/sql/function/tokenize/simple_tokenize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select start, token_type, word from sql_tokenize($$select a$$); diff --git a/parser/testdata/corpus/sql/function/uuid/test_uuid.test b/parser/testdata/corpus/sql/function/uuid/test_uuid.test index 5e136485..426d3fed 100644 --- a/parser/testdata/corpus/sql/function/uuid/test_uuid.test +++ b/parser/testdata/corpus/sql/function/uuid/test_uuid.test @@ -1,6 +1,6 @@ # source: test/sql/function/uuid/test_uuid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE t1 AS SELECT gen_random_uuid() a FROM range(0, 16); diff --git a/parser/testdata/corpus/sql/function/uuid/test_uuid_function.test b/parser/testdata/corpus/sql/function/uuid/test_uuid_function.test index 54a7a229..94d0a25e 100644 --- a/parser/testdata/corpus/sql/function/uuid/test_uuid_function.test +++ b/parser/testdata/corpus/sql/function/uuid/test_uuid_function.test @@ -1,6 +1,6 @@ # source: test/sql/function/uuid/test_uuid_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT uuid_extract_version('ac227128-7d55-7ee0-a765-5025cc52e55a'); diff --git a/parser/testdata/corpus/sql/function/variant/blob_offset_overflow.test b/parser/testdata/corpus/sql/function/variant/blob_offset_overflow.test index bb7cc4c6..f2ce48db 100644 --- a/parser/testdata/corpus/sql/function/variant/blob_offset_overflow.test +++ b/parser/testdata/corpus/sql/function/variant/blob_offset_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/blob_offset_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(ROW(repeat('a', 2), repeat('b', 2), repeat('c', 2)) AS VARIANT); diff --git a/parser/testdata/corpus/sql/function/variant/variant_array_length.test b/parser/testdata/corpus/sql/function/variant/variant_array_length.test index 3c8f69ac..e4138b68 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_array_length.test +++ b/parser/testdata/corpus/sql/function/variant/variant_array_length.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_array_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO struct_cast_data() AS TABLE ( diff --git a/parser/testdata/corpus/sql/function/variant/variant_array_length_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_array_length_shredded.test index 3226bdbd..740e738f 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_array_length_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_array_length_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_array_length_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'STRUCT(arr INTEGER[], scalar INTEGER)'; diff --git a/parser/testdata/corpus/sql/function/variant/variant_cast_roundtrip.test b/parser/testdata/corpus/sql/function/variant/variant_cast_roundtrip.test index 51c157fe..cefde7ee 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_cast_roundtrip.test +++ b/parser/testdata/corpus/sql/function/variant/variant_cast_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_cast_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ((-7::TINYINT)::VARIANT)::TINYINT = -7; diff --git a/parser/testdata/corpus/sql/function/variant/variant_contains.test b/parser/testdata/corpus/sql/function/variant/variant_contains.test index 91acfc85..e83b4fe7 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_contains.test +++ b/parser/testdata/corpus/sql/function/variant/variant_contains.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_contains(({haystack})::VARIANT, ({needle})::VARIANT); diff --git a/parser/testdata/corpus/sql/function/variant/variant_contains_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_contains_shredded.test index 80b2ee79..7c7f8485 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_contains_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_contains_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_contains_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO variants VALUES diff --git a/parser/testdata/corpus/sql/function/variant/variant_exists.test b/parser/testdata/corpus/sql/function/variant/variant_exists.test index 7c7ed844..1742f43c 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_exists.test +++ b/parser/testdata/corpus/sql/function/variant/variant_exists.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_exists('{"a": 1, "b": {"c": 12, "d": 10}}', 'a'); diff --git a/parser/testdata/corpus/sql/function/variant/variant_exists_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_exists_shredded.test index 70c04317..d58f8a3e 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_exists_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_exists_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_exists_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO variants VALUES diff --git a/parser/testdata/corpus/sql/function/variant/variant_extract.test b/parser/testdata/corpus/sql/function/variant/variant_extract.test index b4847381..793bdcae 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_extract.test +++ b/parser/testdata/corpus/sql/function/variant/variant_extract.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_extract({'a': 1234}::VARIANT, 'a')::VARCHAR; diff --git a/parser/testdata/corpus/sql/function/variant/variant_extract_string.test b/parser/testdata/corpus/sql/function/variant/variant_extract_string.test index f3d8b2c8..19aafbd6 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_extract_string.test +++ b/parser/testdata/corpus/sql/function/variant/variant_extract_string.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_extract_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_extract_string('{"a": 1, "b": {"c": 12, "d": 10}}'); diff --git a/parser/testdata/corpus/sql/function/variant/variant_extract_string_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_extract_string_shredded.test index 4b9c4c2d..2d454466 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_extract_string_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_extract_string_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_extract_string_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'STRUCT(obj STRUCT(x VARCHAR), arr INTEGER[], a INTEGER)'; diff --git a/parser/testdata/corpus/sql/function/variant/variant_extract_try_cast.test b/parser/testdata/corpus/sql/function/variant/variant_extract_try_cast.test index 782c77a1..c5c9c6a4 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_extract_try_cast.test +++ b/parser/testdata/corpus/sql/function/variant/variant_extract_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_extract_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl(col VARIANT); diff --git a/parser/testdata/corpus/sql/function/variant/variant_group_array.test b/parser/testdata/corpus/sql/function/variant/variant_group_array.test index ffebfed0..e59d7127 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_group_array.test +++ b/parser/testdata/corpus/sql/function/variant/variant_group_array.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_group_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_group_array(i), typeof(variant_group_array(i)) from range(4) t(i); diff --git a/parser/testdata/corpus/sql/function/variant/variant_group_array_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_group_array_shredded.test index 44c2ba5e..a7d38a1f 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_group_array_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_group_array_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_group_array_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO variants VALUES diff --git a/parser/testdata/corpus/sql/function/variant/variant_keys.test b/parser/testdata/corpus/sql/function/variant/variant_keys.test index 2d3408bc..a6f22d2c 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_keys.test +++ b/parser/testdata/corpus/sql/function/variant/variant_keys.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_keys('{"a": 1, "b": {"c": 12, "d": 10}}'); diff --git a/parser/testdata/corpus/sql/function/variant/variant_keys_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_keys_shredded.test index fbdaf60c..341bd1b8 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_keys_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_keys_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_keys_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'STRUCT(b INTEGER, a INTEGER, obj STRUCT(y INTEGER, x INTEGER))'; diff --git a/parser/testdata/corpus/sql/function/variant/variant_normalize.test b/parser/testdata/corpus/sql/function/variant/variant_normalize.test index 71201233..055a7608 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_normalize.test +++ b/parser/testdata/corpus/sql/function/variant/variant_normalize.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_normalize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/function/variant/variant_shredded_extract_nested.test b/parser/testdata/corpus/sql/function/variant/variant_shredded_extract_nested.test index bf26e191..8cf21418 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_shredded_extract_nested.test +++ b/parser/testdata/corpus/sql/function/variant/variant_shredded_extract_nested.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_shredded_extract_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table list_variant as select diff --git a/parser/testdata/corpus/sql/function/variant/variant_type.test b/parser/testdata/corpus/sql/function/variant/variant_type.test index 5da2042d..88cf4596 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_type.test +++ b/parser/testdata/corpus/sql/function/variant/variant_type.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_type('{"a": 1, "b": {"c": 12, "d": 10}}'); diff --git a/parser/testdata/corpus/sql/function/variant/variant_type_shredded.test b/parser/testdata/corpus/sql/function/variant/variant_type_shredded.test index 08b5359d..61425e35 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_type_shredded.test +++ b/parser/testdata/corpus/sql/function/variant/variant_type_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_type_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_type(v), variant_type(v, 'b') FROM variants ORDER BY id; diff --git a/parser/testdata/corpus/sql/function/variant/variant_typeof.test b/parser/testdata/corpus/sql/function/variant/variant_typeof.test index 8243915e..133fe236 100644 --- a/parser/testdata/corpus/sql/function/variant/variant_typeof.test +++ b/parser/testdata/corpus/sql/function/variant/variant_typeof.test @@ -1,6 +1,6 @@ # source: test/sql/function/variant/variant_typeof.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select variant_typeof({'a': 42}::VARIANT); diff --git a/parser/testdata/corpus/sql/generated_columns/generated_column_compression.test b/parser/testdata/corpus/sql/generated_columns/generated_column_compression.test index 7c78ff9f..1f87b0ff 100644 --- a/parser/testdata/corpus/sql/generated_columns/generated_column_compression.test +++ b/parser/testdata/corpus/sql/generated_columns/generated_column_compression.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/generated_column_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER, h INTEGER AS (a + 1) USING COMPRESSION rle); diff --git a/parser/testdata/corpus/sql/generated_columns/stored/basic.test b/parser/testdata/corpus/sql/generated_columns/stored/basic.test index cb5fdf36..c7dba912 100644 --- a/parser/testdata/corpus/sql/generated_columns/stored/basic.test +++ b/parser/testdata/corpus/sql/generated_columns/stored/basic.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/stored/basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/alter_table.test b/parser/testdata/corpus/sql/generated_columns/virtual/alter_table.test index 48d8159a..47d11896 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/alter_table.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/alter_table.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/alter_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO unit VALUES (5,4) diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/ambiguity.test b/parser/testdata/corpus/sql/generated_columns/virtual/ambiguity.test index b7b0a2e3..dd8125d2 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/ambiguity.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/ambiguity.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/ambiguity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/cascading_delete.test b/parser/testdata/corpus/sql/generated_columns/virtual/cascading_delete.test index aafc1e71..e5dca317 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/cascading_delete.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/cascading_delete.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/cascading_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/casting.test b/parser/testdata/corpus/sql/generated_columns/virtual/casting.test index be4ab0b9..37171db3 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/casting.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/casting.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/casting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/check.test b/parser/testdata/corpus/sql/generated_columns/virtual/check.test index fe1e57c4..36a50578 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/check.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/check.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/check.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/circular_dependency_stresstest.test b/parser/testdata/corpus/sql/generated_columns/virtual/circular_dependency_stresstest.test index 8f0d3c93..1764557b 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/circular_dependency_stresstest.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/circular_dependency_stresstest.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/circular_dependency_stresstest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/collate.test b/parser/testdata/corpus/sql/generated_columns/virtual/collate.test index f4fd2f59..3d566c46 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/collate.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/collate.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/create_table.test b/parser/testdata/corpus/sql/generated_columns/virtual/create_table.test index 8ec652f4..c45b4f09 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/create_table.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/create_table.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/create_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE t0(c0 AS (1)); diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/default.test b/parser/testdata/corpus/sql/generated_columns/virtual/default.test index c871db37..d3280420 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/default.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/default.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO unit VALUES (4,5) diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/drop_dependency.test b/parser/testdata/corpus/sql/generated_columns/virtual/drop_dependency.test index 4a58004f..105e8a8e 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/drop_dependency.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/drop_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/drop_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key.test b/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key.test index 18b3d1a3..33989202 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/foreign_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key_extensive.test b/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key_extensive.test index c1565317..8b06204b 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key_extensive.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/foreign_key_extensive.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/foreign_key_extensive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE album ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/from_generated_column.test b/parser/testdata/corpus/sql/generated_columns/virtual/from_generated_column.test index 552b94d5..b5725a7e 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/from_generated_column.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/from_generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/from_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT total_profit FROM unit diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/gcol_duckdb_columns.test b/parser/testdata/corpus/sql/generated_columns/virtual/gcol_duckdb_columns.test index 9202d319..7f8f381b 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/gcol_duckdb_columns.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/gcol_duckdb_columns.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/gcol_duckdb_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (i int, j int as (1)); diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/group_by.test b/parser/testdata/corpus/sql/generated_columns/virtual/group_by.test index 714649cf..0c457c69 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/group_by.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/group_by.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/implicit_type.test b/parser/testdata/corpus/sql/generated_columns/virtual/implicit_type.test index bd60a622..e24f756c 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/implicit_type.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/implicit_type.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/implicit_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/insert.test b/parser/testdata/corpus/sql/generated_columns/virtual/insert.test index 2ae6adb5..bc390089 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/insert.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/insert.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/not_referencing_columns.test b/parser/testdata/corpus/sql/generated_columns/virtual/not_referencing_columns.test index a2e58a05..612311be 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/not_referencing_columns.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/not_referencing_columns.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/not_referencing_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/null.test b/parser/testdata/corpus/sql/generated_columns/virtual/null.test index 3b71b7f3..38410d04 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/null.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/null.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/partition.test b/parser/testdata/corpus/sql/generated_columns/virtual/partition.test index bbed863f..b08634c6 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/partition.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/partition.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/partition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/preserve_order.test b/parser/testdata/corpus/sql/generated_columns/virtual/preserve_order.test index 0d080748..f6d8905d 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/preserve_order.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/preserve_order.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/preserve_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/primary_key.test b/parser/testdata/corpus/sql/generated_columns/virtual/primary_key.test index 6f7eb852..673e0340 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/primary_key.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/primary_key.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/primary_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/referencing_gencols.test b/parser/testdata/corpus/sql/generated_columns/virtual/referencing_gencols.test index 3e3e631e..3ea82d4b 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/referencing_gencols.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/referencing_gencols.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/referencing_gencols.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/rename.test b/parser/testdata/corpus/sql/generated_columns/virtual/rename.test index b1f26893..8831197c 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/rename.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/rename.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/rename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE unit RENAME COLUMN total_profit TO profit_total diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/rename_dependency.test b/parser/testdata/corpus/sql/generated_columns/virtual/rename_dependency.test index 73653aef..0dedbc9f 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/rename_dependency.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/rename_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/rename_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/rename_table.test b/parser/testdata/corpus/sql/generated_columns/virtual/rename_table.test index 0ce179c5..c9d58663 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/rename_table.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/rename_table.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/rename_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/row_group_fetch.test b/parser/testdata/corpus/sql/generated_columns/virtual/row_group_fetch.test index cf327be6..ba8e0522 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/row_group_fetch.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/row_group_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/row_group_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/rowid.test b/parser/testdata/corpus/sql/generated_columns/virtual/rowid.test index bc3a17a9..7479e08b 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/rowid.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/rowid.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE unit ADD COLUMN total_profit BIGINT GENERATED ALWAYS AS (price * rowid) VIRTUAL; diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/select.test b/parser/testdata/corpus/sql/generated_columns/virtual/select.test index ee2200fd..a484d9a7 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/select.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/select.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/select_alias.test b/parser/testdata/corpus/sql/generated_columns/virtual/select_alias.test index 79a01178..0180b292 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/select_alias.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/select_alias.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/select_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/type_resolution_bug.test b/parser/testdata/corpus/sql/generated_columns/virtual/type_resolution_bug.test index 802e5c80..7f334f5a 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/type_resolution_bug.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/type_resolution_bug.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/type_resolution_bug.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/typechange.test b/parser/testdata/corpus/sql/generated_columns/virtual/typechange.test index 7fffa1eb..3caedd23 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/typechange.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/typechange.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/typechange.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE unit ALTER COLUMN total_profit TYPE BOOLEAN; diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/typechange_dependency.test b/parser/testdata/corpus/sql/generated_columns/virtual/typechange_dependency.test index fa7f5938..2c7f9d38 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/typechange_dependency.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/typechange_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/typechange_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE unit ALTER COLUMN price TYPE BOOLEAN; diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/unique.test b/parser/testdata/corpus/sql/generated_columns/virtual/unique.test index 85214d4b..5a68ff94 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/unique.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/unique.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unit ( diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/update.test b/parser/testdata/corpus/sql/generated_columns/virtual/update.test index b3761244..fa089415 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/update.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/update.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (5, DEFAULT) diff --git a/parser/testdata/corpus/sql/generated_columns/virtual/update_index.test b/parser/testdata/corpus/sql/generated_columns/virtual/update_index.test index 946380f1..cdd9b165 100644 --- a/parser/testdata/corpus/sql/generated_columns/virtual/update_index.test +++ b/parser/testdata/corpus/sql/generated_columns/virtual/update_index.test @@ -1,6 +1,6 @@ # source: test/sql/generated_columns/virtual/update_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_comp ( diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_compound_key_changes.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_compound_key_changes.test index 8ab6df65..79a44675 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_compound_key_changes.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_compound_key_changes.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_compound_key_changes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET immediate_transaction_mode = true; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_batch_insert.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_batch_insert.test index fc3dfb2a..5b421acf 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_batch_insert.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_batch_insert.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_eager_batch_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test1 (id INT PRIMARY KEY, payload VARCHAR); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_constraint_checking.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_constraint_checking.test index a28e15f6..334fe2f1 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_constraint_checking.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_constraint_checking.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_eager_constraint_checking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_vacuum_tasks = 0; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_with_wal.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_with_wal.test index 2efd3b94..e5d12b43 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_with_wal.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_eager_with_wal.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_eager_with_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (id INT PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_large_abort.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_large_abort.test index 710ad0ff..61ed4b96 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_large_abort.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_large_abort.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_large_abort.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER PRIMARY KEY, c INT); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_simple_update.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_simple_update.test index 5830d345..06ff4213 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_simple_update.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_simple_update.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_simple_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (i BIGINT PRIMARY KEY, l1 BIGINT[]); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_conflict_revert.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_conflict_revert.test index 5c42e280..92203944 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_conflict_revert.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_conflict_revert.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_conflict_revert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET immediate_transaction_mode=true; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_delete_with_global_nested.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_delete_with_global_nested.test index 8a71147f..9794f451 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_delete_with_global_nested.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_delete_with_global_nested.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_delete_with_global_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (id INT PRIMARY KEY, payload VARCHAR[]); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_list.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_list.test index 46677976..e10cf964 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_list.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_list.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_deletes_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_list (id INT PRIMARY KEY, payload VARCHAR[]); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_rollback.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_rollback.test index 2838bdab..7c75c832 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_rollback.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_deletes_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_rollback (id INT PRIMARY KEY, payload VARCHAR[]); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_varchar.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_varchar.test index 24b924c4..f8a3ecc2 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_varchar.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_deletes_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_deletes_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (id INT PRIMARY KEY, payload VARCHAR); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_over_eager.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_over_eager.test index 062ae399..d3d67c30 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_over_eager.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_over_eager.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_over_eager.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INT PRIMARY KEY, v VARCHAR); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_returning.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_returning.test index 3aaf56dc..1fff304d 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_returning.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_returning.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl_list SELECT range, [range || ' payload'] FROM range(5); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_same_row_id.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_same_row_id.test index c36f2712..4fa2af2d 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_same_row_id.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_same_row_id.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_same_row_id.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl_list SELECT range, [range || ' payload'] FROM range(10); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_update_with_global_nested.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_update_with_global_nested.test index 31bb56d0..1d6f7ee4 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_update_with_global_nested.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_update_with_global_nested.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_update_with_global_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE tbl SET payload = ['con1 payload'] WHERE id = 1; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_list.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_list.test index 93e32a2e..b8d6ff39 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_list.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_list.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_updates_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl_list VALUES (1, ['first payload']), (2, ['second payload']); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_pk_col.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_pk_col.test index 6967af5e..61e9fe79 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_pk_col.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_pk_col.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_updates_pk_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE tbl SET id = 3 WHERE id = 1; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_rollback.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_rollback.test index 8a00324c..79eacc55 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_rollback.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_updates_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_updates_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE tbl_rollback SET payload = ['con1 payload'] WHERE id = 1; diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upsert_with_global_nested.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upsert_with_global_nested.test index f4e9ca2e..e2996bde 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upsert_with_global_nested.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upsert_with_global_nested.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_upsert_with_global_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT OR REPLACE INTO tbl VALUES (1, ['con1 payload']); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_list.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_list.test index fc30abe0..54f549f5 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_list.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_list.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_upserts_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT OR REPLACE INTO tbl_list VALUES (1, ['con1 payload']); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_local.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_local.test index 0a77d335..ee3e5c16 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_local.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_local.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_upserts_local.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_local (id INT PRIMARY KEY, payload VARCHAR[]); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_rollback.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_rollback.test index c46c84a7..44f2cbc6 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_rollback.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_tx_upserts_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_tx_upserts_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT OR REPLACE INTO tbl_rollback VALUES (1, ['con1 payload']); diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_duplicate.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_duplicate.test index 14bceb79..5f6afb78 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_duplicate.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_duplicate.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_upsert_duplicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hero ( diff --git a/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_other_index.test b/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_other_index.test index ee8116ca..e77d4a08 100644 --- a/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_other_index.test +++ b/parser/testdata/corpus/sql/index/art/constraints/test_art_upsert_other_index.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/constraints/test_art_upsert_other_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE kvp ( diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_big_compound_key.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_big_compound_key.test index 4b6c4ef1..5f29151c 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_big_compound_key.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_big_compound_key.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_big_compound_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 (v2 VARCHAR, v1 INT); diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_concurrently.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_concurrently.test new file mode 100644 index 00000000..ad82ed5d --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_concurrently.test @@ -0,0 +1,45 @@ +# source: test/sql/index/art/create_drop/test_art_create_concurrently.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(a INTEGER, b INTEGER) +-- +ok +== +INSERT INTO t VALUES (1, 10), (2, 20) +-- +ok +== +CREATE INDEX CONCURRENTLY i ON t(a) +-- +ok +== +CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS j ON t(b) +-- +ok +== +CREATE INDEX CONCURRENTLY IF NOT EXISTS j ON t(b) +-- +ok +== +SELECT index_name FROM duckdb_indexes() ORDER BY index_name +-- +ok +== +INSERT INTO t VALUES (3, 10) +-- +ok +== +SELECT a, b FROM t WHERE a = 2 +-- +ok +== +CREATE INDEX CONCURRENTLY ON t(a) +-- +ok +== +DROP INDEX CONCURRENTLY i +-- +error: Parser Error: syntax error at or near "CONCURRENTLY" +== diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_if_exists.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_if_exists.test index 7fc08b89..5d756f23 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_if_exists.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_if_exists.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_if_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA immediate_transaction_mode = True; diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_delete.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_delete.test index c17c0778..eb7aa960 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_delete.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_delete.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_index_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(10) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_duplicate_deletes.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_duplicate_deletes.test index 2f3e51e8..69da657b 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_duplicate_deletes.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_index_duplicate_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_index_duplicate_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM integers diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates.test index e3085a4a..ce94e4f6 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_many_duplicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM repeat(1, 1500) t1(i) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates_deletes.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates_deletes.test index 88e3cdfa..e687af8e 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates_deletes.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_many_duplicates_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_many_duplicates_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM repeat(5, 1500) t1(i) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_unique.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_unique.test index 60426ce3..f32604d7 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_unique.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_create_unique.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_create_unique.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX i0 ON t0(c0); diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_drop_index.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_drop_index.test index 85e4e47f..0a295f41 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_drop_index.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_drop_index.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_drop_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE A (A1 INTEGER,A2 VARCHAR, A3 INTEGER) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_invalid_create_index.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_invalid_create_index.test index a46779b9..af6d25d1 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_invalid_create_index.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_invalid_create_index.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_invalid_create_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i integer, j integer, k BOOLEAN) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_many_versions.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_many_versions.test index 671780b7..4b6117c8 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_many_versions.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_many_versions.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_many_versions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(1, 20001, 1) diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_recreate_unique_index_local_identity.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_recreate_unique_index_local_identity.test index 6941fa0e..2d835db0 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_recreate_unique_index_local_identity.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_recreate_unique_index_local_identity.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_recreate_unique_index_local_identity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/create_drop/test_art_single_value.test b/parser/testdata/corpus/sql/index/art/create_drop/test_art_single_value.test index 428ffe63..51ede57d 100644 --- a/parser/testdata/corpus/sql/index/art/create_drop/test_art_single_value.test +++ b/parser/testdata/corpus/sql/index/art/create_drop/test_art_single_value.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_drop/test_art_single_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE i < 3 diff --git a/parser/testdata/corpus/sql/index/art/create_index_session_dependent.test b/parser/testdata/corpus/sql/index/art/create_index_session_dependent.test index d9dc1333..65d2ef15 100644 --- a/parser/testdata/corpus/sql/index/art/create_index_session_dependent.test +++ b/parser/testdata/corpus/sql/index/art/create_index_session_dependent.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/create_index_session_dependent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEMP_DIR}/idx_session_dependent.db' AS w; diff --git a/parser/testdata/corpus/sql/index/art/create_index_time_zone_dependent.test b/parser/testdata/corpus/sql/index/art/create_index_time_zone_dependent.test new file mode 100644 index 00000000..2d18d568 --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/create_index_time_zone_dependent.test @@ -0,0 +1,189 @@ +# source: test/sql/index/art/create_index_time_zone_dependent.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (id INTEGER, ts TIMESTAMPTZ, s VARCHAR, naive TIMESTAMP); +-- +ok +== +INSERT INTO t VALUES (1, '2026-01-01 00:00:00+00', '2026-01-01 00:00:00', '2026-01-01 00:00:00'); +-- +ok +== +CREATE INDEX i ON t (({expression})); +-- +error: Parser Error: syntax error at or near "}" +== +CREATE UNIQUE INDEX i ON t (({expression})); +-- +error: Parser Error: syntax error at or near "}" +== +CREATE INDEX i ON t ((id + hour(TIMESTAMPTZ '2026-01-01 00:00:00+00'))); +-- +ok +== +CREATE INDEX i ON t ((coalesce(id + CASE WHEN hour(TIMESTAMPTZ '2026-01-01 00:00:00+00') = 0 THEN NULL ELSE 1 END, id))); +-- +ok +== +CREATE INDEX i ON t ((switch(id, MAP {1: hour(TIMESTAMPTZ '2026-01-01 00:00:00+00')}, 99))); +-- +ok +== +CREATE INDEX i ON t ((date_part(CASE WHEN hour(TIMESTAMPTZ '2026-01-01 00:00:00+00') = 0 THEN 'day' ELSE 'year' END, naive))); +-- +ok +== +CREATE INDEX i ON t ((switch(ts, MAP {TIMESTAMP '2026-01-01 00:00:00': 1}, 0))); +-- +ok +== +CREATE INDEX i ON t ((id + epoch_us(TIMESTAMPTZ '2026-01-01 00:00:00'))); +-- +ok +== +CREATE INDEX i ON t ((list_transform([ts], lambda x: hour(x))[1])); +-- +ok +== +CREATE INDEX i ON t ((list_transform([ts], lambda x: x::VARCHAR)[1])); +-- +ok +== +CREATE TYPE ts_enum AS ENUM ('2026-01-01 00:00:00'); +-- +ok +== +CREATE TABLE nested (ts TIMESTAMPTZ, e ts_enum, s VARCHAR); +-- +ok +== +CREATE INDEX i ON nested (({expression})); +-- +error: Parser Error: syntax error at or near "}" +== +CREATE INDEX i ON nested (((union_value(v := ts)::UNION(v VARCHAR)).v)); +-- +ok +== +CREATE INDEX i_enum_text ON nested ((e::VARCHAR)); +-- +ok +== +CREATE TABLE generated (ts TIMESTAMPTZ, ts_text AS (ts::VARCHAR), ts_epoch AS (epoch_us(ts))); +-- +ok +== +CREATE INDEX i ON generated (ts_text); +-- +ok +== +CREATE INDEX i_generated_epoch ON generated (ts_epoch); +-- +ok +== +CREATE INDEX i_union_member ON t (((naive::UNION(a TIMESTAMPTZ, b TIMESTAMP)).b)); +-- +ok +== +CREATE INDEX i_map_text ON nested (((s::MAP(VARCHAR,VARCHAR))['k'])); +-- +ok +== +CREATE INDEX i_ts ON t (ts); +-- +ok +== +CREATE INDEX i_epoch ON t ((epoch_us(ts))); +-- +ok +== +CREATE INDEX i_naive ON t ((naive::VARCHAR)); +-- +ok +== +CREATE INDEX i_epoch_seconds ON t ((epoch(ts))); +-- +ok +== +CREATE INDEX i_date_part_epoch ON t ((date_part('epoch', ts))); +-- +ok +== +CREATE INDEX i_date_part_struct_epoch ON t ((date_part(['epoch'], ts).epoch)); +-- +ok +== +CREATE INDEX i_epoch_ns ON t ((epoch(ts::TIMESTAMPTZ_NS))); +-- +ok +== +CREATE INDEX i ON t ((date_part(['epoch', 'hour'], ts).epoch)); +-- +ok +== +CREATE INDEX i ON t ((date_part(s, ts))); +-- +ok +== +CREATE INDEX i ON t ((strptime(s, '%Y-%m-%d %H:%M:%S %Z'))); +-- +ok +== +CREATE INDEX i_strptime ON t ((strptime(s, '%Y-%m-%d %H:%M:%S'))); +-- +ok +== +CREATE INDEX i ON t ((make_timestamptz(2026, 1, 1, id, 0, 0))); +-- +ok +== +CREATE INDEX i_make_timestamptz ON t ((make_timestamptz(epoch_us(ts)))); +-- +ok +== +SET TimeZone = 'Europe/Amsterdam'; +-- +ok +== +SELECT count(*) FROM t WHERE epoch_us(ts) = epoch_us(TIMESTAMPTZ '2026-01-01 01:00:00+01'); +-- +ok +== +DELETE FROM t WHERE id = 1; +-- +ok +== +CREATE TABLE days AS SELECT TIMESTAMPTZ '2000-01-01 00:00:00+00' + i * INTERVAL '1 day' AS ts FROM range(10000) r(i); +-- +ok +== +EXPLAIN SELECT count(*) FROM days WHERE isoyear(ts) = 2010; +-- +ok +== +EXPLAIN SELECT count(*) FROM days WHERE era(ts) = 0; +-- +ok +== +EXPLAIN SELECT ts, ts::VARCHAR FROM days GROUP BY ts, ts::VARCHAR; +-- +ok +== +ATTACH '{TEST_DIR}/create_index_time_zone_pruning.duckdb' AS pruning (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TABLE pruning.days AS SELECT TIMESTAMPTZ '2000-01-01 00:00:00+00' + i * INTERVAL '1 day' AS ts FROM range(8192) r(i); +-- +ok +== +SELECT count(*) FROM pruning.days WHERE date_diff('day', TIMESTAMPTZ '2000-01-01 00:00:00+00', ts) = 3000; +-- +ok +== +EXPLAIN ANALYZE SELECT ts FROM pruning.days WHERE date_diff('day', TIMESTAMPTZ '2000-01-01 00:00:00+00', ts) = 3000; +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/index_bind_failure_retry.test b/parser/testdata/corpus/sql/index/art/index_bind_failure_retry.test new file mode 100644 index 00000000..64ae6375 --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/index_bind_failure_retry.test @@ -0,0 +1,89 @@ +# source: test/sql/index/art/index_bind_failure_retry.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEMP_DIR}/idx_bind_failure.db' AS w; +-- +ok +== +CREATE MACRO m(x) AS x + 1; +-- +ok +== +CREATE TABLE w.t(v BIGINT); +-- +ok +== +CREATE INDEX i ON w.t(m(v)); +-- +ok +== +INSERT INTO w.t VALUES (1), (2); +-- +ok +== +DROP MACRO m; +-- +ok +== +INSERT INTO w.t VALUES (3); +-- +ok +== +SELECT count(*) FROM w.t WHERE m(v) = 4; +-- +ok +== +SET checkpoint_threshold = '1TB'; +-- +ok +== +ATTACH '{TEMP_DIR}/idx_bind_failure_replay.db' AS w; +-- +ok +== +INSERT INTO w.t SELECT range FROM range(1, 200001); +-- +ok +== +CHECKPOINT w; +-- +ok +== +INSERT INTO w.t SELECT range FROM range(200001, 200011); +-- +ok +== +CREATE OR REPLACE MACRO m(x) AS CASE WHEN x > 200000 THEN CAST('boom' || x::VARCHAR AS BIGINT) ELSE x + 1 END; +-- +ok +== +INSERT INTO w.t VALUES (0); +-- +ok +== +CREATE OR REPLACE MACRO m(x) AS x + 1; +-- +ok +== +INSERT INTO w.t SELECT range FROM range(300001, 500001); +-- +ok +== +INSERT INTO w.t VALUES (100000); +-- +ok +== +SELECT count(*) FROM w.t WHERE m(v) = 100001; +-- +ok +== +SELECT count(*) FROM w.t WHERE m(v) = 200011; +-- +ok +== +SELECT count(*) FROM w.t WHERE m(v) = 400001; +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/index_macro_dependency.test b/parser/testdata/corpus/sql/index/art/index_macro_dependency.test index eddc47ac..4f286b9b 100644 --- a/parser/testdata/corpus/sql/index/art/index_macro_dependency.test +++ b/parser/testdata/corpus/sql/index/art/index_macro_dependency.test @@ -1,12 +1,8 @@ # source: test/sql/index/art/index_macro_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE MACRO m(x) AS x + 1; --- -ok -== CREATE TABLE t(x INT); -- ok @@ -15,10 +11,6 @@ CREATE UNIQUE INDEX i ON t(m(x)); -- ok == -DROP MACRO m; --- -ok -== CREATE OR REPLACE MACRO m(x) AS x + 2; -- ok diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_sel_vector.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_sel_vector.test index 06544757..1c9c92a5 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_sel_vector.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_sel_vector.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_sel_vector.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE source(i INTEGER) diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_simple_update.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_simple_update.test index f729a14b..ec121393 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_simple_update.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_simple_update.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_simple_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=10 WHERE i=1 diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update.test index d78f9af2..5690fb77 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i_index ON integers using art(j) diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_other_column.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_other_column.test index 3d908746..7b4575c9 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_other_column.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_other_column.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_update_other_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i BIGINT, j INTEGER, k VARCHAR) diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_same_value.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_same_value.test index b6bfcb47..19daa86a 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_same_value.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_same_value.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_update_same_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i={i}+1 WHERE i={i}; diff --git a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_with_dict_fsst.test b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_with_dict_fsst.test index 84272d14..c7d84097 100644 --- a/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_with_dict_fsst.test +++ b/parser/testdata/corpus/sql/index/art/insert_update_delete/test_art_update_with_dict_fsst.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/insert_update_delete/test_art_update_with_dict_fsst.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE bar (col1 VARCHAR, col2 VARCHAR UNIQUE) diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer.test b/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer.test index f0dcd76c..ea14a959 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_fuzzer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (c1 DECIMAL(4, 3)); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer_persisted.test b/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer_persisted.test index 0c1581c4..4212cd58 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer_persisted.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_fuzzer_persisted.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_fuzzer_persisted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS (SELECT 1 c1, 'a' c2); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_internal_issue_4742.test b/parser/testdata/corpus/sql/index/art/issues/test_art_internal_issue_4742.test index cf41db57..600479ba 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_internal_issue_4742.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_internal_issue_4742.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_internal_issue_4742.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table test as select 9223372036854776 + range * 9223372036854776 i from range(100); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_21394.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_21394.test index 2f48e7b9..e8155853 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_21394.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_21394.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_21394.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t0(c0) VALUES (2); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_23929.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_23929.test index b15d8e26..1c22ddbd 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_23929.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_23929.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_23929.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX i1 ON t(x); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_24246.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_24246.test index 3d45a651..72be1bf4 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_24246.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_24246.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_24246.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE indexed_strings(a INTEGER, g AS (a + b), b INTEGER, c INTEGER UNIQUE) diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_25155.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_25155.test index 5490d3ef..d762d944 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_25155.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_25155.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_25155.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_percentage = 1.0; diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_4976.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_4976.test index 94613e1a..149f2c02 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_4976.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_4976.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_4976.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 DOUBLE, c1 TIMESTAMP DEFAULT(TIMESTAMP '1970-01-04 12:58:32')); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6603.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6603.test index 30831d19..3db3aa0f 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6603.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6603.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_6603.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE path ( diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6799.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6799.test index a9071482..a665d4c1 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6799.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_6799.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_6799.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE key_value_pairs (key VARCHAR PRIMARY KEY, value VARCHAR) diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7349.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7349.test index 81e76033..2f76d642 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7349.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7349.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_7349.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE td(tz VARCHAR(30) NOT NULL); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7530.test b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7530.test index 753f8156..4689feec 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7530.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_issue_7530.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_issue_7530.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t14(c0 BIGINT); diff --git a/parser/testdata/corpus/sql/index/art/issues/test_art_view_col_binding.test b/parser/testdata/corpus/sql/index/art/issues/test_art_view_col_binding.test index 42217026..f4372a84 100644 --- a/parser/testdata/corpus/sql/index/art/issues/test_art_view_col_binding.test +++ b/parser/testdata/corpus/sql/index/art/issues/test_art_view_col_binding.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/issues/test_art_view_col_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table test as ( @@ -48,10 +48,6 @@ drop index test_upper_x; -- ok == -CREATE TABLE t(a INTEGER, b VARCHAR); --- -ok -== INSERT INTO t VALUES (1, 'x'), (2, 'y'); -- ok diff --git a/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_column.test b/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_column.test index 48b6baaf..db276b31 100644 --- a/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_column.test +++ b/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_column.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/multi_column/test_art_multi_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM integers WHERE i=10 diff --git a/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_predicate.test b/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_predicate.test index 3b0a41ff..ea85d568 100644 --- a/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_predicate.test +++ b/parser/testdata/corpus/sql/index/art/multi_column/test_art_multi_predicate.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/multi_column/test_art_multi_predicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 2), (1, 3) diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_leaf_coverage.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_leaf_coverage.test index 2b9597d4..487526c0 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_leaf_coverage.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_leaf_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_leaf_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE duplicates (id UBIGINT); diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_nested_leaf_coverage.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_nested_leaf_coverage.test index 1a5ab19f..c946f827 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_nested_leaf_coverage.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_nested_leaf_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_nested_leaf_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i integer); diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_16.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_16.test index 0d135cb7..ae94355e 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_16.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_16.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_node_16.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES ({i} + 1); diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_256.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_256.test index ca0e0c32..8f56e8dc 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_256.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_256.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_node_256.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(i) FROM integers WHERE i > 15 diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_4.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_4.test index 82c6515e..dfa6d094 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_4.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_4.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_node_4.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(i) FROM integers WHERE i > 1 diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_48.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_48.test index ca076be5..011608a9 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_node_48.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_node_48.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_node_48.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE n48_tbl(i varchar, k integer) diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_create.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_create.test index 97396712..8478bde6 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_create.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_create.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_prefix_transform_deprecated_create.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/prefix_transform.db' AS db (STORAGE_VERSION 'v1.0.0'); diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_gated.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_gated.test index 89a899fb..cb31bf0f 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_gated.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefix_transform_deprecated_gated.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_prefix_transform_deprecated_gated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_max_count = 0; diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefixes_restart.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefixes_restart.test index b94ce54c..9af4112d 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_prefixes_restart.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_prefixes_restart.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_prefixes_restart.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (id INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/nodes/test_art_sparse_merge.test b/parser/testdata/corpus/sql/index/art/nodes/test_art_sparse_merge.test index 1a6e5228..332b856b 100644 --- a/parser/testdata/corpus/sql/index/art/nodes/test_art_sparse_merge.test +++ b/parser/testdata/corpus/sql/index/art/nodes/test_art_sparse_merge.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/nodes/test_art_sparse_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (i INT); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_adaptive_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_art_adaptive_scan.test index 0aaa3c22..8ae26b15 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_adaptive_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_adaptive_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_adaptive_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT 42 AS i FROM range(2050); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_many_matches.test b/parser/testdata/corpus/sql/index/art/scan/test_art_many_matches.test index ca966be4..7d70d672 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_many_matches.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_many_matches.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_many_matches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT i FROM RANGE(0, 1024, 1) t2(j), (VALUES (0), (1)) t1(i) ORDER BY j, i; diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_negative_range_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_art_negative_range_scan.test index 8867b94f..aaa09978 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_negative_range_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_negative_range_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_negative_range_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(-500, 500, 1) diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_node256_byte_edges.test b/parser/testdata/corpus/sql/index/art/scan/test_art_node256_byte_edges.test index adc6ef7b..e011798d 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_node256_byte_edges.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_node256_byte_edges.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_node256_byte_edges.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_max_count = 1000; diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_null_bytes.test b/parser/testdata/corpus/sql/index/art/scan/test_art_null_bytes.test index a306d1a1..b643aa24 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_null_bytes.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_null_bytes.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_null_bytes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE varchars(v VARCHAR PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_prepared_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_art_prepared_scan.test index db8cc523..c5b472e6 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_prepared_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_prepared_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_prepared_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (2), (4); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_range_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_art_range_scan.test index d5618e13..aa3704ce 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_range_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_range_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_range_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x VARCHAR PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_coverage.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_coverage.test index e98c19ac..49620c52 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_coverage.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_scan_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tab0(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT) diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_duplicate_filters.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_duplicate_filters.test index 5416cba1..5919c763 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_duplicate_filters.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_duplicate_filters.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_scan_duplicate_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_1 (fIdx VARCHAR, sIdx UUID,); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_filter_column.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_filter_column.test index 48a3fd85..b333aa96 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_filter_column.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_filter_column.test @@ -1,16 +1,8 @@ # source: test/sql/index/art/scan/test_art_scan_filter_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE TABLE t(a INTEGER, b INTEGER) --- -ok -== -INSERT INTO t VALUES (1, 10), (2, 20) --- -ok -== CREATE INDEX i ON t(b) -- ok diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_local_rows_batch_index.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_local_rows_batch_index.test new file mode 100644 index 00000000..dbba1f94 --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_local_rows_batch_index.test @@ -0,0 +1,29 @@ +# source: test/sql/index/art/scan/test_art_scan_local_rows_batch_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET index_scan_max_count = 10000; +-- +ok +== +CREATE TABLE t(id BIGINT PRIMARY KEY); +-- +ok +== +INSERT INTO t SELECT range FROM range(300000); +-- +ok +== +EXPLAIN ANALYZE SELECT id FROM t WHERE id >= 297000; +-- +ok +== +INSERT INTO t VALUES (1000000); +-- +ok +== +SELECT id FROM t WHERE id >= 297000 LIMIT 1 OFFSET 2048; +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_normal_to_nested.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_normal_to_nested.test index 934e5682..ee524072 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_normal_to_nested.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_normal_to_nested.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_scan_normal_to_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (i BIGINT); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_thresholds.test b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_thresholds.test index 65cb8734..349ed61f 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_art_scan_thresholds.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_art_scan_thresholds.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_art_scan_thresholds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_max_count = 1; diff --git a/parser/testdata/corpus/sql/index/art/scan/test_hash_join_in_filter_index_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_hash_join_in_filter_index_scan.test index 105a24f5..c4c3e317 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_hash_join_in_filter_index_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_hash_join_in_filter_index_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_hash_join_in_filter_index_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE random_orders AS ( diff --git a/parser/testdata/corpus/sql/index/art/scan/test_in_filter_index_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_in_filter_index_scan.test index 20ebf14c..bdac72d7 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_in_filter_index_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_in_filter_index_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_in_filter_index_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT range AS i FROM range(500000); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_not_distinct_index_scan.test b/parser/testdata/corpus/sql/index/art/scan/test_not_distinct_index_scan.test index 465b6837..f3a4aebf 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_not_distinct_index_scan.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_not_distinct_index_scan.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_not_distinct_index_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX idx_i ON tbl(i); diff --git a/parser/testdata/corpus/sql/index/art/scan/test_random_uuid.test b/parser/testdata/corpus/sql/index/art/scan/test_random_uuid.test index 761fd975..6288664c 100644 --- a/parser/testdata/corpus/sql/index/art/scan/test_random_uuid.test +++ b/parser/testdata/corpus/sql/index/art/scan/test_random_uuid.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/scan/test_random_uuid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table t as select id: uuid(), v: i from generate_series(1, 700000) s(i); diff --git a/parser/testdata/corpus/sql/index/art/storage/art_reloaded_buffer_initialization.test b/parser/testdata/corpus/sql/index/art/storage/art_reloaded_buffer_initialization.test new file mode 100644 index 00000000..f97db16e --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/storage/art_reloaded_buffer_initialization.test @@ -0,0 +1,61 @@ +# source: test/sql/index/art/storage/art_reloaded_buffer_initialization.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/art_reloaded_buffer_initialization.db' AS db +-- +ok +== +SET force_compression='uncompressed' +-- +ok +== +CREATE TABLE db.keys (k BIGINT PRIMARY KEY) +-- +ok +== +INSERT INTO db.keys SELECT i * 7919 FROM range(50000) r(i) +-- +ok +== +CHECKPOINT db +-- +ok +== +CREATE TEMP TABLE donor AS SELECT repeat('Q', 1000) AS s FROM range(10000) r(i) +-- +ok +== +DROP TABLE donor +-- +ok +== +INSERT INTO db.keys SELECT (i + 100000) * 7919 FROM range(5000) r(i) +-- +ok +== +DETACH db +-- +ok +== +SELECT strpos(hex(content), repeat(hex('Q'), 5)) FROM read_blob('{TEST_DIR}/art_reloaded_buffer_initialization.db') +-- +ok +== +SELECT count(*), count(DISTINCT k) FROM db.keys +-- +ok +== +SELECT k FROM db.keys WHERE k = 7919 +-- +ok +== +SELECT k FROM db.keys WHERE k = 100000 * 7919 +-- +ok +== +INSERT INTO db.keys VALUES (7919) +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_allocator_bitmap_checkpoint.test b/parser/testdata/corpus/sql/index/art/storage/test_art_allocator_bitmap_checkpoint.test index aa5e3bed..3a789183 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_allocator_bitmap_checkpoint.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_allocator_bitmap_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_allocator_bitmap_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/allocator_bitmap_{version}.db' AS bitmap_db (STORAGE_VERSION '{version}', BLOCK_SIZE 16384) diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_auto_checkpoint.test b/parser/testdata/corpus/sql/index/art/storage/test_art_auto_checkpoint.test index 1b438a90..910a979d 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_auto_checkpoint.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_auto_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_auto_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA wal_autocheckpoint='400KB'; diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_chunk_edges.test b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_chunk_edges.test index 1dfd0486..0b0834f5 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_chunk_edges.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_chunk_edges.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_buffered_replays_chunk_edges.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX idx_tbl_i ON tbl(i); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interleaved.test b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interleaved.test index 8aea31c6..c0e28a4a 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interleaved.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interleaved.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_buffered_replays_interleaved.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (i INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interval_merging.test b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interval_merging.test index bfbab539..84cf94be 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interval_merging.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_interval_merging.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_buffered_replays_interval_merging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl SELECT r FROM range({i} * 10000, {i} * 10000 + 2001) t(r); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_multi_col.test b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_multi_col.test index 4efa7fd8..958fbe63 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_multi_col.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_buffered_replays_multi_col.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_buffered_replays_multi_col.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl( diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_checkpoint.test b/parser/testdata/corpus/sql/index/art/storage/test_art_checkpoint.test index c1e56734..6a45f22c 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_checkpoint.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (i INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_corrupt_pointer.test b/parser/testdata/corpus/sql/index/art/storage/test_art_corrupt_pointer.test new file mode 100644 index 00000000..9509096c --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_corrupt_pointer.test @@ -0,0 +1,13 @@ +# source: test/sql/index/art/storage/test_art_corrupt_pointer.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/art_corrupt_pointer.db' AS db2 (READ_ONLY) +-- +ok +== +SELECT a FROM db2.t WHERE a = 17 +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_duckdb_versions.test b/parser/testdata/corpus/sql/index/art/storage/test_art_duckdb_versions.test index e63215d5..a6a8be1d 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_duckdb_versions.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_duckdb_versions.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_duckdb_versions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT table_name, index_count FROM duckdb_tables() ORDER BY table_name; diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_if_not_exists_constraint_name.test b/parser/testdata/corpus/sql/index/art/storage/test_art_if_not_exists_constraint_name.test index 84e1ed04..1f4aec09 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_if_not_exists_constraint_name.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_if_not_exists_constraint_name.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_if_not_exists_constraint_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE parent (id INTEGER PRIMARY KEY, val INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_import.test b/parser/testdata/corpus/sql/index/art/storage/test_art_import.test index 0fed7360..6db94718 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_import.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_import.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_import.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tracking("nflId" VARCHAR , "frameId" INTEGER, "gameId" INTEGER, "playId" INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_import_export.test b/parser/testdata/corpus/sql/index/art/storage/test_art_import_export.test index c0dbc941..d70c71b0 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_import_export.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_import_export.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_import_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE raw( diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_list_sort_checkpoint_on_close.test b/parser/testdata/corpus/sql/index/art/storage/test_art_list_sort_checkpoint_on_close.test new file mode 100644 index 00000000..b079cfe0 --- /dev/null +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_list_sort_checkpoint_on_close.test @@ -0,0 +1,57 @@ +# source: test/sql/index/art/storage/test_art_list_sort_checkpoint_on_close.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET checkpoint_threshold = '1GB'; +-- +ok +== +CREATE TABLE t (id INTEGER, l INTEGER[]); +-- +ok +== +INSERT INTO t VALUES (1, [1, 2]), (2, [5, 4]); +-- +ok +== +CREATE INDEX i ON t ((list_sort(l)[1])); +-- +ok +== +CREATE INDEX j ON t ((list_grade_up(l, 'DESC')[1])); +-- +ok +== +SELECT wal_size <> '0 bytes' FROM pragma_database_size(); +-- +ok +== +SELECT wal_size FROM pragma_database_size(); +-- +ok +== +SELECT id, l FROM t; +-- +ok +== +SELECT id FROM t WHERE list_sort(l)[1] = 4; +-- +ok +== +SET checkpoint_threshold = '1B'; +-- +ok +== +INSERT INTO t VALUES (3, [7, 6]); +-- +ok +== +SELECT id, list_grade_up(l, 'DESC')[1] FROM t; +-- +ok +== +SELECT id FROM t WHERE list_sort(l)[1] = 6; +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_mem_limit.test b/parser/testdata/corpus/sql/index/art/storage/test_art_mem_limit.test index bc2ad178..a8b42ec2 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_mem_limit.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_mem_limit.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_mem_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit = '10MB'; diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_names.test b/parser/testdata/corpus/sql/index/art/storage/test_art_names.test index c9a58376..55891122 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_names.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_names.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (i INTEGER PRIMARY KEY, j INTEGER UNIQUE); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_node256_leaf_layout.test b/parser/testdata/corpus/sql/index/art/storage/test_art_node256_leaf_layout.test index 0e02bc9a..f7ba3314 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_node256_leaf_layout.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_node256_leaf_layout.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_node256_leaf_layout.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/node256_{version}.db' AS leaf_db (STORAGE_VERSION '{version}', BLOCK_SIZE 16384) diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_readonly.test b/parser/testdata/corpus/sql/index/art/storage/test_art_readonly.test index f862223a..06e87f72 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_readonly.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_readonly.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX idx_drop ON tbl(i); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_storage.test b/parser/testdata/corpus/sql/index/art/storage/test_art_storage.test index 564c5867..05ae8f7b 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_storage.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_storage.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i integer,j integer) diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_storage_long_prefixes.test b/parser/testdata/corpus/sql/index/art/storage/test_art_storage_long_prefixes.test index 250dc70a..2cf6a0ee 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_storage_long_prefixes.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_storage_long_prefixes.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_storage_long_prefixes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET wal_autocheckpoint = '10GB'; diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_storage_multi_checkpoint.test b/parser/testdata/corpus/sql/index/art/storage/test_art_storage_multi_checkpoint.test index 095e0250..29097a2e 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_storage_multi_checkpoint.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_storage_multi_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_storage_multi_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO pk_integers VALUES (1) diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_checkpoint_minimal.test b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_checkpoint_minimal.test index d9d6f1a5..50cbeb2f 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_checkpoint_minimal.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_checkpoint_minimal.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_wal_checkpoint_minimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE minimal_tbl(i INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_drop_table.test b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_drop_table.test index 7b658589..80747158 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_drop_table.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_wal_replay_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT range + 42 FROM range(100); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_in_tx.test b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_in_tx.test index dad4e1b9..eabf6961 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_in_tx.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_in_tx.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_wal_replay_in_tx.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE drop_test (a INTEGER); diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer.test b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer.test index 85becb2c..4dfe2f43 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_wal_replay_with_buffer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (u_2 UNION("string" VARCHAR, "bool" BOOLEAN)) diff --git a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer_concurrent.test b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer_concurrent.test index 673ac76b..298fcfa4 100644 --- a/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer_concurrent.test +++ b/parser/testdata/corpus/sql/index/art/storage/test_art_wal_replay_with_buffer_concurrent.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/storage/test_art_wal_replay_with_buffer_concurrent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX idx_1 ON tbl ((u_2.string)); diff --git a/parser/testdata/corpus/sql/index/art/test_art_empty_close_range.test b/parser/testdata/corpus/sql/index/art/test_art_empty_close_range.test index 40889105..ec874028 100644 --- a/parser/testdata/corpus/sql/index/art/test_art_empty_close_range.test +++ b/parser/testdata/corpus/sql/index/art/test_art_empty_close_range.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/test_art_empty_close_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 DOUBLE UNIQUE); diff --git a/parser/testdata/corpus/sql/index/art/test_art_tx_update_key.test b/parser/testdata/corpus/sql/index/art/test_art_tx_update_key.test index 498e13a6..a961ff85 100644 --- a/parser/testdata/corpus/sql/index/art/test_art_tx_update_key.test +++ b/parser/testdata/corpus/sql/index/art/test_art_tx_update_key.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/test_art_tx_update_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table (id INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/index/art/test_index_key_rebind.test b/parser/testdata/corpus/sql/index/art/test_index_key_rebind.test index ee1729c0..3b4cec6b 100644 --- a/parser/testdata/corpus/sql/index/art/test_index_key_rebind.test +++ b/parser/testdata/corpus/sql/index/art/test_index_key_rebind.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/test_index_key_rebind.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE INDEX idx ON t USING ART(a); diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_boolean.test b/parser/testdata/corpus/sql/index/art/types/test_art_boolean.test index 76ff6dd9..cf89f474 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_boolean.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_boolean.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_boolean.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 BOOLEAN, c1 INT) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_coverage_types.test b/parser/testdata/corpus/sql/index/art/types/test_art_coverage_types.test index 61a3e14e..c3e28cd0 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_coverage_types.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_coverage_types.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_coverage_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE duplicate_id (id UINT32, id2 INT64); diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_double.test b/parser/testdata/corpus/sql/index/art/types/test_art_double.test index d97e4c2d..1adcaf5b 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_double.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_double.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_double.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(i DOUBLE) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_expression_key.test b/parser/testdata/corpus/sql/index/art/types/test_art_expression_key.test index cb8cb610..9301d61e 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_expression_key.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_expression_key.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_expression_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i BIGINT, j INTEGER, k VARCHAR, l BIGINT) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_integer_types.test b/parser/testdata/corpus/sql/index/art/types/test_art_integer_types.test index 980505d4..17d09453 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_integer_types.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_integer_types.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_integer_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i TINYINT, j SMALLINT, k INTEGER, l BIGINT) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_real.test b/parser/testdata/corpus/sql/index/art/types/test_art_real.test index 48f82e2d..057210c0 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_real.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_real.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_real.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(i REAL) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_real_pk.test b/parser/testdata/corpus/sql/index/art/types/test_art_real_pk.test index 535e44fc..ecd1387a 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_real_pk.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_real_pk.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_real_pk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers(i REAL PRIMARY KEY, j INTEGER) diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_union.test b/parser/testdata/corpus/sql/index/art/types/test_art_union.test index 6ab0be94..afc87bcb 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_union.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_union.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/index/art/types/test_art_varchar.test b/parser/testdata/corpus/sql/index/art/types/test_art_varchar.test index 2f575c65..5579cb57 100644 --- a/parser/testdata/corpus/sql/index/art/types/test_art_varchar.test +++ b/parser/testdata/corpus/sql/index/art/types/test_art_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/types/test_art_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(i varchar); diff --git a/parser/testdata/corpus/sql/index/art/unique_index_unbound_after_attach.test b/parser/testdata/corpus/sql/index/art/unique_index_unbound_after_attach.test index 542b56bb..36c2f6fd 100644 --- a/parser/testdata/corpus/sql/index/art/unique_index_unbound_after_attach.test +++ b/parser/testdata/corpus/sql/index/art/unique_index_unbound_after_attach.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/unique_index_unbound_after_attach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEMP_DIR}/unbound_uidx.db' AS w; diff --git a/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_persisted_nested_leaf.test b/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_persisted_nested_leaf.test index 185661a5..f7066b5b 100644 --- a/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_persisted_nested_leaf.test +++ b/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_persisted_nested_leaf.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/vacuum/test_art_vacuum_persisted_nested_leaf.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_art_vacuum_nested_leaf.db' AS leaf_db (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_rollback.test b/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_rollback.test index 1e927e0a..04cb843d 100644 --- a/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_rollback.test +++ b/parser/testdata/corpus/sql/index/art/vacuum/test_art_vacuum_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/index/art/vacuum/test_art_vacuum_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t{i}(i INTEGER UNIQUE); diff --git a/parser/testdata/corpus/sql/index/create_index_options.test b/parser/testdata/corpus/sql/index/create_index_options.test index 717f9d6d..5b96bea2 100644 --- a/parser/testdata/corpus/sql/index/create_index_options.test +++ b/parser/testdata/corpus/sql/index/create_index_options.test @@ -1,6 +1,6 @@ # source: test/sql/index/create_index_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABlE t1 (foo INT) diff --git a/parser/testdata/corpus/sql/index/index_key_collation.test b/parser/testdata/corpus/sql/index/index_key_collation.test new file mode 100644 index 00000000..8633c8c8 --- /dev/null +++ b/parser/testdata/corpus/sql/index/index_key_collation.test @@ -0,0 +1,69 @@ +# source: test/sql/index/index_key_collation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE il(v INTERVAL[]); +-- +ok +== +CREATE INDEX ii ON il (list_contains(v, INTERVAL 24 HOURS)); +-- +ok +== +CREATE TABLE vl(v VARIANT[]); +-- +ok +== +CREATE INDEX vi ON vl (list_position(v, 1::TINYINT::VARIANT)); +-- +ok +== +CREATE TABLE t(s VARCHAR); +-- +ok +== +CREATE INDEX i ON t(hash(s)); +-- +ok +== +INSERT INTO il VALUES ([INTERVAL 1 DAY]); +-- +ok +== +INSERT INTO vl VALUES ([1::TINYINT::VARIANT]); +-- +ok +== +INSERT INTO t VALUES ('A'), ('b'); +-- +ok +== +INSERT INTO il VALUES ([INTERVAL 2 DAY]); +-- +ok +== +INSERT INTO vl VALUES ([2::TINYINT::VARIANT]); +-- +ok +== +DELETE FROM t WHERE s = 'A'; +-- +ok +== +DELETE FROM il WHERE v = [INTERVAL 1 DAY]; +-- +ok +== +DELETE FROM vl WHERE v = [1::TINYINT::VARIANT]; +-- +ok +== +SELECT count(*) FROM il +-- +ok +== +SELECT count(*) FROM vl +-- +ok +== diff --git a/parser/testdata/corpus/sql/index/rollback_comment_on_index.test b/parser/testdata/corpus/sql/index/rollback_comment_on_index.test new file mode 100644 index 00000000..7223f576 --- /dev/null +++ b/parser/testdata/corpus/sql/index/rollback_comment_on_index.test @@ -0,0 +1,61 @@ +# source: test/sql/index/rollback_comment_on_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (i INTEGER, j INTEGER) +-- +ok +== +CREATE UNIQUE INDEX idx ON t (i) +-- +ok +== +COMMENT ON INDEX idx IS 'a' +-- +ok +== +COMMENT ON INDEX idx IS 'b' +-- +ok +== +SELECT comment FROM duckdb_indexes() WHERE index_name = 'idx' +-- +ok +== +INSERT INTO t VALUES (1, 1), (1, 1) +-- +ok +== +INSERT INTO t VALUES (1, 1) +-- +ok +== +INSERT INTO t VALUES (1, 2) +-- +ok +== +CREATE UNIQUE INDEX idx_j ON t (j) +-- +ok +== +COMMENT ON INDEX idx_j IS 'x' +-- +ok +== +SELECT COUNT(*) FROM duckdb_indexes() WHERE index_name = 'idx_j' +-- +ok +== +INSERT INTO t VALUES (2, 1) +-- +ok +== +DROP INDEX idx +-- +ok +== +INSERT INTO t VALUES (1, 3) +-- +ok +== diff --git a/parser/testdata/corpus/sql/insert/insert_by_name.test b/parser/testdata/corpus/sql/insert/insert_by_name.test index a77e42c7..f727e6dd 100644 --- a/parser/testdata/corpus/sql/insert/insert_by_name.test +++ b/parser/testdata/corpus/sql/insert/insert_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/insert/insert_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers BY NAME SELECT 42 AS j diff --git a/parser/testdata/corpus/sql/insert/insert_from_many_grouping_sets.test b/parser/testdata/corpus/sql/insert/insert_from_many_grouping_sets.test index 40b725f9..6e952715 100644 --- a/parser/testdata/corpus/sql/insert/insert_from_many_grouping_sets.test +++ b/parser/testdata/corpus/sql/insert/insert_from_many_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/insert/insert_from_many_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i, i%2 as j FROM generate_series(0,999999,1) tbl(i); diff --git a/parser/testdata/corpus/sql/insert/insert_query_node.test b/parser/testdata/corpus/sql/insert/insert_query_node.test index fb59e984..32805195 100644 --- a/parser/testdata/corpus/sql/insert/insert_query_node.test +++ b/parser/testdata/corpus/sql/insert/insert_query_node.test @@ -1,6 +1,6 @@ # source: test/sql/insert/insert_query_node.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t (a, b, c) VALUES (3, 'foo', 3.5); diff --git a/parser/testdata/corpus/sql/insert/insert_rollback.test b/parser/testdata/corpus/sql/insert/insert_rollback.test index dc1de74f..89c14993 100644 --- a/parser/testdata/corpus/sql/insert/insert_rollback.test +++ b/parser/testdata/corpus/sql/insert/insert_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/insert/insert_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (0), (1), (2) diff --git a/parser/testdata/corpus/sql/insert/null_values.test b/parser/testdata/corpus/sql/insert/null_values.test index 697453ea..9b55fb8d 100644 --- a/parser/testdata/corpus/sql/insert/null_values.test +++ b/parser/testdata/corpus/sql/insert/null_values.test @@ -1,6 +1,6 @@ # source: test/sql/insert/null_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT i FROM range(100) tbl(i); diff --git a/parser/testdata/corpus/sql/insert/test_big_insert.test b/parser/testdata/corpus/sql/insert/test_big_insert.test index bc87de23..1e5bbefa 100644 --- a/parser/testdata/corpus/sql/insert/test_big_insert.test +++ b/parser/testdata/corpus/sql/insert/test_big_insert.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_big_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9), (0), (1), (2), (3), (4), (5), (6), (7), (8), (9) diff --git a/parser/testdata/corpus/sql/insert/test_insert.test b/parser/testdata/corpus/sql/insert/test_insert.test index e1b8dc03..5b119670 100644 --- a/parser/testdata/corpus/sql/insert/test_insert.test +++ b/parser/testdata/corpus/sql/insert/test_insert.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE i2 AS SELECT 1 AS i FROM integers WHERE i % 2 <> 0 diff --git a/parser/testdata/corpus/sql/insert/test_insert_ignored_syntax.test b/parser/testdata/corpus/sql/insert/test_insert_ignored_syntax.test index 56e0ba6c..6b11797e 100644 --- a/parser/testdata/corpus/sql/insert/test_insert_ignored_syntax.test +++ b/parser/testdata/corpus/sql/insert/test_insert_ignored_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_insert_ignored_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(i STRING) diff --git a/parser/testdata/corpus/sql/insert/test_insert_invalid.test b/parser/testdata/corpus/sql/insert/test_insert_invalid.test index ec5d643b..66cb118c 100644 --- a/parser/testdata/corpus/sql/insert/test_insert_invalid.test +++ b/parser/testdata/corpus/sql/insert/test_insert_invalid.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_insert_invalid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO strings VALUES ('�(') diff --git a/parser/testdata/corpus/sql/insert/test_insert_query.test b/parser/testdata/corpus/sql/insert/test_insert_query.test index 614ce5c4..f763fb6b 100644 --- a/parser/testdata/corpus/sql/insert/test_insert_query.test +++ b/parser/testdata/corpus/sql/insert/test_insert_query.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_insert_query.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT 42 diff --git a/parser/testdata/corpus/sql/insert/test_insert_type.test b/parser/testdata/corpus/sql/insert/test_insert_type.test index bd79f6aa..65842fa0 100644 --- a/parser/testdata/corpus/sql/insert/test_insert_type.test +++ b/parser/testdata/corpus/sql/insert/test_insert_type.test @@ -1,6 +1,6 @@ # source: test/sql/insert/test_insert_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(a VARCHAR) diff --git a/parser/testdata/corpus/sql/insert/unaligned_interleaved_appends.test b/parser/testdata/corpus/sql/insert/unaligned_interleaved_appends.test index e8b596d0..7f87be7e 100644 --- a/parser/testdata/corpus/sql/insert/unaligned_interleaved_appends.test +++ b/parser/testdata/corpus/sql/insert/unaligned_interleaved_appends.test @@ -1,6 +1,6 @@ # source: test/sql/insert/unaligned_interleaved_appends.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(0, 5) diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_arbitrary_condition_optimizer_disabled.test b/parser/testdata/corpus/sql/join/asof/test_asof_arbitrary_condition_optimizer_disabled.test index 1ad2f2ae..7a456cb4 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_arbitrary_condition_optimizer_disabled.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_arbitrary_condition_optimizer_disabled.test @@ -1,12 +1,8 @@ # source: test/sql/join/asof/test_asof_arbitrary_condition_optimizer_disabled.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET debug_disable_optimizer=true; --- -ok -== CREATE TABLE a_t AS SELECT (range % 3)::INTEGER AS k, ['sad', 'ok', 'happy'][1 + range % 3] AS m, range::INTEGER AS t FROM range(12); -- ok diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_empty_right.test b/parser/testdata/corpus/sql/join/asof/test_asof_empty_right.test index c03ce25a..868c6784 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_empty_right.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_empty_right.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_empty_right.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select lefttable.x, righttable.y diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join.test b/parser/testdata/corpus/sql/join/asof/test_asof_join.test index 6c6403c9..8cfb405e 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events0 (begin DOUBLE, value INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_collation_loop_join.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_collation_loop_join.test new file mode 100644 index 00000000..53d7db14 --- /dev/null +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_collation_loop_join.test @@ -0,0 +1,37 @@ +# source: test/sql/join/asof/test_asof_join_collation_loop_join.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l(id INTEGER, t VARCHAR COLLATE NOCASE); +-- +ok +== +INSERT INTO l VALUES (0, 'b'); +-- +ok +== +CREATE TABLE r(id INTEGER, t VARCHAR COLLATE NOCASE); +-- +ok +== +INSERT INTO r VALUES (1, 'a'), (2, 'B'); +-- +ok +== +SELECT * FROM l ASOF LEFT JOIN r ON l.t >= r.t; +-- +ok +== +SET asof_loop_join_threshold=0; +-- +ok +== +RESET asof_loop_join_threshold; +-- +ok +== +SELECT * FROM l ASOF JOIN r ON l.t >= r.t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_doubles.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_doubles.test index 9d066954..a393c450 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_doubles.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_doubles.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_doubles.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA asof_loop_join_threshold=0; diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_filter_pushdown.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_filter_pushdown.test index 1e00ac7c..7c4dabca 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_filter_pushdown.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE left_table (id INTEGER, ts TIMESTAMP, symbol VARCHAR, price DECIMAL); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_inequalities.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_inequalities.test index 57d2dd0a..e98f8575 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_inequalities.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_inequalities.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_inequalities.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events0 AS diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_integers.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_integers.test index 36f6164e..79d35edd 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_integers.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_integers.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_integers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events0 (begin INTEGER, value INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_key_types.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_key_types.test index 7595707f..d46f4c64 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_key_types.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_key_types.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_key_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE l AS SELECT i AS g, i - 1 AS ts FROM range(2000) r(i); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_list_partition_key.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_list_partition_key.test new file mode 100644 index 00000000..12b172e1 --- /dev/null +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_list_partition_key.test @@ -0,0 +1,21 @@ +# source: test/sql/join/asof/test_asof_join_list_partition_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l AS SELECT range id, range t, range % 3 a, [range % 5] b FROM range(1000); +-- +ok +== +CREATE TABLE r AS SELECT range id, range t, range % 3 a, CASE WHEN range % 7 = 0 THEN NULL ELSE [range % 5] END b FROM range(1000); +-- +ok +== +SELECT count(r.id), sum(r.id) FROM l ASOF LEFT JOIN r ON l.a = r.a AND l.b = r.b AND l.t > r.t; +-- +ok +== +SELECT count(r.id), sum(r.id) FROM l ASOF LEFT JOIN r ON l.b = r.b AND l.a = r.a AND l.t > r.t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_not_distinct_predicate.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_not_distinct_predicate.test index 1176658b..28464033 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_not_distinct_predicate.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_not_distinct_predicate.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_not_distinct_predicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INTEGER, k INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_nulls.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_nulls.test index 872fbaa9..3714fd00 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_nulls.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA asof_loop_join_threshold = 0; diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_predicates.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_predicates.test index 941922a0..b65fd692 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_predicates.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_predicates.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_predicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tt1 (i INTEGER, j VARCHAR); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_prefix.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_prefix.test index 32daced2..f0a85929 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_prefix.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_prefix.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_prefix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_asof_iejoin=False diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_pushdown.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_pushdown.test index 1c48920c..15605c52 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_pushdown.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE right_pushdown(time INTEGER, value FLOAT); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_setops.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_setops.test index 0c14fb39..3efbfa20 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_setops.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_setops.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_setops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(d INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_subquery.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_subquery.test index e44b5956..bd10665a 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_subquery.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events (begin DOUBLE, value INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_timestamps.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_timestamps.test index e9ff161e..6e6ea21f 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_timestamps.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_timestamps.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_timestamps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO events0 VALUES diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_types.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_types.test index c9576dac..349962bb 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_types.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_types.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO left_table VALUES diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_join_varchar.test b/parser/testdata/corpus/sql/join/asof/test_asof_join_varchar.test index 22a79b1a..0f6915b7 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_join_varchar.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_join_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_join_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events0 (begin VARCHAR, value INTEGER); diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_limit.test b/parser/testdata/corpus/sql/join/asof/test_asof_limit.test index 24ab62b9..60955d59 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_limit.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_limit.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH trades AS ( diff --git a/parser/testdata/corpus/sql/join/asof/test_asof_semi_anti_mark.test b/parser/testdata/corpus/sql/join/asof/test_asof_semi_anti_mark.test index 2a3ff67c..ce0151f8 100644 --- a/parser/testdata/corpus/sql/join/asof/test_asof_semi_anti_mark.test +++ b/parser/testdata/corpus/sql/join/asof/test_asof_semi_anti_mark.test @@ -1,6 +1,6 @@ # source: test/sql/join/asof/test_asof_semi_anti_mark.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO left_table VALUES diff --git a/parser/testdata/corpus/sql/join/bloom_filter_rowid_deleted_rows.test b/parser/testdata/corpus/sql/join/bloom_filter_rowid_deleted_rows.test new file mode 100644 index 00000000..cd30eb85 --- /dev/null +++ b/parser/testdata/corpus/sql/join/bloom_filter_rowid_deleted_rows.test @@ -0,0 +1,37 @@ +# source: test/sql/join/bloom_filter_rowid_deleted_rows.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT i AS id, i % 100 AS grp FROM range(100000) t(i); +-- +ok +== +DELETE FROM t WHERE id IN (0, 2048, 4096); +-- +ok +== +SET dynamic_or_filter_threshold = 1; +-- +ok +== +CREATE TABLE s AS SELECT * FROM (VALUES (2047::BIGINT), (4095::BIGINT), (6143::BIGINT), (1000000000::BIGINT)) v(v); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM t JOIN s ON t.rowid = s.v; +-- +ok +== +SELECT count(*) FROM t JOIN s ON t.rowid = s.v; +-- +ok +== +SELECT t.rowid, t.id, t.grp FROM t JOIN s ON t.rowid = s.v ORDER BY ALL; +-- +ok +== +SELECT t.id, t.grp FROM t JOIN s ON t.rowid = s.v WHERE t.grp = 47 ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/comparison_operand_extraction.test b/parser/testdata/corpus/sql/join/comparison_operand_extraction.test index 60cd7f12..22529086 100644 --- a/parser/testdata/corpus/sql/join/comparison_operand_extraction.test +++ b/parser/testdata/corpus/sql/join/comparison_operand_extraction.test @@ -1,6 +1,6 @@ # source: test/sql/join/comparison_operand_extraction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET explain_output='optimized_only'; diff --git a/parser/testdata/corpus/sql/join/cross_product/test_cross_product.test b/parser/testdata/corpus/sql/join/cross_product/test_cross_product.test index 8018642e..8fc24e22 100644 --- a/parser/testdata/corpus/sql/join/cross_product/test_cross_product.test +++ b/parser/testdata/corpus/sql/join/cross_product/test_cross_product.test @@ -1,6 +1,6 @@ # source: test/sql/join/cross_product/test_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 1), (12, 2); diff --git a/parser/testdata/corpus/sql/join/delim_join_reuse.test b/parser/testdata/corpus/sql/join/delim_join_reuse.test index f2e196d1..4cea9825 100644 --- a/parser/testdata/corpus/sql/join/delim_join_reuse.test +++ b/parser/testdata/corpus/sql/join/delim_join_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/join/delim_join_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET delim_join_as_cte = false diff --git a/parser/testdata/corpus/sql/join/empty_joins.test b/parser/testdata/corpus/sql/join/empty_joins.test index 4ea92723..e5865d53 100644 --- a/parser/testdata/corpus/sql/join/empty_joins.test +++ b/parser/testdata/corpus/sql/join/empty_joins.test @@ -1,6 +1,6 @@ # source: test/sql/join/empty_joins.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i FROM range(10) tbl(i) diff --git a/parser/testdata/corpus/sql/join/external/external_join_repartition_probe_side.test b/parser/testdata/corpus/sql/join/external/external_join_repartition_probe_side.test index 52d6f95f..7d9e9001 100644 --- a/parser/testdata/corpus/sql/join/external/external_join_repartition_probe_side.test +++ b/parser/testdata/corpus/sql/join/external/external_join_repartition_probe_side.test @@ -1,6 +1,6 @@ # source: test/sql/join/external/external_join_repartition_probe_side.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM range(300000) a(k) JOIN range(300000) b(k) USING (k); diff --git a/parser/testdata/corpus/sql/join/external/external_join_runtime_filter.test b/parser/testdata/corpus/sql/join/external/external_join_runtime_filter.test index 6a824b0a..be6400b1 100644 --- a/parser/testdata/corpus/sql/join/external/external_join_runtime_filter.test +++ b/parser/testdata/corpus/sql/join/external/external_join_runtime_filter.test @@ -1,6 +1,6 @@ # source: test/sql/join/external/external_join_runtime_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE b AS SELECT range % 2000 AS k FROM range(1000000) diff --git a/parser/testdata/corpus/sql/join/external/null_safe_runtime_filter_external.test b/parser/testdata/corpus/sql/join/external/null_safe_runtime_filter_external.test new file mode 100644 index 00000000..b4d62915 --- /dev/null +++ b/parser/testdata/corpus/sql/join/external/null_safe_runtime_filter_external.test @@ -0,0 +1,45 @@ +# source: test/sql/join/external/null_safe_runtime_filter_external.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='statistics_propagation,join_order,build_side_probe_side,compressed_materialization'; +-- +ok +== +SET dynamic_or_filter_threshold=0; +-- +ok +== +CREATE TABLE probe AS +SELECT CASE WHEN i%101=0 THEN NULL ELSE (i%4000)*1000000 END a FROM range(2000000)t(i); +-- +ok +== +CREATE TABLE build AS +SELECT CASE WHEN i%97=0 THEN NULL ELSE (i%2000)*1000000 END b FROM range(2000000)t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM probe p SEMI JOIN build b ON p.a IS NOT DISTINCT FROM b.b; +-- +ok +== +SELECT bool_or(info.external::BOOLEAN)::INTEGER +FROM duckdb_logs_parsed('PhysicalOperator') +WHERE class='PhysicalHashJoin' AND event='Finalize'; +-- +ok +== +SELECT count(*) FROM probe p SEMI JOIN build b ON p.a IS NOT DISTINCT FROM b.b; +-- +ok +== +SELECT count(*) FROM probe p SEMI JOIN build b ON TRY_CAST(p.a AS INTEGER) IS NOT DISTINCT FROM b.b; +-- +ok +== +RESET dynamic_or_filter_threshold; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/full_outer/full_outer_join_cache.test b/parser/testdata/corpus/sql/join/full_outer/full_outer_join_cache.test index 2f33dd74..5e1e8669 100644 --- a/parser/testdata/corpus/sql/join/full_outer/full_outer_join_cache.test +++ b/parser/testdata/corpus/sql/join/full_outer/full_outer_join_cache.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/full_outer_join_cache.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE smalltable AS SELECT 1::INTEGER a; diff --git a/parser/testdata/corpus/sql/join/full_outer/full_outer_join_union.test b/parser/testdata/corpus/sql/join/full_outer/full_outer_join_union.test index 46cd3b57..fecef145 100644 --- a/parser/testdata/corpus/sql/join/full_outer/full_outer_join_union.test +++ b/parser/testdata/corpus/sql/join/full_outer/full_outer_join_union.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/full_outer_join_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1), (3, 3); diff --git a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join.test b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join.test index 87c99641..a89be932 100644 --- a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join.test +++ b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/test_full_outer_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1), (3, 3) diff --git a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_complex.test b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_complex.test index e9bc822c..e73e2ca2 100644 --- a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_complex.test +++ b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_complex.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/test_full_outer_join_complex.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1) diff --git a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_inequality.test b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_inequality.test index a7bcaa06..78a54ae0 100644 --- a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_inequality.test +++ b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_inequality.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/test_full_outer_join_inequality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i<>integers2.k ORDER BY 1, 2, 3, 4 diff --git a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_issue_4252.test b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_issue_4252.test index 9c8c221e..3d64b42f 100644 --- a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_issue_4252.test +++ b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_issue_4252.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/test_full_outer_join_issue_4252.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INT, y INT); diff --git a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_range.test b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_range.test index 20d44d09..40371a1f 100644 --- a/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_range.test +++ b/parser/testdata/corpus/sql/join/full_outer/test_full_outer_join_range.test @@ -1,6 +1,6 @@ # source: test/sql/join/full_outer/test_full_outer_join_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i fx_rate), count(DISTINCT rate_name) + FROM (SELECT k, fx_rate, rate_name, CASE WHEN currency = 'USD' THEN 1.0::DOUBLE ELSE fx_rate END AS rate + FROM big_positions JOIN rates USING (day)) + WHERE (k * rate) % 997 < 20; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_constant_probe.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_constant_probe.test index cf80d107..743f509b 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_constant_probe.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_constant_probe.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_constant_probe.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dim (k VARCHAR PRIMARY KEY, name VARCHAR) diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving.test index 8ca0fe9d..546821c0 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_dict_surviving.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='join_order' diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_computed_build.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_computed_build.test new file mode 100644 index 00000000..97de2410 --- /dev/null +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_computed_build.test @@ -0,0 +1,49 @@ +# source: test/sql/join/hash_join/hash_join_dict_surviving_computed_build.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE nation AS SELECT i AS nk, 'NATION_' || (i % 5) AS n_name FROM range(25) t(i); +-- +ok +== +CREATE TABLE customer AS SELECT i * 1000 AS ck, i % 25 AS nk FROM range(10000) t(i); +-- +ok +== +CREATE TABLE probe AS SELECT (i % 10000) * 1000 AS ck FROM range(100000) t(i); +-- +ok +== +SELECT count(*), count(DISTINCT nm) FROM probe p JOIN (SELECT c.ck, CASE WHEN c.ck < 5000000 OR random() < 0 THEN n.n_name ELSE 'other' END AS nm FROM customer c JOIN nation n ON c.nk = n.nk) b ON p.ck = b.ck; +-- +ok +== +SELECT count(*), count(DISTINCT nm) FROM probe p JOIN (SELECT c.ck, n.n_name || '' AS nm FROM customer c JOIN nation n ON c.nk = n.nk) b ON p.ck = b.ck; +-- +ok +== +CREATE TABLE b AS SELECT i AS id, 'b' || i AS name, CASE WHEN i = 0 THEN repeat('x,', 4999) || 'x' ELSE 'r' || i END AS csv FROM range(2000) t(i) +-- +ok +== +CREATE TABLE p AS SELECT 1999 - i % 2000 AS id FROM range(300000) t(i) +-- +ok +== +CREATE TABLE q AS SELECT 'r' || (i % 2000) AS r FROM range(1000000) t(i) +-- +ok +== +SELECT max(y.name), count(*) FROM q JOIN (SELECT b.name, unnest(string_split(b.csv, ',')) AS r FROM p JOIN b USING (id)) y USING (r); +-- +ok +== +CREATE TABLE p_small AS SELECT i % 2000 AS id FROM range(2 * 2048 + 50) t(i); +-- +ok +== +SELECT max(y.name), count(*) FROM q JOIN (SELECT b.name, 'r' || b.id AS r FROM (SELECT * FROM p_small JOIN b USING (id)) b, range(100) t(k)) y USING (r); +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_cte.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_cte.test index 46c4b76f..d02e6e0a 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_cte.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_cte.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_dict_surviving_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE small_dim AS SELECT i AS k, 'small_dictionary_' || i AS label FROM range(25) t(i) diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_outer_build.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_outer_build.test index 34ebf6fc..7a2ae030 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_outer_build.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_outer_build.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_dict_surviving_outer_build.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nation AS SELECT i AS nk, 'NATION_' || (i % 5) AS n_name FROM range(25) t(i) diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_reinterpret.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_reinterpret.test new file mode 100644 index 00000000..fc5fb71f --- /dev/null +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dict_surviving_reinterpret.test @@ -0,0 +1,25 @@ +# source: test/sql/join/hash_join/hash_join_dict_surviving_reinterpret.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE build AS SELECT i AS k, ('POINT(' || i || ' 0)')::GEOMETRY AS g FROM range(20000) t(i); +-- +ok +== +CREATE TABLE probe AS SELECT i % 20000 AS k FROM range(40000) t(i); +-- +ok +== +CREATE TABLE sel AS SELECT ST_SetCRS(('POINT(' || i || ' 0)')::GEOMETRY, 'OGC:CRS84') AS g FROM range(10) t(i); +-- +ok +== +SELECT count(*) FROM (SELECT ST_SetCRS(b.g, 'OGC:CRS84') AS x FROM probe p JOIN build b ON p.k = b.k) j JOIN sel s ON j.x = s.g; +-- +ok +== +SELECT count(*) FROM (SELECT ST_SetCRS(b.g, 'OGC:CRS84') AS x FROM probe p JOIN build b ON p.k = b.k) j JOIN sel s ON j.x::VARCHAR = s.g::VARCHAR; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_dictionary_probe.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_dictionary_probe.test index 241a5be4..3e55e088 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_dictionary_probe.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_dictionary_probe.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_dictionary_probe.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE dim (k VARCHAR PRIMARY KEY, name VARCHAR); diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_nested_key_after_constant_key.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_nested_key_after_constant_key.test new file mode 100644 index 00000000..5a579b4d --- /dev/null +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_nested_key_after_constant_key.test @@ -0,0 +1,93 @@ +# source: test/sql/join/hash_join/hash_join_nested_key_after_constant_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS +SELECT [NULL, 1, 1] AS front, [1, NULL, 1] AS mid, [1, 1, NULL] AS back, 7 AS i, [5, NULL] AS l, + [5, 6]::INTEGER[2] AS a, {'k': [5]} AS s, []::INTEGER[] AS e, [[5], [6, NULL]] AS ll, + MAP {'a': 1} AS m +-- +ok +== +EXPLAIN SELECT count(*) +FROM (SELECT unnest(front) AS x, i, l FROM t) p JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, l FROM t) p JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(mid) AS x, i, l FROM t) p JOIN (SELECT unnest(mid) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(back) AS x, i, l FROM t) p JOIN (SELECT unnest(back) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, l FROM t) p JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i IS NOT DISTINCT FROM q.i AND p.l IS NOT DISTINCT FROM q.l AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, a FROM t) p JOIN (SELECT unnest(front) AS x, i, a FROM t) q +ON p.i = q.i AND p.a = q.a AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, s FROM t) p JOIN (SELECT unnest(front) AS x, i, s FROM t) q +ON p.i = q.i AND p.s = q.s AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, e FROM t) p JOIN (SELECT unnest(front) AS x, i, e FROM t) q +ON p.i = q.i AND p.e = q.e AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, ll FROM t) p JOIN (SELECT unnest(front) AS x, i, ll FROM t) q +ON p.i = q.i AND p.ll = q.ll AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, m FROM t) p JOIN (SELECT unnest(front) AS x, i, m FROM t) q +ON p.i = q.i AND p.m = q.m AND p.x = q.x +-- +ok +== +SELECT count(*) +FROM (VALUES (NULL, 7, [5, NULL]), (1, 7, [5, NULL]), (1, 7, [5, NULL]), (1, 8, [5, NULL])) p(x, i, l) +JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== +SELECT p.x, q.x, count(*) +FROM (SELECT unnest(front) AS x, i, l FROM t) p LEFT JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +GROUP BY ALL +ORDER BY ALL +-- +ok +== +SELECT count(*) +FROM (SELECT unnest(front) AS x, i, l FROM t) p FULL JOIN (SELECT unnest(front) AS x, i, l FROM t) q +ON p.i = q.i AND p.l = q.l AND p.x = q.x +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/hash_join/hash_join_residual_predicates.test b/parser/testdata/corpus/sql/join/hash_join/hash_join_residual_predicates.test index 7d850095..1c58498e 100644 --- a/parser/testdata/corpus/sql/join/hash_join/hash_join_residual_predicates.test +++ b/parser/testdata/corpus/sql/join/hash_join/hash_join_residual_predicates.test @@ -1,6 +1,6 @@ # source: test/sql/join/hash_join/hash_join_residual_predicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set disabled_optimizers to 'build_side_probe_side'; diff --git a/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_6861.test b/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_6861.test index 82da8293..988811cf 100644 --- a/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_6861.test +++ b/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_6861.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/iejoin_issue_6861.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(x INT); diff --git a/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_7278.test b/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_7278.test index 0f3c2c9b..1f487f69 100644 --- a/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_7278.test +++ b/parser/testdata/corpus/sql/join/iejoin/iejoin_issue_7278.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/iejoin_issue_7278.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table calendar as diff --git a/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_struct_payload.test b/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_struct_payload.test index a46c874e..7945377f 100644 --- a/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_struct_payload.test +++ b/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_struct_payload.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/iejoin_outer_struct_payload.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE l AS SELECT range::INT i, {'x': range} t FROM range(1000); diff --git a/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_tail_predicate.test b/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_tail_predicate.test new file mode 100644 index 00000000..4f5e071b --- /dev/null +++ b/parser/testdata/corpus/sql/join/iejoin/iejoin_outer_tail_predicate.test @@ -0,0 +1,25 @@ +# source: test/sql/join/iejoin/iejoin_outer_tail_predicate.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l AS SELECT range id, 10 a, 0 b, 5 c FROM range(2000) UNION ALL SELECT -1, NULL, NULL, NULL; +-- +ok +== +CREATE TABLE r AS SELECT range id, 1 a, 2 b, 0 c FROM range(2000) UNION ALL SELECT 5000, 1, 1, 9; +-- +ok +== +SELECT count(*) FILTER (WHERE l.id IS NULL) FROM l FULL JOIN r ON l.a > r.a AND l.b < r.b AND l.c < r.c AND l.id + r.id > -10; +-- +ok +== +SELECT count(*) FILTER (WHERE r.id IS NULL) FROM l LEFT JOIN r ON l.a > r.a AND l.b < r.b AND l.c < r.c AND l.id + r.id > -10; +-- +ok +== +SELECT count(*) FROM l FULL JOIN r ON l.a > r.a AND l.b < r.b AND l.c < r.c AND l.id + r.id > -10; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/iejoin/iejoin_semi_anti_residual_payload.test b/parser/testdata/corpus/sql/join/iejoin/iejoin_semi_anti_residual_payload.test index f1abf84a..58595cab 100644 --- a/parser/testdata/corpus/sql/join/iejoin/iejoin_semi_anti_residual_payload.test +++ b/parser/testdata/corpus/sql/join/iejoin/iejoin_semi_anti_residual_payload.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/iejoin_semi_anti_residual_payload.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) diff --git a/parser/testdata/corpus/sql/join/iejoin/merge_join_switch.test b/parser/testdata/corpus/sql/join/iejoin/merge_join_switch.test index 05128bf3..b6486cfe 100644 --- a/parser/testdata/corpus/sql/join/iejoin/merge_join_switch.test +++ b/parser/testdata/corpus/sql/join/iejoin/merge_join_switch.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/merge_join_switch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigtbl AS FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/join/iejoin/predicate_expressions.test b/parser/testdata/corpus/sql/join/iejoin/predicate_expressions.test index bc9d0070..2d865fd2 100644 --- a/parser/testdata/corpus/sql/join/iejoin/predicate_expressions.test +++ b/parser/testdata/corpus/sql/join/iejoin/predicate_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/predicate_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table calendar as SELECT * diff --git a/parser/testdata/corpus/sql/join/iejoin/test_countzeros.test b/parser/testdata/corpus/sql/join/iejoin/test_countzeros.test index 6d17d6d9..89e71eb0 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_countzeros.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_countzeros.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_countzeros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set merge_join_threshold=0; diff --git a/parser/testdata/corpus/sql/join/iejoin/test_ieantijoin.test b/parser/testdata/corpus/sql/join/iejoin/test_ieantijoin.test index 16427a4a..2729a9cc 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_ieantijoin.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_ieantijoin.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_ieantijoin.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE left_small( diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin.test index 7df3ef89..d35bf7a4 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH test AS ( diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_east_west.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_east_west.test index a5eb28b3..a0b05be8 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_east_west.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_east_west.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin_east_west.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE east AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_events.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_events.test index abd35e8b..9bcafc0e 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_events.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_events.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin_events.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events AS ( diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_null_keys.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_null_keys.test index dea56ec2..34cce6e0 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_null_keys.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_null_keys.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin_null_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET nested_loop_join_threshold=0 diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_overlaps.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_overlaps.test index cfaf8da8..c55e8f98 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_overlaps.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_overlaps.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin_overlaps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_predicate.test b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_predicate.test index a391c18f..2b8b971f 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iejoin_predicate.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iejoin_predicate.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iejoin_predicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tleft as diff --git a/parser/testdata/corpus/sql/join/iejoin/test_iesemijoin.test b/parser/testdata/corpus/sql/join/iejoin/test_iesemijoin.test index 240eed76..8ce21706 100644 --- a/parser/testdata/corpus/sql/join/iejoin/test_iesemijoin.test +++ b/parser/testdata/corpus/sql/join/iejoin/test_iesemijoin.test @@ -1,6 +1,6 @@ # source: test/sql/join/iejoin/test_iesemijoin.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO left_small VALUES diff --git a/parser/testdata/corpus/sql/join/inner/empty_tinyint_column.test b/parser/testdata/corpus/sql/join/inner/empty_tinyint_column.test index d4dbefc4..2702aba1 100644 --- a/parser/testdata/corpus/sql/join/inner/empty_tinyint_column.test +++ b/parser/testdata/corpus/sql/join/inner/empty_tinyint_column.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/empty_tinyint_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT4, c1 VARCHAR); diff --git a/parser/testdata/corpus/sql/join/inner/equality_join_limits.test b/parser/testdata/corpus/sql/join/inner/equality_join_limits.test index 9ce6bb53..362cad20 100644 --- a/parser/testdata/corpus/sql/join/inner/equality_join_limits.test +++ b/parser/testdata/corpus/sql/join/inner/equality_join_limits.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/equality_join_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE u(u_k0 TINYINT); diff --git a/parser/testdata/corpus/sql/join/inner/join_cache.test b/parser/testdata/corpus/sql/join/inner/join_cache.test index d5516d3b..ac5030c4 100644 --- a/parser/testdata/corpus/sql/join/inner/join_cache.test +++ b/parser/testdata/corpus/sql/join/inner/join_cache.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/join_cache.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigtable AS SELECT a::INTEGER a FROM generate_series(0, 10000, 1) tbl(a), generate_series(0, 9, 1) tbl2(b); diff --git a/parser/testdata/corpus/sql/join/inner/join_cross_product.test b/parser/testdata/corpus/sql/join/inner/join_cross_product.test index 151b022f..ceee0fec 100644 --- a/parser/testdata/corpus/sql/join/inner/join_cross_product.test +++ b/parser/testdata/corpus/sql/join/inner/join_cross_product.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/join_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(i integer); diff --git a/parser/testdata/corpus/sql/join/inner/list_join.test b/parser/testdata/corpus/sql/join/inner/list_join.test index dfce0be2..14959b96 100644 --- a/parser/testdata/corpus/sql/join/inner/list_join.test +++ b/parser/testdata/corpus/sql/join/inner/list_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/list_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id INTEGER, l VARCHAR[]); diff --git a/parser/testdata/corpus/sql/join/inner/not_between_is_null.test b/parser/testdata/corpus/sql/join/inner/not_between_is_null.test index 7f2ac618..e4524f94 100644 --- a/parser/testdata/corpus/sql/join/inner/not_between_is_null.test +++ b/parser/testdata/corpus/sql/join/inner/not_between_is_null.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/not_between_is_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT); diff --git a/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter.test b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter.test new file mode 100644 index 00000000..9e252013 --- /dev/null +++ b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter.test @@ -0,0 +1,122 @@ +# source: test/sql/join/inner/null_safe_runtime_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE OR REPLACE TABLE probe(id INTEGER,k {type}); +-- +error: Parser Error: syntax error at or near "{" +== +INSERT INTO probe VALUES (0,NULL),(1,'1'),(2,'2'),(3,'3'),(4,'4'),(5,NULL),(6,'6'); +-- +ok +== +CREATE OR REPLACE TABLE build(k {type},tag INTEGER); +-- +error: Parser Error: syntax error at or near "{" +== +PREPARE null_keys AS SELECT id,tag FROM probe p JOIN build b ON p.k IS NOT DISTINCT FROM b.k ORDER BY id,tag; +-- +ok +== +EXECUTE null_keys; +-- +ok +== +INSERT INTO build VALUES ('1',11),('3',31); +-- +ok +== +INSERT INTO build VALUES (NULL,0),(NULL,1); +-- +ok +== +DELETE FROM build WHERE k IS NOT NULL; +-- +ok +== +DELETE FROM build; +-- +ok +== +INSERT INTO build VALUES ('6',61); +-- +ok +== +DEALLOCATE null_keys; +-- +ok +== +CREATE TABLE cast_probe(id INTEGER,k BIGINT,g INTEGER); +-- +ok +== +INSERT INTO cast_probe VALUES (0,NULL,0),(1,1,1),(2,128,0),(3,3,1),(4,-129,0),(5,7,NULL); +-- +ok +== +CREATE TABLE cast_build(k TINYINT,g INTEGER); +-- +ok +== +INSERT INTO cast_build VALUES (NULL,0),(1,1),(3,1); +-- +ok +== +SELECT id FROM cast_probe p JOIN cast_build b ON TRY_CAST(p.k AS TINYINT) IS NOT DISTINCT FROM b.k ORDER BY id; +-- +ok +== +SELECT id FROM cast_probe p JOIN cast_build b ON TRY_CAST(p.k AS TINYINT) IS NOT DISTINCT FROM b.k AND p.g=b.g ORDER BY id; +-- +ok +== +SELECT id FROM cast_probe p JOIN cast_build b ON p.k::TINYINT IS NOT DISTINCT FROM b.k; +-- +ok +== +SELECT id FROM (SELECT id,TRY_CAST(k AS TINYINT)::BIGINT AS k FROM cast_probe) p +JOIN cast_build b ON p.k IS NOT DISTINCT FROM b.k ORDER BY id; +-- +ok +== +CREATE TABLE variant_probe(id INTEGER,k VARIANT); +-- +ok +== +INSERT INTO variant_probe VALUES (0,NULL),(1,1::VARIANT),(2,'bad'::VARIANT),(3,3::VARIANT),(4,128::VARIANT); +-- +ok +== +SELECT id FROM variant_probe p JOIN cast_build b ON TRY_CAST(p.k AS TINYINT) IS NOT DISTINCT FROM b.k ORDER BY id; +-- +ok +== +SELECT id FROM variant_probe p JOIN cast_build b ON p.k::TINYINT IS NOT DISTINCT FROM b.k; +-- +ok +== +CREATE TABLE date_probe AS SELECT i id,CASE WHEN i=0 THEN NULL ELSE DATE '2020-01-01'+i::INTEGER END k FROM range(6)t(i); +-- +ok +== +CREATE TABLE date_build AS SELECT k FROM date_probe WHERE id IN (0,2,4); +-- +ok +== +SELECT id FROM date_probe p JOIN date_build b ON p.k IS NOT DISTINCT FROM b.k ORDER BY id; +-- +ok +== +CREATE TABLE timestamp_probe AS SELECT id,k::TIMESTAMP k FROM date_probe; +-- +ok +== +CREATE TABLE timestamp_build AS SELECT k FROM timestamp_probe WHERE id IN (0,2,4); +-- +ok +== +SELECT id FROM timestamp_probe p JOIN timestamp_build b ON p.k IS NOT DISTINCT FROM b.k ORDER BY id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_boundaries.test b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_boundaries.test new file mode 100644 index 00000000..df963116 --- /dev/null +++ b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_boundaries.test @@ -0,0 +1,49 @@ +# source: test/sql/join/inner/null_safe_runtime_filter_boundaries.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='statistics_propagation,join_order,build_side_probe_side,compressed_materialization,cte_filter_pusher'; +-- +ok +== +CREATE TABLE p AS SELECT i a,0 g FROM range(10000)t(i) UNION ALL SELECT NULL::BIGINT,0; +-- +ok +== +CREATE TABLE b AS SELECT 42::BIGINT b UNION ALL SELECT NULL::BIGINT; +-- +ok +== +CREATE TABLE aux AS SELECT 1 g; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT a,count(*) n FROM p GROUP BY a)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT a,unnest([g]) n FROM p)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT p.a,aux.g n FROM p JOIN aux ON p.g<>aux.g)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT a,g n FROM p UNION ALL SELECT a,g n FROM p)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT a,row_number() OVER (PARTITION BY a ORDER BY g) n FROM p)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (SELECT a,g n FROM p ORDER BY a NULLS FIRST LIMIT 200)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(n) FROM (WITH q AS MATERIALIZED (SELECT a,g n FROM p) SELECT * FROM q)q JOIN b ON a IS NOT DISTINCT FROM b; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_plan.test b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_plan.test new file mode 100644 index 00000000..be8dd0d4 --- /dev/null +++ b/parser/testdata/corpus/sql/join/inner/null_safe_runtime_filter_plan.test @@ -0,0 +1,53 @@ +# source: test/sql/join/inner/null_safe_runtime_filter_plan.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE p AS SELECT i a,0 g FROM range(1000000)t(i) UNION ALL SELECT NULL::BIGINT,0; +-- +ok +== +CREATE TABLE b AS SELECT * FROM (VALUES(42::BIGINT,0),(NULL::BIGINT,0))t(b,g); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.b; +-- +ok +== +SELECT count(*) FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.b; +-- +ok +== +INSERT INTO b VALUES (44,0); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.b AND p.g=b.g; +-- +ok +== +SELECT count(*) FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.b AND p.g=b.g; +-- +ok +== +SET dynamic_or_filter_threshold=50; +-- +ok +== +UPDATE b SET b=44444 WHERE b=44; +-- +ok +== +CREATE OR REPLACE TABLE b AS SELECT i*2 b FROM range(20000)t(i) UNION ALL SELECT NULL::BIGINT; +-- +ok +== +CREATE OR REPLACE TABLE p AS SELECT i*1000000 a FROM range(1000000)t(i) UNION ALL SELECT NULL::BIGINT; +-- +ok +== +CREATE OR REPLACE TABLE b AS SELECT * FROM (VALUES(42000000::BIGINT),(50000000000::BIGINT),(NULL::BIGINT))t(b); +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/inner/right_semi_dict_emission_dead_end.test b/parser/testdata/corpus/sql/join/inner/right_semi_dict_emission_dead_end.test index 071164bf..e8bba830 100644 --- a/parser/testdata/corpus/sql/join/inner/right_semi_dict_emission_dead_end.test +++ b/parser/testdata/corpus/sql/join/inner/right_semi_dict_emission_dead_end.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/right_semi_dict_emission_dead_end.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE big (f BOOLEAN, s VARCHAR); diff --git a/parser/testdata/corpus/sql/join/inner/test_dense_prefix_range_filter.test b/parser/testdata/corpus/sql/join/inner/test_dense_prefix_range_filter.test index b8a76b17..d3c72e4f 100644 --- a/parser/testdata/corpus/sql/join/inner/test_dense_prefix_range_filter.test +++ b/parser/testdata/corpus/sql/join/inner/test_dense_prefix_range_filter.test @@ -1,12 +1,8 @@ # source: test/sql/join/inner/test_dense_prefix_range_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET dynamic_or_filter_threshold=0; --- -ok -== SET disabled_optimizers='join_order,build_side_probe_side,compressed_materialization'; -- ok @@ -84,10 +80,6 @@ EXECUTE prf_query; -- ok == -DELETE FROM build; --- -ok -== CREATE OR REPLACE TABLE probe AS SELECT i-1 AS k FROM range(1100003) t(i); -- ok @@ -104,10 +96,6 @@ SET debug_force_external={external}; -- error: Parser Error: syntax error at or near "}" == -RESET debug_force_external; --- -ok -== CREATE TABLE rle_probe(k BIGINT USING COMPRESSION RLE, g INTEGER); -- ok diff --git a/parser/testdata/corpus/sql/join/inner/test_eq_ineq_join.test b/parser/testdata/corpus/sql/join/inner/test_eq_ineq_join.test index d4fdbf4a..2bf2911c 100644 --- a/parser/testdata/corpus/sql/join/inner/test_eq_ineq_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_eq_ineq_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_eq_ineq_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2 (a INTEGER, c INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_inner_join_filter_pushdown.test b/parser/testdata/corpus/sql/join/inner/test_inner_join_filter_pushdown.test index 3e5c43ca..95eabf8c 100644 --- a/parser/testdata/corpus/sql/join/inner/test_inner_join_filter_pushdown.test +++ b/parser/testdata/corpus/sql/join/inner/test_inner_join_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_inner_join_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE left_table (id INTEGER, val INTEGER, amount INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_join.test b/parser/testdata/corpus/sql/join/inner/test_join.test index ea1f9fb6..7d977f91 100644 --- a/parser/testdata/corpus/sql/join/inner/test_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2 (b INTEGER, c INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_join_duplicates.test b/parser/testdata/corpus/sql/join/inner/test_join_duplicates.test index 2b103288..5afa8a0d 100644 --- a/parser/testdata/corpus/sql/join/inner/test_join_duplicates.test +++ b/parser/testdata/corpus/sql/join/inner/test_join_duplicates.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_join_duplicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2 AS SELECT * FROM repeat(1, 10*1024) t1(b), (SELECT 10) t2(c); diff --git a/parser/testdata/corpus/sql/join/inner/test_join_filter_precedence.test b/parser/testdata/corpus/sql/join/inner/test_join_filter_precedence.test index 65104c35..6ceb8fed 100644 --- a/parser/testdata/corpus/sql/join/inner/test_join_filter_precedence.test +++ b/parser/testdata/corpus/sql/join/inner/test_join_filter_precedence.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_join_filter_precedence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers = 'join_order,build_side_probe_side,compressed_materialization'; diff --git a/parser/testdata/corpus/sql/join/inner/test_join_is_distinct.test b/parser/testdata/corpus/sql/join/inner/test_join_is_distinct.test index 0e50c84b..baabfa65 100644 --- a/parser/testdata/corpus/sql/join/inner/test_join_is_distinct.test +++ b/parser/testdata/corpus/sql/join/inner/test_join_is_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_join_is_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (col0 INTEGER, col1 INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_join_is_not_distinct.test b/parser/testdata/corpus/sql/join/inner/test_join_is_not_distinct.test index 8921c784..00b347fe 100644 --- a/parser/testdata/corpus/sql/join/inner/test_join_is_not_distinct.test +++ b/parser/testdata/corpus/sql/join/inner/test_join_is_not_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_join_is_not_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x.col1, y.col1 FROM tbl x JOIN tbl y diff --git a/parser/testdata/corpus/sql/join/inner/test_lt_join.test b/parser/testdata/corpus/sql/join/inner/test_lt_join.test index 10fbfd1b..cbd6f0e3 100644 --- a/parser/testdata/corpus/sql/join/inner/test_lt_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_lt_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_lt_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a AS SELECT i FROM range(1, 2001, 1) t1(i) diff --git a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_allnull_pruning.test b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_allnull_pruning.test new file mode 100644 index 00000000..f26e32ea --- /dev/null +++ b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_allnull_pruning.test @@ -0,0 +1,77 @@ +# source: test/sql/join/inner/test_prefix_range_filter_allnull_pruning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/prf_allnull_pruning.duckdb' AS prf_allnull (ROW_GROUP_SIZE 2048); +-- +ok +== +USE prf_allnull; +-- +ok +== +SET disabled_optimizers = 'join_order,build_side_probe_side,compressed_materialization,statistics_propagation'; +-- +ok +== +CREATE TABLE prf_probe AS +SELECT CASE WHEN i BETWEEN 2048 AND 4095 THEN NULL ELSE i END::BIGINT AS k +FROM range(6144) t(i); +-- +ok +== +CREATE TABLE prf_build AS +SELECT (100 + i)::BIGINT AS k FROM range(300) t(i) +UNION ALL +SELECT (3000 + i)::BIGINT AS k FROM range(300) t(i) +UNION ALL +SELECT (4200 + i)::BIGINT AS k FROM range(300) t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM prf_probe p JOIN prf_build b ON p.k = b.k; +-- +ok +== +SELECT count(*), min(p.k), max(p.k) FROM prf_probe p JOIN prf_build b ON p.k = b.k; +-- +ok +== +SET disabled_optimizers = 'join_order,build_side_probe_side,compressed_materialization,statistics_propagation,join_filter_pushdown'; +-- +ok +== +CREATE TABLE prf_probe_mixed AS +SELECT CASE WHEN i % 2 = 0 THEN NULL ELSE i END::BIGINT AS k +FROM range(6144) t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM prf_probe_mixed p JOIN prf_build b ON p.k = b.k; +-- +ok +== +SELECT count(*), min(p.k), max(p.k) FROM prf_probe_mixed p JOIN prf_build b ON p.k = b.k; +-- +ok +== +CREATE TABLE prf_probe_str AS +SELECT CASE WHEN i BETWEEN 2048 AND 4095 THEN NULL ELSE lpad(i::VARCHAR, 4, '0') END AS k +FROM range(6144) t(i); +-- +ok +== +CREATE TABLE prf_build_str AS +SELECT lpad((100 + i)::VARCHAR, 4, '0') AS k FROM range(300) t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM prf_probe_str p JOIN prf_build_str b ON p.k = b.k; +-- +ok +== +SELECT count(*) FROM prf_probe_str p JOIN prf_build_str b ON p.k = b.k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_non_utf8.test b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_non_utf8.test index 4af79695..98c21606 100644 --- a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_non_utf8.test +++ b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_non_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_prefix_range_filter_non_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers = 'join_order,build_side_probe_side'; diff --git a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown.test b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown.test index 3b42262b..ee4f8091 100644 --- a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown.test +++ b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_prefix_range_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE probe AS diff --git a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown_strinline.test b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown_strinline.test index 8d4ea740..024d78ab 100644 --- a/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown_strinline.test +++ b/parser/testdata/corpus/sql/join/inner/test_prefix_range_filter_pushdown_strinline.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_prefix_range_filter_pushdown_strinline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE probe_varchar AS diff --git a/parser/testdata/corpus/sql/join/inner/test_range_join.test b/parser/testdata/corpus/sql/join/inner/test_range_join.test index 9471c354..fdeb08f7 100644 --- a/parser/testdata/corpus/sql/join/inner/test_range_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_range_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_range_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT test.b, test2.b FROM test, test2 WHERE test.b test2.b ORDER BY test.b, test2.b diff --git a/parser/testdata/corpus/sql/join/inner/test_unequal_join_duplicates.test b/parser/testdata/corpus/sql/join/inner/test_unequal_join_duplicates.test index 782b4866..6c169970 100644 --- a/parser/testdata/corpus/sql/join/inner/test_unequal_join_duplicates.test +++ b/parser/testdata/corpus/sql/join/inner/test_unequal_join_duplicates.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_unequal_join_duplicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (b INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_using_chain.test b/parser/testdata/corpus/sql/join/inner/test_using_chain.test index bc2cdc13..9e7629bb 100644 --- a/parser/testdata/corpus/sql/join/inner/test_using_chain.test +++ b/parser/testdata/corpus/sql/join/inner/test_using_chain.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_using_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (a INTEGER, b INTEGER) diff --git a/parser/testdata/corpus/sql/join/inner/test_using_join.test b/parser/testdata/corpus/sql/join/inner/test_using_join.test index d2bdfde0..343c400b 100644 --- a/parser/testdata/corpus/sql/join/inner/test_using_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_using_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_using_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (a INTEGER, b INTEGER, c INTEGER); diff --git a/parser/testdata/corpus/sql/join/inner/test_varchar_join.test b/parser/testdata/corpus/sql/join/inner/test_varchar_join.test index 8ece0474..23271d36 100644 --- a/parser/testdata/corpus/sql/join/inner/test_varchar_join.test +++ b/parser/testdata/corpus/sql/join/inner/test_varchar_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/inner/test_varchar_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from (select NULL::varchar as b) sq1, (select 'asdf' as b) sq2 where sq1.b = sq2.b; diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_1172.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_1172.test index b228f572..fb51e14a 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_1172.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_1172.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_1172.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit drop table if exists t1; diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_15316.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_15316.test index 2cd1477f..01705acb 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_15316.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_15316.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_15316.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE big_table AS diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_23805.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_23805.test index 0b10e849..431e593c 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_23805.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_23805.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_23805.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id VARCHAR, c2 INTEGER); diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_24540.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_24540.test index 38b6b0ab..3d243fc8 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_24540.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_24540.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_24540.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (VALUES (1),(2),(NULL)) AS a(x) diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_6341.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_6341.test index f761e929..6d0da7db 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_6341.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_6341.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_6341.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE foo (ts TIMESTAMP); diff --git a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_7905.test b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_7905.test index a4a549ba..c5b09549 100644 --- a/parser/testdata/corpus/sql/join/left_outer/left_join_issue_7905.test +++ b/parser/testdata/corpus/sql/join/left_outer/left_join_issue_7905.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/left_join_issue_7905.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(a1 VARCHAR); diff --git a/parser/testdata/corpus/sql/join/left_outer/non_foldable_left_join.test b/parser/testdata/corpus/sql/join/left_outer/non_foldable_left_join.test index e460482e..bc80a736 100644 --- a/parser/testdata/corpus/sql/join/left_outer/non_foldable_left_join.test +++ b/parser/testdata/corpus/sql/join/left_outer/non_foldable_left_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/non_foldable_left_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from range(1) tbl(i) left join range(2) tbl2(j) on (i=j) where j+random()<0; diff --git a/parser/testdata/corpus/sql/join/left_outer/test_left_join_filter_pushdown.test b/parser/testdata/corpus/sql/join/left_outer/test_left_join_filter_pushdown.test index 9aa73e8b..c22ed367 100644 --- a/parser/testdata/corpus/sql/join/left_outer/test_left_join_filter_pushdown.test +++ b/parser/testdata/corpus/sql/join/left_outer/test_left_join_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/test_left_join_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO left_table VALUES (1, 1, 50), (2, 1, 75), (3, 2, 60), (4, 2, 90), (5, 99, 100); diff --git a/parser/testdata/corpus/sql/join/left_outer/test_left_join_on_true.test b/parser/testdata/corpus/sql/join/left_outer/test_left_join_on_true.test index 94b786c0..7c734497 100644 --- a/parser/testdata/corpus/sql/join/left_outer/test_left_join_on_true.test +++ b/parser/testdata/corpus/sql/join/left_outer/test_left_join_on_true.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/test_left_join_on_true.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t AS ( diff --git a/parser/testdata/corpus/sql/join/left_outer/test_left_outer.test b/parser/testdata/corpus/sql/join/left_outer/test_left_outer.test index c9b3cfad..5a352a15 100644 --- a/parser/testdata/corpus/sql/join/left_outer/test_left_outer.test +++ b/parser/testdata/corpus/sql/join/left_outer/test_left_outer.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/test_left_outer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers LEFT OUTER JOIN integers2 ON integers.i=integers2.k ORDER BY i diff --git a/parser/testdata/corpus/sql/join/left_outer/unique_left_join.test b/parser/testdata/corpus/sql/join/left_outer/unique_left_join.test index 4a64c06b..29a6b26d 100644 --- a/parser/testdata/corpus/sql/join/left_outer/unique_left_join.test +++ b/parser/testdata/corpus/sql/join/left_outer/unique_left_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/left_outer/unique_left_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dim(id INTEGER PRIMARY KEY, label TEXT) diff --git a/parser/testdata/corpus/sql/join/mark/conjunction_vector_reuse.test b/parser/testdata/corpus/sql/join/mark/conjunction_vector_reuse.test index f8994be4..050d1589 100644 --- a/parser/testdata/corpus/sql/join/mark/conjunction_vector_reuse.test +++ b/parser/testdata/corpus/sql/join/mark/conjunction_vector_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/conjunction_vector_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET nested_loop_join_threshold=1000000; diff --git a/parser/testdata/corpus/sql/join/mark/constant_mark_join.test b/parser/testdata/corpus/sql/join/mark/constant_mark_join.test index 82b7c762..699f770a 100644 --- a/parser/testdata/corpus/sql/join/mark/constant_mark_join.test +++ b/parser/testdata/corpus/sql/join/mark/constant_mark_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/constant_mark_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE probe(i INTEGER); diff --git a/parser/testdata/corpus/sql/join/mark/distinct_comparison.test b/parser/testdata/corpus/sql/join/mark/distinct_comparison.test index ece48506..f7e08d38 100644 --- a/parser/testdata/corpus/sql/join/mark/distinct_comparison.test +++ b/parser/testdata/corpus/sql/join/mark/distinct_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/distinct_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_disable_optimizer={disable}; diff --git a/parser/testdata/corpus/sql/join/mark/explicit_conditions.test b/parser/testdata/corpus/sql/join/mark/explicit_conditions.test index 2a6ef204..be3e7740 100644 --- a/parser/testdata/corpus/sql/join/mark/explicit_conditions.test +++ b/parser/testdata/corpus/sql/join/mark/explicit_conditions.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/explicit_conditions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT __mark_join_marker FROM (VALUES (1,2)) p(a,c) JOIN BY(TYPE MARK) (VALUES (1,3)) b(b,d) ON a=b AND c>d; diff --git a/parser/testdata/corpus/sql/join/mark/group_reconstruction_limits.test b/parser/testdata/corpus/sql/join/mark/group_reconstruction_limits.test index eaaab17a..fa688281 100644 --- a/parser/testdata/corpus/sql/join/mark/group_reconstruction_limits.test +++ b/parser/testdata/corpus/sql/join/mark/group_reconstruction_limits.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/group_reconstruction_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE union_probes(g INTEGER, u UNION(i INTEGER,s VARCHAR)); diff --git a/parser/testdata/corpus/sql/join/mark/hash_nested_operator_semantics.test b/parser/testdata/corpus/sql/join/mark/hash_nested_operator_semantics.test index 4d2e5835..79daf03f 100644 --- a/parser/testdata/corpus/sql/join/mark/hash_nested_operator_semantics.test +++ b/parser/testdata/corpus/sql/join/mark/hash_nested_operator_semantics.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/hash_nested_operator_semantics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT __mark_join_marker FROM (VALUES (1,row(1,2))) p(a,c) JOIN BY(TYPE MARK) (VALUES (1,row(1,NULL::INT))) b(b,d) ON a=b AND c = d; diff --git a/parser/testdata/corpus/sql/join/mark/inferred_groups.test b/parser/testdata/corpus/sql/join/mark/inferred_groups.test index c45680bf..7a9067cc 100644 --- a/parser/testdata/corpus/sql/join/mark/inferred_groups.test +++ b/parser/testdata/corpus/sql/join/mark/inferred_groups.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/inferred_groups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE probes(id INTEGER, g INTEGER, v INTEGER); diff --git a/parser/testdata/corpus/sql/join/mark/nested_operator_semantics.test b/parser/testdata/corpus/sql/join/mark/nested_operator_semantics.test index df8e36e6..e9c0eb9b 100644 --- a/parser/testdata/corpus/sql/join/mark/nested_operator_semantics.test +++ b/parser/testdata/corpus/sql/join/mark/nested_operator_semantics.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/nested_operator_semantics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT __mark_join_marker FROM (VALUES (row(1,2))) p(c) JOIN BY(TYPE MARK) (VALUES (row(1,NULL::INT))) b(d) ON c = d; diff --git a/parser/testdata/corpus/sql/join/mark/residual_predicate.test b/parser/testdata/corpus/sql/join/mark/residual_predicate.test index 234006a9..68b17781 100644 --- a/parser/testdata/corpus/sql/join/mark/residual_predicate.test +++ b/parser/testdata/corpus/sql/join/mark/residual_predicate.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/residual_predicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET nested_loop_join_threshold=10000; diff --git a/parser/testdata/corpus/sql/join/mark/residual_vector_reuse.test b/parser/testdata/corpus/sql/join/mark/residual_vector_reuse.test index 33dc1ab2..033ab968 100644 --- a/parser/testdata/corpus/sql/join/mark/residual_vector_reuse.test +++ b/parser/testdata/corpus/sql/join/mark/residual_vector_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/residual_vector_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE residual_vectors_probe(a INTEGER); diff --git a/parser/testdata/corpus/sql/join/mark/test_null_safe_semi_uncommitted_stats.test b/parser/testdata/corpus/sql/join/mark/test_null_safe_semi_uncommitted_stats.test index 1650fcde..f41b179b 100644 --- a/parser/testdata/corpus/sql/join/mark/test_null_safe_semi_uncommitted_stats.test +++ b/parser/testdata/corpus/sql/join/mark/test_null_safe_semi_uncommitted_stats.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/test_null_safe_semi_uncommitted_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET explain_output='physical_only'; @@ -19,14 +19,6 @@ CREATE TABLE b(y INTEGER); -- ok == -INSERT INTO b VALUES (1); --- -ok -== -INSERT INTO b VALUES (NULL); --- -ok -== SELECT count(*) FROM a WHERE EXISTS (SELECT 1 FROM b WHERE a.x IS NOT DISTINCT FROM b.y); -- ok @@ -39,10 +31,6 @@ CREATE TABLE c(k INTEGER); -- ok == -INSERT INTO c VALUES (NULL); --- -ok -== SELECT count(*) FROM a WHERE EXISTS (SELECT 1 FROM c WHERE a.x IS NOT DISTINCT FROM c.k); -- ok diff --git a/parser/testdata/corpus/sql/join/mark/tuple_inequality.test b/parser/testdata/corpus/sql/join/mark/tuple_inequality.test index 89007e78..a3766dde 100644 --- a/parser/testdata/corpus/sql/join/mark/tuple_inequality.test +++ b/parser/testdata/corpus/sql/join/mark/tuple_inequality.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/tuple_inequality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT __mark_join_marker FROM (VALUES (NULL::TUPLE(INTEGER,INTEGER))) l(a) JOIN BY (TYPE MARK) (VALUES (1)) r(b) ON a{comparison}(1,2); diff --git a/parser/testdata/corpus/sql/join/mark/tuple_value_semantics.test b/parser/testdata/corpus/sql/join/mark/tuple_value_semantics.test index 05b459ab..09fe7d94 100644 --- a/parser/testdata/corpus/sql/join/mark/tuple_value_semantics.test +++ b/parser/testdata/corpus/sql/join/mark/tuple_value_semantics.test @@ -1,6 +1,6 @@ # source: test/sql/join/mark/tuple_value_semantics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT row(NULL::INT,2) = ANY (SELECT row(1,2)); diff --git a/parser/testdata/corpus/sql/join/natural/natural_join.test b/parser/testdata/corpus/sql/join/natural/natural_join.test index 1dcb141c..52890957 100644 --- a/parser/testdata/corpus/sql/join/natural/natural_join.test +++ b/parser/testdata/corpus/sql/join/natural/natural_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/natural/natural_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (a INTEGER, c INTEGER) @@ -200,6 +200,14 @@ SELECT COUNT(t1.rowid) FROM t1, v0 RIGHT JOIN t0 ON t1.c1=t0.c1 AND v0.c0=t0.c0; -- ok == +INSERT INTO t0 VALUES ('2000-01-01', '2000-01-01', 1); +-- +ok +== +INSERT INTO t1 VALUES ('2000-01-01', '2000-01-01'); +-- +ok +== select * from (values (1)) t1(i) join (values (1)) t2(i) on (t1.i=t2.i) natural join (values (1)) t3(i); -- ok diff --git a/parser/testdata/corpus/sql/join/nearest/nearest_basic.test b/parser/testdata/corpus/sql/join/nearest/nearest_basic.test index 1dcbe12d..c6e8b47e 100644 --- a/parser/testdata/corpus/sql/join/nearest/nearest_basic.test +++ b/parser/testdata/corpus/sql/join/nearest/nearest_basic.test @@ -1,6 +1,6 @@ # source: test/sql/join/nearest/nearest_basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE users(user_id INT, name VARCHAR, embedding FLOAT[3]); diff --git a/parser/testdata/corpus/sql/join/nearest/nearest_errors.test b/parser/testdata/corpus/sql/join/nearest/nearest_errors.test index 9557b2ac..8b4068cb 100644 --- a/parser/testdata/corpus/sql/join/nearest/nearest_errors.test +++ b/parser/testdata/corpus/sql/join/nearest/nearest_errors.test @@ -1,6 +1,6 @@ # source: test/sql/join/nearest/nearest_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE u(e FLOAT[3]); diff --git a/parser/testdata/corpus/sql/join/nearest/nearest_parser.test b/parser/testdata/corpus/sql/join/nearest/nearest_parser.test index 9c9c65e6..a9041ee3 100644 --- a/parser/testdata/corpus/sql/join/nearest/nearest_parser.test +++ b/parser/testdata/corpus/sql/join/nearest/nearest_parser.test @@ -1,6 +1,6 @@ # source: test/sql/join/nearest/nearest_parser.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nearest(approx INT, exact INT, distance INT, similarity INT); diff --git a/parser/testdata/corpus/sql/join/nearest/nearest_storage.test b/parser/testdata/corpus/sql/join/nearest/nearest_storage.test index fc80b97b..725f36ab 100644 --- a/parser/testdata/corpus/sql/join/nearest/nearest_storage.test +++ b/parser/testdata/corpus/sql/join/nearest/nearest_storage.test @@ -1,6 +1,6 @@ # source: test/sql/join/nearest/nearest_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/nearest_latest.db' AS latest_db (STORAGE_VERSION 'latest'); diff --git a/parser/testdata/corpus/sql/join/non_inner_decorrelation_regressions.test b/parser/testdata/corpus/sql/join/non_inner_decorrelation_regressions.test index 48be4109..e051e432 100644 --- a/parser/testdata/corpus/sql/join/non_inner_decorrelation_regressions.test +++ b/parser/testdata/corpus/sql/join/non_inner_decorrelation_regressions.test @@ -1,6 +1,6 @@ # source: test/sql/join/non_inner_decorrelation_regressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT l.a, r.b, (SELECT l.a + r.b) AS z diff --git a/parser/testdata/corpus/sql/join/non_inner_join_subquery.test b/parser/testdata/corpus/sql/join/non_inner_join_subquery.test index d1a77dcd..95b6ecdc 100644 --- a/parser/testdata/corpus/sql/join/non_inner_join_subquery.test +++ b/parser/testdata/corpus/sql/join/non_inner_join_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/non_inner_join_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE non_inner_l(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/join/non_inner_join_subquery_binding.test b/parser/testdata/corpus/sql/join/non_inner_join_subquery_binding.test index 1d8cfd71..b1ad11c5 100644 --- a/parser/testdata/corpus/sql/join/non_inner_join_subquery_binding.test +++ b/parser/testdata/corpus/sql/join/non_inner_join_subquery_binding.test @@ -1,6 +1,6 @@ # source: test/sql/join/non_inner_join_subquery_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * diff --git a/parser/testdata/corpus/sql/join/non_inner_join_subquery_pushdown.test b/parser/testdata/corpus/sql/join/non_inner_join_subquery_pushdown.test new file mode 100644 index 00000000..f8c3fb07 --- /dev/null +++ b/parser/testdata/corpus/sql/join/non_inner_join_subquery_pushdown.test @@ -0,0 +1,77 @@ +# source: test/sql/join/non_inner_join_subquery_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l(i INTEGER, j INTEGER); +-- +ok +== +CREATE TABLE r(i INTEGER, j INTEGER); +-- +ok +== +CREATE TABLE s(i INTEGER, j INTEGER); +-- +ok +== +INSERT INTO l VALUES (1, 10), (2, 20), (2, 20), (3, 30), (NULL, 40); +-- +ok +== +INSERT INTO r VALUES (1, 100), (2, 200), (2, 250), (4, 400), (NULL, 999); +-- +ok +== +INSERT INTO s VALUES (1, 10), (2, 20), (2, 20), (NULL, 99); +-- +ok +== +SELECT l.i, l.j, r.i, r.j FROM l LEFT JOIN r ON r.i IN (SELECT i FROM s) AND r.j >= 150 AND l.i <= r.i ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i FROM l LEFT JOIN r ON r.i IN (SELECT i FROM s) AND r.j > 200 ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i FROM l LEFT JOIN r ON l.i IN (SELECT i FROM s) AND r.j < 150 ORDER BY ALL; +-- +ok +== +SELECT l.i, l.j, r.i FROM l RIGHT JOIN r ON l.i IN (SELECT i FROM s) AND l.j > 15 AND l.i = r.i ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i FROM l FULL JOIN r ON r.i IN (SELECT i FROM s) AND l.i = r.i AND l.j < 25 ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i FROM l LEFT JOIN r ON r.i NOT IN (SELECT i FROM s) AND l.i < r.i ORDER BY ALL; +-- +ok +== +SELECT l.i, l.j FROM l SEMI JOIN r ON l.i IN (SELECT i FROM s) AND r.j > 200 ORDER BY ALL; +-- +ok +== +SELECT l.i, l.j FROM l ANTI JOIN r ON r.i IN (SELECT i FROM s WHERE i > 5) ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i, r.j FROM l LEFT JOIN r ON EXISTS (SELECT 1 FROM s WHERE s.i = r.i AND s.j * 10 = r.j) AND l.i = r.i ORDER BY ALL; +-- +ok +== +SELECT l.i, r.i, r.j FROM l LEFT JOIN r ON EXISTS (SELECT 1 FROM s WHERE s.i = l.i AND s.i = r.i) AND r.j < 220 ORDER BY ALL; +-- +ok +== +SELECT o.k, (SELECT count(r.i) FROM l LEFT JOIN r ON r.j > o.k AND l.i = r.i) FROM (VALUES (0), (150), (210)) o(k) ORDER BY ALL; +-- +ok +== +SELECT x.k, l.i, r.i FROM (VALUES (1), (2)) x(k), l LEFT JOIN r ON r.i IN (SELECT i FROM s WHERE s.i = x.k) AND l.i = r.i ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery.test b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery.test index aa0c0b6f..2f994bcb 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_full_outer_join_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pair_l(a INTEGER, x INTEGER); diff --git a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_bindings.test b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_bindings.test index 9c27179f..acceda81 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_bindings.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_bindings.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_full_outer_join_subquery_bindings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pair_multi_l(a INTEGER); diff --git a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_cte.test b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_cte.test index f2f8ba66..3ec478fa 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_cte.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_full_outer_join_subquery_cte.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_full_outer_join_subquery_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE pair_prepared_full AS diff --git a/parser/testdata/corpus/sql/join/pair_dependent_join_subquery.test b/parser/testdata/corpus/sql/join/pair_dependent_join_subquery.test index d2f06d06..20a76c51 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_join_subquery.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_join_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_join_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT l.a, l.x, r.b diff --git a/parser/testdata/corpus/sql/join/pair_dependent_outer_reference_subquery.test b/parser/testdata/corpus/sql/join/pair_dependent_outer_reference_subquery.test index c372aa08..138e9480 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_outer_reference_subquery.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_outer_reference_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_outer_reference_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT outer_l.x, q.a, q.b diff --git a/parser/testdata/corpus/sql/join/pair_dependent_right_semi_anti.test b/parser/testdata/corpus/sql/join/pair_dependent_right_semi_anti.test index 86c8de4a..4de24fec 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_right_semi_anti.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_right_semi_anti.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_right_semi_anti.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT r.b diff --git a/parser/testdata/corpus/sql/join/pair_dependent_volatile_subquery.test b/parser/testdata/corpus/sql/join/pair_dependent_volatile_subquery.test index 00a74e84..d9d8b75f 100644 --- a/parser/testdata/corpus/sql/join/pair_dependent_volatile_subquery.test +++ b/parser/testdata/corpus/sql/join/pair_dependent_volatile_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/join/pair_dependent_volatile_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='filter_pullup'; diff --git a/parser/testdata/corpus/sql/join/positional/issue20086.test b/parser/testdata/corpus/sql/join/positional/issue20086.test index 40a7444e..3c23438c 100644 --- a/parser/testdata/corpus/sql/join/positional/issue20086.test +++ b/parser/testdata/corpus/sql/join/positional/issue20086.test @@ -1,6 +1,6 @@ # source: test/sql/join/positional/issue20086.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE UNIQUE INDEX t0i0 ON t0(c0, c1); diff --git a/parser/testdata/corpus/sql/join/positional/test_positional_join.test b/parser/testdata/corpus/sql/join/positional/test_positional_join.test index 913921c6..3b7a190c 100644 --- a/parser/testdata/corpus/sql/join/positional/test_positional_join.test +++ b/parser/testdata/corpus/sql/join/positional/test_positional_join.test @@ -1,6 +1,6 @@ # source: test/sql/join/positional/test_positional_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE two (a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/join/pushdown/pushdown_generated_columns.test b/parser/testdata/corpus/sql/join/pushdown/pushdown_generated_columns.test index 09970f4e..9b06e2f2 100644 --- a/parser/testdata/corpus/sql/join/pushdown/pushdown_generated_columns.test +++ b/parser/testdata/corpus/sql/join/pushdown/pushdown_generated_columns.test @@ -1,6 +1,6 @@ # source: test/sql/join/pushdown/pushdown_generated_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO unit2 SELECT i, 20 FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/join/pushdown/pushdown_join_types.test b/parser/testdata/corpus/sql/join/pushdown/pushdown_join_types.test index e29e5bd4..5ce0d560 100644 --- a/parser/testdata/corpus/sql/join/pushdown/pushdown_join_types.test +++ b/parser/testdata/corpus/sql/join/pushdown/pushdown_join_types.test @@ -1,6 +1,6 @@ # source: test/sql/join/pushdown/pushdown_join_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT CASE WHEN i%2=0 THEN NULL ELSE i END i FROM range(1000) t(i) diff --git a/parser/testdata/corpus/sql/join/pushdown/pushdown_many_joins.test b/parser/testdata/corpus/sql/join/pushdown/pushdown_many_joins.test index 46af8a26..cbec5f1a 100644 --- a/parser/testdata/corpus/sql/join/pushdown/pushdown_many_joins.test +++ b/parser/testdata/corpus/sql/join/pushdown/pushdown_many_joins.test @@ -1,6 +1,6 @@ # source: test/sql/join/pushdown/pushdown_many_joins.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigtbl AS SELECT i%2 AS small_key, i%10 AS medium_key, i AS val FROM range(10000) t(i) ORDER BY small_key, medium_key diff --git a/parser/testdata/corpus/sql/join/right_outer/right_join_complex_null.test b/parser/testdata/corpus/sql/join/right_outer/right_join_complex_null.test index bd84331b..71f9c7f0 100644 --- a/parser/testdata/corpus/sql/join/right_outer/right_join_complex_null.test +++ b/parser/testdata/corpus/sql/join/right_outer/right_join_complex_null.test @@ -1,6 +1,6 @@ # source: test/sql/join/right_outer/right_join_complex_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c0 DATE, PRIMARY KEY(c0)); diff --git a/parser/testdata/corpus/sql/join/right_outer/test_right_join_filter_pushdown.test b/parser/testdata/corpus/sql/join/right_outer/test_right_join_filter_pushdown.test index 03b9cf4e..2afc65c9 100644 --- a/parser/testdata/corpus/sql/join/right_outer/test_right_join_filter_pushdown.test +++ b/parser/testdata/corpus/sql/join/right_outer/test_right_join_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/join/right_outer/test_right_join_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE left_table (id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/join/right_outer/test_right_outer.test b/parser/testdata/corpus/sql/join/right_outer/test_right_outer.test index 287c0f91..f240c46c 100644 --- a/parser/testdata/corpus/sql/join/right_outer/test_right_outer.test +++ b/parser/testdata/corpus/sql/join/right_outer/test_right_outer.test @@ -1,6 +1,6 @@ # source: test/sql/join/right_outer/test_right_outer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT integers.*, integers2.* FROM integers2 RIGHT OUTER JOIN integers ON integers.i=integers2.k ORDER BY i diff --git a/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys.test b/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys.test new file mode 100644 index 00000000..edfe945b --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys.test @@ -0,0 +1,140 @@ +# source: test/sql/join/runtime_filter_equivalent_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='statistics_propagation,join_order,build_side_probe_side,compressed_materialization,cte_filter_pusher,projection_pullup,projection_placement'; +-- +ok +== +CREATE TABLE a AS SELECT i AS id,i%100 AS k FROM range(10000) t(i); +-- +ok +== +CREATE TABLE b AS FROM a; +-- +ok +== +CREATE TABLE d AS FROM a; +-- +ok +== +INSERT INTO c VALUES (42); +-- +ok +== +PREPARE equivalent_window AS SELECT count(*),sum(rn) FROM ( + SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) rn + FROM a JOIN b ON a.id=b.id AND a.k=b.k +) p JOIN c ON p.k=c.k; +-- +ok +== +EXECUTE equivalent_window; +-- +ok +== +SELECT p.k,n FROM ( + SELECT d.k,count(*) n FROM a JOIN b ON a.id=b.id AND a.k=b.k + JOIN d ON b.id=d.id AND b.k=d.k GROUP BY d.k +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*) FROM (SELECT id AS x,k AS y FROM a) a +JOIN b ON a.x=b.id AND a.y=b.k JOIN c ON b.k=c.k; +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k AND a.k=b.k +JOIN c ON b.k=c.k AND a.k=c.k; +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k +JOIN c ON TRY_CAST(b.k AS TINYINT)=c.k; +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k +JOIN c ON b.k IS NOT DISTINCT FROM c.k; +-- +ok +== +SELECT count(*) FROM a LEFT JOIN b ON a.id=b.id AND a.k=b.k +JOIN c ON b.k IS NOT DISTINCT FROM c.k; +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k IS NOT DISTINCT FROM b.k +JOIN c ON b.k=c.k; +-- +ok +== +UPDATE c SET k=99; +-- +ok +== +INSERT INTO c VALUES (42),(NULL); +-- +ok +== +INSERT INTO a VALUES (10000,NULL); +-- +ok +== +INSERT INTO b VALUES (10000,NULL); +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k IS NOT DISTINCT FROM b.k +JOIN c ON b.k IS NOT DISTINCT FROM c.k; +-- +ok +== +INSERT INTO a VALUES (10001,128); +-- +ok +== +INSERT INTO b VALUES (10001,128); +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k JOIN c ON b.k::TINYINT=c.k; +-- +ok +== +SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k JOIN c ON TRY_CAST(b.k AS TINYINT)=c.k; +-- +ok +== +CREATE TABLE float_a(id INTEGER,k DOUBLE); +-- +ok +== +INSERT INTO float_a VALUES (1,'-0.0'),(2,'0.0'),(3,'nan'),(4,NULL); +-- +ok +== +CREATE TABLE float_b(id INTEGER,k DOUBLE); +-- +ok +== +INSERT INTO float_b VALUES (1,'0.0'),(2,'-0.0'),(3,'nan'),(4,NULL); +-- +ok +== +CREATE TABLE float_c(k DOUBLE); +-- +ok +== +INSERT INTO float_c VALUES ('0.0'),('nan'); +-- +ok +== +SELECT count(*),count(*) FILTER (WHERE a.k=0 AND signbit(a.k)), + count(*) FILTER (WHERE b.k=0 AND signbit(b.k)) +FROM float_a a JOIN float_b b ON a.id=b.id AND a.k=b.k JOIN float_c c ON b.k=c.k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys_plan.test b/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys_plan.test new file mode 100644 index 00000000..c2544063 --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_equivalent_keys_plan.test @@ -0,0 +1,35 @@ +# source: test/sql/join/runtime_filter_equivalent_keys_plan.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE a AS SELECT i AS id,(i%100)::DOUBLE AS inferred_key FROM range(10000) t(i); +-- +ok +== +CREATE TABLE b AS SELECT id,inferred_key AS k FROM a; +-- +ok +== +CREATE TABLE c AS SELECT 42::DOUBLE k; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(rn) FROM ( + SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) rn + FROM a JOIN b ON a.id=b.id AND a.inferred_key=b.k +) p JOIN c ON p.k=c.k; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.inferred_key=b.k JOIN c ON b.k=c.k; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(rn) FROM ( + SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) rn + FROM a JOIN b ON a.id=b.id AND a.inferred_key IS NOT DISTINCT FROM b.k +) p JOIN c ON p.k=c.k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_recursive_routes.test b/parser/testdata/corpus/sql/join/runtime_filter_recursive_routes.test new file mode 100644 index 00000000..a240517f --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_recursive_routes.test @@ -0,0 +1,98 @@ +# source: test/sql/join/runtime_filter_recursive_routes.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE lookup AS SELECT i AS id,i%8 AS k FROM range(256) t(i); +-- +ok +== +CREATE TABLE ids AS SELECT id FROM lookup; +-- +ok +== +INSERT INTO lookup VALUES (256,NULL),(264,NULL); +-- +ok +== +CREATE TABLE wanted AS SELECT 0::BIGINT AS k; +-- +ok +== +PREPARE nested_build AS +WITH RECURSIVE r(i) AS (VALUES (0) UNION ALL SELECT i+1 FROM r WHERE i<2) +SELECT count(*),coalesce(sum(cnt),0) FROM ( + SELECT b.k,count(*) AS cnt FROM ids a JOIN lookup b USING(id) CROSS JOIN r GROUP BY b.k +) p JOIN wanted USING(k); +-- +ok +== +EXECUTE nested_build; +-- +ok +== +UPDATE wanted SET k=(k+1)%8; +-- +ok +== +DELETE FROM wanted; +-- +ok +== +INSERT INTO wanted VALUES (7); +-- +ok +== +WITH RECURSIVE walk(n,k,total) AS ( + VALUES (0,0::BIGINT,0::BIGINT) + UNION ALL + SELECT w.n+1,(w.k+1)%8,w.total+p.id + FROM ( + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM lookup + ) p JOIN walk w ON p.k=w.k + WHERE p.rn=2 AND w.n<12 +) +SELECT count(*),max(n),max(total),sum(total) FROM walk; +-- +ok +== +WITH RECURSIVE walk(n,k,total) AS ( + VALUES (0,0::BIGINT,0::BIGINT) + UNION ALL + SELECT w.n+1,(w.k+1)%8,w.total+p.cnt + FROM ( + SELECT b.k,count(*) AS cnt FROM ids a JOIN lookup b USING(id) GROUP BY b.k + ) p JOIN walk w ON p.k=w.k + WHERE w.n<12 +) +SELECT count(*),max(n),max(total),sum(total) FROM walk; +-- +ok +== +WITH RECURSIVE walk(n,k,total) AS ( + VALUES (0,NULL::BIGINT,0::BIGINT) + UNION ALL + SELECT w.n+1,CASE w.n%3 WHEN 0 THEN 0 WHEN 1 THEN 1 ELSE NULL END,w.total+p.id + FROM ( + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM lookup + ) p JOIN walk w ON p.k IS NOT DISTINCT FROM w.k + WHERE p.rn=2 AND w.n<9 +) +SELECT count(*),max(n),max(total),sum(total) FROM walk; +-- +ok +== +WITH RECURSIVE walk(n,k,total) AS ( + VALUES (0,0::BIGINT,0::BIGINT) + UNION ALL + SELECT w.n+1,(w.k+1)%8,w.total+p.id + FROM ( + WITH q AS MATERIALIZED (SELECT * FROM range(1)) + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM lookup CROSS JOIN q + ) p JOIN walk w ON p.k=w.k + WHERE p.rn=2 AND w.n<12 +) +SELECT count(*),max(n),max(total),sum(total) FROM walk; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_route_effects.test b/parser/testdata/corpus/sql/join/runtime_filter_route_effects.test new file mode 100644 index 00000000..39746eb5 --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_route_effects.test @@ -0,0 +1,50 @@ +# source: test/sql/join/runtime_filter_route_effects.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE a(id BIGINT,k BIGINT,s VARCHAR); +-- +ok +== +INSERT INTO a VALUES (0,0,'bad'),(1,1,'1'),(2,2,'2'); +-- +ok +== +CREATE TABLE b AS SELECT id,k FROM a; +-- +ok +== +CREATE TABLE c AS SELECT 1::BIGINT AS k; +-- +ok +== +CREATE SEQUENCE route_seq; +-- +ok +== +SELECT p.k,n FROM ( + SELECT k,count(nextval('route_seq')) OVER (PARTITION BY k) AS n FROM a +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT currval('route_seq'); +-- +ok +== +UPDATE c SET k=999; +-- +ok +== +CREATE OR REPLACE SEQUENCE route_seq; +-- +ok +== +SELECT count(*) FROM ( + SELECT b.k,a.v,count(*) OVER (PARTITION BY b.k) AS n + FROM (SELECT id,nextval('route_seq') AS v FROM a) a JOIN b USING(id) +) p JOIN c ON p.k=c.k AND v>0 AND n>0; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_routes.test b/parser/testdata/corpus/sql/join/runtime_filter_routes.test new file mode 100644 index 00000000..216aaa20 --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_routes.test @@ -0,0 +1,128 @@ +# source: test/sql/join/runtime_filter_routes.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE c(k BIGINT,rn BIGINT); +-- +ok +== +INSERT INTO c VALUES (42,2); +-- +ok +== +PREPARE window_target AS +SELECT id,p.k,p.rn FROM ( + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM a +) p JOIN c ON p.k=c.k AND p.rn=c.rn ORDER BY id; +-- +ok +== +SELECT p.k,n FROM ( + SELECT b.k,count(*) AS n FROM a JOIN b USING(id) GROUP BY b.k +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT p.k,n FROM ( + SELECT a.k,count(*) AS n FROM a JOIN b USING(id) GROUP BY a.k +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT p.k,n FROM ( + SELECT b.k,count(*) AS n FROM range(10000) a(id) JOIN b USING(id) GROUP BY b.k +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*),sum(p.rn) FROM ( + SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) AS rn FROM a JOIN b USING(id) +) p JOIN c ON p.k=c.k; +-- +ok +== +EXECUTE window_target; +-- +ok +== +SELECT count(*),sum(p.rn) FROM ( + SELECT k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn, + row_number() OVER (ORDER BY id) AS rn2 FROM a +) p JOIN c ON p.k=c.k AND p.rn2>0; +-- +ok +== +SELECT count(*) FROM a JOIN b USING(id) JOIN c ON b.k=c.k; +-- +ok +== +SELECT count(*),sum(p.rn) FROM ( + SELECT b.k,row_number() OVER (ORDER BY a.id) AS rn FROM a JOIN b USING(id) +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT p.k,n FROM ( + SELECT b.k,count(*) AS n FROM (SELECT id FROM a LIMIT 2) a CROSS JOIN b GROUP BY b.k +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*) FROM ( + WITH q AS MATERIALIZED (SELECT * FROM c) + SELECT a.k FROM a CROSS JOIN q +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*) FROM ( + WITH q AS MATERIALIZED (SELECT * FROM a) + SELECT k FROM q +) p JOIN c ON p.k=c.k; +-- +ok +== +UPDATE c SET k=99,rn=3; +-- +ok +== +INSERT INTO c VALUES (NULL,1); +-- +ok +== +SELECT id,p.k,p.rn FROM ( + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM a +) p JOIN c ON p.k IS NOT DISTINCT FROM c.k AND p.rn=c.rn; +-- +ok +== +SELECT p.k,n FROM ( + SELECT b.k,count(*) AS n FROM a JOIN b USING(id) GROUP BY b.k +) p JOIN c ON p.k IS NOT DISTINCT FROM c.k; +-- +ok +== +SELECT count(*),sum(n) FROM ( + SELECT k,count(*) AS n FROM a GROUP BY GROUPING SETS ((k),()) +) p JOIN c ON p.k IS NOT DISTINCT FROM c.k; +-- +ok +== +SELECT count(*) FROM ( + SELECT a.k AS ak,b.k AS bk FROM a LEFT JOIN b ON a.id=b.id AND b.k=99 +) p JOIN c ON p.bk IS NOT DISTINCT FROM c.k; +-- +ok +== +SELECT count(*) FROM (SELECT k FROM a ORDER BY id LIMIT 1) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*) FROM ( + WITH RECURSIVE r(i) AS (VALUES(0) UNION ALL SELECT i+1 FROM r WHERE i<2) + SELECT b.k FROM a JOIN b USING(id) CROSS JOIN r +) p JOIN c ON p.k=c.k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_routes_plan.test b/parser/testdata/corpus/sql/join/runtime_filter_routes_plan.test new file mode 100644 index 00000000..292ed1ed --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_routes_plan.test @@ -0,0 +1,80 @@ +# source: test/sql/join/runtime_filter_routes_plan.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE c AS SELECT 42::BIGINT AS k,2::BIGINT AS rn; +-- +ok +== +SELECT count(*),sum(p.rn) FROM ( + SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) AS rn FROM a + JOIN (SELECT id,k FROM b GROUP BY id,k) b USING(id) +) p JOIN c ON p.k=c.k; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*),sum(p.rn) FROM ( + SELECT a.k,row_number() OVER (PARTITION BY a.k ORDER BY a.id) AS rn FROM a JOIN b USING(id) +) p JOIN c ON p.k=c.k; +-- +ok +== +EXPLAIN ANALYZE SELECT id,p.k,p.rn FROM ( + SELECT id,k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn FROM a +) p JOIN c ON p.k=c.k AND p.rn=c.rn; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM ( + WITH q AS MATERIALIZED (SELECT * FROM c) + SELECT a.k FROM a CROSS JOIN q +) p JOIN c ON p.k=c.k; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM ( + SELECT b.k,row_number() OVER () AS rn FROM a JOIN b USING(id) +) p JOIN c ON p.k=c.k AND p.rn>0; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM ( + SELECT k,row_number() OVER (PARTITION BY k ORDER BY id) AS rn, + row_number() OVER (ORDER BY id) AS rn2 FROM a +) p JOIN c ON p.k=c.k AND p.rn>0 AND p.rn2>0; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM ( + WITH q AS MATERIALIZED (SELECT * FROM a) + SELECT k FROM q +) p JOIN c ON p.k=c.k; +-- +ok +== +SELECT count(*) FROM ( + WITH RECURSIVE r(i) AS (VALUES(0) UNION ALL SELECT i+1 FROM r WHERE i<2) + SELECT k,count(*) OVER (PARTITION BY k) AS n FROM a CROSS JOIN r +) p JOIN c ON p.k=c.k AND n>0; +-- +ok +== +EXPLAIN ANALYZE WITH RECURSIVE walk(k) AS ( + SELECT a.k FROM a JOIN c ON a.k=c.k + UNION ALL + SELECT k+1 FROM walk WHERE k<44 +) +SELECT count(*) FROM walk; +-- +ok +== +EXPLAIN ANALYZE WITH RECURSIVE walk(k) AS ( + VALUES (42::BIGINT) + UNION + SELECT a.k FROM a JOIN walk w ON a.k=w.k +) +SELECT count(*) FROM walk; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_row_number.test b/parser/testdata/corpus/sql/join/runtime_filter_row_number.test new file mode 100644 index 00000000..c929f4d4 --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_row_number.test @@ -0,0 +1,36 @@ +# source: test/sql/join/runtime_filter_row_number.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE probe AS SELECT range AS k FROM range(300000); +-- +ok +== +CREATE TABLE build AS SELECT * FROM (VALUES (1), (150000)) t(k); +-- +ok +== +SELECT p.k, p.rn +FROM (SELECT k, row_number() OVER () AS rn FROM probe) p +JOIN build ON p.k=build.k ORDER BY p.k; +-- +ok +== +SELECT p.k, p.rn +FROM (SELECT k, row_number() OVER () AS rn FROM probe) p +JOIN build ON p.rn=build.k ORDER BY p.k; +-- +ok +== +CREATE TABLE other_build AS SELECT * FROM (VALUES (3001), (250000)) t(k); +-- +ok +== +WITH p AS MATERIALIZED (SELECT k, row_number() OVER () AS rn FROM probe) +SELECT p.k, p.rn FROM p JOIN build ON p.k=build.k +UNION ALL +SELECT p.k, p.rn FROM p JOIN other_build ON p.k=other_build.k ORDER BY 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_scalar_pushdown.test b/parser/testdata/corpus/sql/join/runtime_filter_scalar_pushdown.test new file mode 100644 index 00000000..b620bf76 --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_scalar_pushdown.test @@ -0,0 +1,24 @@ +# source: test/sql/join/runtime_filter_scalar_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers='statistics_propagation,join_order,build_side_probe_side'; +-- +ok +== +COPY (SELECT repeat('x', (i%10+1)::INTEGER) AS s FROM range(10000) t(i)) +TO '{TEST_DIR}/strings.parquet'; +-- +ok +== +CREATE TABLE build AS SELECT 3::BIGINT k; +-- +ok +== +SELECT count(*), sum(p.k) +FROM (SELECT strlen(s) k FROM '{TEST_DIR}/strings.parquet') p +JOIN build ON p.k=build.k; +-- +ok +== diff --git a/parser/testdata/corpus/sql/join/runtime_filter_scheduling.test b/parser/testdata/corpus/sql/join/runtime_filter_scheduling.test new file mode 100644 index 00000000..3707990c --- /dev/null +++ b/parser/testdata/corpus/sql/join/runtime_filter_scheduling.test @@ -0,0 +1,85 @@ +# source: test/sql/join/runtime_filter_scheduling.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE probe AS SELECT i AS k,i%7 AS v FROM range(200000) t(i); +-- +ok +== +CREATE TABLE build(k BIGINT); +-- +ok +== +INSERT INTO build VALUES (42); +-- +ok +== +CREATE TABLE second_build AS SELECT 42::BIGINT AS k; +-- +ok +== +PREPARE grouped_target AS SELECT p.k,p.v FROM ( + SELECT k,sum(v) v FROM probe GROUP BY k +) p JOIN build b ON p.k=b.k ORDER BY p.k; +-- +ok +== +EXECUTE grouped_target; +-- +ok +== +EXPLAIN (ANALYZE, FORMAT JSON) SELECT p.k,p.v FROM ( + SELECT k,sum(v) v FROM probe GROUP BY k +) p JOIN build b ON p.k=b.k ORDER BY p.k; +-- +ok +== +SELECT p.k,p.v FROM ( + SELECT k,sum(v) v FROM (FROM probe UNION ALL FROM probe) GROUP BY k +) p JOIN build b ON p.k=b.k; +-- +ok +== +SELECT p.k,p.v FROM ( + SELECT k,sum(v) v FROM probe GROUP BY k +) p JOIN build b ON p.k=b.k +JOIN second_build c ON p.k=c.k; +-- +ok +== +INSERT INTO build VALUES (99),(199999); +-- +ok +== +INSERT INTO build VALUES (NULL); +-- +ok +== +INSERT INTO build VALUES (100); +-- +ok +== +SELECT count(*) FROM (SELECT k,count(*) n FROM probe GROUP BY k) p JOIN build b ON p.kb.lo AND p.kb.lo AND p.k 0); +-- +ok +== +SELECT __internal_json_copy_to_geojson({'id': 1}, NULL, NULL, '', '', nextval('s') > 0); +-- +ok +== +PREPARE p AS SELECT __internal_json_copy_to_geojson({'id': 1}, NULL, NULL, '', '', nextval('s') > 0); +-- +ok +== +CREATE TABLE t AS SELECT {'id': i} AS ast, i % 2 = 0 AS bbox FROM range(3) r(i); +-- +ok +== +SELECT __internal_json_copy_to_geojson(ast, NULL, NULL, '', '', bbox) FROM t; +-- +ok +== +SELECT __internal_json_copy_to_geojson({'id': 1}, NULL, NULL, '', '', NULL); +-- +ok +== +SELECT __internal_json_copy_to_geojson({'id': 1}, NULL, NULL, '', '', false); +-- +ok +== +PREPARE q AS SELECT __internal_json_copy_to_geojson({'id': 1}, NULL, NULL, '', '', ?::BOOLEAN); +-- +ok +== +EXECUTE q(false); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/copy_json_null_options.test b/parser/testdata/corpus/sql/json/copy_json_null_options.test index 966b4646..4016a4db 100644 --- a/parser/testdata/corpus/sql/json/copy_json_null_options.test +++ b/parser/testdata/corpus/sql/json/copy_json_null_options.test @@ -1,6 +1,6 @@ # source: test/sql/json/copy_json_null_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 AS a) TO '{TEST_DIR}/test_null_use_tmp_file.csv' (FORMAT CSV, use_tmp_file NULL); diff --git a/parser/testdata/corpus/sql/json/copy_json_partition_by.test b/parser/testdata/corpus/sql/json/copy_json_partition_by.test index 74e7c24d..7b5e9890 100644 --- a/parser/testdata/corpus/sql/json/copy_json_partition_by.test +++ b/parser/testdata/corpus/sql/json/copy_json_partition_by.test @@ -1,6 +1,6 @@ # source: test/sql/json/copy_json_partition_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i AS part, 'v' || i AS val FROM range(2) t(i)) diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue1035.test b/parser/testdata/corpus/sql/json/issues/internal_issue1035.test index f9bf896a..92f01473 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue1035.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue1035.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue1035.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json(json_deep_merge(x, x)) = json(x) diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue2732.test b/parser/testdata/corpus/sql/json/issues/internal_issue2732.test index 2bdabc9d..e948b61d 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue2732.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue2732.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue2732.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_json('{DATA_DIR}/json/internal_2732.json', map_inference_threshold=0); diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue3146.test b/parser/testdata/corpus/sql/json/issues/internal_issue3146.test index 6cfe3575..97e0cbdd 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue3146.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue3146.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue3146.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '{}') TO '{TEST_DIR}/empty_object.json' (FORMAT CSV, HEADER FALSE) diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue3197.test b/parser/testdata/corpus/sql/json/issues/internal_issue3197.test index d9223d65..e514d0b1 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue3197.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue3197.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue3197.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/json/internal_3197.json' diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue391.test b/parser/testdata/corpus/sql/json/issues/internal_issue391.test index dd937b29..c61ac088 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue391.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue391.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue391.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select {i: range}::JSON j from range(10) diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue4014.test b/parser/testdata/corpus/sql/json/issues/internal_issue4014.test index bbe06d93..62c9d799 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue4014.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue4014.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue4014.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_json('{DATA_DIR}/json/internal_4014.json', map_inference_threshold=0); diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue4389.test b/parser/testdata/corpus/sql/json/issues/internal_issue4389.test index df7c797b..a891877c 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue4389.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue4389.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue4389.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE todos (userId UBIGINT, id UBIGINT, title VARCHAR, completed BOOLEAN); diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue4403.test b/parser/testdata/corpus/sql/json/issues/internal_issue4403.test index 12a3fd2b..066e1173 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue4403.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue4403.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue4403.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_json('{DATA_DIR}/json/example_n.ndjson', columns={id: NULL::VARCHAR, name: NULL::VARCHAR}) diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue4794.test b/parser/testdata/corpus/sql/json/issues/internal_issue4794.test index cf939fba..08f68fdb 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue4794.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue4794.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue4794.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM read_json('{DATA_DIR}/json/format_string_key.json'); diff --git a/parser/testdata/corpus/sql/json/issues/internal_issue5288.test b/parser/testdata/corpus/sql/json/issues/internal_issue5288.test index 376c7d08..1f173ad3 100644 --- a/parser/testdata/corpus/sql/json/issues/internal_issue5288.test +++ b/parser/testdata/corpus/sql/json/issues/internal_issue5288.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/internal_issue5288.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table foo2 (bar JSON using compression 'zstd'); diff --git a/parser/testdata/corpus/sql/json/issues/issue10751and11152.test b/parser/testdata/corpus/sql/json/issues/issue10751and11152.test index 08a78be7..d8217303 100644 --- a/parser/testdata/corpus/sql/json/issues/issue10751and11152.test +++ b/parser/testdata/corpus/sql/json/issues/issue10751and11152.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue10751and11152.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table json_test as select * from read_json_auto('{DATA_DIR}/json/10751.json', format = 'newline_delimited'); diff --git a/parser/testdata/corpus/sql/json/issues/issue10784.test b/parser/testdata/corpus/sql/json/issues/issue10784.test index 6d400cee..38eb7358 100644 --- a/parser/testdata/corpus/sql/json/issues/issue10784.test +++ b/parser/testdata/corpus/sql/json/issues/issue10784.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue10784.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_json_auto('{DATA_DIR}/json/arr.json', columns={'v':'VARCHAR','k':'VARCHAR'}); diff --git a/parser/testdata/corpus/sql/json/issues/issue10866.test b/parser/testdata/corpus/sql/json/issues/issue10866.test index d9ed5167..bec2ee45 100644 --- a/parser/testdata/corpus/sql/json/issues/issue10866.test +++ b/parser/testdata/corpus/sql/json/issues/issue10866.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue10866.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select '{"col": 277447099861456945273576150847928801582}') to '{TEST_DIR}/10866.json' (format csv, quote '', header 0) diff --git a/parser/testdata/corpus/sql/json/issues/issue11804.test b/parser/testdata/corpus/sql/json/issues/issue11804.test index 83bce1e3..3cd64dbb 100644 --- a/parser/testdata/corpus/sql/json/issues/issue11804.test +++ b/parser/testdata/corpus/sql/json/issues/issue11804.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue11804.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_type(JSON 'null') = 'NULL'; diff --git a/parser/testdata/corpus/sql/json/issues/issue12188.test b/parser/testdata/corpus/sql/json/issues/issue12188.test index a5308f14..94b7dbf3 100644 --- a/parser/testdata/corpus/sql/json/issues/issue12188.test +++ b/parser/testdata/corpus/sql/json/issues/issue12188.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue12188.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(field1), typeof(field2) FROM '{DATA_DIR}/parquet-testing/parquet_with_json.parquet' LIMIT 1 diff --git a/parser/testdata/corpus/sql/json/issues/issue12861.test b/parser/testdata/corpus/sql/json/issues/issue12861.test index a5ec5239..73908f4f 100644 --- a/parser/testdata/corpus/sql/json/issues/issue12861.test +++ b/parser/testdata/corpus/sql/json/issues/issue12861.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue12861.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (test struct(one bigint, two varchar)); diff --git a/parser/testdata/corpus/sql/json/issues/issue13212.test b/parser/testdata/corpus/sql/json/issues/issue13212.test index 2dae39c7..97345f44 100644 --- a/parser/testdata/corpus/sql/json/issues/issue13212.test +++ b/parser/testdata/corpus/sql/json/issues/issue13212.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue13212.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select range::int64 as id, range::varchar as name from range(0)) to '{TEST_DIR}/t1.json.gz' (format json, compression gzip) diff --git a/parser/testdata/corpus/sql/json/issues/issue13725.test b/parser/testdata/corpus/sql/json/issues/issue13725.test index c19dacb0..e58002a4 100644 --- a/parser/testdata/corpus/sql/json/issues/issue13725.test +++ b/parser/testdata/corpus/sql/json/issues/issue13725.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue13725.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * diff --git a/parser/testdata/corpus/sql/json/issues/issue13948.test b/parser/testdata/corpus/sql/json/issues/issue13948.test index ab3dc62a..661d9698 100644 --- a/parser/testdata/corpus/sql/json/issues/issue13948.test +++ b/parser/testdata/corpus/sql/json/issues/issue13948.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue13948.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{"Status / SubStatus": "test"}' -> 'Status / SubStatus'; diff --git a/parser/testdata/corpus/sql/json/issues/issue14167.test b/parser/testdata/corpus/sql/json/issues/issue14167.test index aa9e20f7..9202986a 100644 --- a/parser/testdata/corpus/sql/json/issues/issue14167.test +++ b/parser/testdata/corpus/sql/json/issues/issue14167.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue14167.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select columns.v4_c6 from read_ndjson_auto('{DATA_DIR}/json/14167.json'); diff --git a/parser/testdata/corpus/sql/json/issues/issue14245.test b/parser/testdata/corpus/sql/json/issues/issue14245.test index e04aef6b..016f7b78 100644 --- a/parser/testdata/corpus/sql/json/issues/issue14245.test +++ b/parser/testdata/corpus/sql/json/issues/issue14245.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue14245.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{ "foo": ["bar", "baz"], "": 0 }' -> '/' diff --git a/parser/testdata/corpus/sql/json/issues/issue14259.test b/parser/testdata/corpus/sql/json/issues/issue14259.test index c59f0689..2e2557d0 100644 --- a/parser/testdata/corpus/sql/json/issues/issue14259.test +++ b/parser/testdata/corpus/sql/json/issues/issue14259.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue14259.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from '{DATA_DIR}/json/issue14259.json' diff --git a/parser/testdata/corpus/sql/json/issues/issue15038.test b/parser/testdata/corpus/sql/json/issues/issue15038.test index 5a0a4b38..f0cc0743 100644 --- a/parser/testdata/corpus/sql/json/issues/issue15038.test +++ b/parser/testdata/corpus/sql/json/issues/issue15038.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue15038.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT to_json(1::HUGEINT << 100) diff --git a/parser/testdata/corpus/sql/json/issues/issue15601.test b/parser/testdata/corpus/sql/json/issues/issue15601.test index ee91b92a..eb500076 100644 --- a/parser/testdata/corpus/sql/json/issues/issue15601.test +++ b/parser/testdata/corpus/sql/json/issues/issue15601.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue15601.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/json/15601/fragment*.json' diff --git a/parser/testdata/corpus/sql/json/issues/issue16568.test b/parser/testdata/corpus/sql/json/issues/issue16568.test index 2391de4b..02da63a7 100644 --- a/parser/testdata/corpus/sql/json/issues/issue16568.test +++ b/parser/testdata/corpus/sql/json/issues/issue16568.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue16568.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from '{DATA_DIR}/json/sample_utf8_bom.json' diff --git a/parser/testdata/corpus/sql/json/issues/issue16570.test b/parser/testdata/corpus/sql/json/issues/issue16570.test index 3a072ee3..b83f2116 100644 --- a/parser/testdata/corpus/sql/json/issues/issue16570.test +++ b/parser/testdata/corpus/sql/json/issues/issue16570.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue16570.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with cte as ( diff --git a/parser/testdata/corpus/sql/json/issues/issue16684.test b/parser/testdata/corpus/sql/json/issues/issue16684.test index ffe59e17..c83b941d 100644 --- a/parser/testdata/corpus/sql/json/issues/issue16684.test +++ b/parser/testdata/corpus/sql/json/issues/issue16684.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue16684.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select '00000000000000000000000000000000' md5) to '{TEST_DIR}/issue16684.json' diff --git a/parser/testdata/corpus/sql/json/issues/issue16968.test b/parser/testdata/corpus/sql/json/issues/issue16968.test index 53583a2a..00b428a5 100644 --- a/parser/testdata/corpus/sql/json/issues/issue16968.test +++ b/parser/testdata/corpus/sql/json/issues/issue16968.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue16968.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select from_hex('aa')::json; diff --git a/parser/testdata/corpus/sql/json/issues/issue17135.test b/parser/testdata/corpus/sql/json/issues/issue17135.test index 6163e487..eaf62292 100644 --- a/parser/testdata/corpus/sql/json/issues/issue17135.test +++ b/parser/testdata/corpus/sql/json/issues/issue17135.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue17135.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select * from (values ('{"id":9223372036854775808}'))) to '{TEST_DIR}/ubigint.json' (format csv, quote '', header 0) diff --git a/parser/testdata/corpus/sql/json/issues/issue18301.test b/parser/testdata/corpus/sql/json/issues/issue18301.test index 24065327..0114bcad 100644 --- a/parser/testdata/corpus/sql/json/issues/issue18301.test +++ b/parser/testdata/corpus/sql/json/issues/issue18301.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue18301.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads = 2; diff --git a/parser/testdata/corpus/sql/json/issues/issue19357.test b/parser/testdata/corpus/sql/json/issues/issue19357.test index de6cd433..94d14401 100644 --- a/parser/testdata/corpus/sql/json/issues/issue19357.test +++ b/parser/testdata/corpus/sql/json/issues/issue19357.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue19357.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TO_JSON({'key_1': 'one'}) AS WITHOUT_KEEP_NULL diff --git a/parser/testdata/corpus/sql/json/issues/issue19366.test b/parser/testdata/corpus/sql/json/issues/issue19366.test index 8bbc9651..e9a0beb8 100644 --- a/parser/testdata/corpus/sql/json/issues/issue19366.test +++ b/parser/testdata/corpus/sql/json/issues/issue19366.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue19366.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy ( diff --git a/parser/testdata/corpus/sql/json/issues/issue22764.test b/parser/testdata/corpus/sql/json/issues/issue22764.test index fba369dc..572248f1 100644 --- a/parser/testdata/corpus/sql/json/issues/issue22764.test +++ b/parser/testdata/corpus/sql/json/issues/issue22764.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue22764.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql($json$ diff --git a/parser/testdata/corpus/sql/json/issues/issue23114.test b/parser/testdata/corpus/sql/json/issues/issue23114.test index 2717c44d..1956c117 100644 --- a/parser/testdata/corpus/sql/json/issues/issue23114.test +++ b/parser/testdata/corpus/sql/json/issues/issue23114.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue23114.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_object(CAST(NULL AS VARCHAR), 'two'); diff --git a/parser/testdata/corpus/sql/json/issues/issue25415.test b/parser/testdata/corpus/sql/json/issues/issue25415.test index 56a24fcf..b3889d4e 100644 --- a/parser/testdata/corpus/sql/json/issues/issue25415.test +++ b/parser/testdata/corpus/sql/json/issues/issue25415.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue25415.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disable_object_cache; diff --git a/parser/testdata/corpus/sql/json/issues/issue27414.test b/parser/testdata/corpus/sql/json/issues/issue27414.test index 66612102..5fa667fd 100644 --- a/parser/testdata/corpus/sql/json/issues/issue27414.test +++ b/parser/testdata/corpus/sql/json/issues/issue27414.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue27414.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '2026-01-02 03:04:05' AS date, 'log text' AS log) TO '{TEST_DIR}/issue27414.json' (FORMAT json); diff --git a/parser/testdata/corpus/sql/json/issues/issue6722.test b/parser/testdata/corpus/sql/json/issues/issue6722.test index 0010fc6e..ef43d325 100644 --- a/parser/testdata/corpus/sql/json/issues/issue6722.test +++ b/parser/testdata/corpus/sql/json/issues/issue6722.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue6722.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM '{DATA_DIR}/json/duplicate_column_names.json' diff --git a/parser/testdata/corpus/sql/json/issues/issue8695.test b/parser/testdata/corpus/sql/json/issues/issue8695.test index a907f818..6223bfe5 100644 --- a/parser/testdata/corpus/sql/json/issues/issue8695.test +++ b/parser/testdata/corpus/sql/json/issues/issue8695.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/issue8695.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAX(JSON_ARRAY_LENGTH(filter_keystage))::int - 1 FROM read_json_auto('{DATA_DIR}/json/filter_keystage.ndjson'); diff --git a/parser/testdata/corpus/sql/json/issues/large_quoted_string_constant.test b/parser/testdata/corpus/sql/json/issues/large_quoted_string_constant.test index 9a9c5735..98198e8a 100644 --- a/parser/testdata/corpus/sql/json/issues/large_quoted_string_constant.test +++ b/parser/testdata/corpus/sql/json/issues/large_quoted_string_constant.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/large_quoted_string_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE j2 (id INT, json VARCHAR, src VARCHAR); diff --git a/parser/testdata/corpus/sql/json/issues/map_inference_threshold_internal_exception.test b/parser/testdata/corpus/sql/json/issues/map_inference_threshold_internal_exception.test index ab9d3af1..995bb147 100644 --- a/parser/testdata/corpus/sql/json/issues/map_inference_threshold_internal_exception.test +++ b/parser/testdata/corpus/sql/json/issues/map_inference_threshold_internal_exception.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/map_inference_threshold_internal_exception.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_json('{DATA_DIR}/json/internal_3813.json', map_inference_threshold=10); diff --git a/parser/testdata/corpus/sql/json/issues/ndjson_parallel_bom.test b/parser/testdata/corpus/sql/json/issues/ndjson_parallel_bom.test new file mode 100644 index 00000000..c964f804 --- /dev/null +++ b/parser/testdata/corpus/sql/json/issues/ndjson_parallel_bom.test @@ -0,0 +1,78 @@ +# source: test/sql/json/issues/ndjson_parallel_bom.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY ( + SELECT CASE WHEN i = 0 THEN from_hex('EFBBBF') ELSE ''::BLOB END + || encode(to_json({'a': i, 's': repeat('x', 4096)})::VARCHAR || chr(10)) + FROM range(5000) t(i) ORDER BY i +) TO '{TEST_DIR}/bom_parts.jsonl' (FORMAT BLOB); +-- +ok +== +COPY (SELECT content FROM read_blob('{TEST_DIR}/bom_parts.jsonl')) TO '{TEST_DIR}/bom_parts.jsonl.gz' (FORMAT BLOB, COMPRESSION 'gzip'); +-- +ok +== +SELECT count(*), count(DISTINCT a), sum(a), sum(length(s)) +FROM read_ndjson('{TEST_DIR}/bom_parts.jsonl', columns = {a: 'INTEGER', s: 'VARCHAR'}); +-- +ok +== +SELECT count(*), sum(a) FROM read_json('{TEST_DIR}/bom_parts.jsonl', format = 'newline_delimited', columns = {a: 'INTEGER', s: 'VARCHAR'}); +-- +ok +== +SELECT count(*) FROM read_json_objects('{TEST_DIR}/bom_parts.jsonl', format = 'newline_delimited'); +-- +ok +== +SELECT count(*), count(DISTINCT a), sum(a), sum(length(s)) +FROM read_ndjson('{TEST_DIR}/bom_parts.jsonl.gz', columns = {a: 'INTEGER', s: 'VARCHAR'}); +-- +ok +== +COPY (SELECT from_hex('EFBBBF') || encode('{"a":1}' || chr(10) || '{"a":2}' || chr(10))) TO '{TEST_DIR}/bom_small.jsonl' (FORMAT BLOB); +-- +ok +== +SELECT count(*), sum(a) FROM read_ndjson('{TEST_DIR}/bom_small.jsonl'); +-- +ok +== +SELECT count(*), sum(a) FROM read_ndjson('{TEST_DIR}/bom_parts.jsonl', columns = {a: 'INTEGER', s: 'VARCHAR'}); +-- +ok +== +COPY (SELECT from_hex('EFBBBF')) TO '{TEST_DIR}/only_bom.jsonl' (FORMAT BLOB); +-- +ok +== +COPY (SELECT from_hex('EFBBBF0A')) TO '{TEST_DIR}/bom_newline.jsonl' (FORMAT BLOB); +-- +ok +== +SELECT (SELECT count(*) FROM read_ndjson('{TEST_DIR}/only_bom.jsonl', columns = {a: 'INTEGER'})), (SELECT count(*) FROM read_ndjson('{TEST_DIR}/bom_newline.jsonl', columns = {a: 'INTEGER'})); +-- +ok +== +COPY (SELECT from_hex('EFBBBF31')) TO '{TEST_DIR}/bom_one_byte.jsonl' (FORMAT BLOB); +-- +ok +== +COPY (SELECT from_hex('EFBBBF31')) TO '{TEST_DIR}/bom_one_byte.jsonl.gz' (FORMAT BLOB, COMPRESSION 'gzip'); +-- +ok +== +COPY (SELECT from_hex('31')) TO '{TEST_DIR}/one_byte.jsonl' (FORMAT BLOB); +-- +ok +== +SELECT (SELECT list(json) FROM read_json_objects('{TEST_DIR}/bom_one_byte.jsonl', format = 'newline_delimited')), + (SELECT list(json) FROM read_json_objects('{TEST_DIR}/bom_one_byte.jsonl.gz', format = 'newline_delimited')), + (SELECT list(json) FROM read_json_objects('{TEST_DIR}/one_byte.jsonl', format = 'newline_delimited')), + (SELECT list(a) FROM read_ndjson('{TEST_DIR}/bom_one_byte.jsonl', records = false, columns = {a: 'INTEGER'})); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/issues/read_json_memory_usage.test b/parser/testdata/corpus/sql/json/issues/read_json_memory_usage.test index 76db4517..5b5e51c9 100644 --- a/parser/testdata/corpus/sql/json/issues/read_json_memory_usage.test +++ b/parser/testdata/corpus/sql/json/issues/read_json_memory_usage.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/read_json_memory_usage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit='200MiB'; @@ -15,3 +15,19 @@ SET memory_limit='50MiB'; -- ok == +SET memory_limit='20MiB'; +-- +ok +== +SET memory_limit='500MiB'; +-- +ok +== +COPY (SELECT 1 AS a) TO '{TEMP_DIR}/union_by_name_one.json'; +-- +ok +== +SELECT count(*) FROM read_json(list_transform(range(100), lambda i: '{TEMP_DIR}/union_by_name_one.json'), union_by_name = true); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/issues/test_json_temp_8062.test b/parser/testdata/corpus/sql/json/issues/test_json_temp_8062.test index 6ee5cb9a..4d317ef6 100644 --- a/parser/testdata/corpus/sql/json/issues/test_json_temp_8062.test +++ b/parser/testdata/corpus/sql/json/issues/test_json_temp_8062.test @@ -1,6 +1,6 @@ # source: test/sql/json/issues/test_json_temp_8062.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE j1(x json); diff --git a/parser/testdata/corpus/sql/json/json_blob_roundtrip.test b/parser/testdata/corpus/sql/json/json_blob_roundtrip.test new file mode 100644 index 00000000..52721fe7 --- /dev/null +++ b/parser/testdata/corpus/sql/json/json_blob_roundtrip.test @@ -0,0 +1,59 @@ +# source: test/sql/json/json_blob_roundtrip.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE blobs(id INTEGER, b BLOB, l BLOB[], s STRUCT(x BLOB)); +-- +ok +== +INSERT INTO blobs VALUES + (1, '\xFF\xFE'::BLOB, ['\x00'::BLOB, 'ab'::BLOB], {'x': '\x80'::BLOB}), + (2, 'plain'::BLOB, [], {'x': ''::BLOB}), + (3, '\x5C'::BLOB, ['\x5C\x78\x34\x31'::BLOB], {'x': '\x22'::BLOB}); +-- +ok +== +COPY blobs TO '{TEST_DIR}/blob_roundtrip.json' (FORMAT json, ARRAY true); +-- +ok +== +CREATE TABLE read_back AS SELECT * FROM blobs LIMIT 0; +-- +ok +== +COPY read_back FROM '{TEST_DIR}/blob_roundtrip.json' (FORMAT json); +-- +ok +== +SELECT count(*) FROM blobs a JOIN read_back b ON a.id = b.id + WHERE a.b = b.b AND a.l = b.l AND a.s = b.s +-- +ok +== +COPY read_back TO '{TEST_DIR}/blob_roundtrip2.json' (FORMAT json, ARRAY true); +-- +ok +== +DELETE FROM read_back; +-- +ok +== +COPY read_back FROM '{TEST_DIR}/blob_roundtrip2.json' (FORMAT json); +-- +ok +== +SELECT count(*) FROM blobs a JOIN read_back b ON a.id = b.id + WHERE a.b IS DISTINCT FROM b.b OR a.l IS DISTINCT FROM b.l OR a.s IS DISTINCT FROM b.s +-- +ok +== +CREATE TABLE via_reader AS SELECT * FROM read_json('{TEST_DIR}/blob_roundtrip.json', columns = {id: 'INTEGER', b: 'BLOB', l: 'BLOB[]', s: 'STRUCT(x BLOB)'}, format = 'array'); +-- +ok +== +SELECT count(*) FROM blobs a JOIN via_reader b ON a.id = b.id + WHERE a.b = b.b AND a.l = b.l AND a.s = b.s +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/json_nested_casts.test b/parser/testdata/corpus/sql/json/scalar/json_nested_casts.test index 79014456..b9ba554e 100644 --- a/parser/testdata/corpus/sql/json/scalar/json_nested_casts.test +++ b/parser/testdata/corpus/sql/json/scalar/json_nested_casts.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/json_nested_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t2(blobs json[]) diff --git a/parser/testdata/corpus/sql/json/scalar/json_to_map_invalid_keys.test b/parser/testdata/corpus/sql/json/scalar/json_to_map_invalid_keys.test index bc8ca121..219eba55 100644 --- a/parser/testdata/corpus/sql/json/scalar/json_to_map_invalid_keys.test +++ b/parser/testdata/corpus/sql/json/scalar/json_to_map_invalid_keys.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/json_to_map_invalid_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{"a":1,"a":2}'::JSON::MAP(VARCHAR, INT); @@ -35,3 +35,15 @@ SELECT '{"a":1,"b":2}'::JSON::MAP(VARCHAR, INT); -- ok == +SELECT TRY_CAST('{"a":"x"}'::JSON AS MAP(INT, VARCHAR)); +-- +ok +== +SELECT TRY_CAST(j::JSON AS MAP(INT, VARCHAR)) FROM (VALUES ('{"1":"x"}'), ('{"a":"x"}'), ('{"2":"y"}')) t(j); +-- +ok +== +SELECT '{"a":"x"}'::JSON::MAP(INT, VARCHAR); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/json_transform_case_insensitive_keys.test b/parser/testdata/corpus/sql/json/scalar/json_transform_case_insensitive_keys.test index a6390702..5d57c80a 100644 --- a/parser/testdata/corpus/sql/json/scalar/json_transform_case_insensitive_keys.test +++ b/parser/testdata/corpus/sql/json/scalar/json_transform_case_insensitive_keys.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/json_transform_case_insensitive_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_transform('{"a":1,"A":"x"}', '{"a":"UBIGINT","A":"VARCHAR"}'); diff --git a/parser/testdata/corpus/sql/json/scalar/test_geojson_cast.test b/parser/testdata/corpus/sql/json/scalar/test_geojson_cast.test index b09c06e5..4e7bb7ba 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_geojson_cast.test +++ b/parser/testdata/corpus/sql/json/scalar/test_geojson_cast.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_geojson_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ST_AsText('{"type":"Point","coordinates":[1,2]}'::JSON::GEOMETRY); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_array_length.test b/parser/testdata/corpus/sql/json/scalar/test_json_array_length.test index 6aa87168..0e98f569 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_array_length.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_array_length.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_array_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test (j varchar) diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_arrow_chain_precedence.test b/parser/testdata/corpus/sql/json/scalar/test_json_arrow_chain_precedence.test new file mode 100644 index 00000000..64c9f1b0 --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_arrow_chain_precedence.test @@ -0,0 +1,185 @@ +# source: test/sql/json/scalar/test_json_arrow_chain_precedence.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT '{"a": {"b": "x", "c": {"d": "y"}}, "s": "abc"}'::JSON AS j; +-- +ok +== +SELECT j->'a'->>'b' = 'x' FROM t; +-- +ok +== +SELECT j->'a'->'c'->>'d' = 'y' FROM t; +-- +ok +== +SELECT 'x' = j->'a'->>'b' FROM t; +-- +ok +== +SELECT j->'a'->>'b' <> 'x' FROM t; +-- +ok +== +SELECT j->'a'->>'b' ILIKE 'X%' FROM t; +-- +ok +== +SELECT j->'a'->>'b' LIKE 'x%' FROM t; +-- +ok +== +SELECT j->'a'->>'b' IN ('x', 'y') FROM t; +-- +ok +== +SELECT j->'a'->>'b' NOT IN ('x', 'y') FROM t; +-- +ok +== +SELECT j->'a'->>'b' IS NULL FROM t; +-- +ok +== +SELECT j->'a'->>'b' IS NOT NULL FROM t; +-- +ok +== +SELECT j->'a'->>'b' BETWEEN 'a' AND 'z' FROM t; +-- +ok +== +SELECT j->'a'->>'b' || 'z' FROM t; +-- +ok +== +SELECT j->'a'->>'b' = 'x' AND j->>'s' = 'abc' FROM t; +-- +ok +== +SELECT j->'a'->>'b' = 'zzz' OR j->>'s' = 'abc' FROM t; +-- +ok +== +SELECT NOT j->'a'->>'b' = 'x' FROM t; +-- +ok +== +SELECT count(*) FROM t WHERE j->'a'->>'b' = 'x'; +-- +ok +== +SELECT j->'a'->>'b' FROM t; +-- +ok +== +SELECT j->'a'->'c'->>'d' FROM t; +-- +ok +== +SELECT j->'a'->'b' FROM t; +-- +ok +== +SELECT j->>'s' = 'abc' FROM t; +-- +ok +== +SELECT j->>'a'->'b' FROM t; +-- +ok +== +SELECT (j->'a'->>'b') = 'x' FROM t; +-- +ok +== +SELECT ('{"a": [1, 2]}'::JSON->'a'->>1)::INTEGER + 1; +-- +ok +== +SELECT j->'a'->>'b' = ANY(['x', 'q']) FROM t; +-- +ok +== +SELECT x -> y ->> 'z' FROM (SELECT '{"k": {"z": 2}}'::JSON x, 'k' y); +-- +ok +== +SELECT CASE WHEN j->'a'->>'b' = 'x' THEN 1 END FROM t WHERE j->'a'->>'b' = 'x' ORDER BY j->'a'->>'b'; +-- +ok +== +SELECT j->'a'->>'b'::INT FROM t; +-- +ok +== +CREATE VIEW v AS SELECT j->'a'->>'b' = 'x' AS r FROM t; +-- +ok +== +SELECT r FROM v; +-- +ok +== +SELECT sql FROM duckdb_views() WHERE view_name = 'v'; +-- +ok +== +SELECT j->('a'->>'b') FROM t; +-- +ok +== +SELECT j->'a' = 'x' FROM t; +-- +ok +== +SELECT list_transform([j], lambda x: x->'a'->>'b') FROM t; +-- +ok +== +SELECT list_filter([j], lambda x: x->'a'->>'b' = 'x') FROM t; +-- +ok +== +SELECT list_filter([j], lambda x: x->'a'->>'b' = 'x' AND x->'a'->>'b' <> 'z') = [j] FROM t; +-- +ok +== +SET lambda_syntax = 'ENABLE_SINGLE_ARROW'; +-- +ok +== +SELECT list_transform([1, 2, 3], x -> x + 1 > 2); +-- +ok +== +SELECT list_filter([1, 2, 3], x -> x > 1 AND x < 3); +-- +ok +== +SELECT list_transform([j], x -> (x->'a'->>'b') = 'x') FROM t; +-- +ok +== +SELECT list_transform([[j]], x -> list_transform(x, y -> (y->'a'->>'b') || '!')) FROM t; +-- +ok +== +SELECT list_transform([j], lambda x: CASE WHEN x->'a'->>'b' = 'x' THEN x->'a'->'c'->>'d' END) FROM t; +-- +ok +== +SELECT list_transform([j], x -> x->>'a') FROM t; +-- +ok +== +SET lambda_syntax = 'DISABLE_SINGLE_ARROW'; +-- +ok +== +SELECT list_filter([j], lambda x: x->'a'->>'b' = 'x') IS NOT NULL FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_arrow_expr.test b/parser/testdata/corpus/sql/json/scalar/test_json_arrow_expr.test index f95c3ad8..e3d29ca0 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_arrow_expr.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_arrow_expr.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_arrow_expr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE testjson AS SELECT JSON '{ "key" : "value" }' AS example; diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_contains.test b/parser/testdata/corpus/sql/json/scalar/test_json_contains.test index 0e1caa43..eb1276cb 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_contains.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_contains.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT JSON_CONTAINS('{"a": 1, "b": 2, "c": {"d": 3}}', '{"c": {"d": 3}}') AS Result; diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_create.test b/parser/testdata/corpus/sql/json/scalar/test_json_create.test index 3b0b5c62..0e3d6218 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_create.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_create.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_create.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('{{P{P{{{{ASD{AS{D{' AS JSON); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_decimal_no_integer_digits.test b/parser/testdata/corpus/sql/json/scalar/test_json_decimal_no_integer_digits.test new file mode 100644 index 00000000..0f38a8a5 --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_decimal_no_integer_digits.test @@ -0,0 +1,37 @@ +# source: test/sql/json/scalar/test_json_decimal_no_integer_digits.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT to_json('0.5'::DECIMAL(18,18)), '0.5'::DECIMAL(18,18)::JSON, to_json('-0.5'::DECIMAL(20,20)); +-- +ok +== +SELECT to_json('0.5'::DECIMAL(16,16)), to_json('0.5'::DECIMAL(18,18)), to_json('0.5'::DECIMAL(19,19)), to_json('0.5'::DECIMAL(38,38)); +-- +ok +== +SELECT to_json('0'::DECIMAL(18,18)), to_json('-0.000000000000000001'::DECIMAL(18,18)), to_json('0.999999999999999999'::DECIMAL(18,18)), to_json(NULL::DECIMAL(18,18)); +-- +ok +== +SELECT json_valid(to_json('-0.5'::DECIMAL(18,18))::VARCHAR), json_extract(to_json(['0.5'::DECIMAL(18,18)])::VARCHAR, '$[0]'); +-- +ok +== +SELECT to_json({'l': ['0.5'::DECIMAL(18,18), NULL, '-0.25'::DECIMAL(18,18)], 'm': MAP {'k': '0.5'::DECIMAL(18,18)}}); +-- +ok +== +SELECT to_json(x) FROM (VALUES ('0.5'::DECIMAL(18,18)), ('-0.5'::DECIMAL(18,18)), (NULL)) t(x); +-- +ok +== +SELECT to_json('0.5'::DECIMAL(19,18)), to_json('12.5'::DECIMAL(18,2)), to_json('0.5'::DECIMAL(3,3)); +-- +ok +== +SELECT '0.5'::DECIMAL(18,18)::VARCHAR; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_deep_merge.test b/parser/testdata/corpus/sql/json/scalar/test_json_deep_merge.test index 2fc6a2cc..19104f0c 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_deep_merge.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_deep_merge.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_deep_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deep_merge('{"a": 1}', '{"a": 2}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_dot_syntax.test b/parser/testdata/corpus/sql/json/scalar/test_json_dot_syntax.test index 7135f013..804c0264 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_dot_syntax.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_dot_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_dot_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_structure(json('{"duck":"goose"}').duck); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_exists.test b/parser/testdata/corpus/sql/json/scalar/test_json_exists.test index 91536250..f937cb44 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_exists.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_exists.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_exists('{"duck": null}', '$.duck') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_extract.test b/parser/testdata/corpus/sql/json/scalar/test_json_extract.test index 8fd13901..90a270eb 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_extract.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_extract.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_structure('{"duck":"goose"}'->'duck'); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_extract_input_types.test b/parser/testdata/corpus/sql/json/scalar/test_json_extract_input_types.test index d502f04b..a24ee5c0 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_extract_input_types.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_extract_input_types.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_extract_input_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma enable_verification diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_geometry_crs.test b/parser/testdata/corpus/sql/json/scalar/test_json_geometry_crs.test new file mode 100644 index 00000000..59ed3617 --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_geometry_crs.test @@ -0,0 +1,21 @@ +# source: test/sql/json/scalar/test_json_geometry_crs.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 'POINT(1 2)'::GEOMETRY('OGC:CRS84')::JSON; +-- +ok +== +SELECT json_valid('POINT(1 2)'::GEOMETRY('OGC:CRS84')::JSON); +-- +ok +== +SELECT json_type('POINT(1 2)'::GEOMETRY('OGC:CRS84')::JSON); +-- +ok +== +SELECT '"POINT(1 2)"'::JSON::GEOMETRY('OGC:CRS84')::VARCHAR; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_icu.test b/parser/testdata/corpus/sql/json/scalar/test_json_icu.test index 58f90006..3e1ddee5 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_icu.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_icu.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set calendar = 'gregorian'; diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_insert.test b/parser/testdata/corpus/sql/json/scalar/test_json_insert.test index 62b3799a..250ddfc1 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_insert.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_insert.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_insert('{"a":1}', '$.b', '2') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_keys.test b/parser/testdata/corpus/sql/json/scalar/test_json_keys.test index 29a75e3f..01850277 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_keys.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_keys.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_keys('{"duck": 42}'); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_merge_deep_nesting.test b/parser/testdata/corpus/sql/json/scalar/test_json_merge_deep_nesting.test index 4e058e04..fc375853 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_merge_deep_nesting.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_merge_deep_nesting.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_merge_deep_nesting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT length(json_merge_patch('{"a":1}', '{"a":' || repeat('[', 200000) || repeat(']', 200000) || '}')); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch.test b/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch.test index 07f9ee55..196fcdb7 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_merge_patch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_merge_patch('{"a": 1}', '{"a": 2}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch_diff.test b/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch_diff.test index ddc397b3..bada6b8e 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch_diff.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_merge_patch_diff.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_merge_patch_diff.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_merge_patch_diff('{"a":1}', '{"a":2}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_normalize.test b/parser/testdata/corpus/sql/json/scalar/test_json_normalize.test index 09907ab6..8e5a1b4c 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_normalize.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_normalize.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_normalize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_normalize('{"z":1,"a":2,"m":3}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_path.test b/parser/testdata/corpus/sql/json/scalar/test_json_path.test index 648bf7da..c85d45f9 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_path.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_path.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_extract('{"my_field": "duck"}', '') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_path_prepared.test b/parser/testdata/corpus/sql/json/scalar/test_json_path_prepared.test index 6c6d56b2..bd05bc49 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_path_prepared.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_path_prepared.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_path_prepared.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE extract_stmt AS SELECT json_extract('{"a":1,"b":{"c":2}}', $1); diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_path_quoted_keys.test b/parser/testdata/corpus/sql/json/scalar/test_json_path_quoted_keys.test new file mode 100644 index 00000000..901d1e46 --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_path_quoted_keys.test @@ -0,0 +1,25 @@ +# source: test/sql/json/scalar/test_json_path_quoted_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_extract('{"*":1,"b":2}', '$."*"'); +-- +ok +== +SELECT json_extract('{"*":1,"b":2}', '$.*'); +-- +ok +== +SELECT json_extract('{"a b":1,"c":2}', '$."a b"'); +-- +ok +== +SELECT json_extract('{"a":{"b":3}}', '$."a"."b"'); +-- +ok +== +SELECT json_extract('{"a":{"b":3}}', '$..b'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_pretty.test b/parser/testdata/corpus/sql/json/scalar/test_json_pretty.test index e53b491e..024cd5a5 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_pretty.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_pretty.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_pretty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_pretty('[1,2,{"a":43, "g":[true, true]}]') = '[ diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_remove.test b/parser/testdata/corpus/sql/json/scalar/test_json_remove.test index 12512578..df1b8a20 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_remove.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_remove.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_remove.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_remove('{"a":1,"b":2}', '$.a') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_replace.test b/parser/testdata/corpus/sql/json/scalar/test_json_replace.test index 208da918..fab6e636 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_replace.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_replace.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_replace('{"a":1}', '$.a', '99') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_set.test b/parser/testdata/corpus/sql/json/scalar/test_json_set.test index fc0e5f76..0a2184b3 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_set.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_set.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_set.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_set('{"a":1}', '$.b', '2') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_strip_nulls.test b/parser/testdata/corpus/sql/json/scalar/test_json_strip_nulls.test index f63219a6..642ae126 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_strip_nulls.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_strip_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_strip_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_strip_nulls('{"a":1,"b":null}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_structure.test b/parser/testdata/corpus/sql/json/scalar/test_json_structure.test index b5ab038e..5b388b73 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_structure.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_structure.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_structure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_structure('42') @@ -140,11 +140,13 @@ select json_structure('{"a": 1, "A": 1}'); -- ok == -select json_structure(repeat('[', 200) || repeat(']', 200)); +select json_structure(repeat('[', 200) || repeat(']', 200)) = + repeat('[', 200) || '"NULL"' || repeat(']', 200); -- ok == -select json_structure(repeat('{"a":', 200) || '1' || repeat('}', 200)); +select json_structure(repeat('{"a":', 200) || '1' || repeat('}', 200)) = + repeat('{"a":', 200) || '"UBIGINT"' || repeat('}', 200); -- ok == diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_structure_deep.test b/parser/testdata/corpus/sql/json/scalar/test_json_structure_deep.test new file mode 100644 index 00000000..5fca50c6 --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_structure_deep.test @@ -0,0 +1,17 @@ +# source: test/sql/json/scalar/test_json_structure_deep.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE j AS SELECT ('{' || repeat('"k":{', 200) || '"v":1' || repeat('}', 200) || '}')::JSON AS c; +-- +ok +== +SELECT json_structure(c) = '{' || repeat('"k":{', 200) || '"v":"UBIGINT"' || repeat('}', 200) || '}' FROM j; +-- +ok +== +SELECT TRY(json_structure(c)) = '{' || repeat('"k":{', 200) || '"v":"UBIGINT"' || repeat('}', 200) || '}' FROM j; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_structure_depth.test b/parser/testdata/corpus/sql/json/scalar/test_json_structure_depth.test new file mode 100644 index 00000000..50b9058e --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_structure_depth.test @@ -0,0 +1,17 @@ +# source: test/sql/json/scalar/test_json_structure_depth.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT (repeat('[', 200) || repeat(']', 200))::JSON AS j; +-- +ok +== +SELECT json_structure(j) = repeat('[', 200) || '"NULL"' || repeat(']', 200) FROM t; +-- +ok +== +SELECT try(json_structure(j)) = repeat('[', 200) || '"NULL"' || repeat(']', 200) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_structure_iterative.test b/parser/testdata/corpus/sql/json/scalar/test_json_structure_iterative.test new file mode 100644 index 00000000..4d8b6f7b --- /dev/null +++ b/parser/testdata/corpus/sql/json/scalar/test_json_structure_iterative.test @@ -0,0 +1,58 @@ +# source: test/sql/json/scalar/test_json_structure_iterative.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_structure(repeat('[', 10000) || '1' || repeat(']', 10000)) = + repeat('[', 10000) || '"UBIGINT"' || repeat(']', 10000); +-- +ok +== +SELECT json_structure(repeat('{"q":', 10000) || 'null' || repeat('}', 10000)) = + repeat('{"q":', 10000) || '"NULL"' || repeat('}', 10000); +-- +ok +== +SELECT json_structure(repeat('{"before":0,"nested":[', 5000) || '1' || repeat('],"after":true}', 5000)) = + repeat('{"before":"UBIGINT","nested":[', 5000) || '"UBIGINT"' || repeat('],"after":"BOOLEAN"}', 5000); +-- +ok +== +SELECT json_structure('[{"a":[],"b":{},"c":[[],[1]],"d":2},{"a":[true],"b":{"e":null},"c":[[2]],"d":null}]'); +-- +ok +== +SELECT json_structure('[{"a":[1],"b":{"q":2}},{"a":true,"b":3,"c":null}]'); +-- +ok +== +SELECT json_structure('{"a\u0000b":1,"":null,"q":1,"q":2.5,"Q":true}'); +-- +ok +== +SELECT json_structure('{"before":1,"array":[2,null],"between":true,"object":{"x":"s","y":null},"after":2.5}'); +-- +ok +== +SELECT json_structure('{"x":true,"x":1,"x":{"ignored":1},"tail":"ok"}'); +-- +ok +== +SELECT json_structure('{"x":{"a":1},"x":false,"tail":1}'); +-- +ok +== +SELECT json_structure('{"x":false,"x":[1],"tail":1}'); +-- +ok +== +SELECT json_structure('[{"a":null,"b":1,"c":true},{"a":"s","b":2.5,"c":null,"tail":0}]'); +-- +ok +== +SELECT json_group_structure(v::JSON) = repeat('{"q":', 256) || '"UBIGINT"' || repeat('}', 256) +FROM (VALUES (repeat('{"q":', 256) || '1' || repeat('}', 256)), + (repeat('{"q":', 256) || 'null' || repeat('}', 256))) AS t(v); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_transform.test b/parser/testdata/corpus/sql/json/scalar/test_json_transform.test index b5f20237..5b6bc071 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_transform.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_transform.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_transform.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select from_json('42', '"UBIGINT"') @@ -205,6 +205,18 @@ select json_transform('42', '"BLOB"') -- ok == +select json_transform('"\\x42"', '"BLOB"') +-- +ok +== +select hex(json_transform('{"a": "x\ny"}', '"BLOB"')) +-- +ok +== +select hex(json_transform('["x\ny", {"b": "c\td"}]', '"BLOB"')) +-- +ok +== select json_transform('-42', '"VARCHAR"') -- ok diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_type.test b/parser/testdata/corpus/sql/json/scalar/test_json_type.test index 4b9fc198..3a21db2e 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_type.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_type.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_type('{"str": 42}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_valid.test b/parser/testdata/corpus/sql/json/scalar/test_json_valid.test index 46260d8d..27be3f7e 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_valid.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_valid.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_valid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_valid('{"bla": inf}') diff --git a/parser/testdata/corpus/sql/json/scalar/test_json_value.test b/parser/testdata/corpus/sql/json/scalar/test_json_value.test index f5987562..c7fb937f 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_json_value.test +++ b/parser/testdata/corpus/sql/json/scalar/test_json_value.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_json_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_value('{"foo": null}', '$.foo') diff --git a/parser/testdata/corpus/sql/json/scalar/test_st_asgeojson.test b/parser/testdata/corpus/sql/json/scalar/test_st_asgeojson.test index b53d368a..d4fb10fa 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_st_asgeojson.test +++ b/parser/testdata/corpus/sql/json/scalar/test_st_asgeojson.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_st_asgeojson.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE types (geom GEOMETRY); diff --git a/parser/testdata/corpus/sql/json/scalar/test_st_geomfromgeojson.test b/parser/testdata/corpus/sql/json/scalar/test_st_geomfromgeojson.test index 67bd3726..a90b5979 100644 --- a/parser/testdata/corpus/sql/json/scalar/test_st_geomfromgeojson.test +++ b/parser/testdata/corpus/sql/json/scalar/test_st_geomfromgeojson.test @@ -1,6 +1,6 @@ # source: test/sql/json/scalar/test_st_geomfromgeojson.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ST_AsText(ST_GeomFromGeoJSON(ST_AsGeoJSON(geom))) FROM types; diff --git a/parser/testdata/corpus/sql/json/table/auto_glob_directory.test b/parser/testdata/corpus/sql/json/table/auto_glob_directory.test index 166203b9..9e4b676b 100644 --- a/parser/testdata/corpus/sql/json/table/auto_glob_directory.test +++ b/parser/testdata/corpus/sql/json/table/auto_glob_directory.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/auto_glob_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i%2 AS grp, i FROM range(1000) t(i)) TO '{TEST_DIR}/glob_dir_json' (FORMAT json, PER_THREAD_OUTPUT); diff --git a/parser/testdata/corpus/sql/json/table/json_empty_array.test b/parser/testdata/corpus/sql/json/table/json_empty_array.test index 0fc6f174..2570fad3 100644 --- a/parser/testdata/corpus/sql/json/table/json_empty_array.test +++ b/parser/testdata/corpus/sql/json/table/json_empty_array.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/json_empty_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from '{DATA_DIR}/json/empty.ndjson' diff --git a/parser/testdata/corpus/sql/json/table/json_multi_file_reader.test b/parser/testdata/corpus/sql/json/table/json_multi_file_reader.test index 7b1ffcf4..0e59f075 100644 --- a/parser/testdata/corpus/sql/json/table/json_multi_file_reader.test +++ b/parser/testdata/corpus/sql/json/table/json_multi_file_reader.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/json_multi_file_reader.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as SELECT i as i, to_json([i%4]) as j FROM range(0,20) as tbl(i) diff --git a/parser/testdata/corpus/sql/json/table/json_table_in_out_fullkey_quoting.test b/parser/testdata/corpus/sql/json/table/json_table_in_out_fullkey_quoting.test index 058487a3..b1933703 100644 --- a/parser/testdata/corpus/sql/json/table/json_table_in_out_fullkey_quoting.test +++ b/parser/testdata/corpus/sql/json/table/json_table_in_out_fullkey_quoting.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/json_table_in_out_fullkey_quoting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT fullkey, value FROM json_each('{"a.b": 1}') diff --git a/parser/testdata/corpus/sql/json/table/json_table_in_out_threads.test b/parser/testdata/corpus/sql/json/table/json_table_in_out_threads.test new file mode 100644 index 00000000..9f1ed366 --- /dev/null +++ b/parser/testdata/corpus/sql/json/table/json_table_in_out_threads.test @@ -0,0 +1,85 @@ +# source: test/sql/json/table/json_table_in_out_threads.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_optimizers = 'unnest_rewriter'; +-- +ok +== +CREATE TABLE j AS SELECT json_object('a', i, 'b', [i, i + 1]) AS doc FROM range(10000) t(i); +-- +ok +== +CALL enable_logging('QueryLog'); +-- +ok +== +CREATE VIEW probe_spans AS +SELECT probe, lead(first_context) OVER (ORDER BY first_context) - first_context AS span +FROM ( + SELECT split_part(message, ' ', 4) AS probe, min(context_id) AS first_context + FROM duckdb_logs() + WHERE type = 'QueryLog' AND starts_with(message, 'SELECT count(*) AS probe_') + GROUP BY probe +); +-- +ok +== +SELECT count(*) AS probe_unnest FROM j, LATERAL unnest([j.doc]) r(x); +-- +ok +== +SELECT count(*) AS probe_json_each FROM j, LATERAL json_each(j.doc); +-- +ok +== +SELECT count(*) AS probe_json_tree FROM j, LATERAL json_tree(j.doc); +-- +ok +== +SELECT count(*) AS probe_end FROM range(1); +-- +ok +== +SELECT probe, span = (SELECT span FROM probe_spans WHERE probe = 'probe_unnest') +FROM probe_spans WHERE probe IN ('probe_json_each', 'probe_json_tree') ORDER BY probe; +-- +ok +== +SELECT count(*), sum(id) FROM j, LATERAL json_each(j.doc); +-- +ok +== +SELECT count(*), count(DISTINCT path) FROM j, LATERAL json_tree(j.doc); +-- +ok +== +CREATE TABLE tree_one_thread AS SELECT j.doc, t.* FROM j, LATERAL json_tree(j.doc) t; +-- +ok +== +CREATE TABLE each_one_thread AS SELECT j.doc, e.* FROM j, LATERAL json_each(j.doc) e; +-- +ok +== +SELECT count(*) FROM ( + (SELECT j.doc, t.* FROM j, LATERAL json_tree(j.doc) t EXCEPT ALL SELECT * FROM tree_one_thread) + UNION ALL + (SELECT * FROM tree_one_thread EXCEPT ALL SELECT j.doc, t.* FROM j, LATERAL json_tree(j.doc) t) +); +-- +ok +== +SELECT count(*) FROM ( + (SELECT j.doc, e.* FROM j, LATERAL json_each(j.doc) e EXCEPT ALL SELECT * FROM each_one_thread) + UNION ALL + (SELECT * FROM each_one_thread EXCEPT ALL SELECT j.doc, e.* FROM j, LATERAL json_each(j.doc) e) +); +-- +ok +== +SELECT count(*) FROM tree_one_thread WHERE parent IS NOT NULL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/table/multi_file_hang.test b/parser/testdata/corpus/sql/json/table/multi_file_hang.test index 7244a992..758a1376 100644 --- a/parser/testdata/corpus/sql/json/table/multi_file_hang.test +++ b/parser/testdata/corpus/sql/json/table/multi_file_hang.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/multi_file_hang.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set threads=8 diff --git a/parser/testdata/corpus/sql/json/table/read_geojson_errors.test b/parser/testdata/corpus/sql/json/table/read_geojson_errors.test index e05940d1..1ba1155e 100644 --- a/parser/testdata/corpus/sql/json/table/read_geojson_errors.test +++ b/parser/testdata/corpus/sql/json/table/read_geojson_errors.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_geojson_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ST_AsText(geometry) FROM read_json('data/json/geojson/malformed.geojsonl'); diff --git a/parser/testdata/corpus/sql/json/table/read_geojson_featurecollection.test b/parser/testdata/corpus/sql/json/table/read_geojson_featurecollection.test index 6ff559ce..622fc31d 100644 --- a/parser/testdata/corpus/sql/json/table/read_geojson_featurecollection.test +++ b/parser/testdata/corpus/sql/json/table/read_geojson_featurecollection.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_geojson_featurecollection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ST_AsText(geometry), name, pop, area diff --git a/parser/testdata/corpus/sql/json/table/read_geojson_ndjson.test b/parser/testdata/corpus/sql/json/table/read_geojson_ndjson.test index d1e5aff3..73cb52ce 100644 --- a/parser/testdata/corpus/sql/json/table/read_geojson_ndjson.test +++ b/parser/testdata/corpus/sql/json/table/read_geojson_ndjson.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_geojson_ndjson.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id, ST_AsText(geometry), name FROM read_json('data/json/geojson/features.geojsonl') ORDER BY id; diff --git a/parser/testdata/corpus/sql/json/table/read_geojson_nested.test b/parser/testdata/corpus/sql/json/table/read_geojson_nested.test index a6debf0f..6a45a664 100644 --- a/parser/testdata/corpus/sql/json/table/read_geojson_nested.test +++ b/parser/testdata/corpus/sql/json/table/read_geojson_nested.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_geojson_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column_name, column_type diff --git a/parser/testdata/corpus/sql/json/table/read_geojson_pseudo_columns.test b/parser/testdata/corpus/sql/json/table/read_geojson_pseudo_columns.test index 72ff1979..e5aec154 100644 --- a/parser/testdata/corpus/sql/json/table/read_geojson_pseudo_columns.test +++ b/parser/testdata/corpus/sql/json/table/read_geojson_pseudo_columns.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_geojson_pseudo_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column_name, column_type diff --git a/parser/testdata/corpus/sql/json/table/read_json.test b/parser/testdata/corpus/sql/json/table/read_json.test index a59f7041..a71a870c 100644 --- a/parser/testdata/corpus/sql/json/table/read_json.test +++ b/parser/testdata/corpus/sql/json/table/read_json.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_json('{DATA_DIR}/json/example_n.ndjson', auto_detect=false) diff --git a/parser/testdata/corpus/sql/json/table/read_json_case_insensitive_keys.test b/parser/testdata/corpus/sql/json/table/read_json_case_insensitive_keys.test new file mode 100644 index 00000000..0c2a4df3 --- /dev/null +++ b/parser/testdata/corpus/sql/json/table/read_json_case_insensitive_keys.test @@ -0,0 +1,136 @@ +# source: test/sql/json/table/read_json_case_insensitive_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT * FROM (VALUES + ('{"userid":1,"Url":"a"}'), + ('{"userId":2,"URL":"b","user":{"userId":20}}'), + ('{"USERID":3,"user":{"USERID":30}}') +) t(line)) TO '{TEST_DIR}/case_keys.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys.json', columns := {userid: 'INTEGER', url: 'VARCHAR', "user": 'STRUCT(userid INTEGER)'}, format := 'newline_delimited'); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys.json', columns := {userid: 'INTEGER', url: 'VARCHAR', "user": 'STRUCT(userid INTEGER)'}, format := 'newline_delimited', case_insensitive_keys := true); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys.json', columns := {UserId: 'INTEGER', URL: 'VARCHAR'}, format := 'newline_delimited', case_insensitive_keys := true); +-- +ok +== +SELECT "user".userid FROM read_json('{TEST_DIR}/case_keys.json', columns := {userid: 'INTEGER', url: 'VARCHAR', "user": 'STRUCT(userid INTEGER)'}, format := 'newline_delimited', case_insensitive_keys := true); +-- +ok +== +SELECT userid FROM read_ndjson('{TEST_DIR}/case_keys.json', columns := {userid: 'INTEGER'}, case_insensitive_keys := true); +-- +ok +== +COPY (SELECT * FROM (VALUES + ('{"URL":1}'), + ('{"URL":2,"Url":3}') +) t(line)) TO '{TEST_DIR}/case_keys_duplicate.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_duplicate.json', columns := {url: 'INTEGER'}, format := 'newline_delimited', case_insensitive_keys := true); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_duplicate.json', columns := {url: 'INTEGER'}, format := 'newline_delimited', case_insensitive_keys := true, ignore_errors := true); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_duplicate.json', columns := {URL: 'INTEGER'}, format := 'newline_delimited'); +-- +ok +== +COPY (SELECT * FROM (VALUES ('{"USERID":4,"url":"d"}')) t(line)) TO '{TEST_DIR}/case_keys_2.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT userid, url FROM read_json(['{TEST_DIR}/case_keys.json', '{TEST_DIR}/case_keys_2.json'], columns := {userid: 'INTEGER', url: 'VARCHAR'}, format := 'newline_delimited', case_insensitive_keys := true) ORDER BY userid; +-- +ok +== +SELECT userid, url FROM read_json(['{TEST_DIR}/case_keys.json', '{TEST_DIR}/case_keys_2.json'], columns := {userid: 'INTEGER', url: 'VARCHAR'}, format := 'newline_delimited', case_insensitive_keys := true, union_by_name := true) ORDER BY userid; +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys.json', case_insensitive_keys := true); +-- +ok +== +SELECT column_name, column_type FROM (DESCRIBE SELECT * FROM read_json('{TEST_DIR}/case_keys.json', case_insensitive_keys := true)); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys.json'); +-- +ok +== +COPY (SELECT * FROM (VALUES ('{"Value":1}'), ('{"VALUE":"x"}')) t(line)) TO '{TEST_DIR}/case_keys_types.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT Value, typeof(Value) FROM read_json('{TEST_DIR}/case_keys_types.json', case_insensitive_keys := true); +-- +ok +== +COPY (SELECT * FROM (VALUES ('[{"Id":1,"Tags":[{"Key":"a"},{"KEY":"b"}]},{"ID":2,"tags":[]}]')) t(line)) TO '{TEST_DIR}/case_keys_array.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_array.json', case_insensitive_keys := true); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_duplicate.json', case_insensitive_keys := true); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_duplicate.json', case_insensitive_keys := true, ignore_errors := true); +-- +ok +== +COPY (SELECT * FROM (VALUES ('{"a":{"Id":1},"b":{"ID":2},"c":{"id":3}}')) t(line)) TO '{TEST_DIR}/case_keys_map.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT typeof(json), json FROM read_json('{TEST_DIR}/case_keys_map.json', case_insensitive_keys := true, map_inference_threshold := 1); +-- +ok +== +COPY (SELECT * FROM (VALUES ('{"a":{"Id":1},"b":{"ID":"s"}}')) t(line)) TO '{TEST_DIR}/case_keys_map_types.json' (FORMAT csv, HEADER false, QUOTE '', ESCAPE '', DELIMITER '\t'); +-- +ok +== +SELECT column_name, column_type FROM (DESCRIBE SELECT * FROM read_json('{TEST_DIR}/case_keys_map_types.json', case_insensitive_keys := true, map_inference_threshold := 1)); +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/case_keys_map_types.json', map_inference_threshold := 1); +-- +ok +== +SELECT * FROM read_json(['{TEST_DIR}/case_keys.json', '{TEST_DIR}/case_keys_2.json'], case_insensitive_keys := true) ORDER BY 1; +-- +ok +== +SELECT * FROM read_json(['{TEST_DIR}/case_keys.json', '{TEST_DIR}/case_keys_2.json'], case_insensitive_keys := true, union_by_name := true) ORDER BY 1; +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT * FROM read_json(['{TEST_DIR}/case_keys.json', '{TEST_DIR}/case_keys_2.json'], case_insensitive_keys := true, union_by_name := true)); +-- +ok +== +SELECT count(*) FROM (DESCRIBE SELECT * FROM read_json(['{TEST_DIR}/case_keys_2.json', '{TEST_DIR}/case_keys_duplicate.json'], union_by_name := true)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/table/read_json_dates.test b/parser/testdata/corpus/sql/json/table/read_json_dates.test index 288e920d..80c5be69 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_dates.test +++ b/parser/testdata/corpus/sql/json/table/read_json_dates.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_dates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_json_auto('{DATA_DIR}/json/simple_timestamp.json', columns={"ts": "TIMESTAMP[]"}); diff --git a/parser/testdata/corpus/sql/json/table/read_json_dates_vector_boundary.test b/parser/testdata/corpus/sql/json/table/read_json_dates_vector_boundary.test index b3f5a833..1fd09d4e 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_dates_vector_boundary.test +++ b/parser/testdata/corpus/sql/json/table/read_json_dates_vector_boundary.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_dates_vector_boundary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy ( diff --git a/parser/testdata/corpus/sql/json/table/read_json_decimal.test b/parser/testdata/corpus/sql/json/table/read_json_decimal.test new file mode 100644 index 00000000..9f51c77a --- /dev/null +++ b/parser/testdata/corpus/sql/json/table/read_json_decimal.test @@ -0,0 +1,238 @@ +# source: test/sql/json/table/read_json_decimal.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT * FROM (VALUES + ('{"id": 1, "d": 12345678901234.567890123456789012, "x": 1.5}'), + ('{"id": 2, "d": 99999999999999999999.999999999999999999, "x": 2.5}'), + ('{"id": 3, "d": -0.000000000000000001, "x": 3}'), + ('{"id": 4, "d": 7, "x": null}'), + ('{"id": 5, "d": "1.25", "x": 5.5}'), + ('{"id": 6, "d": null, "x": 6.5}')) t(j)) +TO '{TEMP_DIR}/decimals.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT id, d, x FROM read_json('{TEMP_DIR}/decimals.json', columns = {id: 'INTEGER', d: 'DECIMAL(38,18)', x: 'DOUBLE'}) ORDER BY id; +-- +ok +== +CREATE TABLE decimals (id INTEGER, d DECIMAL(38,18), x DOUBLE); +-- +ok +== +COPY decimals FROM '{TEMP_DIR}/decimals.json'; +-- +ok +== +SELECT id, d FROM decimals WHERE id <= 2 ORDER BY id; +-- +ok +== +COPY (SELECT '[{"d": 12345678901234.567890123456789012}, {"d": 99999999999999999999.999999999999999999}]' AS j) +TO '{TEMP_DIR}/decimals_array.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/decimals_array.json', columns = {d: 'DECIMAL(38,18)'}, format = 'array') ORDER BY d; +-- +ok +== +COPY (SELECT * FROM (VALUES ('12345678901234.567890123456789012'), ('7')) t(j)) +TO '{TEMP_DIR}/decimal_values.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/decimal_values.json', columns = {d: 'DECIMAL(38,18)'}, records = false) ORDER BY d; +-- +ok +== +COPY (SELECT '{"s": {"d": 12345678901234.567890123456789012}, "l": [99999999999999999999.999999999999999999, 1]}' AS j) +TO '{TEMP_DIR}/nested_decimals.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT s.d, l FROM read_json('{TEMP_DIR}/nested_decimals.json', columns = {s: 'STRUCT(d DECIMAL(38,18))', l: 'DECIMAL(38,18)[]'}); +-- +ok +== +COPY (SELECT * FROM (VALUES + ('{"m": {"a": 12345678901234.567890123456789012}, "u": {"d": 99999999999999999999.999999999999999999}}'), + ('{"m": {}, "u": {"s": "text"}}')) t(j)) +TO '{TEMP_DIR}/map_union_decimals.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT m, u, union_tag(u) FROM read_json('{TEMP_DIR}/map_union_decimals.json', columns = {m: 'MAP(VARCHAR, DECIMAL(38,18))', u: 'UNION(d DECIMAL(38,18), s VARCHAR)'}) ORDER BY union_tag(u); +-- +ok +== +COPY (SELECT '[12345678901234.567890123456789012, 7]' AS j) TO '{TEMP_DIR}/decimal_array_values.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/decimal_array_values.json', columns = {d: 'DECIMAL(38,18)'}, format = 'array', records = false) ORDER BY d; +-- +ok +== +COPY (SELECT * FROM (VALUES ('{"d18": 123456789012345.678, "d4": 12.3, "t": 1.005}'), ('{"d18": -0.001, "d4": 1e1, "t": 2.675}')) t(j)) +TO '{TEMP_DIR}/narrow_decimals.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d18, d4, t FROM read_json('{TEMP_DIR}/narrow_decimals.json', columns = {d18: 'DECIMAL(18,3)', d4: 'DECIMAL(4,1)', t: 'DECIMAL(4,2)'}) ORDER BY d18; +-- +ok +== +SELECT CAST('1.005' AS DECIMAL(4,2)); +-- +ok +== +COPY (SELECT '{"d": 123456789012345678901.5}' AS j) TO '{TEMP_DIR}/too_wide.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/too_wide.json', columns = {d: 'DECIMAL(38,18)'}); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/too_wide.json', columns = {d: 'DECIMAL(38,18)'}, ignore_errors = true); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/too_wide.json', columns = {d: 'DECIMAL(4,1)'}); +-- +ok +== +COPY (SELECT '{"d": Infinity}' AS j) TO '{TEMP_DIR}/infinity.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/infinity.json', columns = {d: 'DECIMAL(10,2)'}); +-- +ok +== +COPY (SELECT '{"d": 1e400}' AS j) TO '{TEMP_DIR}/huge.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d FROM read_json('{TEMP_DIR}/huge.json', columns = {d: 'DECIMAL(10,2)'}); +-- +ok +== +COPY (SELECT * FROM (VALUES + ('{"d": 1.25, "b": 1, "i": 2.5, "u": 18446744073709551615, "h": 123456789012345678901234567890, "f": 2.5e-1, "s": "7", "v": 1.50, "w": 1e2, "n": [1.50, {"e": 1e2}]}'), + ('{"d": 2.5, "b": 0, "i": -3, "u": 0, "h": -1, "f": 0.5, "s": "8", "v": 1e2, "w": 123456789012345678901234567890, "n": {"k": 1}}')) t(j)) +TO '{TEMP_DIR}/siblings.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d, b, i, u, h, f, s FROM read_json('{TEMP_DIR}/siblings.json', columns = {d: 'DECIMAL(10,2)', b: 'BOOLEAN', i: 'BIGINT', u: 'UBIGINT', h: 'HUGEINT', f: 'FLOAT', s: 'INTEGER'}) ORDER BY d; +-- +ok +== +SELECT b, i, u, h, f, s FROM read_json('{TEMP_DIR}/siblings.json', columns = {b: 'BOOLEAN', i: 'BIGINT', u: 'UBIGINT', h: 'HUGEINT', f: 'FLOAT', s: 'INTEGER'}) ORDER BY i; +-- +ok +== +SELECT v, w, n, typeof(n) FROM read_json('{TEMP_DIR}/siblings.json', columns = {d: 'DECIMAL(10,2)', v: 'VARCHAR', w: 'VARCHAR', n: 'VARCHAR'}) ORDER BY d; +-- +ok +== +SELECT v, w, n FROM read_json('{TEMP_DIR}/siblings.json', columns = {v: 'VARCHAR', w: 'VARCHAR', n: 'VARCHAR'}) ORDER BY v; +-- +ok +== +SELECT v, n, typeof(n) FROM read_json('{TEMP_DIR}/siblings.json', columns = {d: 'DECIMAL(10,2)', v: 'JSON', n: 'JSON'}) ORDER BY d; +-- +ok +== +SELECT v, n FROM read_json('{TEMP_DIR}/siblings.json', columns = {v: 'JSON', n: 'JSON'}) ORDER BY v; +-- +ok +== +SELECT decode(n) FROM read_json('{TEMP_DIR}/siblings.json', columns = {d: 'DECIMAL(10,2)', n: 'BLOB'}) ORDER BY d; +-- +ok +== +COPY (SELECT '{"d": 1.5, "j": {"name": "x", "tags": ["a", "b"], "ok": true}}' AS j) TO '{TEMP_DIR}/json_no_numbers.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT j, j = (SELECT j FROM read_json('{TEMP_DIR}/json_no_numbers.json', columns = {j: 'JSON'})) FROM read_json('{TEMP_DIR}/json_no_numbers.json', columns = {d: 'DECIMAL(10,2)', j: 'JSON'}); +-- +ok +== +SELECT json_transform('{"d": 1.5, "n": [1.50, {"e": 1e2}]}', '{"d": "DECIMAL(4,1)", "n": "VARCHAR"}'), json_transform('{"n": [1.50, {"e": 1e2}]}', '{"n": "VARCHAR"}'); +-- +ok +== +SELECT json_transform('{"d": 1, "n": 9007199254740993.0, "m": 9223372036854775807.0}', '{"d": "DECIMAL(2,0)", "n": "BIGINT", "m": "BIGINT"}'), + json_transform('{"n": 9007199254740993.0, "m": 9223372036854775807.0}', '{"n": "BIGINT", "m": "BIGINT"}'), + json_transform('{"n": 9007199254740993.0}', '{"n": "DECIMAL(20,1)"}'); +-- +ok +== +COPY (SELECT '{"d": 1.25, "g": {"type": "Point", "coordinates": [1.5, 2]}, "z": {"type": "Point", "coordinates": [1, 2, 3]}}' AS j) +TO '{TEMP_DIR}/geo.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d, g::VARCHAR, z::VARCHAR FROM read_json('{TEMP_DIR}/geo.json', columns = {d: 'DECIMAL(10,2)', g: 'GEOMETRY', z: 'GEOMETRY'}); +-- +ok +== +COPY (SELECT '{"type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5, 2]}, "properties": {"d": 12345678901234.567890123456789012, "n": 1.50}}' AS j) +TO '{TEMP_DIR}/feature.geojson' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT d, n, geometry::VARCHAR FROM read_json('{TEMP_DIR}/feature.geojson', columns = {d: 'DECIMAL(38,18)', n: 'VARCHAR', geometry: 'GEOMETRY'}); +-- +ok +== +SELECT count(*), max(d) FROM read_json(['{TEMP_DIR}/decimals.json', '{TEMP_DIR}/siblings.json'], columns = {d: 'DECIMAL(38,18)'}); +-- +ok +== +SELECT count(*), max(d) FROM read_json(['{TEMP_DIR}/siblings.json', '{TEMP_DIR}/decimals.json'], columns = {d: 'DECIMAL(38,18)'}, maximum_sample_files = 1); +-- +ok +== +SELECT d FROM read_json(['{TEMP_DIR}/siblings.json', '{TEMP_DIR}/decimals.json'], columns = {d: 'DECIMAL(38,18)'}, maximum_sample_files = 1) WHERE d > 1000 ORDER BY d; +-- +ok +== +COPY (SELECT '{"d": 1.5, "b": 1e400, "x": 1e400, "i": Infinity}' AS j) TO '{TEMP_DIR}/overflow.json' (FORMAT CSV, HEADER false, QUOTE ''); +-- +ok +== +SELECT x, i FROM read_json('{TEMP_DIR}/overflow.json', columns = {d: 'DECIMAL(10,2)', x: 'DOUBLE', i: 'DOUBLE'}); +-- +ok +== +SELECT x, i FROM read_json('{TEMP_DIR}/overflow.json', columns = {x: 'DOUBLE', i: 'DOUBLE'}); +-- +ok +== +SELECT b FROM read_json('{TEMP_DIR}/overflow.json', columns = {d: 'DECIMAL(10,2)', b: 'BOOLEAN'}); +-- +ok +== +SELECT b FROM read_json('{TEMP_DIR}/overflow.json', columns = {b: 'BOOLEAN'}); +-- +ok +== +SELECT json_transform('1e400', '"BOOLEAN"'), json_transform('1e400', '"DOUBLE"'); +-- +ok +== +SELECT typeof(x) FROM read_json('{TEMP_DIR}/decimals.json') LIMIT 1; +-- +ok +== +SELECT json FROM read_json_objects('{TEMP_DIR}/too_wide.json'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/table/read_json_ignore_errors_spanning.test b/parser/testdata/corpus/sql/json/table/read_json_ignore_errors_spanning.test index 37bbbfc0..6e6fc5ea 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_ignore_errors_spanning.test +++ b/parser/testdata/corpus/sql/json/table/read_json_ignore_errors_spanning.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_ignore_errors_spanning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_json('data/json/ignore_errors_spanning_record.ndjson', format = 'newline_delimited', ignore_errors = true, columns = {'a': 'VARCHAR'}); diff --git a/parser/testdata/corpus/sql/json/table/read_json_objects.test b/parser/testdata/corpus/sql/json/table/read_json_objects.test index 3a6387ae..b47df700 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_objects.test +++ b/parser/testdata/corpus/sql/json/table/read_json_objects.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_objects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from read_json_objects('{DATA_DIR}/json/unterminated_quotes.ndjson') diff --git a/parser/testdata/corpus/sql/json/table/read_json_parallel_buffers.test b/parser/testdata/corpus/sql/json/table/read_json_parallel_buffers.test new file mode 100644 index 00000000..7420195c --- /dev/null +++ b/parser/testdata/corpus/sql/json/table/read_json_parallel_buffers.test @@ -0,0 +1,105 @@ +# source: test/sql/json/table/read_json_parallel_buffers.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM read_json('{DATA_DIR}/json/example_n.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}) ORDER BY id +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/example_n.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}, maximum_object_size=64) ORDER BY id +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/example_rn.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}) ORDER BY id +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/example_rn.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}, maximum_object_size=64) ORDER BY id +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/example_n.ndjson', maximum_object_size=64) ORDER BY id +-- +ok +== +COPY (SELECT range AS a FROM range(1000)) TO '{TEST_DIR}/parallel_buffers_records.ndjson' (FORMAT json) +-- +ok +== +SELECT count(*), sum(a), min(a), max(a) FROM read_json('{TEST_DIR}/parallel_buffers_records.ndjson', format='newline_delimited', columns={a: 'INTEGER'}) +-- +ok +== +SELECT count(*), sum(a), min(a), max(a) FROM read_json('{TEST_DIR}/parallel_buffers_records.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64) +-- +ok +== +COPY (SELECT 100 + range AS a FROM range(18)) TO '{TEST_DIR}/parallel_buffers_aligned.ndjson' (FORMAT json) +-- +ok +== +SELECT count(*), sum(a), min(a), max(a) FROM read_json('{TEST_DIR}/parallel_buffers_aligned.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64) +-- +ok +== +COPY (SELECT unnest(range(100, 111) || [1000]) AS a) TO '{TEST_DIR}/parallel_buffers_newline_last.ndjson' (FORMAT json) +-- +ok +== +SELECT count(*), sum(a), min(a), max(a) FROM read_json('{TEST_DIR}/parallel_buffers_newline_last.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64) +-- +ok +== +SELECT count(*) FROM read_json('{DATA_DIR}/json/empty.ndjson', format='newline_delimited', columns={a: 'INTEGER'}) +-- +ok +== +SELECT count(*) FROM read_json('{DATA_DIR}/json/whitespace_only.json', format='newline_delimited', columns={a: 'INTEGER'}) +-- +ok +== +SELECT count(*) FROM read_json('{DATA_DIR}/json/whitespace_only.json', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64) +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/unterminated_quotes.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}) +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/unterminated_quotes.ndjson', format='newline_delimited', columns={id: 'INTEGER', name: 'VARCHAR'}, maximum_object_size=64) +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/malformed_last_line.ndjson', format='newline_delimited', columns={a: 'INTEGER'}) +-- +ok +== +SELECT * FROM read_json('{DATA_DIR}/json/malformed_last_line.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64) +-- +ok +== +SELECT a FROM read_json('{DATA_DIR}/json/malformed_last_line.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, ignore_errors=true) ORDER BY a NULLS LAST +-- +ok +== +SELECT a FROM read_json('{DATA_DIR}/json/malformed_last_line.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64, ignore_errors=true) ORDER BY a NULLS LAST +-- +ok +== +COPY (SELECT {i} * 100 + range AS id FROM range(50)) TO '{TEST_DIR}/parallel_buffers_many_{i}.ndjson' (FORMAT json) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*), sum(id) FROM read_json('{TEST_DIR}/parallel_buffers_many_*.ndjson', format='newline_delimited', columns={id: 'BIGINT'}) +-- +ok +== +SELECT count(*), sum(id) FROM read_json('{TEST_DIR}/parallel_buffers_many_*.ndjson', format='newline_delimited', columns={id: 'BIGINT'}, maximum_object_size=64) +-- +ok +== +SELECT count(*), sum(id) FROM read_json('{TEST_DIR}/parallel_buffers_many_*.ndjson') +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/table/read_json_records_param_types.test b/parser/testdata/corpus/sql/json/table/read_json_records_param_types.test index 6e41393d..75e4a4d0 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_records_param_types.test +++ b/parser/testdata/corpus/sql/json/table/read_json_records_param_types.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_records_param_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 i) TO '__TEST_DIR__/r.json' diff --git a/parser/testdata/corpus/sql/json/table/read_json_root_bignum.test b/parser/testdata/corpus/sql/json/table/read_json_root_bignum.test index 0c330358..73fe3348 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_root_bignum.test +++ b/parser/testdata/corpus/sql/json/table/read_json_root_bignum.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_root_bignum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '18446744073709551621' AS j) TO '{TEMP_DIR}/bn.json' (FORMAT CSV, HEADER false); diff --git a/parser/testdata/corpus/sql/json/table/read_json_timestamp_specials.test b/parser/testdata/corpus/sql/json/table/read_json_timestamp_specials.test index 2b91f931..1291db7d 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_timestamp_specials.test +++ b/parser/testdata/corpus/sql/json/table/read_json_timestamp_specials.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_timestamp_specials.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select * from (values diff --git a/parser/testdata/corpus/sql/json/table/read_json_union.test b/parser/testdata/corpus/sql/json/table/read_json_union.test index 1ff9c21d..9900cb21 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_union.test +++ b/parser/testdata/corpus/sql/json/table/read_json_union.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT data FROM read_ndjson('{DATA_DIR}/json/union.ndjson', columns={data: 'UNION(name VARCHAR, age INT, veteran BOOL)'}) diff --git a/parser/testdata/corpus/sql/json/table/read_json_unnest_heterogeneous_struct.test b/parser/testdata/corpus/sql/json/table/read_json_unnest_heterogeneous_struct.test index 20f23f51..126685ef 100644 --- a/parser/testdata/corpus/sql/json/table/read_json_unnest_heterogeneous_struct.test +++ b/parser/testdata/corpus/sql/json/table/read_json_unnest_heterogeneous_struct.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_json_unnest_heterogeneous_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/json/table/read_single_json_file.test b/parser/testdata/corpus/sql/json/table/read_single_json_file.test index f8330d73..0a1a376b 100644 --- a/parser/testdata/corpus/sql/json/table/read_single_json_file.test +++ b/parser/testdata/corpus/sql/json/table/read_single_json_file.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/read_single_json_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_single_json_file('data/json/example_n.ndjson') diff --git a/parser/testdata/corpus/sql/json/table/test_json_copy_zstd.test b/parser/testdata/corpus/sql/json/table/test_json_copy_zstd.test index 374ab67a..51c4d483 100644 --- a/parser/testdata/corpus/sql/json/table/test_json_copy_zstd.test +++ b/parser/testdata/corpus/sql/json/table/test_json_copy_zstd.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/test_json_copy_zstd.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table my_range as select range as i from range(10) diff --git a/parser/testdata/corpus/sql/json/table/test_json_nested_struct_projection_pushdown.test b/parser/testdata/corpus/sql/json/table/test_json_nested_struct_projection_pushdown.test index a68bdc1f..73122485 100644 --- a/parser/testdata/corpus/sql/json/table/test_json_nested_struct_projection_pushdown.test +++ b/parser/testdata/corpus/sql/json/table/test_json_nested_struct_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/json/table/test_json_nested_struct_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT {goose: 42, pigeon: 4.2, nested_duck: {nested_nested_duck: {goose: 42, pigeon: 4.2, nested_nested_nested_duck: {goose: 42, pigeon: 4.2}}, goose: 42, pigeon: 4.2}} AS duck) TO '{TEST_DIR}/nested.json' diff --git a/parser/testdata/corpus/sql/json/test_deserialize_at_clause.test b/parser/testdata/corpus/sql/json/test_deserialize_at_clause.test new file mode 100644 index 00000000..2b9a0f1e --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_deserialize_at_clause.test @@ -0,0 +1,13 @@ +# source: test/sql/json/test_deserialize_at_clause.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_deserialize_sql(regexp_replace(json_serialize_sql('SELECT * FROM t AT (VERSION => 1)'), '"at_clause":\{"unit":"VERSION","expr":\{.*?"literal":\{"kind":"INTEGER","text":"1"\}\}', '"at_clause":{"unit":"VERSION","expr":null')); +-- +ok +== +SELECT json_deserialize_sql(json_serialize_sql('SELECT * FROM t AT (VERSION => 1)')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_deserialize_function_validation.test b/parser/testdata/corpus/sql/json/test_deserialize_function_validation.test new file mode 100644 index 00000000..1b97386d --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_deserialize_function_validation.test @@ -0,0 +1,13 @@ +# source: test/sql/json/test_deserialize_function_validation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_deserialize_sql(replace(json_serialize_sql('SELECT a+1 FROM t'), '"order_bys":{"type":"ORDER_MODIFIER"', '"order_bys":{"type":"LIMIT_MODIFIER"')); +-- +ok +== +SELECT json_deserialize_sql(replace(json_serialize_sql('SELECT 1 + 2'), '"distinct":false,"is_operator":true', '"distinct":true,"is_operator":true')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_deserialize_window_frame.test b/parser/testdata/corpus/sql/json/test_deserialize_window_frame.test new file mode 100644 index 00000000..f32d922e --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_deserialize_window_frame.test @@ -0,0 +1,17 @@ +# source: test/sql/json/test_deserialize_window_frame.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_deserialize_sql(replace(json_serialize_sql('SELECT row_number() OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) FROM t'), '"end":"EXPR_FOLLOWING_ROWS"', '"end":"INVALID"')); +-- +ok +== +SELECT json_deserialize_sql(replace(json_serialize_sql('SELECT row_number() OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) FROM t'), '"start":"EXPR_PRECEDING_ROWS"', '"start":"INVALID"')); +-- +ok +== +SELECT json_deserialize_sql(json_serialize_sql('SELECT sum(a) OVER w, sum(a) OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) FROM t WINDOW w AS (PARTITION BY b)')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_execute_serialized_prepared.test b/parser/testdata/corpus/sql/json/test_execute_serialized_prepared.test new file mode 100644 index 00000000..9627a704 --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_execute_serialized_prepared.test @@ -0,0 +1,13 @@ +# source: test/sql/json/test_execute_serialized_prepared.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE p AS SELECT * FROM json_execute_serialized_sql(json_serialize_sql('SELECT 42')); +-- +ok +== +EXECUTE p; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_json_bool.test b/parser/testdata/corpus/sql/json/test_json_bool.test index aba82224..a0fb56f9 100644 --- a/parser/testdata/corpus/sql/json/test_json_bool.test +++ b/parser/testdata/corpus/sql/json/test_json_bool.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_extract('{"key": true}', '$.key')::BOOLEAN diff --git a/parser/testdata/corpus/sql/json/test_json_cast.test b/parser/testdata/corpus/sql/json/test_json_cast.test index 8c21c61b..358716b0 100644 --- a/parser/testdata/corpus/sql/json/test_json_cast.test +++ b/parser/testdata/corpus/sql/json/test_json_cast.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '1010'::BIT(4)::JSON::BIT(4) diff --git a/parser/testdata/corpus/sql/json/test_json_copy_dateformat_error.test b/parser/testdata/corpus/sql/json/test_json_copy_dateformat_error.test index 74cf3670..bf1953d5 100644 --- a/parser/testdata/corpus/sql/json/test_json_copy_dateformat_error.test +++ b/parser/testdata/corpus/sql/json/test_json_copy_dateformat_error.test @@ -1,12 +1,16 @@ # source: test/sql/json/test_json_copy_dateformat_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT '5877642-06-25 (BC)'::DATE d) TO '{TEMP_DIR}/json_dateformat_error.json' (DATEFORMAT '%G'); -- ok == +SELECT d FROM read_json('{TEMP_DIR}/json_dateformat_error.json', columns := {d: 'VARCHAR'}); +-- +ok +== COPY (SELECT DATE '2024-01-02' d) TO '{TEMP_DIR}/json_dateformat_ok.json' (DATEFORMAT '%G'); -- ok diff --git a/parser/testdata/corpus/sql/json/test_json_copy_serialize_plan.test b/parser/testdata/corpus/sql/json/test_json_copy_serialize_plan.test index 3bb8390d..70efbc84 100644 --- a/parser/testdata/corpus/sql/json/test_json_copy_serialize_plan.test +++ b/parser/testdata/corpus/sql/json/test_json_copy_serialize_plan.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_copy_serialize_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_extract_string( diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_depth.test b/parser/testdata/corpus/sql/json/test_json_deserialize_depth.test new file mode 100644 index 00000000..99cf7607 --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_depth.test @@ -0,0 +1,21 @@ +# source: test/sql/json/test_json_deserialize_depth.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{"map":[]},"select_list":[' || repeat('{"class":"OPERATOR","type":"OPERATOR_NOT","children":[', 100000) || '{"class":"CONSTANT","type":"VALUE_CONSTANT","literal":{"kind":"INTEGER","text":"1"}}' || repeat(']}', 100000) || '],"from_table":{"type":"EMPTY"},"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT * FROM json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{"map":[]},"select_list":[' || repeat('{"class":"OPERATOR","type":"OPERATOR_NOT","children":[', 100000) || '{"class":"CONSTANT","type":"VALUE_CONSTANT","literal":{"kind":"INTEGER","text":"1"}}' || repeat(']}', 100000) || '],"from_table":{"type":"EMPTY"},"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT json_deserialize_sql(json_serialize_sql('SELECT ' || repeat('abs(', 50) || '1' || repeat(')', 50))) = 'SELECT ' || repeat('abs(', 50) || '1' || repeat(')', 50); +-- +ok +== +SELECT json_deserialize_sql(json_serialize_sql('SELECT ' || repeat('abs(', 200) || '1' || repeat(')', 200))); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_grouping_sets.test b/parser/testdata/corpus/sql/json/test_json_deserialize_grouping_sets.test index ef88668a..c9c88e53 100644 --- a/parser/testdata/corpus/sql/json/test_json_deserialize_grouping_sets.test +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_deserialize_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]}],"group_sets":[[5]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}'); diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_statements.test b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_statements.test index a6da074a..b3ce9bdb 100644 --- a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_statements.test +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_statements.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_deserialize_invalid_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}'); diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_types.test b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_types.test index bcf6c970..83d050b3 100644 --- a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_types.test +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_types.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_deserialize_invalid_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql($json$ diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_values.test b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_values.test index af4e6c4e..cbb5be80 100644 --- a/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_values.test +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_invalid_values.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_deserialize_invalid_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":0,"query_location_length":0,"value":{"type":{"id":"ENUM","type_info":{"type":"ENUM_TYPE_INFO","alias":"","extension_info":null,"values_count":2,"values":["a","b"]}},"is_null":false,"value":200}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":0,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}') diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_missing_refs.test b/parser/testdata/corpus/sql/json/test_json_deserialize_missing_refs.test index a1e23d1f..ba6b0c91 100644 --- a/parser/testdata/corpus/sql/json/test_json_deserialize_missing_refs.test +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_missing_refs.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_deserialize_missing_refs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","literal":{"kind":"INTEGER","text":"1"}}],"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}'); diff --git a/parser/testdata/corpus/sql/json/test_json_deserialize_pointer.test b/parser/testdata/corpus/sql/json/test_json_deserialize_pointer.test new file mode 100644 index 00000000..0ca2be69 --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_json_deserialize_pointer.test @@ -0,0 +1,51 @@ +# source: test/sql/json/test_json_deserialize_pointer.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO pointer_sql(representation) AS + '{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT",' || + CASE representation + WHEN 'literal' THEN '"literal":{"kind":"POINTER","text":"0x2a"}' + ELSE '"value":{"type":{"id":"POINTER"},"is_null":false,"value":42}' + END || + '}],"aggregate_handling":"STANDARD_HANDLING"}}]}'; +-- +ok +== +SELECT json_deserialize_sql(pointer_sql('{representation}')); +-- +ok +== +SELECT * FROM json_execute_serialized_sql(pointer_sql('{representation}')); +-- +ok +== +PRAGMA json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","literal":{"kind":"POINTER","text":"0x2a"}}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +PRAGMA json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","value":{"type":{"id":"POINTER"},"is_null":false,"value":42}}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","literal":{"kind":"POINTER","text":"0x2a"}}]}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","child_type":{"id":"ANY"}}},"is_null":false,"value":{"children":[{"type":{"id":"POINTER"},"is_null":false,"value":42}]}}}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","value":{"type":{"id":"POINTER"},"is_null":true}}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT json_deserialize_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","cte_map":{},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","child_type":{"id":"POINTER"}}},"is_null":false,"value":{"children":[]}}}],"aggregate_handling":"STANDARD_HANDLING"}}]}'); +-- +ok +== +SELECT * FROM json_execute_serialized_sql(json_serialize_sql('SELECT 42, ''POINTER 0x2a''')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_json_empty_object.test b/parser/testdata/corpus/sql/json/test_json_empty_object.test index 8f027af7..6807179e 100644 --- a/parser/testdata/corpus/sql/json/test_json_empty_object.test +++ b/parser/testdata/corpus/sql/json/test_json_empty_object.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_empty_object.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select json_structure('{}') diff --git a/parser/testdata/corpus/sql/json/test_json_execute_serialized_types.test b/parser/testdata/corpus/sql/json/test_json_execute_serialized_types.test index 64f7d3fa..5c836aff 100644 --- a/parser/testdata/corpus/sql/json/test_json_execute_serialized_types.test +++ b/parser/testdata/corpus/sql/json/test_json_execute_serialized_types.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_execute_serialized_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM json_execute_serialized_sql('{"error": false, "statements": [{"node": {"type": "SELECT_NODE", "modifiers": [], "cte_map": {"map": []}, "select_list": [{"class": "STAR", "type": "STAR", "alias": "", "query_location": 7, "query_location_length": 1, "relation_name": "", "exclude_list": [], "replace_list": [], "columns": false, "expr": null, "qualified_exclude_list": [], "rename_list": []}], "from_table": {"type": "SUBQUERY", "alias": "t", "sample": null, "query_location": 14, "query_location_length": 12, "subquery": {"node": {"type": "SELECT_NODE", "modifiers": [], "cte_map": {"map": []}, "select_list": [{"class": "STAR", "type": "STAR", "alias": "", "query_location": 18446744073709551615, "query_location_length": 0, "relation_name": "", "exclude_list": [], "replace_list": [], "columns": false, "expr": null, "qualified_exclude_list": [], "rename_list": []}], "from_table": {"type": "EXPRESSION_LIST", "alias": "valueslist", "sample": null, "query_location": 18446744073709551615, "query_location_length": 0, "expected_names": [], "expected_types": [{"id": "STRUCT", "type_info": {"type": "DECIMAL_TYPE_INFO", "alias": "", "width": 5, "scale": 2}}], "values": [[{"class": "CONSTANT", "type": "VALUE_CONSTANT", "alias": "", "query_location": 23, "query_location_length": 1, "literal": {"kind": "INTEGER", "text": "1"}}]]}, "where_clause": null, "group_expressions": [], "group_sets": [], "aggregate_handling": "STANDARD_HANDLING", "having": null, "sample": null, "qualify": null}, "named_param_map": []}, "column_name_alias": ["a"]}, "where_clause": null, "group_expressions": [], "group_sets": [], "aggregate_handling": "STANDARD_HANDLING", "having": null, "sample": null, "qualify": null}, "named_param_map": []}]}'); diff --git a/parser/testdata/corpus/sql/json/test_json_export.test b/parser/testdata/corpus/sql/json/test_json_export.test index 7f43271c..8cf6c381 100644 --- a/parser/testdata/corpus/sql/json/test_json_export.test +++ b/parser/testdata/corpus/sql/json/test_json_export.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table text(i varchar); diff --git a/parser/testdata/corpus/sql/json/test_json_geometry_format.test b/parser/testdata/corpus/sql/json/test_json_geometry_format.test index 8f7bb882..726df368 100644 --- a/parser/testdata/corpus/sql/json/test_json_geometry_format.test +++ b/parser/testdata/corpus/sql/json/test_json_geometry_format.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_geometry_format.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('json_geometry_format'); diff --git a/parser/testdata/corpus/sql/json/test_json_group_window_macro.test b/parser/testdata/corpus/sql/json/test_json_group_window_macro.test index 487d13f9..c88e160a 100644 --- a/parser/testdata/corpus/sql/json/test_json_group_window_macro.test +++ b/parser/testdata/corpus/sql/json/test_json_group_window_macro.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_group_window_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(g INT, k VARCHAR, v INT); diff --git a/parser/testdata/corpus/sql/json/test_json_macros.test b/parser/testdata/corpus/sql/json/test_json_macros.test index 91b43c07..0095bb58 100644 --- a/parser/testdata/corpus/sql/json/test_json_macros.test +++ b/parser/testdata/corpus/sql/json/test_json_macros.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_macros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select range + 10 n, range v from range(10) diff --git a/parser/testdata/corpus/sql/json/test_json_path_long_index.test b/parser/testdata/corpus/sql/json/test_json_path_long_index.test index d88be71d..a39f6461 100644 --- a/parser/testdata/corpus/sql/json/test_json_path_long_index.test +++ b/parser/testdata/corpus/sql/json/test_json_path_long_index.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_path_long_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_extract('[1,2]', '$[1234567890123456789') diff --git a/parser/testdata/corpus/sql/json/test_json_persistence.test b/parser/testdata/corpus/sql/json/test_json_persistence.test index 3eba9f4e..6ea2072b 100644 --- a/parser/testdata/corpus/sql/json/test_json_persistence.test +++ b/parser/testdata/corpus/sql/json/test_json_persistence.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_persistence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test (j json) diff --git a/parser/testdata/corpus/sql/json/test_json_serialize_plan.test b/parser/testdata/corpus/sql/json/test_json_serialize_plan.test index b8d8cdc8..f61219c7 100644 --- a/parser/testdata/corpus/sql/json/test_json_serialize_plan.test +++ b/parser/testdata/corpus/sql/json/test_json_serialize_plan.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_serialize_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT json_copy_to_json({'d': DATE '2026-01-02'}, '%d/%m/%Y', NULL); @@ -27,6 +27,25 @@ SELECT json_serialize_plan('SELECT *, 1 + 2 FROM tbl1', skip_null := true, skip_ -- ok == +SET debug_verify_column_bindings = false; +-- +ok +== +CREATE TABLE top_n AS SELECT range AS a, range AS b FROM range(10); +-- +ok +== +SELECT plan->>'error', json_array_length(plan->'plans') +FROM ( + SELECT json_serialize_plan('SELECT * FROM top_n ORDER BY a LIMIT 1', optimize := true) AS plan +); +-- +ok +== +RESET debug_verify_column_bindings; +-- +ok +== SELECT plan::VARCHAR LIKE '%LOGICAL_CHUNK_GET%', plan::VARCHAR NOT LIKE '%"column_ids"%' FROM ( SELECT json_serialize_plan( @@ -76,3 +95,11 @@ select json_serialize_plan('select blob ''\\x00'''); -- ok == +SELECT json_serialize_plan('select $1') LIKE '%"error_type":"invalid input"%'; +-- +ok +== +SELECT json_serialize_plan('select ?') LIKE '%"error_type":"invalid input"%'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_json_serialize_sql.test b/parser/testdata/corpus/sql/json/test_json_serialize_sql.test index 79c0962c..423775ab 100644 --- a/parser/testdata/corpus/sql/json/test_json_serialize_sql.test +++ b/parser/testdata/corpus/sql/json/test_json_serialize_sql.test @@ -1,8 +1,13 @@ # source: test/sql/json/test_json_serialize_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit +SELECT (json_serialize_sql('SELECT' || chr(160) || ')')->>'position')::INTEGER, + (json_serialize_sql('SELECT' || chr(8195) || ')')->>'position')::INTEGER +-- +ok +== SET storage_compatibility_version='v1.0.0' -- ok diff --git a/parser/testdata/corpus/sql/json/test_json_sqlite.test b/parser/testdata/corpus/sql/json/test_json_sqlite.test index 4bb1504d..f584ed0f 100644 --- a/parser/testdata/corpus/sql/json/test_json_sqlite.test +++ b/parser/testdata/corpus/sql/json/test_json_sqlite.test @@ -1,6 +1,6 @@ # source: test/sql/json/test_json_sqlite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO j1(x) diff --git a/parser/testdata/corpus/sql/json/test_serialized_decimal_no_type_info.test b/parser/testdata/corpus/sql/json/test_serialized_decimal_no_type_info.test new file mode 100644 index 00000000..a9c378fa --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_serialized_decimal_no_type_info.test @@ -0,0 +1,9 @@ +# source: test/sql/json/test_serialized_decimal_no_type_info.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DECIMAL","type_info":null},"is_null":false,"value":10},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_serialized_sample_options.test b/parser/testdata/corpus/sql/json/test_serialized_sample_options.test new file mode 100644 index 00000000..9fcaeef9 --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_serialized_sample_options.test @@ -0,0 +1,25 @@ +# source: test/sql/json/test_serialized_sample_options.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":1e500},"is_percentage":true,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":NaN},"is_percentage":true,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":1e20},"is_percentage":true,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-5},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":10},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/json/test_serialized_value_out_of_range.test b/parser/testdata/corpus/sql/json/test_serialized_value_out_of_range.test new file mode 100644 index 00000000..06b28d1b --- /dev/null +++ b/parser/testdata/corpus/sql/json/test_serialized_value_out_of_range.test @@ -0,0 +1,17 @@ +# source: test/sql/json/test_serialized_value_out_of_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL json_execute_serialized_sql('{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9223372036854775807},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}'); +-- +ok +== +SET storage_compatibility_version='v1.0.0'; +-- +ok +== +SELECT json_deserialize_sql(replace(replace(json_serialize_sql('SELECT 1'), '"id":"INTEGER"', '"id":"SMALLINT"'), '"value":1}', '"value":2147483647}')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/keywords/escaped_quotes_expressions.test b/parser/testdata/corpus/sql/keywords/escaped_quotes_expressions.test index f85483f5..c10d372d 100644 --- a/parser/testdata/corpus/sql/keywords/escaped_quotes_expressions.test +++ b/parser/testdata/corpus/sql/keywords/escaped_quotes_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/keywords/escaped_quotes_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "SCH""EMA"; diff --git a/parser/testdata/corpus/sql/keywords/keywords_in_expressions.test b/parser/testdata/corpus/sql/keywords/keywords_in_expressions.test index 57bb5015..0ce2ff83 100644 --- a/parser/testdata/corpus/sql/keywords/keywords_in_expressions.test +++ b/parser/testdata/corpus/sql/keywords/keywords_in_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/keywords/keywords_in_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE "ENUM" AS ENUM('ALL'); diff --git a/parser/testdata/corpus/sql/limit/limit_exceeds_child_cardinality.test b/parser/testdata/corpus/sql/limit/limit_exceeds_child_cardinality.test index b1283cbd..6e59291b 100644 --- a/parser/testdata/corpus/sql/limit/limit_exceeds_child_cardinality.test +++ b/parser/testdata/corpus/sql/limit/limit_exceeds_child_cardinality.test @@ -1,6 +1,6 @@ # source: test/sql/limit/limit_exceeds_child_cardinality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM range(10) t(i) ORDER BY i LIMIT 2147483647 diff --git a/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush.test b/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush.test index 5fcf3ebd..2a8917bf 100644 --- a/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush.test +++ b/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush.test @@ -1,6 +1,6 @@ # source: test/sql/limit/streaming_limit_pipeline_flush.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT o.o_orderkey diff --git a/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush2.test b/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush2.test index 4920ed57..4df65a33 100644 --- a/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush2.test +++ b/parser/testdata/corpus/sql/limit/streaming_limit_pipeline_flush2.test @@ -1,6 +1,6 @@ # source: test/sql/limit/streaming_limit_pipeline_flush2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*), sum(x) diff --git a/parser/testdata/corpus/sql/limit/test_batch_limit_filters.test b/parser/testdata/corpus/sql/limit/test_batch_limit_filters.test index 64546384..5a25fed8 100644 --- a/parser/testdata/corpus/sql/limit/test_batch_limit_filters.test +++ b/parser/testdata/corpus/sql/limit/test_batch_limit_filters.test @@ -1,6 +1,6 @@ # source: test/sql/limit/test_batch_limit_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT concat('thisisastring', i) s FROM range(1_000_000) t(i) diff --git a/parser/testdata/corpus/sql/limit/test_limit0.test b/parser/testdata/corpus/sql/limit/test_limit0.test index d014f866..e057be5f 100644 --- a/parser/testdata/corpus/sql/limit/test_limit0.test +++ b/parser/testdata/corpus/sql/limit/test_limit0.test @@ -1,6 +1,6 @@ # source: test/sql/limit/test_limit0.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (SELECT SUM(i) FROM range(100000000000) tbl(i)) LIMIT 0; diff --git a/parser/testdata/corpus/sql/limit/test_preserve_insertion_order.test b/parser/testdata/corpus/sql/limit/test_preserve_insertion_order.test index aaac4efc..7d2b9dcf 100644 --- a/parser/testdata/corpus/sql/limit/test_preserve_insertion_order.test +++ b/parser/testdata/corpus/sql/limit/test_preserve_insertion_order.test @@ -1,6 +1,6 @@ # source: test/sql/limit/test_preserve_insertion_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT 1 AS i FROM range(1000000) t(i) diff --git a/parser/testdata/corpus/sql/logging/enable_logging_file_keeps_path.test b/parser/testdata/corpus/sql/logging/enable_logging_file_keeps_path.test new file mode 100644 index 00000000..4e4664d8 --- /dev/null +++ b/parser/testdata/corpus/sql/logging/enable_logging_file_keeps_path.test @@ -0,0 +1,45 @@ +# source: test/sql/logging/enable_logging_file_keeps_path.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL enable_logging(storage = 'file', storage_config = {'path': '{TEMP_DIR}/keeps_path_switch'}); +-- +ok +== +SELECT 1; +-- +ok +== +CALL enable_logging(storage = 'memory', storage_config = {'delim': '|'}); +-- +ok +== +SELECT 2; +-- +ok +== +SELECT current_setting('logging_storage'); +-- +ok +== +CALL enable_logging(storage = 'file', storage_config = {'path': '{TEMP_DIR}/keeps_path_prepared'}); +-- +ok +== +PREPARE p AS SELECT * FROM enable_logging(storage = 'file'); +-- +ok +== +CALL enable_logging(storage = 'memory'); +-- +ok +== +CALL enable_logging(storage = 'FILE', storage_path = '{TEMP_DIR}/keeps_path_uppercase.csv'); +-- +ok +== +CALL enable_logging(); +-- +ok +== diff --git a/parser/testdata/corpus/sql/logging/enable_logging_file_no_path.test b/parser/testdata/corpus/sql/logging/enable_logging_file_no_path.test index 2764e830..1188d6d4 100644 --- a/parser/testdata/corpus/sql/logging/enable_logging_file_no_path.test +++ b/parser/testdata/corpus/sql/logging/enable_logging_file_no_path.test @@ -1,13 +1,13 @@ # source: test/sql/logging/enable_logging_file_no_path.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(storage='memory') -- ok == -SELECT value FROM duckdb_settings() WHERE name = 'logging_storage'; +SELECT value FROM duckdb_settings() WHERE name = 'logging_sink'; -- ok == @@ -35,11 +35,11 @@ CALL enable_logging(storage_config:={path:''}); -- ok == -SET logging_storage='file'; +SET logging_sink='file'; -- ok == -SET logging_storage='FILE'; +SET logging_sink='FILE'; -- ok == diff --git a/parser/testdata/corpus/sql/logging/file_system_logging_attach.test b/parser/testdata/corpus/sql/logging/file_system_logging_attach.test index 7668ab7a..3878972b 100644 --- a/parser/testdata/corpus/sql/logging/file_system_logging_attach.test +++ b/parser/testdata/corpus/sql/logging/file_system_logging_attach.test @@ -1,6 +1,6 @@ # source: test/sql/logging/file_system_logging_attach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET enable_logging=true; diff --git a/parser/testdata/corpus/sql/logging/file_system_logging_attach_deadlock.test b/parser/testdata/corpus/sql/logging/file_system_logging_attach_deadlock.test index ea0f1902..53733ccb 100644 --- a/parser/testdata/corpus/sql/logging/file_system_logging_attach_deadlock.test +++ b/parser/testdata/corpus/sql/logging/file_system_logging_attach_deadlock.test @@ -1,6 +1,6 @@ # source: test/sql/logging/file_system_logging_attach_deadlock.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit='1000kb'; diff --git a/parser/testdata/corpus/sql/logging/http_log_timing.test b/parser/testdata/corpus/sql/logging/http_log_timing.test index ef75e489..53d55856 100644 --- a/parser/testdata/corpus/sql/logging/http_log_timing.test +++ b/parser/testdata/corpus/sql/logging/http_log_timing.test @@ -1,6 +1,6 @@ # source: test/sql/logging/http_log_timing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET http_retries=2 @@ -15,6 +15,7 @@ SELECT request.type, request.duration_ms >= 0, request.duration_ms <= 1000 * 1000, + request.duration_us // 1000 = request.duration_ms, request.request_body_length FROM duckdb_logs_parsed('HTTP') diff --git a/parser/testdata/corpus/sql/logging/http_request_log_redaction.test b/parser/testdata/corpus/sql/logging/http_request_log_redaction.test index 768b17fd..d2a3792f 100644 --- a/parser/testdata/corpus/sql/logging/http_request_log_redaction.test +++ b/parser/testdata/corpus/sql/logging/http_request_log_redaction.test @@ -1,16 +1,12 @@ # source: test/sql/logging/http_request_log_redaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('HTTP', storage = 'memory'); -- ok == -SET enable_external_file_cache = false; --- -ok -== SET enable_http_metadata_cache = false; -- ok @@ -23,6 +19,7 @@ CREATE SECRET http_log_headers ( 'Cookie': 'dummy-cookie', 'x-amz-security-token': 'dummy-token', 'X-Custom': 'dummy-custom', + 'X-Amz-Target': 'AWSGlue.GetTable', 'ETag': 'dummy-etag', 'AcCePt': 'text/csv', 'AcCePt-EnCoDiNg': 'identity' @@ -37,7 +34,7 @@ ok == SELECT DISTINCT entry.key, entry.value FROM duckdb_logs_parsed('HTTP'), UNNEST(map_entries(request.headers)) AS headers(entry) -WHERE lower(entry.key) IN ('authorization', 'cookie', 'x-amz-security-token', 'x-custom', 'etag', 'accept', 'accept-encoding'); +WHERE lower(entry.key) IN ('authorization', 'cookie', 'x-amz-security-token', 'x-amz-target', 'x-custom', 'etag', 'accept', 'accept-encoding'); -- ok == diff --git a/parser/testdata/corpus/sql/logging/http_response_log_redaction.test b/parser/testdata/corpus/sql/logging/http_response_log_redaction.test index a7ea78cf..dce0cc11 100644 --- a/parser/testdata/corpus/sql/logging/http_response_log_redaction.test +++ b/parser/testdata/corpus/sql/logging/http_response_log_redaction.test @@ -1,20 +1,12 @@ # source: test/sql/logging/http_response_log_redaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_directory = '{TEST_DIR}/http_response_log_redaction'; -- ok == -SET autoload_known_extensions = false; --- -ok -== -SET autoinstall_known_extensions = false; --- -ok -== INSTALL 'http://github.com/duckdb/duckdb'; -- ok diff --git a/parser/testdata/corpus/sql/logging/http_url_log_redaction.test b/parser/testdata/corpus/sql/logging/http_url_log_redaction.test index 13beb494..30c7b368 100644 --- a/parser/testdata/corpus/sql/logging/http_url_log_redaction.test +++ b/parser/testdata/corpus/sql/logging/http_url_log_redaction.test @@ -1,6 +1,6 @@ # source: test/sql/logging/http_url_log_redaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_directory = '{TEST_DIR}/http_url_log_redaction'; diff --git a/parser/testdata/corpus/sql/logging/logging.test b/parser/testdata/corpus/sql/logging/logging.test index 1d8ac41b..e3096bfb 100644 --- a/parser/testdata/corpus/sql/logging/logging.test +++ b/parser/testdata/corpus/sql/logging/logging.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM duckdb_logs @@ -19,10 +19,6 @@ set enable_logging=true; -- ok == -SELECT 1; --- -ok -== SELECT * EXCLUDE (context_id, timestamp, connection_id, transaction_id, query_id) FROM duckdb_logs -- ok @@ -35,15 +31,15 @@ SELECT * EXCLUDE (context_id, timestamp, connection_id, transaction_id, query_id -- ok == -set logging_storage='stdout'; +set logging_sink='stdout'; -- ok == -set logging_storage='memory'; +set logging_sink='memory'; -- ok == -set logging_storage='quack'; +set logging_sink='quack'; -- ok == diff --git a/parser/testdata/corpus/sql/logging/logging_branch_coverage.test b/parser/testdata/corpus/sql/logging/logging_branch_coverage.test index d370ed13..bfa19fe2 100644 --- a/parser/testdata/corpus/sql/logging/logging_branch_coverage.test +++ b/parser/testdata/corpus/sql/logging/logging_branch_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_branch_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(level = 'trace', storage = 'memory') diff --git a/parser/testdata/corpus/sql/logging/logging_buffer_size.test b/parser/testdata/corpus/sql/logging/logging_buffer_size.test index 55486c61..b13cecfa 100644 --- a/parser/testdata/corpus/sql/logging/logging_buffer_size.test +++ b/parser/testdata/corpus/sql/logging/logging_buffer_size.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_buffer_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('QueryLog', storage_config={'buffer_size': 10, 'only_flush_on_full_buffer': true}); diff --git a/parser/testdata/corpus/sql/logging/logging_call_functions.test b/parser/testdata/corpus/sql/logging/logging_call_functions.test index 5c364ba7..9a14f86d 100644 --- a/parser/testdata/corpus/sql/logging/logging_call_functions.test +++ b/parser/testdata/corpus/sql/logging/logging_call_functions.test @@ -1,13 +1,9 @@ # source: test/sql/logging/logging_call_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE VIEW log_settings AS select name, value from duckdb_settings() where name in ['logging_level', 'logging_mode', 'logging_storage', 'enable_logging', 'enabled_log_types', 'disabled_log_types'] ORDER BY name --- -ok -== -CALL enable_logging(); +CREATE VIEW log_settings AS select name, value from duckdb_settings() where name in ['logging_level', 'logging_mode', 'logging_sink', 'enable_logging', 'enabled_log_types', 'disabled_log_types'] ORDER BY name -- ok == @@ -19,10 +15,6 @@ CALL enable_logging(level='DEBUG'); -- ok == -CALL enable_logging('QueryLog'); --- -ok -== CALL enable_logging(['QueryLog', 'filesystem']); -- ok @@ -59,7 +51,7 @@ CALL enable_logging(storage_config='hi') -- ok == -RESET logging_storage +RESET logging_sink -- ok == diff --git a/parser/testdata/corpus/sql/logging/logging_context_ids.test b/parser/testdata/corpus/sql/logging/logging_context_ids.test index d7255da8..e1e2e3dc 100644 --- a/parser/testdata/corpus/sql/logging/logging_context_ids.test +++ b/parser/testdata/corpus/sql/logging/logging_context_ids.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_context_ids.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(); diff --git a/parser/testdata/corpus/sql/logging/logging_csv.test b/parser/testdata/corpus/sql/logging/logging_csv.test index 5249b921..2155ad30 100644 --- a/parser/testdata/corpus/sql/logging/logging_csv.test +++ b/parser/testdata/corpus/sql/logging/logging_csv.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(['FileSystem'], storage='file', storage_config={'path': '{TEMP_DIR}/logging_csv_log.csv', 'normalize': false}); diff --git a/parser/testdata/corpus/sql/logging/logging_deprecated_names.test b/parser/testdata/corpus/sql/logging/logging_deprecated_names.test new file mode 100644 index 00000000..367990b1 --- /dev/null +++ b/parser/testdata/corpus/sql/logging/logging_deprecated_names.test @@ -0,0 +1,57 @@ +# source: test/sql/logging/logging_deprecated_names.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET GLOBAL logging_level = 'INFO'; +-- +ok +== +SET GLOBAL enable_logging = true; +-- +ok +== +SELECT count(*) FROM duckdb_settings() WHERE name = 'logging_sink'; +-- +ok +== +SELECT count(*) FROM duckdb_settings() WHERE name = 'logging_storage'; +-- +ok +== +SELECT current_setting('logging_storage') = current_setting('logging_sink'); +-- +ok +== +SET logging_storage = 'memory'; +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE starts_with(message, 'the logging_storage setting is deprecated'); +-- +ok +== +SET logging_storage = 'stdout'; +-- +ok +== +SELECT current_setting('logging_sink'); +-- +ok +== +SET logging_sink = 'memory'; +-- +ok +== +RESET logging_storage; +-- +ok +== +SET logging_storage = 'quack'; +-- +ok +== +SET logging_storage = 'file'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/logging/logging_file_bind_replace.test b/parser/testdata/corpus/sql/logging/logging_file_bind_replace.test index 4adc6313..93b49da3 100644 --- a/parser/testdata/corpus/sql/logging/logging_file_bind_replace.test +++ b/parser/testdata/corpus/sql/logging/logging_file_bind_replace.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_file_bind_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(['QueryLog'], storage_path='{TEST_DIR}/logging_file_bind_replace_log.csv'); diff --git a/parser/testdata/corpus/sql/logging/logging_file_persistence.test b/parser/testdata/corpus/sql/logging/logging_file_persistence.test index 36025984..3521e106 100644 --- a/parser/testdata/corpus/sql/logging/logging_file_persistence.test +++ b/parser/testdata/corpus/sql/logging/logging_file_persistence.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_file_persistence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('FileSystem', storage='file', storage_config={'path': '{TEMP_DIR}/logging_file_persistence.csv'}); diff --git a/parser/testdata/corpus/sql/logging/logging_file_truncate_rewrite.test b/parser/testdata/corpus/sql/logging/logging_file_truncate_rewrite.test index f104e6ba..a2633cd7 100644 --- a/parser/testdata/corpus/sql/logging/logging_file_truncate_rewrite.test +++ b/parser/testdata/corpus/sql/logging/logging_file_truncate_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/logging/logging_file_truncate_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(['FileSystem'], storage='file', storage_config={'path': '{TEMP_DIR}/logging_truncate_rewrite.csv', 'normalize': false}); diff --git a/parser/testdata/corpus/sql/logging/logging_memory_after_truncate.test b/parser/testdata/corpus/sql/logging/logging_memory_after_truncate.test index 39098add..bbc7b6c1 100644 --- a/parser/testdata/corpus/sql/logging/logging_memory_after_truncate.test +++ b/parser/testdata/corpus/sql/logging/logging_memory_after_truncate.test @@ -1,17 +1,9 @@ # source: test/sql/logging/logging_memory_after_truncate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET GLOBAL logging_level = 'INFO'; --- -ok -== -SET GLOBAL logging_storage = 'memory'; --- -ok -== -SET GLOBAL enable_logging = true; +SET GLOBAL logging_sink = 'memory'; -- ok == diff --git a/parser/testdata/corpus/sql/logging/logging_non_queryable_storage.test b/parser/testdata/corpus/sql/logging/logging_non_queryable_storage.test index 335761f4..205f6e42 100644 --- a/parser/testdata/corpus/sql/logging/logging_non_queryable_storage.test +++ b/parser/testdata/corpus/sql/logging/logging_non_queryable_storage.test @@ -1,9 +1,9 @@ # source: test/sql/logging/logging_non_queryable_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET logging_storage = 'stdout'; +SET logging_sink = 'stdout'; -- ok == @@ -19,10 +19,6 @@ SELECT * FROM duckdb_logs(denormalized_table = true); -- ok == -SET logging_storage = 'memory'; --- -ok -== SELECT count(*) FROM duckdb_logs(); -- ok diff --git a/parser/testdata/corpus/sql/logging/logging_scan_progress.test b/parser/testdata/corpus/sql/logging/logging_scan_progress.test new file mode 100644 index 00000000..233eac56 --- /dev/null +++ b/parser/testdata/corpus/sql/logging/logging_scan_progress.test @@ -0,0 +1,21 @@ +# source: test/sql/logging/logging_scan_progress.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT write_log('progress test entry') FROM range(10000) +-- +ok +== +SET debug_verify_progress='error' +-- +ok +== +SET debug_verify_progress_ignore='UNSUPPORTED_SOURCE:DUCKDB_LOG_CONTEXTS' +-- +ok +== +SELECT count(*) FROM duckdb_logs WHERE message = 'progress test entry' +-- +ok +== diff --git a/parser/testdata/corpus/sql/logging/logging_types.test b/parser/testdata/corpus/sql/logging/logging_types.test index 2ee3f931..95168af0 100644 --- a/parser/testdata/corpus/sql/logging/logging_types.test +++ b/parser/testdata/corpus/sql/logging/logging_types.test @@ -1,12 +1,8 @@ # source: test/sql/logging/logging_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CALL enable_logging('FileSystem'); --- -ok -== copy (select 1 as a) to '{TEST_DIR}/par.csv' -- ok diff --git a/parser/testdata/corpus/sql/logging/test_enable_logging_unknown_type_file_storage.test b/parser/testdata/corpus/sql/logging/test_enable_logging_unknown_type_file_storage.test index dfec43e4..d011cfab 100644 --- a/parser/testdata/corpus/sql/logging/test_enable_logging_unknown_type_file_storage.test +++ b/parser/testdata/corpus/sql/logging/test_enable_logging_unknown_type_file_storage.test @@ -1,6 +1,6 @@ # source: test/sql/logging/test_enable_logging_unknown_type_file_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(level := 'warning', storage := 'memory'); @@ -15,7 +15,3 @@ SELECT * FROM enable_logging('a', storage_path := '{TEST_DIR}/enable_logging_unk -- ok == -SELECT current_setting('logging_storage'); --- -ok -== diff --git a/parser/testdata/corpus/sql/logging/test_logging_function.test b/parser/testdata/corpus/sql/logging/test_logging_function.test index 76ad2cbc..26bad5f5 100644 --- a/parser/testdata/corpus/sql/logging/test_logging_function.test +++ b/parser/testdata/corpus/sql/logging/test_logging_function.test @@ -1,6 +1,6 @@ # source: test/sql/logging/test_logging_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit from duckdb_logs diff --git a/parser/testdata/corpus/sql/merge/merge_into.test b/parser/testdata/corpus/sql/merge/merge_into.test index 9ac31e70..e044ba07 100644 --- a/parser/testdata/corpus/sql/merge/merge_into.test +++ b/parser/testdata/corpus/sql/merge/merge_into.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Stock(item_id int, balance int); diff --git a/parser/testdata/corpus/sql/merge/merge_into_bind_matching_columns.test b/parser/testdata/corpus/sql/merge/merge_into_bind_matching_columns.test index 7cfaf54f..433d5113 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_bind_matching_columns.test +++ b/parser/testdata/corpus/sql/merge/merge_into_bind_matching_columns.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_bind_matching_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dest (id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/merge/merge_into_by_source.test b/parser/testdata/corpus/sql/merge/merge_into_by_source.test index 9746e31a..64a451ce 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_by_source.test +++ b/parser/testdata/corpus/sql/merge/merge_into_by_source.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_by_source.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO Stock VALUES (5, 10), (10, 20), (20, 30); diff --git a/parser/testdata/corpus/sql/merge/merge_into_constraint.test b/parser/testdata/corpus/sql/merge/merge_into_constraint.test index 406b7eb1..ff0842cc 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_constraint.test +++ b/parser/testdata/corpus/sql/merge/merge_into_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Stock(item_id int NOT NULL, balance int, CHECK (balance>0)); diff --git a/parser/testdata/corpus/sql/merge/merge_into_default.test b/parser/testdata/corpus/sql/merge/merge_into_default.test index e973c207..ffd0ff53 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_default.test +++ b/parser/testdata/corpus/sql/merge/merge_into_default.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Stock(item_id int, balance int DEFAULT 0); diff --git a/parser/testdata/corpus/sql/merge/merge_into_error.test b/parser/testdata/corpus/sql/merge/merge_into_error.test index 9bb38350..ec18a35e 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_error.test +++ b/parser/testdata/corpus/sql/merge/merge_into_error.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Buys(item_id int, volume int); diff --git a/parser/testdata/corpus/sql/merge/merge_into_explain_analyze.test b/parser/testdata/corpus/sql/merge/merge_into_explain_analyze.test index 869a8a02..6f367a2e 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_explain_analyze.test +++ b/parser/testdata/corpus/sql/merge/merge_into_explain_analyze.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_explain_analyze.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE target(i INTEGER); diff --git a/parser/testdata/corpus/sql/merge/merge_into_index.test b/parser/testdata/corpus/sql/merge/merge_into_index.test index 0cac9440..04b864ad 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_index.test +++ b/parser/testdata/corpus/sql/merge/merge_into_index.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Accounts(id INTEGER, username VARCHAR PRIMARY KEY, favorite_numbers INT[]); diff --git a/parser/testdata/corpus/sql/merge/merge_into_insert_star.test b/parser/testdata/corpus/sql/merge/merge_into_insert_star.test index e6c2c4b3..543d9f2c 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_insert_star.test +++ b/parser/testdata/corpus/sql/merge/merge_into_insert_star.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_insert_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit MERGE INTO Stock USING (VALUES (5, 10)) new_accounts(item_id, balance) USING (item_id) diff --git a/parser/testdata/corpus/sql/merge/merge_into_invalid_action.test b/parser/testdata/corpus/sql/merge/merge_into_invalid_action.test index b63040b1..4c010394 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_invalid_action.test +++ b/parser/testdata/corpus/sql/merge/merge_into_invalid_action.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_invalid_action.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range a FROM generate_series(0,9) t(range); diff --git a/parser/testdata/corpus/sql/merge/merge_into_invalid_column.test b/parser/testdata/corpus/sql/merge/merge_into_invalid_column.test index 5cda3576..4c62d05c 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_invalid_column.test +++ b/parser/testdata/corpus/sql/merge/merge_into_invalid_column.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_invalid_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 (v1 INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/merge/merge_into_invalid_column_reference.test b/parser/testdata/corpus/sql/merge/merge_into_invalid_column_reference.test index 132a99e5..8dd7cc35 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_invalid_column_reference.test +++ b/parser/testdata/corpus/sql/merge/merge_into_invalid_column_reference.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_invalid_column_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE target(id INT PRIMARY KEY, val INT); diff --git a/parser/testdata/corpus/sql/merge/merge_into_join_as_filter.test b/parser/testdata/corpus/sql/merge/merge_into_join_as_filter.test index 454a1bec..f4ffa5e2 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_join_as_filter.test +++ b/parser/testdata/corpus/sql/merge/merge_into_join_as_filter.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_join_as_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table foo (bar integer); diff --git a/parser/testdata/corpus/sql/merge/merge_into_multiple_updates.test b/parser/testdata/corpus/sql/merge/merge_into_multiple_updates.test index 54e0a3d9..9c4dfa67 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_multiple_updates.test +++ b/parser/testdata/corpus/sql/merge/merge_into_multiple_updates.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_multiple_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Entry(type varchar, number int, text varchar, country VARCHAR, date DATE); diff --git a/parser/testdata/corpus/sql/merge/merge_into_parenthesis_bug.test b/parser/testdata/corpus/sql/merge/merge_into_parenthesis_bug.test index 6b2855c0..ab51355a 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_parenthesis_bug.test +++ b/parser/testdata/corpus/sql/merge/merge_into_parenthesis_bug.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_parenthesis_bug.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE my_timeseries (ts TIMESTAMP, x DOUBLE PRECISION, y DOUBLE PRECISION); diff --git a/parser/testdata/corpus/sql/merge/merge_into_pipelines.test b/parser/testdata/corpus/sql/merge/merge_into_pipelines.test index 903234b1..0dc280e6 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_pipelines.test +++ b/parser/testdata/corpus/sql/merge/merge_into_pipelines.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_pipelines.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE stock(item_id INTEGER, balance INTEGER); diff --git a/parser/testdata/corpus/sql/merge/merge_into_returning.test b/parser/testdata/corpus/sql/merge/merge_into_returning.test index 4627448d..21c51efa 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_returning.test +++ b/parser/testdata/corpus/sql/merge/merge_into_returning.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH initial_stocks(item_id, balance) AS (VALUES (10, 2200), (20, 1900)) diff --git a/parser/testdata/corpus/sql/merge/merge_into_returning_explain_no_optimizer.test b/parser/testdata/corpus/sql/merge/merge_into_returning_explain_no_optimizer.test index 1a9d3f3c..0fd79dda 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_returning_explain_no_optimizer.test +++ b/parser/testdata/corpus/sql/merge/merge_into_returning_explain_no_optimizer.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_returning_explain_no_optimizer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE u(i INTEGER); diff --git a/parser/testdata/corpus/sql/merge/merge_into_subquery.test b/parser/testdata/corpus/sql/merge/merge_into_subquery.test index 05fa0d30..925a6a08 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_subquery.test +++ b/parser/testdata/corpus/sql/merge/merge_into_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Totals(item_id int, balance int); diff --git a/parser/testdata/corpus/sql/merge/merge_into_subquery_action.test b/parser/testdata/corpus/sql/merge/merge_into_subquery_action.test index 9d3fd2c7..a34756b6 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_subquery_action.test +++ b/parser/testdata/corpus/sql/merge/merge_into_subquery_action.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_subquery_action.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Totals(item_id int, balance int, biggest_item BOOL); diff --git a/parser/testdata/corpus/sql/merge/merge_into_subquery_condition.test b/parser/testdata/corpus/sql/merge/merge_into_subquery_condition.test index c0a0d261..f6a2e68e 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_subquery_condition.test +++ b/parser/testdata/corpus/sql/merge/merge_into_subquery_condition.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_subquery_condition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO target VALUES (1, 10), (2, 20); diff --git a/parser/testdata/corpus/sql/merge/merge_into_subquery_condition_delete.test b/parser/testdata/corpus/sql/merge/merge_into_subquery_condition_delete.test index e8c6e5e4..8a720a71 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_subquery_condition_delete.test +++ b/parser/testdata/corpus/sql/merge/merge_into_subquery_condition_delete.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_subquery_condition_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2(k INTEGER, w INTEGER, v VARCHAR); diff --git a/parser/testdata/corpus/sql/merge/merge_into_too_few_columns.test b/parser/testdata/corpus/sql/merge/merge_into_too_few_columns.test index fe1c0de2..37e2a6d4 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_too_few_columns.test +++ b/parser/testdata/corpus/sql/merge/merge_into_too_few_columns.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_too_few_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE people (id INTEGER, name VARCHAR, salary FLOAT); diff --git a/parser/testdata/corpus/sql/merge/merge_into_update_star.test b/parser/testdata/corpus/sql/merge/merge_into_update_star.test index 86f4f9e2..d14ee52f 100644 --- a/parser/testdata/corpus/sql/merge/merge_into_update_star.test +++ b/parser/testdata/corpus/sql/merge/merge_into_update_star.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_into_update_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO Stock (item_id) VALUES (5), (10), (20); diff --git a/parser/testdata/corpus/sql/merge/merge_multi_match_error.test b/parser/testdata/corpus/sql/merge/merge_multi_match_error.test deleted file mode 100644 index da12b897..00000000 --- a/parser/testdata/corpus/sql/merge/merge_multi_match_error.test +++ /dev/null @@ -1,139 +0,0 @@ -# source: test/sql/merge/merge_multi_match_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 -# generated by cmd/regenerate - do not edit - -CREATE TABLE target (k INTEGER, v INTEGER); --- -ok -== -CREATE TABLE source (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO source VALUES (1, 100), (1, 200); --- -ok -== -MERGE INTO target USING source ON target.k = source.k -WHEN MATCHED THEN UPDATE SET v = source.v; --- -ok -== -MERGE INTO target USING source ON target.k = source.k -WHEN MATCHED THEN DELETE; --- -ok -== -SELECT k, v FROM target; --- -ok -== -DELETE FROM source WHERE v = 200; --- -ok -== -CREATE TABLE tc (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO tc VALUES (1, 10); --- -ok -== -CREATE TABLE sc (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO sc VALUES (1, 50), (1, 200); --- -ok -== -MERGE INTO tc USING sc ON tc.k = sc.k -WHEN MATCHED AND sc.v > 100 THEN UPDATE SET v = sc.v; --- -ok -== -SELECT k, v FROM tc; --- -ok -== -UPDATE sc SET v = 150 WHERE v = 50; --- -ok -== -CREATE TABLE t_ins (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO t_ins VALUES (1, 10); --- -ok -== -CREATE TABLE s_ins (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO s_ins VALUES (2, 1), (2, 2); --- -ok -== -MERGE INTO t_ins USING s_ins ON t_ins.k = s_ins.k -WHEN NOT MATCHED THEN INSERT VALUES (s_ins.k, s_ins.v); --- -ok -== -SELECT count(*) FROM t_ins; --- -ok -== -CREATE TABLE t_src (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO t_src VALUES (1, 10), (2, 20); --- -ok -== -CREATE TABLE s_src (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO s_src VALUES (9, 1), (9, 2); --- -ok -== -MERGE INTO t_src USING s_src ON t_src.k = s_src.k -WHEN NOT MATCHED BY SOURCE THEN UPDATE SET v = 0; --- -ok -== -SELECT k, v FROM t_src; --- -ok -== -CREATE TABLE t_big (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO t_big SELECT i, 0 FROM range(1, 3000) tbl(i); --- -ok -== -CREATE TABLE s_big (k INTEGER, v INTEGER); --- -ok -== -INSERT INTO s_big SELECT i, i FROM range(1, 3000) tbl(i); --- -ok -== -MERGE INTO t_big USING s_big ON t_big.k = s_big.k -WHEN MATCHED THEN UPDATE SET v = s_big.v; --- -ok -== -SELECT count(*) FROM t_big WHERE v = k; --- -ok -== diff --git a/parser/testdata/corpus/sql/merge/merge_not_matched_by_source_join_order.test b/parser/testdata/corpus/sql/merge/merge_not_matched_by_source_join_order.test index 82105bd5..fa2def5a 100644 --- a/parser/testdata/corpus/sql/merge/merge_not_matched_by_source_join_order.test +++ b/parser/testdata/corpus/sql/merge/merge_not_matched_by_source_join_order.test @@ -1,6 +1,6 @@ # source: test/sql/merge/merge_not_matched_by_source_join_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='{disabled_opt}'; diff --git a/parser/testdata/corpus/sql/merge/trigger_merge_into.test b/parser/testdata/corpus/sql/merge/trigger_merge_into.test index 35f998bf..ec67b0f6 100644 --- a/parser/testdata/corpus/sql/merge/trigger_merge_into.test +++ b/parser/testdata/corpus/sql/merge/trigger_merge_into.test @@ -1,6 +1,6 @@ # source: test/sql/merge/trigger_merge_into.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER insert_after AFTER INSERT ON people FOR EACH STATEMENT diff --git a/parser/testdata/corpus/sql/multi_file/multi_file_file_row_number.test b/parser/testdata/corpus/sql/multi_file/multi_file_file_row_number.test index dfc9f66c..b5b10d9b 100644 --- a/parser/testdata/corpus/sql/multi_file/multi_file_file_row_number.test +++ b/parser/testdata/corpus/sql/multi_file/multi_file_file_row_number.test @@ -1,6 +1,6 @@ # source: test/sql/multi_file/multi_file_file_row_number.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i * 10 AS v FROM range(3) t(i)) TO '{TEMP_DIR}/frn_1.parquet' diff --git a/parser/testdata/corpus/sql/multi_file/multi_file_open_options.test b/parser/testdata/corpus/sql/multi_file/multi_file_open_options.test index f6fdd79a..2e47592c 100644 --- a/parser/testdata/corpus/sql/multi_file/multi_file_open_options.test +++ b/parser/testdata/corpus/sql/multi_file/multi_file_open_options.test @@ -1,6 +1,6 @@ # source: test/sql/multi_file/multi_file_open_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42 a, 'hello' b) TO '{TEST_DIR}/open_options_1.parquet' diff --git a/parser/testdata/corpus/sql/multi_file/multi_file_schema.test b/parser/testdata/corpus/sql/multi_file/multi_file_schema.test index 4eaa50fc..69a44a46 100644 --- a/parser/testdata/corpus/sql/multi_file/multi_file_schema.test +++ b/parser/testdata/corpus/sql/multi_file/multi_file_schema.test @@ -1,6 +1,6 @@ # source: test/sql/multi_file/multi_file_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 1 AS a, 'x' AS b, 10 AS c) TO '{TEMP_DIR}/schema_1.csv' @@ -53,6 +53,28 @@ SELECT id, parse_filename(filename) FROM read_csv('{TEMP_DIR}/schema_*.csv', sch -- ok == +COPY (SELECT range AS a, 'v' || range AS b, range % 2 AS k FROM range(4)) TO '{TEMP_DIR}/schema_hive_csv' (FORMAT csv, PARTITION_BY (k)) +-- +ok +== +SELECT id, label, k, typeof(k) FROM read_csv('{TEMP_DIR}/schema_hive_csv/*/*.csv', schema=map { + 'a': {name: 'id', type: 'BIGINT', default_value: NULL}, + 'b': {name: 'label', type: 'VARCHAR', default_value: NULL} +}, hive_partitioning=true) ORDER BY id +-- +ok +== +COPY (SELECT range AS a, 'v' || range AS b, range % 2 AS k FROM range(4)) TO '{TEMP_DIR}/schema_hive_json' (FORMAT json, PARTITION_BY (k)) +-- +ok +== +SELECT id, label, k, typeof(k) FROM read_json('{TEMP_DIR}/schema_hive_json/*/*.json', schema=map { + 'a': {name: 'id', type: 'BIGINT', default_value: NULL}, + 'b': {name: 'label', type: 'VARCHAR', default_value: NULL} +}, hive_types={'k': 'INTEGER'}) ORDER BY id +-- +ok +== SELECT * FROM read_csv('{TEMP_DIR}/schema_*.csv', union_by_name=true, schema=map { 'a': {name: 'id', type: 'BIGINT', default_value: NULL} }) diff --git a/parser/testdata/corpus/sql/multi_file/multi_file_schema_filter_casts.test b/parser/testdata/corpus/sql/multi_file/multi_file_schema_filter_casts.test index f85dc032..0bed3a7e 100644 --- a/parser/testdata/corpus/sql/multi_file/multi_file_schema_filter_casts.test +++ b/parser/testdata/corpus/sql/multi_file/multi_file_schema_filter_casts.test @@ -1,6 +1,6 @@ # source: test/sql/multi_file/multi_file_schema_filter_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i::INTEGER AS c FROM range(4096) r(i)) diff --git a/parser/testdata/corpus/sql/optimizer/aggregate_stats_propagation.test b/parser/testdata/corpus/sql/optimizer/aggregate_stats_propagation.test index cd6d998c..03e7121f 100644 --- a/parser/testdata/corpus/sql/optimizer/aggregate_stats_propagation.test +++ b/parser/testdata/corpus/sql/optimizer/aggregate_stats_propagation.test @@ -1,16 +1,12 @@ # source: test/sql/optimizer/aggregate_stats_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/aggregate_stats_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); -- ok == -USE db; --- -ok -== CREATE TABLE t AS SELECT range::INTEGER AS x, (range % 16)::INTEGER AS g FROM range(10240); -- ok diff --git a/parser/testdata/corpus/sql/optimizer/anti_join_empty_rhs_projection_map.test b/parser/testdata/corpus/sql/optimizer/anti_join_empty_rhs_projection_map.test index 74f5b8bd..9fcd5596 100644 --- a/parser/testdata/corpus/sql/optimizer/anti_join_empty_rhs_projection_map.test +++ b/parser/testdata/corpus/sql/optimizer/anti_join_empty_rhs_projection_map.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/anti_join_empty_rhs_projection_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_del(i BIGINT, i32 INTEGER, tsz TIMESTAMPTZ); diff --git a/parser/testdata/corpus/sql/optimizer/any_extremum_rewrite.test b/parser/testdata/corpus/sql/optimizer/any_extremum_rewrite.test index b4d0211b..e8474dd5 100644 --- a/parser/testdata/corpus/sql/optimizer/any_extremum_rewrite.test +++ b/parser/testdata/corpus/sql/optimizer/any_extremum_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/any_extremum_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(id INTEGER, x INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/array_extract_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/array_extract_row_group_pruning.test index 42bf4f2e..b52c95ad 100644 --- a/parser/testdata/corpus/sql/optimizer/array_extract_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/array_extract_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/array_extract_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/array_extract_row_group_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/barrier_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/barrier_row_group_pruning.test index 3a3cec42..fefc2a47 100644 --- a/parser/testdata/corpus/sql/optimizer/barrier_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/barrier_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/barrier_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/barrier_row_group_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/bool_ref_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/bool_ref_row_group_pruning.test index 6ab5cdeb..a73dce38 100644 --- a/parser/testdata/corpus/sql/optimizer/bool_ref_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/bool_ref_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/bool_ref_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/bool_ref_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/boolean_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/boolean_row_group_pruning.test index d90591c1..a7aa83a4 100644 --- a/parser/testdata/corpus/sql/optimizer/boolean_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/boolean_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/boolean_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/bool_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/boolean_wrapper_pushdown.test b/parser/testdata/corpus/sql/optimizer/boolean_wrapper_pushdown.test index ea903d91..6555c005 100644 --- a/parser/testdata/corpus/sql/optimizer/boolean_wrapper_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/boolean_wrapper_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/boolean_wrapper_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/boolean_wrapper_pushdown.duckdb' AS db (ROW_GROUP_SIZE 2048); @@ -51,18 +51,10 @@ SELECT count(*) FROM booleans WHERE NOT ((p = true) IS {value}); -- error: Parser Error: syntax error at or near "{" == -CREATE SEQUENCE s; --- -ok -== SELECT count(*) FROM booleans WHERE (nextval('s') > 0) IS TRUE; -- ok == -SELECT currval('s'); --- -ok -== SELECT count(*) FROM booleans WHERE (error('expected')::INTEGER > 0) IS TRUE; -- ok diff --git a/parser/testdata/corpus/sql/optimizer/case_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/case_zonemap_pruning.test index acccdb05..ebefa1a6 100644 --- a/parser/testdata/corpus/sql/optimizer/case_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/case_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/case_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/case_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/coalesce_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/coalesce_zonemap_pruning.test index 36207c3b..804e7622 100644 --- a/parser/testdata/corpus/sql/optimizer/coalesce_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/coalesce_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/coalesce_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/coalesce_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/consistent_within_query_optimizations.test b/parser/testdata/corpus/sql/optimizer/consistent_within_query_optimizations.test new file mode 100644 index 00000000..c9e8841b --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/consistent_within_query_optimizations.test @@ -0,0 +1,117 @@ +# source: test/sql/optimizer/consistent_within_query_optimizations.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/consistent_within_query.duckdb' AS db (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TABLE db.events AS SELECT now() - (i // 2048) * INTERVAL '10 days' AS ts FROM range(8192) r(i); +-- +ok +== +SELECT count(*) FROM db.events WHERE age(ts) >= INTERVAL '15 days'; +-- +ok +== +EXPLAIN ANALYZE SELECT ts FROM db.events WHERE age(ts) >= INTERVAL '15 days'; +-- +ok +== +SELECT count(*), count(DISTINCT a) FROM (SELECT ts, age(ts) AS a FROM db.events GROUP BY ts, age(ts)); +-- +ok +== +SET explain_output = 'optimized_only'; +-- +ok +== +EXPLAIN SELECT ts, age(ts) FROM db.events GROUP BY ts, age(ts); +-- +ok +== +CREATE TABLE db.marks AS SELECT now() AS ts FROM range(4096) r(i); +-- +ok +== +EXPLAIN SELECT count(*) FROM db.marks WHERE age(ts) >= INTERVAL '2 days'; +-- +ok +== +EXPLAIN SELECT count(*) FROM db.marks WHERE date_diff('millisecond', ts, now()) >= 3600000; +-- +ok +== +PREPARE older AS SELECT count(*) FROM db.marks WHERE date_diff('millisecond', ts, now()) >= 1000; +-- +ok +== +SET VARIABLE start_ms = 0; +-- +ok +== +PREPARE elapsed AS SELECT epoch_ms(now()) - getvariable('start_ms') >= 1000; +-- +ok +== +SET VARIABLE start_ms = epoch_ms(now()); +-- +ok +== +EXECUTE elapsed; +-- +ok +== +EXECUTE older; +-- +ok +== +CREATE TABLE db.instants AS SELECT TIMESTAMPTZ '2026-01-01 00:00:00+00' AS ts, 'UTC' AS zone FROM range(4096) r(i); +-- +ok +== +PREPARE midnight AS SELECT count(*) FROM db.instants WHERE hour(ts) = 0; +-- +ok +== +PREPARE same_zone AS SELECT count(*) FROM db.instants WHERE zone = current_setting('TimeZone'); +-- +ok +== +EXECUTE midnight; +-- +ok +== +EXECUTE same_zone; +-- +ok +== +CREATE TABLE db.main.schema_names AS SELECT CASE WHEN i < 2048 THEN 'main' ELSE 'other' END AS s FROM range(8192) r(i); +-- +ok +== +EXPLAIN SELECT s, in_search_path('db', s) FROM db.main.schema_names GROUP BY s, in_search_path('db', s); +-- +ok +== +PREPARE in_path AS SELECT count(*) FROM db.main.schema_names WHERE in_search_path('db', s); +-- +ok +== +EXECUTE in_path; +-- +ok +== +EXPLAIN ANALYZE SELECT s FROM db.main.schema_names WHERE in_search_path('db', s); +-- +ok +== +ATTACH ':memory:' AS elsewhere; +-- +ok +== +USE elsewhere; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/constant_function_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/constant_function_zonemap_pruning.test index aad9d174..0b40c6c6 100644 --- a/parser/testdata/corpus/sql/optimizer/constant_function_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/constant_function_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/constant_function_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/constant_function_pruning.duckdb' AS const_db (ROW_GROUP_SIZE 2048); @@ -14,13 +14,21 @@ FROM range(8192) t(i); -- ok == -SELECT count(*) FROM const_db.constant_inputs WHERE {predicate}; +SELECT count(*) FROM const_db.constant_inputs WHERE hash(x)=hash(42::BIGINT); -- -error: Parser Error: syntax error at or near "}" +ok == -EXPLAIN ANALYZE SELECT x FROM const_db.constant_inputs WHERE {predicate}; +EXPLAIN ANALYZE SELECT x FROM const_db.constant_inputs WHERE hash(x)=hash(42::BIGINT); -- -error: Parser Error: syntax error at or near "}" +ok +== +SELECT count(*) FROM const_db.constant_inputs WHERE x%100=42; +-- +ok +== +EXPLAIN ANALYZE SELECT x FROM const_db.constant_inputs WHERE x%100=42; +-- +ok == SELECT count(*) FROM const_db.constant_inputs WHERE hash(x) = hash(NULL::BIGINT); -- diff --git a/parser/testdata/corpus/sql/optimizer/contains_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/contains_row_group_pruning.test index fe1aa1f6..c93c4a94 100644 --- a/parser/testdata/corpus/sql/optimizer/contains_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/contains_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/contains_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/contains_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/cross_column_expression_stats_pruning.test b/parser/testdata/corpus/sql/optimizer/cross_column_expression_stats_pruning.test index aed503d2..75709eed 100644 --- a/parser/testdata/corpus/sql/optimizer/cross_column_expression_stats_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/cross_column_expression_stats_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/cross_column_expression_stats_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/cross_column_or_stats_pruning.duckdb' AS rg (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/date_part_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/date_part_row_group_pruning.test index 08080da1..ed88c8c0 100644 --- a/parser/testdata/corpus/sql/optimizer/date_part_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/date_part_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/date_part_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/date_part_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/distinct_sibling_column_pruning.test b/parser/testdata/corpus/sql/optimizer/distinct_sibling_column_pruning.test index b2dc6943..6f7ed54c 100644 --- a/parser/testdata/corpus/sql/optimizer/distinct_sibling_column_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/distinct_sibling_column_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/distinct_sibling_column_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE person(id INTEGER PRIMARY KEY, name VARCHAR, age INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/divide_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/divide_zonemap_pruning.test index 5da1198c..a461e2a1 100644 --- a/parser/testdata/corpus/sql/optimizer/divide_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/divide_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/divide_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/divide_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/empty_string_concat_pruning.test b/parser/testdata/corpus/sql/optimizer/empty_string_concat_pruning.test index 94d38a28..db20b9bc 100644 --- a/parser/testdata/corpus/sql/optimizer/empty_string_concat_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/empty_string_concat_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/empty_string_concat_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE empty_concat_pruning AS diff --git a/parser/testdata/corpus/sql/optimizer/expression/date_trunc_non_interval_parts.test b/parser/testdata/corpus/sql/optimizer/expression/date_trunc_non_interval_parts.test index 499b8694..d0452d19 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/date_trunc_non_interval_parts.test +++ b/parser/testdata/corpus/sql/optimizer/expression/date_trunc_non_interval_parts.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/date_trunc_non_interval_parts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO dates VALUES (DATE '2020-06-14'), (DATE '2020-06-15'), (DATE '2020-06-16'), (NULL) diff --git a/parser/testdata/corpus/sql/optimizer/expression/enum_compare_null.test b/parser/testdata/corpus/sql/optimizer/expression/enum_compare_null.test index a6c4f35e..9260a3b2 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/enum_compare_null.test +++ b/parser/testdata/corpus/sql/optimizer/expression/enum_compare_null.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/enum_compare_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM ('sad', 'ok') diff --git a/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_behavior.test b/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_behavior.test index 21ec8526..b37a0c8c 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_behavior.test +++ b/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_behavior.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/enum_full_domain_behavior.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM('sad', 'ok', 'happy'); diff --git a/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_fold_guard.test b/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_fold_guard.test index 519741a0..92d0f0b5 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_fold_guard.test +++ b/parser/testdata/corpus/sql/optimizer/expression/enum_full_domain_fold_guard.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/enum_full_domain_fold_guard.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_enum(m mood); @@ -87,10 +87,6 @@ PREPARE p AS SELECT count(*) FROM t_prep WHERE i * 2 <> 5; -- ok == -EXECUTE p; --- -ok -== INSERT INTO t_prep VALUES (NULL); -- ok diff --git a/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_casts.test b/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_casts.test index 18bf129b..90dfe043 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_casts.test +++ b/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_casts.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/list_comprehension_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA {optimizer}_optimizer; diff --git a/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_rewrite.test b/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_rewrite.test index 2c29e7ed..c0ee0c12 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_rewrite.test +++ b/parser/testdata/corpus/sql/optimizer/expression/list_comprehension_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/list_comprehension_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(l INTEGER[]); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_between_tostring.test b/parser/testdata/corpus/sql/optimizer/expression/test_between_tostring.test new file mode 100644 index 00000000..1ee654e0 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/expression/test_between_tostring.test @@ -0,0 +1,97 @@ +# source: test/sql/optimizer/expression/test_between_tostring.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET explain_output = OPTIMIZED_ONLY; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE n > 1 AND n < 8; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE n >= 1 AND n < 8; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE n > 1 AND n <= 8; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE n >= 1 AND n <= 8; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE n BETWEEN 1 AND 8; +-- +ok +== +SELECT n FROM (SELECT * FROM range(10) UNION ALL SELECT NULL) t(n) WHERE n > 1 AND n < 8 ORDER BY n; +-- +ok +== +SELECT n FROM (SELECT * FROM range(10) UNION ALL SELECT NULL) t(n) WHERE n >= 1 AND n < 8 ORDER BY n; +-- +ok +== +SELECT n FROM (SELECT * FROM range(10) UNION ALL SELECT NULL) t(n) WHERE n > 1 AND n <= 8 ORDER BY n; +-- +ok +== +SELECT n FROM (SELECT * FROM range(10) UNION ALL SELECT NULL) t(n) WHERE n BETWEEN 1 AND 8 ORDER BY n; +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE abs(n) > 1 AND abs(n) < 8; +-- +ok +== +EXPLAIN (FORMAT json) SELECT n FROM range(10) t(n) WHERE n > 1 AND n < 8; +-- +ok +== +EXPLAIN SELECT s FROM (SELECT n::VARCHAR FROM range(10) t(n)) t(s) WHERE s > '1' AND s <= '8'; +-- +ok +== +SELECT s FROM (SELECT n::VARCHAR FROM range(10) t(n)) t(s) WHERE s > '1' AND s <= '8' ORDER BY s; +-- +ok +== +EXPLAIN SELECT d FROM (SELECT DATE '2024-01-01' + n::INTEGER FROM range(10) t(n)) t(d) WHERE d >= DATE '2024-01-02' AND d < DATE '2024-01-04'; +-- +ok +== +SELECT d FROM (SELECT DATE '2024-01-01' + n::INTEGER FROM range(10) t(n)) t(d) WHERE d >= DATE '2024-01-02' AND d < DATE '2024-01-04' ORDER BY d; +-- +ok +== +SELECT n FROM range(10) t(n) WHERE abs(n) BETWEEN 1 AND 3 OR abs(n) > 3 AND abs(n) < 8 ORDER BY n; +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT n BETWEEN lo AND hi, n NOT BETWEEN lo AND hi FROM (SELECT range, 1, 8 FROM range(10)) t(n, lo, hi)); +-- +ok +== +EXPLAIN SELECT abs(n) BETWEEN 1 AND 8 FROM range(10) t(n); +-- +ok +== +EXPLAIN SELECT n FROM range(10) t(n) WHERE abs(n) NOT BETWEEN 1 AND 8; +-- +ok +== +CREATE TABLE t AS SELECT range::VARCHAR AS s FROM range(10); +-- +ok +== +EXPLAIN SELECT s FROM t WHERE lower(s) > '1' AND lower(s) < '8'; +-- +ok +== +SELECT s FROM t WHERE lower(s) > '1' AND lower(s) < '8' ORDER BY s; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_casting_negative_integer_to_bit.test b/parser/testdata/corpus/sql/optimizer/expression/test_casting_negative_integer_to_bit.test index 61e3958a..22186947 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_casting_negative_integer_to_bit.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_casting_negative_integer_to_bit.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_casting_negative_integer_to_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 as select -1 c1 from range(1); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_common_aggregate.test b/parser/testdata/corpus/sql/optimizer/expression/test_common_aggregate.test index 1d6874ae..fc036e81 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_common_aggregate.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_common_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_common_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN SELECT COUNT(*), COUNT(), COUNT(i) FROM integers; diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_comparison_simplification.test b/parser/testdata/corpus/sql/optimizer/expression/test_comparison_simplification.test index 6559bfa5..e6d6f6cf 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_comparison_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_comparison_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_comparison_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH results AS ( diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_conjunction_optimization.test b/parser/testdata/corpus/sql/optimizer/expression/test_conjunction_optimization.test index 924a56cc..d489c04a 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_conjunction_optimization.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_conjunction_optimization.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_conjunction_optimization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM integers WHERE (i=1 AND i>0) OR (i=1 AND i<3) ORDER BY i diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_cse.test b/parser/testdata/corpus/sql/optimizer/expression/test_cse.test index fd19d443..f7bfdf1b 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_cse.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_cse.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_cse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test(a integer); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_date_subtract_filter.test b/parser/testdata/corpus/sql/optimizer/expression/test_date_subtract_filter.test index f77048bd..9a0715ea 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_date_subtract_filter.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_date_subtract_filter.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_date_subtract_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates(lo_commitdate DATE); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_empty_needle_dead_branch.test b/parser/testdata/corpus/sql/optimizer/expression/test_empty_needle_dead_branch.test new file mode 100644 index 00000000..7ec1d6ea --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/expression/test_empty_needle_dead_branch.test @@ -0,0 +1,45 @@ +# source: test/sql/optimizer/expression/test_empty_needle_dead_branch.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CASE WHEN false THEN 'x' || ''::DOUBLE END; +-- +ok +== +SELECT s || ''::DOUBLE FROM t; +-- +ok +== +SELECT CASE WHEN false THEN contains('x', ''::DOUBLE::VARCHAR) END; +-- +ok +== +SELECT CASE WHEN false THEN prefix('x', ''::DOUBLE::VARCHAR) END; +-- +ok +== +SELECT 'x' || ''::DOUBLE; +-- +ok +== +SELECT contains(['a', 'b'], ''); +-- +ok +== +SELECT contains(['a', '', 'b'], ''); +-- +ok +== +CREATE TABLE list_empty_needle_t(l VARCHAR[]); +-- +ok +== +INSERT INTO list_empty_needle_t VALUES (['a', 'b']), (['a', '']), (['']), ([]), (NULL); +-- +ok +== +SELECT contains(l, '') FROM list_empty_needle_t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_enum_in_simplification.test b/parser/testdata/corpus/sql/optimizer/expression/test_enum_in_simplification.test index 972bbab0..a37043d7 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_enum_in_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_enum_in_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_enum_in_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE sym_enum AS ENUM ( diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_equal_or_null_optimization.test b/parser/testdata/corpus/sql/optimizer/expression/test_equal_or_null_optimization.test index 022f7a48..fbd99f36 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_equal_or_null_optimization.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_equal_or_null_optimization.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_equal_or_null_optimization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA explain_output = 'PHYSICAL_ONLY' diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_float_identity.test b/parser/testdata/corpus/sql/optimizer/expression/test_float_identity.test index 277a94ab..e54950bf 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_float_identity.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_float_identity.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_float_identity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE floats(x {type}); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_in_clause_simplification.test b/parser/testdata/corpus/sql/optimizer/expression/test_in_clause_simplification.test index 99c992e4..b3356f80 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_in_clause_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_in_clause_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_in_clause_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE issue13380(c0 TIMESTAMP); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_indistinct_aggregates.test b/parser/testdata/corpus/sql/optimizer/expression/test_indistinct_aggregates.test index 2d15b1bc..024ae85f 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_indistinct_aggregates.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_indistinct_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_indistinct_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT max(distinct x) from range(10) tbl(x); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_move_constants.test b/parser/testdata/corpus/sql/optimizer/expression/test_move_constants.test index c7c0dee8..4049ce47 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_move_constants.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_move_constants.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_move_constants.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE vals(v {type}); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_move_constants_overflow.test b/parser/testdata/corpus/sql/optimizer/expression/test_move_constants_overflow.test index 1fed3dff..4906aade 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_move_constants_overflow.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_move_constants_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_move_constants_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x * -1 <> CAST(-2147483648 AS INTEGER) FROM (VALUES (CAST(0 AS INTEGER))) t(x); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_negation_limits.test b/parser/testdata/corpus/sql/optimizer/expression/test_negation_limits.test index be5697a3..0084182b 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_negation_limits.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_negation_limits.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_negation_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE vals(id INTEGER, v {type}); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_nop_arithmetic.test b/parser/testdata/corpus/sql/optimizer/expression/test_nop_arithmetic.test index aaa14108..8b18ce93 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_nop_arithmetic.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_nop_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_nop_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a + 0 FROM test diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_row_comparison_simplification.test b/parser/testdata/corpus/sql/optimizer/expression/test_row_comparison_simplification.test index fa3d5c00..2e1d6533 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_row_comparison_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_row_comparison_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_row_comparison_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE rows(a INTEGER, b INTEGER, c INTEGER, d INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_time_ns_cast_comparison.test b/parser/testdata/corpus/sql/optimizer/expression/test_time_ns_cast_comparison.test index 6aae98e1..9a7b8a38 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_time_ns_cast_comparison.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_time_ns_cast_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_time_ns_cast_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE times AS SELECT TIME_NS '12:34:56.123456789' AS t diff --git a/parser/testdata/corpus/sql/optimizer/expression/test_timestamp_offset.test b/parser/testdata/corpus/sql/optimizer/expression/test_timestamp_offset.test index 158cb399..309d629b 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/test_timestamp_offset.test +++ b/parser/testdata/corpus/sql/optimizer/expression/test_timestamp_offset.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/test_timestamp_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table table1 ( diff --git a/parser/testdata/corpus/sql/optimizer/expression/uncommitted_appends_fold_guard.test b/parser/testdata/corpus/sql/optimizer/expression/uncommitted_appends_fold_guard.test index e9b39481..fe5a3628 100644 --- a/parser/testdata/corpus/sql/optimizer/expression/uncommitted_appends_fold_guard.test +++ b/parser/testdata/corpus/sql/optimizer/expression/uncommitted_appends_fold_guard.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/expression/uncommitted_appends_fold_guard.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM t WHERE i * 2 <> 5; diff --git a/parser/testdata/corpus/sql/optimizer/false_or_null_segment_pruning.test b/parser/testdata/corpus/sql/optimizer/false_or_null_segment_pruning.test index d14305e5..e07e16c9 100644 --- a/parser/testdata/corpus/sql/optimizer/false_or_null_segment_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/false_or_null_segment_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/false_or_null_segment_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS diff --git a/parser/testdata/corpus/sql/optimizer/in_list_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/in_list_row_group_pruning.test index 2e0777d6..043600ab 100644 --- a/parser/testdata/corpus/sql/optimizer/in_list_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/in_list_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/in_list_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/in_list_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/instr_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/instr_zonemap_pruning.test index 14ae2e3d..cc4cee2f 100644 --- a/parser/testdata/corpus/sql/optimizer/instr_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/instr_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/instr_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE instr_pruning AS diff --git a/parser/testdata/corpus/sql/optimizer/interval_column_stats_pruning.test b/parser/testdata/corpus/sql/optimizer/interval_column_stats_pruning.test index bede4110..b02ed767 100644 --- a/parser/testdata/corpus/sql/optimizer/interval_column_stats_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/interval_column_stats_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/interval_column_stats_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/interval_column_stats_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048, STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/optimizer/interval_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/interval_row_group_pruning.test index 81d01169..077a5a8f 100644 --- a/parser/testdata/corpus/sql/optimizer/interval_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/interval_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/interval_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS memory_db; diff --git a/parser/testdata/corpus/sql/optimizer/join_condition_verification_stats.test b/parser/testdata/corpus/sql/optimizer/join_condition_verification_stats.test new file mode 100644 index 00000000..6360695c --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/join_condition_verification_stats.test @@ -0,0 +1,261 @@ +# source: test/sql/optimizer/join_condition_verification_stats.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET debug_verify_stats=true +-- +ok +== +CREATE TABLE dec_small(n DECIMAL(10,2)); +-- +ok +== +INSERT INTO dec_small VALUES (1.5), (NULL), (0), (-7.5); +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT t1.n, t2.n FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n AND t1.n * 2 >= t2.n; +-- +ok +== +SELECT count(*) FROM dec_small t1, dec_small t2 WHERE t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n AND t1.n >= t2.n - 1; +-- +ok +== +EXPLAIN SELECT count(*) FROM dec_small t1 LEFT JOIN dec_small t2 ON t1.n >= t2.n AND (t1.n + 1 >= t2.n OR t2.n < -100); +-- +ok +== +SELECT count(*) FROM dec_small t1 LEFT JOIN dec_small t2 ON t1.n >= t2.n AND (t1.n + 1 >= t2.n OR t2.n < -100); +-- +ok +== +EXPLAIN SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON (t1.n >= t2.n AND t1.n + 1 >= t2.n) IS TRUE; +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON (t1.n >= t2.n AND t1.n + 1 >= t2.n) IS TRUE; +-- +ok +== +EXPLAIN SELECT count(*) FROM dec_small t1 LEFT JOIN dec_small t2 ON t1.n + 1 >= t2.n OR t2.n IS NULL; +-- +ok +== +SELECT count(*) FROM dec_small t1 LEFT JOIN dec_small t2 ON t1.n + 1 >= t2.n OR t2.n IS NULL; +-- +ok +== +EXPLAIN SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n OR t1.n IS NULL; +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n >= t2.n OR t1.n IS NULL; +-- +ok +== +CREATE TABLE dec_wide(n DECIMAL(18,3)); +-- +ok +== +INSERT INTO dec_wide VALUES (1.5), (NULL), (0), (-7.5); +-- +ok +== +SELECT count(*) FROM dec_wide t1 JOIN dec_wide t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM dec_wide t1 LEFT JOIN dec_wide t2 ON t1.n >= t2.n AND (t1.n + 1 >= t2.n OR t2.n < -100); +-- +ok +== +CREATE TABLE ints(n INTEGER); +-- +ok +== +INSERT INTO ints VALUES (1), (NULL), (0), (-7); +-- +ok +== +SELECT count(*) FROM ints t1 JOIN ints t2 ON t1.n >= t2.n AND t1.n::BIGINT >= t2.n; +-- +ok +== +SELECT count(*) FROM ints t1 JOIN ints t2 ON t1.n >= t2.n AND t1.n::BIGINT >= t2.n::BIGINT; +-- +ok +== +SELECT count(*) FROM ints t1 JOIN ints t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM ints t1 LEFT JOIN ints t2 ON t1.n >= t2.n AND (t1.n::BIGINT >= t2.n OR t2.n < -100); +-- +ok +== +CREATE TABLE no_nulls(n DECIMAL(10,2)); +-- +ok +== +INSERT INTO no_nulls VALUES (1.5), (0), (-7.5); +-- +ok +== +SELECT count(*) FROM dec_small t1 JOIN no_nulls t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM no_nulls t1 JOIN dec_small t2 ON t1.n >= t2.n AND t1.n >= t2.n - 1; +-- +ok +== +CREATE TABLE big_a AS SELECT i AS k, CASE WHEN i % 7 = 0 THEN NULL ELSE i END::DECIMAL(10,2) AS n FROM range(2000) t(i); +-- +ok +== +CREATE TABLE big_b AS SELECT i AS k, CASE WHEN i % 5 = 0 THEN NULL ELSE i END::DECIMAL(10,2) AS n FROM range(2000) t(i); +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n = t2.n AND t1.n::DECIMAL(18,3) >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.k = t2.k AND t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.k = t2.k AND t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 SEMI JOIN big_b t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 SEMI JOIN big_b t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 SEMI JOIN big_b t2 ON t1.n = t2.n AND t1.n::DECIMAL(18,3) >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n >= t2.n AND (t1.n + 1 >= t2.n OR t2.n < -100); +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_b t2 ON t1.n >= t2.n AND (t1.n + 1 >= t2.n OR t2.n < -100); +-- +ok +== +CREATE TABLE mid_a AS SELECT CASE WHEN i % 7 = 0 THEN NULL ELSE i END::DECIMAL(10,2) AS n FROM range(200) t(i); +-- +ok +== +CREATE TABLE mid_b AS SELECT CASE WHEN i % 5 = 0 THEN NULL ELSE i END::DECIMAL(10,2) AS n FROM range(200) t(i); +-- +ok +== +EXPLAIN SELECT count(*) FROM mid_a t1 JOIN mid_b t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM mid_a t1 JOIN mid_b t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM mid_a t1 LEFT JOIN mid_b t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +CREATE TABLE lhs(n DECIMAL(10,2)); +-- +ok +== +CREATE TABLE rhs(n DECIMAL(10,2)); +-- +ok +== +INSERT INTO lhs VALUES (-7.5), (0), (1.5), (NULL); +-- +ok +== +INSERT INTO rhs VALUES (0), (1.5), (NULL); +-- +ok +== +SELECT count(*) FROM lhs JOIN rhs ON lhs.n >= rhs.n AND lhs.n + 1 >= rhs.n; +-- +ok +== +CREATE TABLE big_c AS SELECT i AS k, CASE WHEN i % 5 = 0 THEN NULL ELSE i + 1000 END::DECIMAL(10,2) AS n FROM range(2000) t(i); +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_c t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SET disabled_optimizers = 'filter_pushdown,join_order,build_side_probe_side,join_filter_pushdown,expression_rewriter'; +-- +ok +== +EXPLAIN SELECT count(*) FROM lhs JOIN rhs ON lhs.n >= rhs.n AND lhs.n + 1 >= rhs.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_c t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_c t2 ON t1.n = t2.n AND t1.n::DECIMAL(18,3) >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 SEMI JOIN big_c t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 SEMI JOIN big_c t2 ON t1.n = t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +EXPLAIN SELECT count(*) FROM big_a t1 JOIN big_c t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== +SELECT count(*) FROM big_a t1 JOIN big_c t2 ON t1.n >= t2.n AND t1.n + 1 >= t2.n; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/joins/join_order_deep_setop_chain.test b/parser/testdata/corpus/sql/optimizer/joins/join_order_deep_setop_chain.test index 1b37c6d1..aa157e29 100644 --- a/parser/testdata/corpus/sql/optimizer/joins/join_order_deep_setop_chain.test +++ b/parser/testdata/corpus/sql/optimizer/joins/join_order_deep_setop_chain.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/joins/join_order_deep_setop_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 EXCEPT SELECT 2 EXCEPT SELECT 3 EXCEPT SELECT 4 EXCEPT SELECT 5 EXCEPT SELECT 6 EXCEPT SELECT 7 EXCEPT SELECT 8 EXCEPT SELECT 9 EXCEPT SELECT 10 EXCEPT SELECT 11 EXCEPT SELECT 12 EXCEPT SELECT 13 EXCEPT SELECT 14 EXCEPT SELECT 15 EXCEPT SELECT 16 EXCEPT SELECT 17 EXCEPT SELECT 18 EXCEPT SELECT 19 EXCEPT SELECT 20 EXCEPT SELECT 21 EXCEPT SELECT 22 EXCEPT SELECT 23 EXCEPT SELECT 24 EXCEPT SELECT 25 EXCEPT SELECT 26 EXCEPT SELECT 27 EXCEPT SELECT 28 EXCEPT SELECT 29 EXCEPT SELECT 30 EXCEPT SELECT 31 EXCEPT SELECT 32 EXCEPT SELECT 33 EXCEPT SELECT 34 EXCEPT SELECT 35 EXCEPT SELECT 36 EXCEPT SELECT 37 EXCEPT SELECT 38 EXCEPT SELECT 39 EXCEPT SELECT 40 EXCEPT SELECT 41 EXCEPT SELECT 42 EXCEPT SELECT 43 EXCEPT SELECT 44 EXCEPT SELECT 45 EXCEPT SELECT 46 EXCEPT SELECT 47 EXCEPT SELECT 48 diff --git a/parser/testdata/corpus/sql/optimizer/late_materialization_pushdown_extract.test b/parser/testdata/corpus/sql/optimizer/late_materialization_pushdown_extract.test index 26c58e27..6a956697 100644 --- a/parser/testdata/corpus/sql/optimizer/late_materialization_pushdown_extract.test +++ b/parser/testdata/corpus/sql/optimizer/late_materialization_pushdown_extract.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/late_materialization_pushdown_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET late_materialization_max_rows = 100; diff --git a/parser/testdata/corpus/sql/optimizer/late_materialization_table_filters.test b/parser/testdata/corpus/sql/optimizer/late_materialization_table_filters.test index f8dc3aa3..36d66a5d 100644 --- a/parser/testdata/corpus/sql/optimizer/late_materialization_table_filters.test +++ b/parser/testdata/corpus/sql/optimizer/late_materialization_table_filters.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/late_materialization_table_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lm_test ( @@ -116,6 +116,16 @@ FROM lm_test WHERE grp = 1 AND ts >= TIMESTAMP '2024-03-01' ORDER BY ts LIMIT 3 -- ok == +EXPLAIN SELECT id, grp, ts, payload1 +FROM lm_test WHERE rowid = 5 ORDER BY ts LIMIT 1; +-- +ok +== +SELECT id, grp, ts +FROM lm_test WHERE rowid = 5 ORDER BY ts LIMIT 1; +-- +ok +== DROP TABLE lm_test; -- ok diff --git a/parser/testdata/corpus/sql/optimizer/left_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/left_zonemap_pruning.test index 09e20747..cee0d8e3 100644 --- a/parser/testdata/corpus/sql/optimizer/left_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/left_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/left_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/left_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/list_contains_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/list_contains_row_group_pruning.test index d11a6989..1c297a29 100644 --- a/parser/testdata/corpus/sql/optimizer/list_contains_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/list_contains_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/list_contains_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/list_contains_row_group_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/list_transform_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/list_transform_row_group_pruning.test new file mode 100644 index 00000000..a3c72f1e --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/list_transform_row_group_pruning.test @@ -0,0 +1,91 @@ +# source: test/sql/optimizer/list_transform_row_group_pruning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/list_transform_row_group_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TABLE lists AS +SELECT [i] AS l, [i + 0.5] AS ld, [i * INTERVAL '1 day'] AS li, i % 2 AS c +FROM range(6144) tbl(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM lists WHERE list_contains(list_transform(ld, lambda x: floor(x)), 3000); +-- +ok +== +SELECT count(*) FROM lists WHERE list_contains(list_transform(ld, lambda x: floor(x)), 3000); +-- +ok +== +SELECT count(*) FROM lists WHERE list_contains(list_transform(li, lambda x: normalized_interval(x)), INTERVAL '3000 days'); +-- +ok +== +SELECT count(*) FROM lists WHERE list_contains(list_transform(l, lambda x: x + 1), 3001); +-- +ok +== +SELECT count(*) FILTER (WHERE list_contains(list_transform(l, lambda x: x + c), 3000)), count(*) FILTER (WHERE l[1] + c = 3000) +FROM lists +-- +ok +== +SELECT count(*) FROM lists WHERE list_contains(list_transform(l, lambda x, i: x + i), 3001); +-- +ok +== +CREATE TABLE big_lists AS SELECT [9223372036854775807] AS l; +-- +ok +== +SELECT TRY(list_transform(l, lambda x: x + 1) IS NULL) FROM big_lists +-- +ok +== +SELECT TRY(list_transform([l[1] + 1], lambda x: x) IS NULL) FROM big_lists +-- +ok +== +CREATE SEQUENCE lambda_seq; +-- +ok +== +SELECT coalesce(list_position(list_transform(l, lambda x: CASE WHEN nextval('lambda_seq') > 0 THEN 1 ELSE 2 END), 3), 99) +FROM big_lists +-- +ok +== +SELECT nextval('lambda_seq') +-- +ok +== +SELECT coalesce(list_position(list_transform(CASE WHEN nextval('lambda_seq') > 0 THEN [1] ELSE [2] END, lambda x: x), 3), 99) +-- +ok +== +SELECT coalesce(list_position(list_transform(l, lambda x: 1), 2), 99) FROM (SELECT [nextval('lambda_seq')] AS l) q +-- +ok +== +SELECT coalesce(list_position(list_transform(l, lambda x: epoch(x)), -1::DOUBLE), 99) +FROM (SELECT [make_time(nextval('lambda_seq') % 24, 0, 0)] AS l) q +-- +ok +== +CREATE SEQUENCE review_seq; +-- +ok +== +SELECT coalesce(list_position(list_transform(l, lambda x: x), 3), 99) +FROM (SELECT CASE WHEN nextval('review_seq') > 0 THEN [1] ELSE [2] END AS l) q; +-- +ok +== +SELECT nextval('review_seq'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/map_extract_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/map_extract_row_group_pruning.test index d470dd8a..e28436dd 100644 --- a/parser/testdata/corpus/sql/optimizer/map_extract_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/map_extract_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/map_extract_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/map_extract_row_group_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/modulo_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/modulo_zonemap_pruning.test new file mode 100644 index 00000000..339a1e27 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/modulo_zonemap_pruning.test @@ -0,0 +1,267 @@ +# source: test/sql/optimizer/modulo_zonemap_pruning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +INSERT INTO integers VALUES (1, 3), (10, 7); +-- +ok +== +SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i % 3) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i % -3) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i % 100) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i % j) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(j % i) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(3 % i) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(hash(i) % 8) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(hash(i)::BIGINT % 8) s FROM integers LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(hash(i)::DOUBLE % 8) s FROM integers LIMIT 1); +-- +ok +== +EXPLAIN SELECT count(*) FROM integers WHERE i % 3 > 5; +-- +ok +== +EXPLAIN SELECT count(*) FROM integers WHERE i % 3 < 0; +-- +ok +== +SELECT count(*) FROM integers WHERE i % 3 > 5; +-- +ok +== +INSERT INTO integers VALUES (-5, 3); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i % 3) s FROM integers LIMIT 1); +-- +ok +== +SELECT i % 3 FROM integers ORDER BY i; +-- +ok +== +INSERT INTO integers VALUES (4, 0); +-- +ok +== +SELECT i % j FROM integers; +-- +ok +== +SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i % j) s FROM integers LIMIT 1); +-- +ok +== +SELECT i % j FROM integers ORDER BY i; +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i % 0) s FROM integers LIMIT 1); +-- +ok +== +SELECT count(*) FROM integers WHERE i % 0 = 1; +-- +ok +== +CREATE TABLE extremes(b BIGINT, t TINYINT, bd BIGINT, td TINYINT); +-- +ok +== +INSERT INTO extremes VALUES (-9223372036854775808, -128, -9223372036854775808, -128), (9223372036854775807, 127, -1, -1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(b % bd) s FROM extremes LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(t % td) s FROM extremes LIMIT 1); +-- +ok +== +SELECT b % bd, t % td FROM extremes ORDER BY b; +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(t % -1) s FROM extremes LIMIT 1); +-- +ok +== +SELECT t % -1 FROM extremes ORDER BY t; +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(t % 127) s FROM extremes LIMIT 1); +-- +ok +== +SELECT t % 127 FROM extremes ORDER BY t; +-- +ok +== +CREATE TABLE unsigned(u UTINYINT, h UHUGEINT, b UBIGINT); +-- +ok +== +INSERT INTO unsigned VALUES (5, 5, 5), (200, 340282366920938463463374607431768211455, 18446744073709551615); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(u % 7::UTINYINT) s FROM unsigned LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(u % 250::UTINYINT) s FROM unsigned LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(h % 1000::UHUGEINT) s FROM unsigned LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(b % 1000::UBIGINT) s FROM unsigned LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(5::UBIGINT % b) s FROM unsigned LIMIT 1); +-- +ok +== +SELECT h % 1000::UHUGEINT FROM unsigned ORDER BY h; +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(i::HUGEINT % 3) s FROM integers LIMIT 1); +-- +ok +== +CREATE TABLE decimals(d DECIMAL(5, 2)); +-- +ok +== +INSERT INTO decimals VALUES (1.50), (9.75); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(d % 2.00) s FROM decimals LIMIT 1); +-- +ok +== +SELECT d % 2.00 FROM decimals ORDER BY d; +-- +ok +== +CREATE TABLE doubles(x DOUBLE, y DOUBLE); +-- +ok +== +INSERT INTO doubles VALUES (1.5, 0.5), (9.5, 2.5); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(x % 2.5) s FROM doubles LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(x % -100.0) s FROM doubles LIMIT 1); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(x % y) s FROM doubles LIMIT 1); +-- +ok +== +EXPLAIN SELECT count(*) FROM doubles WHERE x % 2.5 > 3; +-- +ok +== +INSERT INTO doubles VALUES (4.0, 0.0); +-- +ok +== +SELECT x % y FROM doubles ORDER BY x; +-- +ok +== +SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(x % y) s FROM doubles LIMIT 1); +-- +ok +== +INSERT INTO doubles VALUES ('infinity', 2.0); +-- +ok +== +SELECT s.min, s.max FROM (SELECT STATS(x % 2.0) s FROM doubles LIMIT 1); +-- +ok +== +ATTACH '{TEST_DIR}/modulo_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TABLE modulo_pruning AS +SELECT i::INTEGER AS i +FROM range(6144) r(i); +-- +ok +== +EXPLAIN SELECT count(*) FROM modulo_pruning WHERE i % 10 = 10; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM modulo_pruning WHERE i % 100000 < 100; +-- +ok +== +SELECT count(*) FROM modulo_pruning WHERE i % 100000 < 100; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM modulo_pruning WHERE 6000 % (i + 1) > 5000; +-- +ok +== +SELECT count(*) FROM modulo_pruning WHERE 6000 % (i + 1) > 5000; +-- +ok +== +SELECT count(*) FROM modulo_pruning WHERE 6144 % (i - 3000) = 123456; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM modulo_pruning WHERE 6144 % (i - 3000) = 3000; +-- +ok +== +SELECT count(*) FROM modulo_pruning WHERE 6144 % (i - 3000) = 3000; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/monotone_function_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/monotone_function_zonemap_pruning.test index 448e9216..175be163 100644 --- a/parser/testdata/corpus/sql/optimizer/monotone_function_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/monotone_function_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/monotone_function_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range::INTEGER AS x FROM range(500000); @@ -117,6 +117,30 @@ EXPLAIN ANALYZE SELECT d FROM last_day_db.t WHERE last_day(d) = DATE '2025-02-28 -- ok == +CREATE TABLE last_day_db.two AS +SELECT CASE WHEN range < 2048 THEN DATE '2025-01-15' WHEN range < 4096 THEN DATE '2025-02-15' + ELSE DATE '2025-03-15' END + (range % 2)::INTEGER AS d, + d::TIMESTAMP_NS AS ns +FROM range(6144); +-- +ok +== +SELECT count(*) FROM last_day_db.two WHERE date_diff('day', DATE '2025-01-01', d) > 60; +-- +ok +== +EXPLAIN ANALYZE SELECT d FROM last_day_db.two WHERE date_diff('day', DATE '2025-01-01', d) > 60; +-- +ok +== +SELECT count(*) FROM last_day_db.two WHERE epoch_ns(ns) > epoch_ns(TIMESTAMP_NS '2025-03-01'); +-- +ok +== +EXPLAIN ANALYZE SELECT ns FROM last_day_db.two WHERE epoch_ns(ns) > epoch_ns(TIMESTAMP_NS '2025-03-01'); +-- +ok +== ATTACH '{TEST_DIR}/round_even_prune.duckdb' AS round_even_db (ROW_GROUP_SIZE 2048); -- ok diff --git a/parser/testdata/corpus/sql/optimizer/monotone_preimage.test b/parser/testdata/corpus/sql/optimizer/monotone_preimage.test index 19f5e77a..09e5d5ba 100644 --- a/parser/testdata/corpus/sql/optimizer/monotone_preimage.test +++ b/parser/testdata/corpus/sql/optimizer/monotone_preimage.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/monotone_preimage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN SELECT count(*) FROM d WHERE year(dt) = 2020; @@ -235,6 +235,44 @@ SELECT count(*) FROM ( -- error: Parser Error: syntax error at or near "{" == +CREATE TABLE below(t TIMESTAMP); +-- +ok +== +INSERT INTO below VALUES (make_timestamp(-9223372036854775807 - 1)), (make_timestamp(-9223372036854775806)), ('-infinity'), (NULL); +-- +ok +== +SELECT count(*) FILTER (epoch_us(t) <= -9223372036854775806), count(*) FILTER (epoch(t) > -9223372036854775807), + count(*) FILTER (epoch_us(t) >= -9223372036854775806), count(*) FILTER (year(t) < 2000) FROM below; +-- +ok +== +SELECT count(*) FROM below WHERE epoch_us(t) <= -9223372036854775806; +-- +ok +== +SELECT count(*) FROM below WHERE epoch(t) > -9223372036854775807; +-- +ok +== +SELECT count(*) FROM below WHERE epoch_us(t) >= -9223372036854775806; +-- +ok +== +SELECT count(*) FROM below WHERE year(t) < 2000; +-- +ok +== +SELECT (SELECT count(*) FROM below WHERE year(t) = -290308), (SELECT count(*) FROM below WHERE epoch_us(t) = -9223372036854775806), + (SELECT count(*) FROM below WHERE epoch_us(t) = -9223372036854775807 - 1); +-- +ok +== +EXPLAIN SELECT count(*) FROM below WHERE year(t) < 2000; +-- +ok +== CREATE TABLE edge_d(dt DATE); -- ok @@ -252,6 +290,18 @@ SELECT count(*) FROM edge_d WHERE year(dt) > -1000000000; -- ok == +CREATE TABLE below_d(dt DATE); +-- +ok +== +INSERT INTO below_d VALUES (make_date(-2147483647 - 1)), (make_date(-2147483646)), ('-infinity'), (NULL); +-- +ok +== +SELECT count(*) FROM below_d WHERE year(dt) < 2000; +-- +ok +== EXPLAIN SELECT count(*) FROM edge_d WHERE year(dt) > -1000000000; -- ok diff --git a/parser/testdata/corpus/sql/optimizer/monotone_preimage_tinyint_boundaries.test b/parser/testdata/corpus/sql/optimizer/monotone_preimage_tinyint_boundaries.test index 994f80c0..2835385d 100644 --- a/parser/testdata/corpus/sql/optimizer/monotone_preimage_tinyint_boundaries.test +++ b/parser/testdata/corpus/sql/optimizer/monotone_preimage_tinyint_boundaries.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/monotone_preimage_tinyint_boundaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tinyints(x TINYINT) diff --git a/parser/testdata/corpus/sql/optimizer/monotone_preimage_tz.test b/parser/testdata/corpus/sql/optimizer/monotone_preimage_tz.test index 465a1aaa..1558ba3b 100644 --- a/parser/testdata/corpus/sql/optimizer/monotone_preimage_tz.test +++ b/parser/testdata/corpus/sql/optimizer/monotone_preimage_tz.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/monotone_preimage_tz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE edge_tz(t TIMESTAMPTZ); @@ -41,3 +41,16 @@ EXPLAIN SELECT count(*) FROM edge_tz WHERE epoch_us(t) > -9223372036854775806; -- ok == +CREATE TABLE below_tz(t TIMESTAMPTZ); +-- +ok +== +INSERT INTO below_tz VALUES (make_timestamptz(-9223372036854775807 - 1)), (make_timestamptz(-9223372036854775806)), ('-infinity'), (NULL); +-- +ok +== +SELECT (SELECT count(*) FROM below_tz WHERE epoch_us(t) <= -9223372036854775806), (SELECT count(*) FROM below_tz WHERE epoch_us(t) < 0), + (SELECT count(*) FROM below_tz WHERE epoch_us(t) >= -9223372036854775806); +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/multiple_column_stats_pruning.test b/parser/testdata/corpus/sql/optimizer/multiple_column_stats_pruning.test index 8080f71e..3a9e2e56 100644 --- a/parser/testdata/corpus/sql/optimizer/multiple_column_stats_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/multiple_column_stats_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/multiple_column_stats_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE xy AS diff --git a/parser/testdata/corpus/sql/optimizer/narrowing_cast_not_invertible.test b/parser/testdata/corpus/sql/optimizer/narrowing_cast_not_invertible.test index d49b2ab1..c8851acc 100644 --- a/parser/testdata/corpus/sql/optimizer/narrowing_cast_not_invertible.test +++ b/parser/testdata/corpus/sql/optimizer/narrowing_cast_not_invertible.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/narrowing_cast_not_invertible.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES (51),(127),(128),(200),(300),(-200); diff --git a/parser/testdata/corpus/sql/optimizer/nested_null_segment_pruning.test b/parser/testdata/corpus/sql/optimizer/nested_null_segment_pruning.test index 3b096396..b41b8e46 100644 --- a/parser/testdata/corpus/sql/optimizer/nested_null_segment_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/nested_null_segment_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/nested_null_segment_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_nulls AS diff --git a/parser/testdata/corpus/sql/optimizer/not_conjunction_simplification.test b/parser/testdata/corpus/sql/optimizer/not_conjunction_simplification.test index f7bee3a3..2b5afc61 100644 --- a/parser/testdata/corpus/sql/optimizer/not_conjunction_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/not_conjunction_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/not_conjunction_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range AS i FROM range(1000000); diff --git a/parser/testdata/corpus/sql/optimizer/null_check_statistics_propagation.test b/parser/testdata/corpus/sql/optimizer/null_check_statistics_propagation.test index b4ca5ff0..94f15853 100644 --- a/parser/testdata/corpus/sql/optimizer/null_check_statistics_propagation.test +++ b/parser/testdata/corpus/sql/optimizer/null_check_statistics_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/null_check_statistics_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 300::INTEGER i, 'hello'::VARCHAR s, {'a': 'x', 'b': 42} st; diff --git a/parser/testdata/corpus/sql/optimizer/nullable_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/nullable_row_group_pruning.test index 1bb8721c..78a7f9e4 100644 --- a/parser/testdata/corpus/sql/optimizer/nullable_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/nullable_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/nullable_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/nullable_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/or_null_simplification.test b/parser/testdata/corpus/sql/optimizer/or_null_simplification.test index 6626b652..8c358e80 100644 --- a/parser/testdata/corpus/sql/optimizer/or_null_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/or_null_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/or_null_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(x INTEGER NOT NULL); diff --git a/parser/testdata/corpus/sql/optimizer/plan/dense_or_filter_pushdown.test b/parser/testdata/corpus/sql/optimizer/plan/dense_or_filter_pushdown.test index c066f62f..d1928c3a 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/dense_or_filter_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/plan/dense_or_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/dense_or_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dense_or AS SELECT i::INTEGER AS x FROM range(-4, 9) t(i) diff --git a/parser/testdata/corpus/sql/optimizer/plan/plan_struct_projection_pushdown.test b/parser/testdata/corpus/sql/optimizer/plan/plan_struct_projection_pushdown.test index 3770838a..0be26d45 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/plan_struct_projection_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/plan/plan_struct_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/plan_struct_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct_pushdown_test(id INT, struct_col STRUCT(sub_col1 integer, sub_col2 bool)); diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_empty_child.test b/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_empty_child.test index d6f5502d..adb9fe77 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_empty_child.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_empty_child.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_anti_join_empty_child.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma explain_output='OPTIMIZED_ONLY' diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_projection_map.test b/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_projection_map.test index 2990c5d3..8bcb4953 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_projection_map.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_anti_join_projection_map.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_anti_join_projection_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE p AS SELECT i + 1000 AS r, i AS s, i AS q FROM range(5) t(i); diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_disable_build_side_probe_side.test b/parser/testdata/corpus/sql/optimizer/plan/test_disable_build_side_probe_side.test index a61092e6..3250f855 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_disable_build_side_probe_side.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_disable_build_side_probe_side.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_disable_build_side_probe_side.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit explain from range(10) r1 right join range(10) r2 using (range) diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_equivalent_filter_mirroring.test b/parser/testdata/corpus/sql/optimizer/plan/test_equivalent_filter_mirroring.test index 51eec604..6af95082 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_equivalent_filter_mirroring.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_equivalent_filter_mirroring.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_equivalent_filter_mirroring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tmp AS SELECT * FROM range(1000); diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_except_empty_rhs.test b/parser/testdata/corpus/sql/optimizer/plan/test_except_empty_rhs.test index 26e0115c..27f7e993 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_except_empty_rhs.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_except_empty_rhs.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_except_empty_rhs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (SELECT 1) lhs diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown.test b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown.test index 53e3c8c5..b91ac94b 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers i1, integers i2 WHERE i1.i=i2.i ORDER BY 1 diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_duplicate.test b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_duplicate.test index 78ed566e..1f20bf09 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_duplicate.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_duplicate.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_filter_pushdown_duplicate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vals1 AS SELECT i AS i, i AS j FROM range(0, 10000, 1) t1(i) diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_large.test b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_large.test index 22bc6d03..d1d42aeb 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_large.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_large.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_filter_pushdown_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, k FROM (SELECT i, k FROM vals1, vals2) tbl1 WHERE i=k AND i<5 ORDER BY i diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_materialized_cte.test b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_materialized_cte.test index f88b0cf2..d3130ec1 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_materialized_cte.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_filter_pushdown_materialized_cte.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_filter_pushdown_materialized_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit call dsdgen(sf=0.01) diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_recursive_build_side_probe_side.test b/parser/testdata/corpus/sql/optimizer/plan/test_recursive_build_side_probe_side.test index f70e515c..d87101c9 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_recursive_build_side_probe_side.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_recursive_build_side_probe_side.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_recursive_build_side_probe_side.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit explain with recursive t(x) as ( diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_recursive_join_order_guard.test b/parser/testdata/corpus/sql/optimizer/plan/test_recursive_join_order_guard.test index f67e3766..f886ce28 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_recursive_join_order_guard.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_recursive_join_order_guard.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_recursive_join_order_guard.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma explain_output='physical_only' diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_table_filter_pushdown.test b/parser/testdata/corpus/sql/optimizer/plan/test_table_filter_pushdown.test index a26bd729..1f6049c4 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_table_filter_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_table_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_table_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i AS i, i AS j FROM range(0, 100) tbl(i) diff --git a/parser/testdata/corpus/sql/optimizer/plan/test_unused_column_after_join.test b/parser/testdata/corpus/sql/optimizer/plan/test_unused_column_after_join.test index 3e6f8be9..a6faf366 100644 --- a/parser/testdata/corpus/sql/optimizer/plan/test_unused_column_after_join.test +++ b/parser/testdata/corpus/sql/optimizer/plan/test_unused_column_after_join.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/plan/test_unused_column_after_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM test, test2 WHERE test.b = test2.b diff --git a/parser/testdata/corpus/sql/optimizer/power_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/power_zonemap_pruning.test index d9fbaafa..de7d0121 100644 --- a/parser/testdata/corpus/sql/optimizer/power_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/power_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/power_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE power_pruning AS diff --git a/parser/testdata/corpus/sql/optimizer/predicate_factoring.test b/parser/testdata/corpus/sql/optimizer/predicate_factoring.test index b4624886..dd9f4d9c 100644 --- a/parser/testdata/corpus/sql/optimizer/predicate_factoring.test +++ b/parser/testdata/corpus/sql/optimizer/predicate_factoring.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/predicate_factoring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INTEGER, b INTEGER, c INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/prefix_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/prefix_zonemap_pruning.test index 753f451b..e572d365 100644 --- a/parser/testdata/corpus/sql/optimizer/prefix_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/prefix_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/prefix_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/prefix_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_left_join_filter.test b/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_left_join_filter.test index 43103108..19180907 100644 --- a/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_left_join_filter.test +++ b/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_left_join_filter.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/projection_placement/lift_through_left_join_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE store_sales AS diff --git a/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_nested_joins.test b/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_nested_joins.test index f0dc47fa..7893699a 100644 --- a/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_nested_joins.test +++ b/parser/testdata/corpus/sql/optimizer/projection_placement/lift_through_nested_joins.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/projection_placement/lift_through_nested_joins.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE store_sales(ss_item_sk INT, ss_customer_sk INT, ss_quantity INT, ss_sales_price DECIMAL(7,2), ss_net_profit DECIMAL(7,2), ss_sold_date_sk INT, ss_coupon_amt DECIMAL(7,2), ss_ticket_number BIGINT); diff --git a/parser/testdata/corpus/sql/optimizer/pushdown/pushdown_safe_decimal_cast.test b/parser/testdata/corpus/sql/optimizer/pushdown/pushdown_safe_decimal_cast.test new file mode 100644 index 00000000..ec7617b5 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/pushdown/pushdown_safe_decimal_cast.test @@ -0,0 +1,157 @@ +# source: test/sql/optimizer/pushdown/pushdown_safe_decimal_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE casts(i INTEGER, b BIGINT, u UBIGINT, h HUGEINT, d DECIMAL(10,2), v VARCHAR); +-- +ok +== +INSERT INTO casts VALUES + (2147483647, 9223372036854775807, 18446744073709551615, 170141183460469231731687303715884105727, 99999999.99, '150'), + (-2147483648, -9223372036854775808, 0, -170141183460469231731687303715884105728, -99999999.99, '-150'), + (150, 150, 150, 150, 150.25, '150.25'), + (NULL, NULL, NULL, NULL, NULL, NULL); +-- +ok +== +SET explain_output = 'OPTIMIZED_ONLY'; +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE d BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE i BETWEEN 100.5 AND 200.5 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE b BETWEEN 100.5 AND 200.5 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE u BETWEEN 100.5 AND 200.5 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT h, d, h // 2 AS j FROM casts) WHERE h BETWEEN 100.5 AND 200.5 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(d AS DECIMAL(18,4)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(i AS DECIMAL(10,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE CAST(b AS DECIMAL(19,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE CAST(u AS DECIMAL(20,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(i AS DECIMAL(9,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE CAST(b AS DECIMAL(18,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE CAST(u AS DECIMAL(19,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(d AS DECIMAL(10,4)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(d AS DECIMAL(10,1)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT h, d, h // 2 AS j FROM casts) WHERE CAST(h AS DECIMAL(38,0)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT v, d, v || 'x' AS j FROM casts) WHERE CAST(v AS DECIMAL(18,2)) BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, count(*) AS c FROM casts GROUP BY ALL) WHERE d BETWEEN 100 AND 200 +-- +ok +== +EXPLAIN SELECT * FROM (SELECT i, d, count(*) AS c FROM casts GROUP BY ALL) WHERE CAST(d AS DECIMAL(5,2)) BETWEEN 100 AND 200 +-- +ok +== +SET disabled_optimizers = {disabled} +-- +error: Parser Error: syntax error at or near "}" +== +SELECT i, d FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE d BETWEEN 100 AND 200 +-- +ok +== +SELECT i FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE i BETWEEN 100.5 AND 200.5 +-- +ok +== +SELECT b FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE b BETWEEN 100.5 AND 200.5 +-- +ok +== +SELECT u FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE u BETWEEN 100.5 AND 200.5 +-- +ok +== +SELECT i FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(i AS DECIMAL(10,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT b FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE CAST(b AS DECIMAL(19,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT u FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE CAST(u AS DECIMAL(20,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT d FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(d AS DECIMAL(18,4)) BETWEEN 100 AND 200 +-- +ok +== +SELECT i, d, c FROM (SELECT i, d, count(*) AS c FROM casts GROUP BY ALL) WHERE d BETWEEN 100 AND 200 +-- +ok +== +SELECT CAST(i AS DECIMAL(10,0)), CAST(b AS DECIMAL(19,0)), CAST(u AS DECIMAL(20,0)), CAST(d AS DECIMAL(18,4)) FROM casts ORDER BY i NULLS LAST +-- +ok +== +SELECT h FROM (SELECT h, d, h // 2 AS j FROM casts) WHERE h BETWEEN 100.5 AND 200.5 +-- +ok +== +SELECT i FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(i AS DECIMAL(9,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT b FROM (SELECT b, d, b // 2 AS j FROM casts) WHERE CAST(b AS DECIMAL(18,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT u FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE CAST(u AS DECIMAL(19,0)) BETWEEN 100 AND 200 +-- +ok +== +SELECT d FROM (SELECT i, d, i // 2 AS j FROM casts) WHERE CAST(d AS DECIMAL(10,4)) BETWEEN 100 AND 200 +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/pushdown_extract_multiple_filters.test b/parser/testdata/corpus/sql/optimizer/pushdown_extract_multiple_filters.test index 09569bbb..14c07694 100644 --- a/parser/testdata/corpus/sql/optimizer/pushdown_extract_multiple_filters.test +++ b/parser/testdata/corpus/sql/optimizer/pushdown_extract_multiple_filters.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/pushdown_extract_multiple_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE flat(s STRUCT(a INT, b INT), i INT, j INT); diff --git a/parser/testdata/corpus/sql/optimizer/pushdown_extract_reapplied.test b/parser/testdata/corpus/sql/optimizer/pushdown_extract_reapplied.test index b020ce43..ecbb6a20 100644 --- a/parser/testdata/corpus/sql/optimizer/pushdown_extract_reapplied.test +++ b/parser/testdata/corpus/sql/optimizer/pushdown_extract_reapplied.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/pushdown_extract_reapplied.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_extract AS SELECT diff --git a/parser/testdata/corpus/sql/optimizer/regex_range_filter.test b/parser/testdata/corpus/sql/optimizer/regex_range_filter.test index 02023685..338e1b3d 100644 --- a/parser/testdata/corpus/sql/optimizer/regex_range_filter.test +++ b/parser/testdata/corpus/sql/optimizer/regex_range_filter.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/regex_range_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE regex_values(s VARCHAR); diff --git a/parser/testdata/corpus/sql/optimizer/remove_unused_columns_nested_struct_cast.test b/parser/testdata/corpus/sql/optimizer/remove_unused_columns_nested_struct_cast.test new file mode 100644 index 00000000..ca17fcac --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/remove_unused_columns_nested_struct_cast.test @@ -0,0 +1,33 @@ +# source: test/sql/optimizer/remove_unused_columns_nested_struct_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT {'payload': {'x': 1}} AS s FROM range(1); +-- +ok +== +SELECT s.payload.x AS a, s.payload::VARCHAR AS b FROM t; +-- +ok +== +SELECT s.payload::VARCHAR AS b, s.payload.x AS a FROM t; +-- +ok +== +SELECT s.payload.x AS a, s.payload::JSON AS b FROM t; +-- +ok +== +CREATE TABLE t2 AS SELECT {'payload': {'x': {'deep': 1}}} AS s FROM range(1); +-- +ok +== +SELECT s.payload.x.deep AS a, s.payload::VARCHAR AS b FROM t2; +-- +ok +== +SELECT s.payload.x.deep AS a, s.payload::VARCHAR AS b, s.payload.x.deep + 1 AS c FROM t2; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/rewrite_nan_null.test b/parser/testdata/corpus/sql/optimizer/rewrite_nan_null.test index 588e1e32..c8b03dee 100644 --- a/parser/testdata/corpus/sql/optimizer/rewrite_nan_null.test +++ b/parser/testdata/corpus/sql/optimizer/rewrite_nan_null.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/rewrite_nan_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE neg(id INTEGER, x DOUBLE) diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_explain.test b/parser/testdata/corpus/sql/optimizer/secure_view_explain.test index 615c16b2..47cf7133 100644 --- a/parser/testdata/corpus/sql/optimizer/secure_view_explain.test +++ b/parser/testdata/corpus/sql/optimizer/secure_view_explain.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/secure_view_explain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hidden_table AS SELECT i, i % 10 AS j, ('hidden' || i) AS s FROM range(10000) t(i); diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_fallible_functions.test b/parser/testdata/corpus/sql/optimizer/secure_view_fallible_functions.test new file mode 100644 index 00000000..792ebdc5 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/secure_view_fallible_functions.test @@ -0,0 +1,72 @@ +# source: test/sql/optimizer/secure_view_fallible_functions.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE secrets(id INTEGER, pattern VARCHAR, d DATE, i INTERVAL); +-- +ok +== +INSERT INTO secrets VALUES + (1, 'a$', DATE '2000-01-01', INTERVAL 1 DAY), + (2, 'a%', NULL, NULL); +-- +ok +== +CREATE TABLE allowed(id INTEGER); +-- +ok +== +INSERT INTO allowed VALUES (2); +-- +ok +== +CREATE SECURE VIEW visible_secrets AS + SELECT sec.id, sec.pattern, sec.d, sec.i FROM secrets sec JOIN allowed a ON (sec.id = a.id); +-- +ok +== +SELECT id FROM secrets WHERE like_escape('abc', pattern, '$') +-- +ok +== +SELECT id FROM visible_secrets WHERE like_escape('abc', pattern, '$') +-- +ok +== +SELECT id FROM visible_secrets WHERE 'abc' LIKE pattern ESCAPE '$' +-- +ok +== +SELECT id FROM visible_secrets WHERE NOT not_like_escape('abc', pattern, '$') +-- +ok +== +SELECT id FROM visible_secrets WHERE ilike_escape('ABC', pattern, '$') +-- +ok +== +SELECT id FROM visible_secrets WHERE NOT not_ilike_escape('ABC', pattern, '$') +-- +ok +== +SELECT id FROM secrets WHERE timezone_hour(d) IS NULL +-- +ok +== +SELECT id FROM visible_secrets WHERE timezone_hour(d) IS NULL +-- +ok +== +SELECT id FROM visible_secrets WHERE timezone_hour(i) IS NULL +-- +ok +== +SELECT id FROM visible_secrets WHERE timezone_minute(d) IS NULL +-- +ok +== +SELECT id FROM visible_secrets WHERE timezone_minute(i) IS NULL +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_join_filter_pushdown.test b/parser/testdata/corpus/sql/optimizer/secure_view_join_filter_pushdown.test new file mode 100644 index 00000000..d681ff72 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/secure_view_join_filter_pushdown.test @@ -0,0 +1,311 @@ +# source: test/sql/optimizer/secure_view_join_filter_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE big AS SELECT i AS id, i % 100 AS g FROM range(1000000) t(i); +-- +ok +== +CREATE TABLE small AS SELECT i AS id FROM range(500045, 500055) t(i); +-- +ok +== +CREATE SECURE VIEW big_secure AS SELECT * FROM big; +-- +ok +== +CREATE SECURE VIEW big_secure_filtered AS SELECT * FROM big WHERE g < 50; +-- +ok +== +CREATE TABLE dim AS SELECT i AS k, i // 10000 AS yr FROM range(1000000) t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM big_secure b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM big_secure_filtered b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +SELECT count(*) FROM big_secure b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +SELECT count(*) FROM big_secure_filtered b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +SELECT count(*) FROM big_secure b JOIN small s ON b.id = s.id +-- +ok +== +SELECT count(*) FROM big_secure_filtered b JOIN small s ON b.id = s.id +-- +ok +== +SET disabled_optimizers = 'join_filter_pushdown' +-- +ok +== +CREATE TABLE sparse_keys AS SELECT * FROM (VALUES (10), (900000)) t(k); +-- +ok +== +CREATE SECURE VIEW big_projected AS SELECT id FROM big; +-- +ok +== +SELECT count(*) FROM big_projected b JOIN sparse_keys s ON b.id = s.k +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM big_projected b JOIN sparse_keys s ON b.id = s.k +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM big_secure_filtered b JOIN sparse_keys s ON b.id = s.k +-- +ok +== +CREATE TABLE wide AS SELECT i::BIGINT AS id FROM range(100) t(i) UNION ALL SELECT 9999999999::BIGINT; +-- +ok +== +CREATE SECURE VIEW narrow_secure AS SELECT id::INTEGER AS id FROM wide WHERE id < 1000; +-- +ok +== +CREATE TABLE probe AS SELECT i::INTEGER AS id FROM range(40, 60) t(i); +-- +ok +== +SELECT count(*) FROM narrow_secure n JOIN probe p ON n.id = p.id +-- +ok +== +SELECT count(*) FROM probe p JOIN narrow_secure n ON n.id = p.id +-- +ok +== +CREATE TABLE probe_in AS SELECT i::INTEGER AS id FROM range(41, 44) t(i); +-- +ok +== +SELECT count(*) FROM narrow_secure n JOIN probe_in p ON n.id = p.id +-- +ok +== +SELECT count(*) FROM big b JOIN (SELECT * FROM big_secure_filtered WHERE id BETWEEN 500045 AND 500054) s ON b.id = s.id +-- +ok +== +CREATE SECURE VIEW try_secure AS SELECT TRY_CAST(id AS INTEGER) AS id FROM big WHERE g < 50; +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM try_secure b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +SELECT count(*) FROM try_secure b JOIN dim d ON b.id = d.k WHERE d.yr = 42 +-- +ok +== +CREATE SECURE VIEW wide_try_secure AS SELECT TRY_CAST(id AS INTEGER) AS id FROM wide WHERE id < 1000; +-- +ok +== +SELECT count(*) FROM wide_try_secure n JOIN probe p ON n.id = p.id +-- +ok +== +CREATE TABLE hidden_near AS SELECT i AS id, i % 2 = 0 AS visible FROM range(1000000) t(i); +-- +ok +== +CREATE TABLE hidden_far AS +SELECT CASE WHEN i % 2 = 0 THEN i ELSE i + 10000000 END AS id, i % 2 = 0 AS visible FROM range(1000000) t(i); +-- +ok +== +CREATE SECURE VIEW hidden_near_secure AS SELECT id FROM hidden_near WHERE visible; +-- +ok +== +CREATE SECURE VIEW hidden_far_secure AS SELECT id FROM hidden_far WHERE visible; +-- +ok +== +CREATE TABLE range_keys AS SELECT i AS k FROM range(500000, 505000) t(i); +-- +ok +== +CREATE TABLE in_keys AS SELECT i * 1000 AS k FROM range(100, 110) t(i); +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM {view} v JOIN range_keys k ON v.id = k.k +-- +error: Parser Error: syntax error at or near "{" +== +EXPLAIN ANALYZE SELECT count(*) FROM {view} v JOIN in_keys k ON v.id = k.k +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE rng AS SELECT 500000 AS lo, 500025 AS hi; +-- +ok +== +SELECT count(*) FROM {view} v JOIN rng ON v.id >= rng.lo AND v.id <= rng.hi +-- +error: Parser Error: syntax error at or near "{" +== +EXPLAIN ANALYZE SELECT count(*) FROM {view} v JOIN rng ON v.id >= rng.lo AND v.id <= rng.hi +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE vt AS SELECT CASE WHEN i % 10 = 9 THEN (i::DOUBLE)::VARIANT ELSE i::INTEGER::VARIANT END AS v FROM range(100) t(i); +-- +ok +== +CREATE SECURE VIEW variant_secure AS SELECT v FROM vt; +-- +ok +== +CREATE TABLE ik AS SELECT i::INTEGER AS k FROM range(40, 60) t(i); +-- +ok +== +SELECT count(*) FROM variant_secure sv JOIN ik ON TRY_CAST(sv.v AS INTEGER) = ik.k +-- +ok +== +CREATE SECURE VIEW variant_cast_secure AS SELECT TRY_CAST(v AS INTEGER) AS vi FROM vt; +-- +ok +== +SELECT count(*) FROM variant_cast_secure sv JOIN ik ON sv.vi = ik.k +-- +ok +== +CREATE TABLE wide_visible AS SELECT i::BIGINT AS id, true AS visible FROM range(100) t(i) UNION ALL SELECT 9999999999::BIGINT, true; +-- +ok +== +CREATE SECURE VIEW wide_visible_secure AS SELECT id FROM wide_visible WHERE visible; +-- +ok +== +SELECT count(*) FROM wide_visible_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE TABLE wide_hidden AS SELECT i::BIGINT AS id, i % 2 AS g, true AS visible FROM range(100) t(i) UNION ALL SELECT 9999999999::BIGINT, 1, false; +-- +ok +== +CREATE SECURE VIEW wide_hidden_secure AS SELECT id FROM wide_hidden WHERE visible; +-- +ok +== +SELECT count(*) FROM wide_hidden_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE TABLE even_groups AS SELECT 0 AS g; +-- +ok +== +CREATE SECURE VIEW wide_joined_secure AS SELECT wide_hidden.id FROM wide_hidden JOIN even_groups USING (g); +-- +ok +== +SELECT count(*) FROM wide_joined_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE SECURE VIEW wide_any_joined_secure AS +SELECT wide_hidden.id FROM wide_hidden JOIN even_groups ON (wide_hidden.g + even_groups.g) % 2 = 0; +-- +ok +== +SELECT count(*) FROM wide_any_joined_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM wide_any_joined_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE TABLE id_lists AS SELECT i::BIGINT AS id, [i] AS l FROM range(100) t(i) UNION ALL SELECT 9999999999::BIGINT, []::BIGINT[]; +-- +ok +== +CREATE SECURE VIEW unnest_secure AS SELECT id, unnest(l) AS u FROM id_lists; +-- +ok +== +SELECT count(*) FROM unnest_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM unnest_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE TABLE no_rows AS SELECT 1 AS o; +-- +ok +== +DELETE FROM no_rows; +-- +ok +== +CREATE SECURE VIEW cross_secure AS SELECT id_lists.id FROM id_lists, no_rows; +-- +ok +== +SELECT count(*) FROM cross_secure w JOIN ik ON w.id::INTEGER = ik.k +-- +ok +== +CREATE TABLE topn_plain AS SELECT i AS x FROM range(100000) t(i); +-- +ok +== +CREATE TABLE topn_hidden AS SELECT i AS x FROM range(100000) t(i); +-- +ok +== +CREATE SECURE VIEW topn_secure AS SELECT x FROM topn_hidden; +-- +ok +== +EXPLAIN ANALYZE SELECT x FROM (SELECT x FROM topn_plain UNION ALL SELECT x FROM topn_secure) ORDER BY x LIMIT 5 +-- +ok +== +CREATE SECURE VIEW inner_secure AS SELECT * FROM big WHERE g < 50; +-- +ok +== +CREATE SECURE VIEW outer_secure AS SELECT * FROM inner_secure WHERE id >= 100000; +-- +ok +== +CREATE TABLE nested_keys AS SELECT i AS k FROM range(100000, 100010) t(i); +-- +ok +== +SELECT count(*) FROM outer_secure o JOIN nested_keys n ON o.id = n.k +-- +ok +== +EXPLAIN ANALYZE SELECT count(*) FROM outer_secure o JOIN nested_keys n ON o.id = n.k +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_join_order.test b/parser/testdata/corpus/sql/optimizer/secure_view_join_order.test new file mode 100644 index 00000000..594a42c5 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/secure_view_join_order.test @@ -0,0 +1,71 @@ +# source: test/sql/optimizer/secure_view_join_order.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE fact AS SELECT i AS id, i % 1000 AS d1, i % 997 AS d2, i % 991 AS d3, i AS v FROM range(200000) t(i); +-- +ok +== +CREATE TABLE dim1 AS SELECT i AS k, i % 7 AS a FROM range(1000) t(i); +-- +ok +== +CREATE TABLE dim2 AS SELECT i AS k, i % 5 AS b FROM range(997) t(i); +-- +ok +== +CREATE TABLE dim3 AS SELECT i AS k, i % 3 AS c FROM range(991) t(i); +-- +ok +== +CREATE VIEW fact_regular AS SELECT * FROM fact; +-- +ok +== +CREATE SECURE VIEW fact_secure AS SELECT * FROM fact; +-- +ok +== +CREATE VIEW fact_regular_filtered AS SELECT * FROM fact WHERE id < 100000; +-- +ok +== +CREATE SECURE VIEW fact_secure_filtered AS SELECT * FROM fact WHERE id < 100000; +-- +ok +== +EXPLAIN SELECT count(*) FROM dim1, dim2, dim3, fact_secure f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +EXPLAIN SELECT count(*) FROM dim1, dim2, dim3, fact_secure_filtered f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +SELECT count(*), sum(v) FROM dim1, dim2, dim3, fact_regular f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +SELECT count(*), sum(v) FROM dim1, dim2, dim3, fact_secure f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +SELECT count(*), sum(v) FROM dim1, dim2, dim3, fact_regular_filtered f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +SELECT count(*), sum(v) FROM dim1, dim2, dim3, fact_secure_filtered f +WHERE f.d1 = dim1.k AND f.d2 = dim2.k AND f.d3 = dim3.k AND dim1.a = 1 AND dim2.b = 2 AND dim3.c = 0 +-- +ok +== +EXPLAIN SELECT count(*) FROM fact_secure_filtered f JOIN dim1 ON f.d1 = dim1.k WHERE f.v > 150000 +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_pushdown.test b/parser/testdata/corpus/sql/optimizer/secure_view_pushdown.test index 0a9d8d83..2ac85f3d 100644 --- a/parser/testdata/corpus/sql/optimizer/secure_view_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/secure_view_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/secure_view_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i, i % 10 AS j, i::VARCHAR AS s FROM range(10000) t(i); diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_pushdown_compression.test b/parser/testdata/corpus/sql/optimizer/secure_view_pushdown_compression.test index 1605eecd..73e66a7e 100644 --- a/parser/testdata/corpus/sql/optimizer/secure_view_pushdown_compression.test +++ b/parser/testdata/corpus/sql/optimizer/secure_view_pushdown_compression.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/secure_view_pushdown_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dict_secrets AS diff --git a/parser/testdata/corpus/sql/optimizer/secure_view_statistics.test b/parser/testdata/corpus/sql/optimizer/secure_view_statistics.test index d3c4327a..364c7b67 100644 --- a/parser/testdata/corpus/sql/optimizer/secure_view_statistics.test +++ b/parser/testdata/corpus/sql/optimizer/secure_view_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/secure_view_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i, ('v' || i) AS s FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/optimizer/self_join_aggregate.test b/parser/testdata/corpus/sql/optimizer/self_join_aggregate.test new file mode 100644 index 00000000..1a988aa2 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/self_join_aggregate.test @@ -0,0 +1,289 @@ +# source: test/sql/optimizer/self_join_aggregate.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE ws AS SELECT + CASE WHEN i % 97 = 0 THEN NULL ELSE (i % 200)::INTEGER END AS o, + CASE WHEN i % 200 < 50 THEN 1 WHEN i % 200 < 60 THEN NULL WHEN i % 13 = 0 THEN NULL ELSE (i % 3)::INTEGER END AS w, + ((i % 200) % 2)::INTEGER AS p, + i AS v, + 'w' || (i % 3) AS wname, + (i % 3)::DOUBLE AS wd +FROM range(3000) r(i); +-- +ok +== +CREATE TABLE ws2 AS FROM ws; +-- +ok +== +CREATE TABLE wd AS SELECT o::BIGINT AS ob, DATE '2024-01-01' + w AS dw FROM ws; +-- +ok +== +CREATE TABLE q AS SELECT CASE WHEN i % 37 = 0 THEN NULL ELSE (i % 250)::INTEGER END AS x FROM range(1000) r(i); +-- +ok +== +CREATE TABLE r AS SELECT (i % 300)::INTEGER AS k FROM range(500) r(i); +-- +ok +== +SET disabled_optimizers = CASE WHEN {i} = 0 THEN 'self_join_aggregate' ELSE '' END; +-- +error: Parser Error: syntax error at or near "}" +== +WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*), count(DISTINCT x), sum(x) FROM q +WHERE x IN (SELECT o FROM ws_wh) AND x IN (SELECT k FROM r, ws_wh WHERE k = ws_wh.o) +-- +ok +== +WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*), sum(x) FROM q WHERE x NOT IN (SELECT o FROM ws_wh) +-- +ok +== +WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT m, count(*), sum(x) FROM (SELECT x, x IN (SELECT o FROM ws_wh) AS m FROM q) GROUP BY m ORDER BY m +-- +ok +== +SELECT count(*), sum(x) FROM q WHERE x IN (SELECT a.o FROM ws a JOIN ws b ON a.o = b.o AND a.w <> b.w) +-- +ok +== +SELECT count(*), sum(o), sum(p) FROM (SELECT DISTINCT a.o, a.p FROM ws a, ws b WHERE a.o = b.o AND a.p = b.p AND a.w <> b.w) +-- +ok +== +SELECT min(o), max(o), count(DISTINCT o) FROM (SELECT b.o FROM ws a, ws b WHERE b.o = a.o AND b.w <> a.w) +-- +ok +== +SELECT count(*), sum(x) FROM q WHERE x IN (SELECT a.ob FROM wd a, wd b WHERE a.ob = b.ob AND a.dw <> b.dw) +-- +ok +== +SELECT count(*), sum(x) FROM q WHERE x IN (SELECT o FROM (SELECT * FROM (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w))) +-- +ok +== +WITH ws_wh AS NOT MATERIALIZED (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*), sum(x) FROM q WHERE x IN (SELECT o FROM ws_wh) AND x IN (SELECT k FROM r, ws_wh WHERE k = ws_wh.o) +-- +ok +== +EXPLAIN WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*), count(DISTINCT x), sum(x) FROM q +WHERE x IN (SELECT o FROM ws_wh) AND x IN (SELECT k FROM r, ws_wh WHERE k = ws_wh.o) +-- +ok +== +EXPLAIN SELECT DISTINCT a.o, a.p FROM ws a, ws b WHERE a.o = b.o AND a.p = b.p AND a.w <> b.w +-- +ok +== +EXPLAIN SELECT count(*), sum(x) FROM q WHERE x IN (SELECT a.o FROM ws a JOIN ws b ON a.o = b.o AND a.w <> b.w) +-- +ok +== +EXPLAIN SELECT count(*), sum(x) FROM q WHERE x IN (SELECT a.ob FROM wd a, wd b WHERE a.ob = b.ob AND a.dw <> b.dw) +-- +ok +== +EXPLAIN SELECT count(*), sum(x) FROM q WHERE x IN (SELECT o FROM (SELECT * FROM (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w))) +-- +ok +== +EXPLAIN WITH ws_wh AS NOT MATERIALIZED (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*), sum(x) FROM q WHERE x IN (SELECT o FROM ws_wh) AND x IN (SELECT k FROM r, ws_wh WHERE k = ws_wh.o) +-- +ok +== +SET disabled_optimizers = 'self_join_aggregate'; +-- +ok +== +EXPLAIN WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*) FROM ws_wh +-- +ok +== +WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*) FROM ws_wh +-- +ok +== +EXPLAIN WITH ws_wh AS MATERIALIZED (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT (SELECT count(*) FROM ws_wh), count(*) FROM q WHERE x IN (SELECT o FROM ws_wh) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.w FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +-- +ok +== +EXPLAIN SELECT DISTINCT a.o, a.w FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w +-- +ok +== +EXPLAIN SELECT count(o) FROM (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws2 b WHERE a.o = b.o AND a.w <> b.w) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.p) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w AND a.v > 5) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w AND a.v <> b.v) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w + 1) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a LEFT JOIN ws b ON a.o = b.o AND a.w <> b.w) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.wname <> b.wname) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT a.o FROM ws a, ws b WHERE a.o = b.o AND a.wd <> b.wd) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x::VARCHAR IN (SELECT a.wname FROM ws a, ws b WHERE a.wname = b.wname AND a.w <> b.w) +-- +ok +== +EXPLAIN WITH ws_wh AS (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) +SELECT count(*) FROM q WHERE x IN (SELECT o FROM ws_wh UNION SELECT k FROM r) +-- +ok +== +EXPLAIN SELECT count(*), sum(x) FROM q WHERE EXISTS (SELECT 1 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w AND a.o = q.x) +-- +ok +== +SELECT count(*), sum(x) FROM q WHERE EXISTS (SELECT 1 FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w AND a.o = q.x) +-- +ok +== +EXPLAIN SELECT count(*) FROM q WHERE x IN (SELECT o FROM (SELECT a.o, random() AS rnd FROM ws a, ws b WHERE a.o = b.o AND a.w <> b.w) WHERE rnd >= 0) +-- +ok +== +CREATE TABLE n (k INTEGER, x INTEGER); +-- +ok +== +INSERT INTO n VALUES (1, 10), (1, NULL), (1, 10), (2, 20), (2, 21), (2, NULL), (3, NULL), (3, NULL), (NULL, 30), (NULL, 31), (4, 40); +-- +ok +== +SELECT DISTINCT a.k FROM n a, n b WHERE a.k = b.k AND a.x <> b.x ORDER BY 1 +-- +ok +== +SELECT k FROM (VALUES (1), (2), (3), (4), (NULL)) v(k) WHERE k NOT IN (SELECT a.k FROM n a, n b WHERE a.k = b.k AND a.x <> b.x) ORDER BY 1 +-- +ok +== +SELECT k, k IN (SELECT a.k FROM n a, n b WHERE a.k = b.k AND a.x <> b.x) FROM (VALUES (1), (2), (3), (4), (NULL)) v(k) ORDER BY 1 +-- +ok +== +EXPLAIN SELECT DISTINCT a.k FROM n a, n b WHERE a.k = b.k AND a.x <> b.x +-- +ok +== +CREATE TABLE t (k INTEGER, x INTEGER); +-- +ok +== +INSERT INTO t VALUES (1, 10), (1, 20); +-- +ok +== +SELECT DISTINCT ON (a.k) a.k, b.k, a.x IS NULL FROM t a, t b WHERE a.k = b.k AND a.x <> b.x ORDER BY a.k +-- +ok +== +SELECT DISTINCT ON (a.k) a.k, b.k FROM t a, t b WHERE a.k = b.k AND a.x <> b.x ORDER BY a.k +-- +ok +== +SELECT DISTINCT ON (a.k) a.k, b.k FROM n a, n b WHERE a.k = b.k AND a.x <> b.x ORDER BY a.k +-- +ok +== +EXPLAIN SELECT DISTINCT ON (a.k) a.k, b.k, a.x IS NULL FROM t a, t b WHERE a.k = b.k AND a.x <> b.x ORDER BY a.k +-- +ok +== +EXPLAIN SELECT DISTINCT ON (a.k) a.k, b.k FROM t a, t b WHERE a.k = b.k AND a.x <> b.x ORDER BY a.k +-- +ok +== +EXPLAIN SELECT DISTINCT a.type_size FROM duckdb_types() a, duckdb_types() b WHERE a.type_size = b.type_size AND a.type_oid <> b.type_oid +-- +ok +== +CREATE TABLE web_sales AS SELECT + CASE WHEN i % 89 = 0 THEN NULL ELSE (i % 400)::INTEGER END AS ws_order_number, + CASE WHEN i % 400 < 100 THEN 1 WHEN i % 400 < 120 THEN NULL WHEN i % 11 = 0 THEN NULL ELSE ((i // 400) % 3)::INTEGER END AS ws_warehouse_sk, + (i % 7)::INTEGER AS ws_ship_date_sk, + (i % 50)::DECIMAL(7,2) AS ws_net_profit +FROM range(4000) r(i); +-- +ok +== +CREATE TABLE web_returns AS SELECT (i % 300)::INTEGER AS wr_order_number FROM range(600) r(i); +-- +ok +== +CREATE TABLE date_dim AS SELECT i AS d_date_sk FROM range(1, 7) r(i); +-- +ok +== +WITH ws_wh AS ( + SELECT ws1.ws_order_number, ws1.ws_warehouse_sk wh1, ws2.ws_warehouse_sk wh2 + FROM web_sales ws1, web_sales ws2 + WHERE ws1.ws_order_number = ws2.ws_order_number AND ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) +SELECT count(DISTINCT ws_order_number) AS "order count", sum(ws_net_profit) AS "total net profit", count(*) +FROM web_sales ws1, date_dim +WHERE ws1.ws_ship_date_sk = d_date_sk + AND ws1.ws_order_number IN (SELECT ws_order_number FROM ws_wh) + AND ws1.ws_order_number IN (SELECT wr_order_number FROM web_returns, ws_wh WHERE wr_order_number = ws_wh.ws_order_number) +-- +ok +== +EXPLAIN WITH ws_wh AS ( + SELECT ws1.ws_order_number, ws1.ws_warehouse_sk wh1, ws2.ws_warehouse_sk wh2 + FROM web_sales ws1, web_sales ws2 + WHERE ws1.ws_order_number = ws2.ws_order_number AND ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) +SELECT count(DISTINCT ws_order_number), sum(ws_net_profit), count(*) +FROM web_sales ws1, date_dim +WHERE ws1.ws_ship_date_sk = d_date_sk + AND ws1.ws_order_number IN (SELECT ws_order_number FROM ws_wh) + AND ws1.ws_order_number IN (SELECT wr_order_number FROM web_returns, ws_wh WHERE wr_order_number = ws_wh.ws_order_number) +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/sign_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/sign_row_group_pruning.test index 3b2582c3..c5bd4e54 100644 --- a/parser/testdata/corpus/sql/optimizer/sign_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/sign_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/sign_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/sign_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/string_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/string_row_group_pruning.test index 2345586c..e8b53571 100644 --- a/parser/testdata/corpus/sql/optimizer/string_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/string_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/string_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/string_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/string_stats_merge.test b/parser/testdata/corpus/sql/optimizer/string_stats_merge.test index 5eee7788..256026ab 100644 --- a/parser/testdata/corpus/sql/optimizer/string_stats_merge.test +++ b/parser/testdata/corpus/sql/optimizer/string_stats_merge.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/string_stats_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/string_stats_merge.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/string_stats_merge_truncated_prefix.test b/parser/testdata/corpus/sql/optimizer/string_stats_merge_truncated_prefix.test index 626cbd3e..7d5f3c7c 100644 --- a/parser/testdata/corpus/sql/optimizer/string_stats_merge_truncated_prefix.test +++ b/parser/testdata/corpus/sql/optimizer/string_stats_merge_truncated_prefix.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/string_stats_merge_truncated_prefix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 'abcdefghijklzzzz' AS s, true AS c; diff --git a/parser/testdata/corpus/sql/optimizer/struct_extract_cast_filter.test b/parser/testdata/corpus/sql/optimizer/struct_extract_cast_filter.test new file mode 100644 index 00000000..53d4dc13 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/struct_extract_cast_filter.test @@ -0,0 +1,61 @@ +# source: test/sql/optimizer/struct_extract_cast_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE dates(s VARCHAR); +-- +ok +== +INSERT INTO dates VALUES ('2023-01-01'), (''); +-- +ok +== +CREATE TABLE structs AS SELECT {'d': s} AS g FROM dates; +-- +ok +== +WITH extracted AS ( + SELECT {'d': s} AS g FROM dates +) +SELECT g.d::DATE +FROM extracted +WHERE CASE WHEN (SELECT 1) = 1 + THEN length(g.d) > 0 OR (SELECT 1) <> 1 + ELSE length(g.d) > 0 OR (SELECT 1) <> 1 + END; +-- +ok +== +SELECT g.d::DATE FROM structs WHERE length(g.d) > 0 +-- +ok +== +SELECT g.d::DATE FROM structs WHERE length(g.d) > (SELECT 0) +-- +ok +== +SELECT g.d::DATE FROM structs WHERE g.d IN (SELECT '2023-01-01') +-- +ok +== +SELECT g.d::DATE FROM (FROM structs ORDER BY g.d DESC LIMIT 1) +-- +ok +== +SELECT g.d::DATE FROM structs +-- +ok +== +CREATE TABLE ints AS SELECT {'i': i::INTEGER} AS g FROM range(3) t(i); +-- +ok +== +EXPLAIN SELECT g.i::BIGINT FROM ints +-- +ok +== +SELECT g.i::BIGINT FROM ints WHERE g.i > 0 ORDER BY 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/struct_extract_struct_pack_collation.test b/parser/testdata/corpus/sql/optimizer/struct_extract_struct_pack_collation.test new file mode 100644 index 00000000..5b7b2a72 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/struct_extract_struct_pack_collation.test @@ -0,0 +1,29 @@ +# source: test/sql/optimizer/struct_extract_struct_pack_collation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +INSERT INTO c VALUES ('a'); +-- +ok +== +SELECT s FROM c WHERE ({'b': s}).b COLLATE nocase = 'A'; +-- +ok +== +SELECT s FROM c WHERE ({'b': s}).b = 'A'; +-- +ok +== +SELECT s FROM c WHERE ({'b': s}).b COLLATE nocase = 'A' COLLATE nocase; +-- +ok +== +SELECT ({b: s}).b COLLATE nocase = 'A' FROM c; +-- +ok +== +SELECT ({b: s})['b'] COLLATE nocase = 'A' FROM c; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/struct_segment_pruning.test b/parser/testdata/corpus/sql/optimizer/struct_segment_pruning.test index 7e8c279f..c6bf9d15 100644 --- a/parser/testdata/corpus/sql/optimizer/struct_segment_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/struct_segment_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/struct_segment_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET initial_column_segment_size = 2048 diff --git a/parser/testdata/corpus/sql/optimizer/substring_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/substring_zonemap_pruning.test index 57d6635e..a97f9718 100644 --- a/parser/testdata/corpus/sql/optimizer/substring_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/substring_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/substring_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE substring_pruning AS diff --git a/parser/testdata/corpus/sql/optimizer/sum_aggregate_stats_propagation.test b/parser/testdata/corpus/sql/optimizer/sum_aggregate_stats_propagation.test index ff6c2c13..2dd07e5f 100644 --- a/parser/testdata/corpus/sql/optimizer/sum_aggregate_stats_propagation.test +++ b/parser/testdata/corpus/sql/optimizer/sum_aggregate_stats_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/sum_aggregate_stats_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range::INTEGER AS x FROM range(10000); diff --git a/parser/testdata/corpus/sql/optimizer/table_filters.test b/parser/testdata/corpus/sql/optimizer/table_filters.test index b9459eb6..e07b2b9e 100644 --- a/parser/testdata/corpus/sql/optimizer/table_filters.test +++ b/parser/testdata/corpus/sql/optimizer/table_filters.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/table_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET dynamic_or_filter_threshold=0 diff --git a/parser/testdata/corpus/sql/optimizer/temporal_cast_dst.test b/parser/testdata/corpus/sql/optimizer/temporal_cast_dst.test index d286340a..b043155f 100644 --- a/parser/testdata/corpus/sql/optimizer/temporal_cast_dst.test +++ b/parser/testdata/corpus/sql/optimizer/temporal_cast_dst.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/temporal_cast_dst.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET timezone='Europe/Paris'; diff --git a/parser/testdata/corpus/sql/optimizer/temporal_cast_zonemap.test b/parser/testdata/corpus/sql/optimizer/temporal_cast_zonemap.test index 88060412..064a30ed 100644 --- a/parser/testdata/corpus/sql/optimizer/temporal_cast_zonemap.test +++ b/parser/testdata/corpus/sql/optimizer/temporal_cast_zonemap.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/temporal_cast_zonemap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ts_table AS SELECT '2020-01-01'::TIMESTAMP + (i * INTERVAL '1 minute') AS col FROM range(1000000) t(i); diff --git a/parser/testdata/corpus/sql/optimizer/test_common_subplan_cte_binding_order.test b/parser/testdata/corpus/sql/optimizer/test_common_subplan_cte_binding_order.test index 1973d7bd..9e6ec218 100644 --- a/parser/testdata/corpus/sql/optimizer/test_common_subplan_cte_binding_order.test +++ b/parser/testdata/corpus/sql/optimizer/test_common_subplan_cte_binding_order.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_common_subplan_cte_binding_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE orders (id INT, amount INT, status VARCHAR, created_at TIMESTAMP); diff --git a/parser/testdata/corpus/sql/optimizer/test_common_subplan_nested_bindings.test b/parser/testdata/corpus/sql/optimizer/test_common_subplan_nested_bindings.test index 1364eac5..867a0144 100644 --- a/parser/testdata/corpus/sql/optimizer/test_common_subplan_nested_bindings.test +++ b/parser/testdata/corpus/sql/optimizer/test_common_subplan_nested_bindings.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_common_subplan_nested_bindings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE d (id INT, j INT, x INT, y INT, z INT, k INT); diff --git a/parser/testdata/corpus/sql/optimizer/test_common_subplan_projection_maps.test b/parser/testdata/corpus/sql/optimizer/test_common_subplan_projection_maps.test index 4107a276..f956d312 100644 --- a/parser/testdata/corpus/sql/optimizer/test_common_subplan_projection_maps.test +++ b/parser/testdata/corpus/sql/optimizer/test_common_subplan_projection_maps.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_common_subplan_projection_maps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE csp_pm_a_upserts(customer_id BIGINT, id BIGINT); diff --git a/parser/testdata/corpus/sql/optimizer/test_common_subplan_table_filters.test b/parser/testdata/corpus/sql/optimizer/test_common_subplan_table_filters.test index a30e009b..f9be575b 100644 --- a/parser/testdata/corpus/sql/optimizer/test_common_subplan_table_filters.test +++ b/parser/testdata/corpus/sql/optimizer/test_common_subplan_table_filters.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_common_subplan_table_filters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE csp_filter_key(a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/test_duplicate_groups_optimizer.test b/parser/testdata/corpus/sql/optimizer/test_duplicate_groups_optimizer.test index 7208f0c3..18961273 100644 --- a/parser/testdata/corpus/sql/optimizer/test_duplicate_groups_optimizer.test +++ b/parser/testdata/corpus/sql/optimizer/test_duplicate_groups_optimizer.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_duplicate_groups_optimizer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(col1 int, col2 int); diff --git a/parser/testdata/corpus/sql/optimizer/test_fd_derived_groups.test b/parser/testdata/corpus/sql/optimizer/test_fd_derived_groups.test index f959e5da..710928e5 100644 --- a/parser/testdata/corpus/sql/optimizer/test_fd_derived_groups.test +++ b/parser/testdata/corpus/sql/optimizer/test_fd_derived_groups.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_fd_derived_groups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(x INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/test_glob_row_group_pruning.test b/parser/testdata/corpus/sql/optimizer/test_glob_row_group_pruning.test index c1cda561..3d2b9872 100644 --- a/parser/testdata/corpus/sql/optimizer/test_glob_row_group_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/test_glob_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_glob_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/glob_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/test_in_rewrite_rule.test b/parser/testdata/corpus/sql/optimizer/test_in_rewrite_rule.test index a468afdf..5323fa69 100644 --- a/parser/testdata/corpus/sql/optimizer/test_in_rewrite_rule.test +++ b/parser/testdata/corpus/sql/optimizer/test_in_rewrite_rule.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_in_rewrite_rule.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (i integer); diff --git a/parser/testdata/corpus/sql/optimizer/test_negated_filter_cardinality.test b/parser/testdata/corpus/sql/optimizer/test_negated_filter_cardinality.test index 9ac7ce18..cfeea4e8 100644 --- a/parser/testdata/corpus/sql/optimizer/test_negated_filter_cardinality.test +++ b/parser/testdata/corpus/sql/optimizer/test_negated_filter_cardinality.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_negated_filter_cardinality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(value VARCHAR NOT NULL); diff --git a/parser/testdata/corpus/sql/optimizer/test_no_pushdown_cast_into_cte.test b/parser/testdata/corpus/sql/optimizer/test_no_pushdown_cast_into_cte.test index 0c315e3e..136d419c 100644 --- a/parser/testdata/corpus/sql/optimizer/test_no_pushdown_cast_into_cte.test +++ b/parser/testdata/corpus/sql/optimizer/test_no_pushdown_cast_into_cte.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_no_pushdown_cast_into_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t(a, b) AS ( diff --git a/parser/testdata/corpus/sql/optimizer/test_not_comparison_simplification.test b/parser/testdata/corpus/sql/optimizer/test_not_comparison_simplification.test index bdc7ee34..59a6bc62 100644 --- a/parser/testdata/corpus/sql/optimizer/test_not_comparison_simplification.test +++ b/parser/testdata/corpus/sql/optimizer/test_not_comparison_simplification.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_not_comparison_simplification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT * FROM (VALUES (1),(2),(3),(NULL)) v(a); diff --git a/parser/testdata/corpus/sql/optimizer/test_rollup_column_pruning.test b/parser/testdata/corpus/sql/optimizer/test_rollup_column_pruning.test index 66cfa624..6e7418a6 100644 --- a/parser/testdata/corpus/sql/optimizer/test_rollup_column_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/test_rollup_column_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_rollup_column_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE events( diff --git a/parser/testdata/corpus/sql/optimizer/test_rowid_pruning.test b/parser/testdata/corpus/sql/optimizer/test_rowid_pruning.test index 551095a3..52d27daf 100644 --- a/parser/testdata/corpus/sql/optimizer/test_rowid_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/test_rowid_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_rowid_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE rowid_prune AS SELECT range AS v FROM range(300000); diff --git a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown.test b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown.test index 6637f7f9..86558880 100644 --- a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_rowid_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT i + 100 as x FROM range(250000) AS t(i); diff --git a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_deletes.test b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_deletes.test index 2f955af2..a296f467 100644 --- a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_deletes.test +++ b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_rowid_pushdown_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_grow_shrink (id_var VARCHAR, id_int INTEGER, id_point BIGINT); diff --git a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_plan.test b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_plan.test index a990bf11..861a0a47 100644 --- a/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_plan.test +++ b/parser/testdata/corpus/sql/optimizer/test_rowid_pushdown_plan.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_rowid_pushdown_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM lineitem ORDER BY l_orderkey DESC LIMIT 5; diff --git a/parser/testdata/corpus/sql/optimizer/test_window_self_join.test b/parser/testdata/corpus/sql/optimizer/test_window_self_join.test index bb12083a..98a9ab9d 100644 --- a/parser/testdata/corpus/sql/optimizer/test_window_self_join.test +++ b/parser/testdata/corpus/sql/optimizer/test_window_self_join.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/test_window_self_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE services (date DATE, train_number INT); @@ -278,3 +278,85 @@ ORDER BY n; -- ok == +CREATE TABLE arg_ties(id INT, key_s VARCHAR, payload_s VARCHAR, ord INT); +-- +ok +== +INSERT INTO arg_ties VALUES (1, 'b', 'b1_ord1', 1), (1, 'b', 'b2_ord2', 2); +-- +ok +== +SELECT id, + STRING_AGG(payload_s, ',' ORDER BY key_s ASC) OVER ( + PARTITION BY id + ORDER BY ord DESC + ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING + ) AS res +FROM arg_ties +ORDER BY id, ord; +-- +ok +== +SELECT id, + LIST(DISTINCT payload_s ORDER BY payload_s DESC) OVER ( + PARTITION BY id + ORDER BY ord + ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING + ) AS res +FROM arg_ties +ORDER BY id, ord; +-- +ok +== +CREATE TABLE frame_ties AS SELECT 1 AS p, i, i % 4 AS x FROM range(8) t(i); +-- +ok +== +EXPLAIN SELECT list(DISTINCT x ORDER BY x) OVER ( + PARTITION BY p ORDER BY i ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties; +-- +ok +== +SELECT i, list(DISTINCT x ORDER BY x) OVER ( + PARTITION BY p ORDER BY i ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties +ORDER BY i LIMIT 2; +-- +ok +== +EXPLAIN SELECT list(x ORDER BY x) OVER ( + PARTITION BY p ORDER BY i DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties; +-- +ok +== +SELECT i, list(x ORDER BY x) OVER ( + PARTITION BY p ORDER BY i DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties +ORDER BY i LIMIT 2; +-- +ok +== +EXPLAIN SELECT list(DISTINCT x ORDER BY x % 2) OVER ( + PARTITION BY p ORDER BY i DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties; +-- +ok +== +SELECT i, list(DISTINCT x ORDER BY x % 2) OVER ( + PARTITION BY p ORDER BY i DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING +) FROM frame_ties +ORDER BY i LIMIT 2; +-- +ok +== +CREATE TABLE decimals AS SELECT i % 7 AS k, (i % 50 + 1)::DECIMAL(12,2) AS d FROM range(1000) t(i); +-- +ok +== +SELECT (SELECT max(s) FROM (SELECT sum(d) OVER (PARTITION BY k) AS s FROM decimals)), + (SELECT count(*) FROM range(10) r(x) WHERE x = 3 OR x IN (SELECT 1)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/tests_no_pushdown_under_samples.test b/parser/testdata/corpus/sql/optimizer/tests_no_pushdown_under_samples.test index 7f04ab10..c44f859b 100644 --- a/parser/testdata/corpus/sql/optimizer/tests_no_pushdown_under_samples.test +++ b/parser/testdata/corpus/sql/optimizer/tests_no_pushdown_under_samples.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/tests_no_pushdown_under_samples.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE df AS (SELECT * AS i FROM range(10)); diff --git a/parser/testdata/corpus/sql/optimizer/timestamp_tz_cast_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/timestamp_tz_cast_zonemap_pruning.test index 035e18da..ac38272c 100644 --- a/parser/testdata/corpus/sql/optimizer/timestamp_tz_cast_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/timestamp_tz_cast_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/timestamp_tz_cast_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/ts_tz_cast_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/timestamp_unit_cast_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/timestamp_unit_cast_zonemap_pruning.test index e7507c05..56c08333 100644 --- a/parser/testdata/corpus/sql/optimizer/timestamp_unit_cast_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/timestamp_unit_cast_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/timestamp_unit_cast_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/ts_unit_cast_prune.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_argument_order.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_argument_order.test index a382d830..1dbe485e 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_argument_order.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_argument_order.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_elimination_argument_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE row_number_order (id INTEGER, g INTEGER, p INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_computed_filter.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_computed_filter.test new file mode 100644 index 00000000..59c334eb --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_computed_filter.test @@ -0,0 +1,43 @@ +# source: test/sql/optimizer/topn_window_elimination_computed_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(id INT, val INT, ord INT); +-- +ok +== +INSERT INTO t VALUES (1, 5, 1), (1, 6, 2); +-- +ok +== +WITH cte AS MATERIALIZED ( + SELECT id, + val + 100 AS v, + (ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC)) + 10 AS rn2 + FROM t +) +SELECT id, v, rn2 FROM cte WHERE rn2 <= 1; +-- +ok +== +WITH cte AS MATERIALIZED ( + SELECT id, + val + 100 AS v, + (ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC)) + 10 AS rn2 + FROM t +) +SELECT id, v, rn2 FROM cte WHERE rn2 <= 11 ORDER BY rn2; +-- +ok +== +WITH cte AS MATERIALIZED ( + SELECT id, + val + 100 AS v, + ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) AS rn + FROM t +) +SELECT id, v, rn FROM cte WHERE rn <= 1 ORDER BY rn; +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_late_materialization.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_late_materialization.test index 1af167d7..c7417907 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_late_materialization.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_late_materialization.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_elimination_late_materialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE sample_table AS @@ -133,3 +133,73 @@ ORDER BY key -- ok == +CREATE TABLE t_27812(id INT, val INT, p2 INT, ord INT); +-- +ok +== +INSERT INTO t_27812 VALUES (1, 42, 10, 1); +-- +ok +== +SELECT id, val_norm, p2 +FROM ( + SELECT id, val_norm, p2, + ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) AS rn + FROM ( + SELECT id, CAST(val_b AS INT) AS val_norm, p2, ord + FROM ( + SELECT id, CAST(val AS BOOLEAN) AS val_b, p2, ord + FROM t_27812 + ) s1 + WHERE p2 > 0 + ) s2 + WHERE val_norm + p2 > 0 +) s3 +WHERE rn <= 1; +-- +ok +== +CREATE TABLE rowid_payload (id INTEGER, p1 INTEGER, ord BIGINT) +-- +ok +== +INSERT INTO rowid_payload VALUES (1, 100, 1), (1, 300, 0), (2, 210, 5), (2, 220, 2), (2, 230, 9) +-- +ok +== +EXPLAIN SELECT id, p1, rowid FROM (SELECT id, p1, rowid, ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) rn FROM rowid_payload) WHERE rn <= 1 +-- +ok +== +SELECT id, p1, rowid FROM (SELECT id, p1, rowid, ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) rn FROM rowid_payload) WHERE rn <= 1 ORDER BY id +-- +ok +== +SELECT rowid, p1 FROM (SELECT id, p1, rowid, ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) rn FROM rowid_payload) WHERE rn <= 1 ORDER BY rowid +-- +ok +== +SELECT id, p1, ord, rowid FROM (SELECT id, p1, ord, rowid, ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) rn FROM rowid_payload) WHERE rn <= 2 ORDER BY id, ord +-- +ok +== +CREATE TABLE rowid_payload_int (id INTEGER, p1 INTEGER, ord INTEGER) +-- +ok +== +INSERT INTO rowid_payload_int VALUES (1, 100, 1), (1, 300, 0), (2, 210, 5), (2, 220, 2), (2, 230, 9) +-- +ok +== +SELECT id, p1, rowid FROM (SELECT id, p1, rowid, ROW_NUMBER() OVER (PARTITION BY id ORDER BY ord ASC) rn FROM rowid_payload_int) WHERE rn <= 1 ORDER BY id +-- +ok +== +CREATE TABLE tstz_t AS SELECT TIMESTAMPTZ '2026-10-27 00:31:02+00' AS ts +-- +ok +== +SELECT * FROM (SELECT ts, ts::DATE AS d FROM tstz_t) QUALIFY row_number() OVER (ORDER BY d) = 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_max_n.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_max_n.test index a4694171..98e00d8c 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_max_n.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_max_n.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_elimination_max_n.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (c_pk INTEGER, c_int INTEGER); diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_multiplicity.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_multiplicity.test index 30898e7a..0d120816 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_multiplicity.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_multiplicity.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_elimination_multiplicity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE l_topn_dup(id INTEGER, k INTEGER, p VARCHAR) diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_nullable_order.test b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_nullable_order.test index 09c6fb8e..fb90d467 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_elimination_nullable_order.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_elimination_nullable_order.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_elimination_nullable_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/optimizer/topn_window_set_elimination.test b/parser/testdata/corpus/sql/optimizer/topn_window_set_elimination.test index 23019617..7badcc46 100644 --- a/parser/testdata/corpus/sql/optimizer/topn_window_set_elimination.test +++ b/parser/testdata/corpus/sql/optimizer/topn_window_set_elimination.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/topn_window_set_elimination.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE or replace TABLE timeseries AS diff --git a/parser/testdata/corpus/sql/optimizer/try_struct_extract_cast.test b/parser/testdata/corpus/sql/optimizer/try_struct_extract_cast.test index 0f6d3608..8b24a94c 100644 --- a/parser/testdata/corpus/sql/optimizer/try_struct_extract_cast.test +++ b/parser/testdata/corpus/sql/optimizer/try_struct_extract_cast.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/try_struct_extract_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE foo AS SELECT 'x' AS t, {'bar': 'x'} AS t2; diff --git a/parser/testdata/corpus/sql/optimizer/tuple_cast_pushdown.test b/parser/testdata/corpus/sql/optimizer/tuple_cast_pushdown.test new file mode 100644 index 00000000..85d9ada5 --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/tuple_cast_pushdown.test @@ -0,0 +1,37 @@ +# source: test/sql/optimizer/tuple_cast_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE tt_tuple AS SELECT row(range::INTEGER) AS t, struct_pack(a := range::INTEGER) AS s FROM range(1000); +-- +ok +== +EXPLAIN SELECT * FROM (SELECT t FROM tt_tuple) p WHERE CAST(p.t AS TUPLE(BIGINT)) = row(1::BIGINT); +-- +ok +== +EXPLAIN SELECT * FROM (SELECT s FROM tt_tuple) p WHERE CAST(p.s AS STRUCT(a BIGINT)) = struct_pack(a := 1::BIGINT); +-- +ok +== +SELECT count(*) FROM (SELECT t FROM tt_tuple) p WHERE CAST(p.t AS TUPLE(BIGINT)) = row(1::BIGINT); +-- +ok +== +SELECT count(*) FROM (SELECT s FROM tt_tuple) p WHERE CAST(p.s AS STRUCT(a BIGINT)) = struct_pack(a := 1::BIGINT); +-- +ok +== +CREATE TABLE tt_bad AS SELECT row(range::VARCHAR) AS t FROM range(1000); +-- +ok +== +EXPLAIN SELECT * FROM (SELECT t FROM tt_bad) p WHERE CAST(p.t AS TUPLE(BIGINT)) = row(1::BIGINT); +-- +ok +== +SELECT count(*) FROM (SELECT t FROM tt_bad) p WHERE CAST(p.t AS TUPLE(BIGINT)) = row(1::BIGINT); +-- +ok +== diff --git a/parser/testdata/corpus/sql/optimizer/unsigned_divide_statistics.test b/parser/testdata/corpus/sql/optimizer/unsigned_divide_statistics.test index 31b7d69d..3acb8f89 100644 --- a/parser/testdata/corpus/sql/optimizer/unsigned_divide_statistics.test +++ b/parser/testdata/corpus/sql/optimizer/unsigned_divide_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/unsigned_divide_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unsigned_divide_stats(i {type}); diff --git a/parser/testdata/corpus/sql/optimizer/upper_lower_zonemap_pruning.test b/parser/testdata/corpus/sql/optimizer/upper_lower_zonemap_pruning.test index 537deb28..56122a5e 100644 --- a/parser/testdata/corpus/sql/optimizer/upper_lower_zonemap_pruning.test +++ b/parser/testdata/corpus/sql/optimizer/upper_lower_zonemap_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/upper_lower_zonemap_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/upper_lower_zonemap_pruning.duckdb' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/optimizer/variant_cast_pushdown_semantics.test b/parser/testdata/corpus/sql/optimizer/variant_cast_pushdown_semantics.test new file mode 100644 index 00000000..4983087a --- /dev/null +++ b/parser/testdata/corpus/sql/optimizer/variant_cast_pushdown_semantics.test @@ -0,0 +1,102 @@ +# source: test/sql/optimizer/variant_cast_pushdown_semantics.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE cast_cases AS +SELECT { + 'leading_zero': '001', + 'fractional': '1.5', + 'boolean_digit': '1', + 'datetime': '2026-01-01 12:34:56', + 'enum_value': 'foo', + 'union_value': 42::INTEGER, + 'number_text': '42', + 'small_int': 7::INTEGER, + 'decimal_value': 1.5::DECIMAL(4, 1), + 'timestamp_tz': TIMESTAMPTZ '2026-01-01 12:34:56+00' +}::VARIANT AS v; +-- +ok +== +COPY cast_cases TO '{TEST_DIR}/variant_cast_semantics_shredded.parquet' +(SHREDDING {'v': 'STRUCT(leading_zero VARCHAR, fractional VARCHAR, boolean_digit VARCHAR, datetime VARCHAR, enum_value VARCHAR, union_value INTEGER, number_text VARCHAR, small_int INTEGER, decimal_value DECIMAL(4, 1), timestamp_tz TIMESTAMPTZ)'}); +-- +ok +== +COPY cast_cases TO '{TEST_DIR}/variant_cast_semantics_unshredded.parquet' (SHREDDING {'v': 'NULL'}); +-- +ok +== +SET disabled_optimizers = {DISABLED_OPTIMIZERS}; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT v.leading_zero::INTEGER FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.fractional::INTEGER FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.boolean_digit::BOOLEAN FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.leading_zero::DOUBLE FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.datetime::DATE FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT TRY_CAST(v.fractional AS UTINYINT) FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.number_text::JSON FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.timestamp_tz::VARCHAR FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT CAST(v.enum_value AS ENUM('foo', 'bar')) FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT CAST(v.union_value AS UNION(a INTEGER)) FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.number_text::INTEGER FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.small_int::INTEGER FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.small_int::BIGINT FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.small_int::DOUBLE FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.decimal_value::INTEGER FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.number_text::VARCHAR FROM {SOURCE}; +-- +error: Parser Error: syntax error at or near "{" +== +SELECT v.small_int::INTEGER + 1 FROM {SOURCE} WHERE v.small_int::INTEGER = 7; +-- +error: Parser Error: syntax error at or near "{" +== diff --git a/parser/testdata/corpus/sql/optimizer/variant_json_cast_pushdown.test b/parser/testdata/corpus/sql/optimizer/variant_json_cast_pushdown.test index 33cbb268..9a20b2b5 100644 --- a/parser/testdata/corpus/sql/optimizer/variant_json_cast_pushdown.test +++ b/parser/testdata/corpus/sql/optimizer/variant_json_cast_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/variant_json_cast_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings AS diff --git a/parser/testdata/corpus/sql/optimizer/window_self_join_optimizer_csv.test b/parser/testdata/corpus/sql/optimizer/window_self_join_optimizer_csv.test index 4519268d..9767c24d 100644 --- a/parser/testdata/corpus/sql/optimizer/window_self_join_optimizer_csv.test +++ b/parser/testdata/corpus/sql/optimizer/window_self_join_optimizer_csv.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/window_self_join_optimizer_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/optimizer/yearweek_negative_iso_year.test b/parser/testdata/corpus/sql/optimizer/yearweek_negative_iso_year.test index 71f67a56..a674ba48 100644 --- a/parser/testdata/corpus/sql/optimizer/yearweek_negative_iso_year.test +++ b/parser/testdata/corpus/sql/optimizer/yearweek_negative_iso_year.test @@ -1,6 +1,6 @@ # source: test/sql/optimizer/yearweek_negative_iso_year.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dates AS diff --git a/parser/testdata/corpus/sql/order/hugeint_order_by_extremes.test b/parser/testdata/corpus/sql/order/hugeint_order_by_extremes.test index 55e85a6e..b025a480 100644 --- a/parser/testdata/corpus/sql/order/hugeint_order_by_extremes.test +++ b/parser/testdata/corpus/sql/order/hugeint_order_by_extremes.test @@ -1,6 +1,6 @@ # source: test/sql/order/hugeint_order_by_extremes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a hugeint); diff --git a/parser/testdata/corpus/sql/order/issue_11936.test b/parser/testdata/corpus/sql/order/issue_11936.test index d161b8fd..baf49daa 100644 --- a/parser/testdata/corpus/sql/order/issue_11936.test +++ b/parser/testdata/corpus/sql/order/issue_11936.test @@ -1,6 +1,6 @@ # source: test/sql/order/issue_11936.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(col1 INT, col2 INT2[][][][][][]); diff --git a/parser/testdata/corpus/sql/order/limit_full_outer_join.test b/parser/testdata/corpus/sql/order/limit_full_outer_join.test index c5506673..a9a03392 100644 --- a/parser/testdata/corpus/sql/order/limit_full_outer_join.test +++ b/parser/testdata/corpus/sql/order/limit_full_outer_join.test @@ -1,6 +1,6 @@ # source: test/sql/order/limit_full_outer_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k ORDER BY ALL LIMIT 2 diff --git a/parser/testdata/corpus/sql/order/limit_invalid_index_value.test b/parser/testdata/corpus/sql/order/limit_invalid_index_value.test index 582bf467..c0b10d8b 100644 --- a/parser/testdata/corpus/sql/order/limit_invalid_index_value.test +++ b/parser/testdata/corpus/sql/order/limit_invalid_index_value.test @@ -1,6 +1,6 @@ # source: test/sql/order/limit_invalid_index_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(5) LIMIT (SELECT 18446744073709551615); diff --git a/parser/testdata/corpus/sql/order/limit_parameter.test b/parser/testdata/corpus/sql/order/limit_parameter.test index fca1e8b9..93f681fc 100644 --- a/parser/testdata/corpus/sql/order/limit_parameter.test +++ b/parser/testdata/corpus/sql/order/limit_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/order/limit_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM generate_series(0, 10000, 1) tbl(i) ORDER BY i DESC LIMIT 5 diff --git a/parser/testdata/corpus/sql/order/limit_percent_cardinality_overflow.test b/parser/testdata/corpus/sql/order/limit_percent_cardinality_overflow.test new file mode 100644 index 00000000..df82cad2 --- /dev/null +++ b/parser/testdata/corpus/sql/order/limit_percent_cardinality_overflow.test @@ -0,0 +1,17 @@ +# source: test/sql/order/limit_percent_cardinality_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +EXPLAIN SELECT * FROM range(9223372036854775807) LIMIT 50 PERCENT; +-- +ok +== +EXPLAIN SELECT * FROM range(9223372036854775807) LIMIT 100 PERCENT; +-- +ok +== +SELECT count(*) FROM (SELECT * FROM range(100) LIMIT 50 PERCENT); +-- +ok +== diff --git a/parser/testdata/corpus/sql/order/limit_percent_view.test b/parser/testdata/corpus/sql/order/limit_percent_view.test index f8e03ab8..115e1b48 100644 --- a/parser/testdata/corpus/sql/order/limit_percent_view.test +++ b/parser/testdata/corpus/sql/order/limit_percent_view.test @@ -1,6 +1,6 @@ # source: test/sql/order/limit_percent_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (12, 21), (13, 22), (14, 32), (15, 52) diff --git a/parser/testdata/corpus/sql/order/limit_union.test b/parser/testdata/corpus/sql/order/limit_union.test index a3872a93..ff711dd1 100644 --- a/parser/testdata/corpus/sql/order/limit_union.test +++ b/parser/testdata/corpus/sql/order/limit_union.test @@ -1,6 +1,6 @@ # source: test/sql/order/limit_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(5) UNION ALL SELECT * FROM range(5) LIMIT 7 diff --git a/parser/testdata/corpus/sql/order/negative_offset.test b/parser/testdata/corpus/sql/order/negative_offset.test index 6e9b57f5..32b6a39e 100644 --- a/parser/testdata/corpus/sql/order/negative_offset.test +++ b/parser/testdata/corpus/sql/order/negative_offset.test @@ -1,6 +1,6 @@ # source: test/sql/order/negative_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM generate_series(0,10,1) LIMIT 3 OFFSET -1; diff --git a/parser/testdata/corpus/sql/order/order_by_all.test b/parser/testdata/corpus/sql/order/order_by_all.test index e3da1c4d..c8327c6a 100644 --- a/parser/testdata/corpus/sql/order/order_by_all.test +++ b/parser/testdata/corpus/sql/order/order_by_all.test @@ -1,6 +1,6 @@ # source: test/sql/order/order_by_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers ORDER BY ALL diff --git a/parser/testdata/corpus/sql/order/order_by_internal_5293.test b/parser/testdata/corpus/sql/order/order_by_internal_5293.test index 186f5563..76e75827 100644 --- a/parser/testdata/corpus/sql/order/order_by_internal_5293.test +++ b/parser/testdata/corpus/sql/order/order_by_internal_5293.test @@ -1,6 +1,6 @@ # source: test/sql/order/order_by_internal_5293.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as from VALUES diff --git a/parser/testdata/corpus/sql/order/order_by_negative_zero.test b/parser/testdata/corpus/sql/order/order_by_negative_zero.test index 370051c7..0fb6132c 100644 --- a/parser/testdata/corpus/sql/order/order_by_negative_zero.test +++ b/parser/testdata/corpus/sql/order/order_by_negative_zero.test @@ -1,6 +1,6 @@ # source: test/sql/order/order_by_negative_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE zero_probe(id INTEGER, v DOUBLE, vf FLOAT); diff --git a/parser/testdata/corpus/sql/order/order_merge_buffer_fallback.test b/parser/testdata/corpus/sql/order/order_merge_buffer_fallback.test index 2af9592f..c5016a44 100644 --- a/parser/testdata/corpus/sql/order/order_merge_buffer_fallback.test +++ b/parser/testdata/corpus/sql/order/order_merge_buffer_fallback.test @@ -1,6 +1,6 @@ # source: test/sql/order/order_merge_buffer_fallback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET temp_directory = '{TEST_DIR}/order_merge_buffer_tmp'; diff --git a/parser/testdata/corpus/sql/order/order_overflow.test b/parser/testdata/corpus/sql/order/order_overflow.test index 8b9d4fb3..659ddbfb 100644 --- a/parser/testdata/corpus/sql/order/order_overflow.test +++ b/parser/testdata/corpus/sql/order/order_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/order/order_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 ORDER BY -9223372036854775808; diff --git a/parser/testdata/corpus/sql/order/test_limit.test b/parser/testdata/corpus/sql/order/test_limit.test index 1592fea9..418a3b4b 100644 --- a/parser/testdata/corpus/sql/order/test_limit.test +++ b/parser/testdata/corpus/sql/order/test_limit.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (12, 21), (13, 22) diff --git a/parser/testdata/corpus/sql/order/test_limit_cte.test b/parser/testdata/corpus/sql/order/test_limit_cte.test index 3ec9e0bf..ff390a2f 100644 --- a/parser/testdata/corpus/sql/order/test_limit_cte.test +++ b/parser/testdata/corpus/sql/order/test_limit_cte.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_limit_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte AS (SELECT 3) SELECT * FROM range(10000000) LIMIT (SELECT * FROM cte) diff --git a/parser/testdata/corpus/sql/order/test_limit_nested_types.test b/parser/testdata/corpus/sql/order/test_limit_nested_types.test index 963f89e8..475af38a 100644 --- a/parser/testdata/corpus/sql/order/test_limit_nested_types.test +++ b/parser/testdata/corpus/sql/order/test_limit_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_limit_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] LIMIT (SELECT 5); diff --git a/parser/testdata/corpus/sql/order/test_limit_parameter.test b/parser/testdata/corpus/sql/order/test_limit_parameter.test index 3c64b017..a0339c29 100644 --- a/parser/testdata/corpus/sql/order/test_limit_parameter.test +++ b/parser/testdata/corpus/sql/order/test_limit_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_limit_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'Test' LIMIT ? diff --git a/parser/testdata/corpus/sql/order/test_limit_percent.test b/parser/testdata/corpus/sql/order/test_limit_percent.test index 66265e73..7c6bff2a 100644 --- a/parser/testdata/corpus/sql/order/test_limit_percent.test +++ b/parser/testdata/corpus/sql/order/test_limit_percent.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_limit_percent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a FROM test LIMIT 20 % diff --git a/parser/testdata/corpus/sql/order/test_nulls_first.test b/parser/testdata/corpus/sql/order/test_nulls_first.test index d729163d..b5b60b16 100644 --- a/parser/testdata/corpus/sql/order/test_nulls_first.test +++ b/parser/testdata/corpus/sql/order/test_nulls_first.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_nulls_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (NULL) diff --git a/parser/testdata/corpus/sql/order/test_order_by.test b/parser/testdata/corpus/sql/order/test_order_by.test index 628df1f5..b5d196d0 100644 --- a/parser/testdata/corpus/sql/order/test_order_by.test +++ b/parser/testdata/corpus/sql/order/test_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (12, 21), (13, 22); diff --git a/parser/testdata/corpus/sql/order/test_order_by_exceptions.test b/parser/testdata/corpus/sql/order/test_order_by_exceptions.test index b5c3d41d..4839f2ac 100644 --- a/parser/testdata/corpus/sql/order/test_order_by_exceptions.test +++ b/parser/testdata/corpus/sql/order/test_order_by_exceptions.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_by_exceptions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a FROM test ORDER BY 2 diff --git a/parser/testdata/corpus/sql/order/test_order_by_non_ordinal_literal.test b/parser/testdata/corpus/sql/order/test_order_by_non_ordinal_literal.test index 7487f3f2..ea241fb7 100644 --- a/parser/testdata/corpus/sql/order/test_order_by_non_ordinal_literal.test +++ b/parser/testdata/corpus/sql/order/test_order_by_non_ordinal_literal.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_by_non_ordinal_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/order/test_order_large.test b/parser/testdata/corpus/sql/order/test_order_large.test index 6b1c0477..6d2c6c41 100644 --- a/parser/testdata/corpus/sql/order/test_order_large.test +++ b/parser/testdata/corpus/sql/order/test_order_large.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT a FROM range(10000, 0, -1) t1(a) diff --git a/parser/testdata/corpus/sql/order/test_order_pragma.test b/parser/testdata/corpus/sql/order/test_order_pragma.test index 9ec437c1..f7defbdb 100644 --- a/parser/testdata/corpus/sql/order/test_order_pragma.test +++ b/parser/testdata/corpus/sql/order/test_order_pragma.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_pragma.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a FROM test ORDER BY a diff --git a/parser/testdata/corpus/sql/order/test_order_range_mapping.test b/parser/testdata/corpus/sql/order/test_order_range_mapping.test index ada53394..061c8ba3 100644 --- a/parser/testdata/corpus/sql/order/test_order_range_mapping.test +++ b/parser/testdata/corpus/sql/order/test_order_range_mapping.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_range_mapping.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test (i {type}) diff --git a/parser/testdata/corpus/sql/order/test_order_unnest.test b/parser/testdata/corpus/sql/order/test_order_unnest.test index 4b09f4e3..daf18b57 100644 --- a/parser/testdata/corpus/sql/order/test_order_unnest.test +++ b/parser/testdata/corpus/sql/order/test_order_unnest.test @@ -1,6 +1,6 @@ # source: test/sql/order/test_order_unnest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_structs AS SELECT diff --git a/parser/testdata/corpus/sql/order/top_n_issue_21623.test b/parser/testdata/corpus/sql/order/top_n_issue_21623.test index 444f6f3f..42543fef 100644 --- a/parser/testdata/corpus/sql/order/top_n_issue_21623.test +++ b/parser/testdata/corpus/sql/order/top_n_issue_21623.test @@ -1,6 +1,6 @@ # source: test/sql/order/top_n_issue_21623.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t3(c VARCHAR); diff --git a/parser/testdata/corpus/sql/order/top_n_limit_zero.test b/parser/testdata/corpus/sql/order/top_n_limit_zero.test index 2f209588..2b47b45f 100644 --- a/parser/testdata/corpus/sql/order/top_n_limit_zero.test +++ b/parser/testdata/corpus/sql/order/top_n_limit_zero.test @@ -1,6 +1,6 @@ # source: test/sql/order/top_n_limit_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='filter_pushdown,join_order'; diff --git a/parser/testdata/corpus/sql/order/top_n_nulls.test b/parser/testdata/corpus/sql/order/top_n_nulls.test index 9fa19d08..16f9d54d 100644 --- a/parser/testdata/corpus/sql/order/top_n_nulls.test +++ b/parser/testdata/corpus/sql/order/top_n_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/order/top_n_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE orders_small AS SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/orders_small_parquet.test'); diff --git a/parser/testdata/corpus/sql/ordinality/ordinality_constant.test b/parser/testdata/corpus/sql/ordinality/ordinality_constant.test index 4219765f..c8290872 100644 --- a/parser/testdata/corpus/sql/ordinality/ordinality_constant.test +++ b/parser/testdata/corpus/sql/ordinality/ordinality_constant.test @@ -1,6 +1,6 @@ # source: test/sql/ordinality/ordinality_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(1) WITH ORDINALITY AS _(ordinality); diff --git a/parser/testdata/corpus/sql/ordinality/ordinality_inout.test b/parser/testdata/corpus/sql/ordinality/ordinality_inout.test index dd12d17b..5116c128 100644 --- a/parser/testdata/corpus/sql/ordinality/ordinality_inout.test +++ b/parser/testdata/corpus/sql/ordinality/ordinality_inout.test @@ -1,6 +1,6 @@ # source: test/sql/ordinality/ordinality_inout.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a int); diff --git a/parser/testdata/corpus/sql/overflow/bigint_overflow.test b/parser/testdata/corpus/sql/overflow/bigint_overflow.test index 0581d729..93aac5ae 100644 --- a/parser/testdata/corpus/sql/overflow/bigint_overflow.test +++ b/parser/testdata/corpus/sql/overflow/bigint_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/bigint_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 251658240::BIGINT * 251658240::BIGINT diff --git a/parser/testdata/corpus/sql/overflow/double_float_overflow.test b/parser/testdata/corpus/sql/overflow/double_float_overflow.test index 649a6a29..400aa31d 100644 --- a/parser/testdata/corpus/sql/overflow/double_float_overflow.test +++ b/parser/testdata/corpus/sql/overflow/double_float_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/double_float_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1e308::DOUBLE + 1e308::DOUBLE; diff --git a/parser/testdata/corpus/sql/overflow/expression_tree_depth.test b/parser/testdata/corpus/sql/overflow/expression_tree_depth.test index 3a04a3d0..d128b0a5 100644 --- a/parser/testdata/corpus/sql/overflow/expression_tree_depth.test +++ b/parser/testdata/corpus/sql/overflow/expression_tree_depth.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/expression_tree_depth.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(x INTEGER) diff --git a/parser/testdata/corpus/sql/overflow/integer_overflow.test b/parser/testdata/corpus/sql/overflow/integer_overflow.test index cbb80e26..844d8c3e 100644 --- a/parser/testdata/corpus/sql/overflow/integer_overflow.test +++ b/parser/testdata/corpus/sql/overflow/integer_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/integer_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 100::TINYINT + 1::TINYINT diff --git a/parser/testdata/corpus/sql/overflow/table_overflow.test b/parser/testdata/corpus/sql/overflow/table_overflow.test index aba10f8b..df0ab70f 100644 --- a/parser/testdata/corpus/sql/overflow/table_overflow.test +++ b/parser/testdata/corpus/sql/overflow/table_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/table_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tinyints(i TINYINT); diff --git a/parser/testdata/corpus/sql/overflow/test_numeric_overflow.test b/parser/testdata/corpus/sql/overflow/test_numeric_overflow.test index 302a4ed8..18701e25 100644 --- a/parser/testdata/corpus/sql/overflow/test_numeric_overflow.test +++ b/parser/testdata/corpus/sql/overflow/test_numeric_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/test_numeric_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1e1000 diff --git a/parser/testdata/corpus/sql/overflow/test_overflow.test b/parser/testdata/corpus/sql/overflow/test_overflow.test index e2b13007..1878e996 100644 --- a/parser/testdata/corpus/sql/overflow/test_overflow.test +++ b/parser/testdata/corpus/sql/overflow/test_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/overflow/test_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (-1099511627776, 3) diff --git a/parser/testdata/corpus/sql/parallelism/async_task_schedule_pool.test b/parser/testdata/corpus/sql/parallelism/async_task_schedule_pool.test index 20e62bb8..e4518309 100644 --- a/parser/testdata/corpus/sql/parallelism/async_task_schedule_pool.test +++ b/parser/testdata/corpus/sql/parallelism/async_task_schedule_pool.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/async_task_schedule_pool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_physical_table_scan_execution_strategy=DEFAULT diff --git a/parser/testdata/corpus/sql/parallelism/async_task_synchronous_batch.test b/parser/testdata/corpus/sql/parallelism/async_task_synchronous_batch.test new file mode 100644 index 00000000..b4047e6e --- /dev/null +++ b/parser/testdata/corpus/sql/parallelism/async_task_synchronous_batch.test @@ -0,0 +1,29 @@ +# source: test/sql/parallelism/async_task_synchronous_batch.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT range AS i, range * 2 AS a, range * 3 AS b, range * 5 AS c, 'v' || range::VARCHAR AS s FROM range(200000); +-- +ok +== +SET debug_physical_table_scan_execution_strategy=SYNCHRONOUS +-- +ok +== +SET storage_block_prefetch='debug_force_always' +-- +ok +== +SELECT sum(i), sum(a), sum(b), sum(c), max(s) FROM t +-- +ok +== +SELECT count(*) > 0 FROM duckdb_logs_parsed('AsyncTaskSchedule') WHERE pool LIKE 'SYNCHRONOUS_%' AND task_count > 1 +-- +ok +== +SELECT count(*) FROM duckdb_logs_parsed('AsyncTaskSchedule') WHERE pool NOT LIKE 'SYNCHRONOUS_%' +-- +ok +== diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_appends.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_appends.test index 9649231e..a7bccfcb 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_appends.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_appends.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_appends.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT * FROM range(100); diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_checkpoint_insert.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_checkpoint_insert.test index 1bde7537..3a0f0e19 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_checkpoint_insert.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_checkpoint_insert.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_checkpoint_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/bla_{j}.db' AS db{j}; diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_force_checkpoint.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_force_checkpoint.test index 2b75186a..e7952c9b 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_force_checkpoint.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_force_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_force_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE integers(i INTEGER) diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_index_scans_while_appending.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_index_scans_while_appending.test index db28f551..29f216c4 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_index_scans_while_appending.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_index_scans_while_appending.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_index_scans_while_appending.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE i={i} * ({threadid} * 300); diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_altering.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_altering.test index 5c8f9c60..353fa665 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_altering.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_altering.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_reads_while_altering.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE integers ADD COLUMN newcol_{i} INTEGER diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_renaming.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_renaming.test index 61589fb4..a629db47 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_renaming.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_reads_while_renaming.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_reads_while_renaming.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE integers RENAME TO integers_{i} diff --git a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_set_async_threads_read_ahead.test b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_set_async_threads_read_ahead.test index 92222478..562a49b9 100644 --- a/parser/testdata/corpus/sql/parallelism/interquery/concurrent_set_async_threads_read_ahead.test +++ b/parser/testdata/corpus/sql/parallelism/interquery/concurrent_set_async_threads_read_ahead.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/interquery/concurrent_set_async_threads_read_ahead.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_physical_table_scan_execution_strategy='SYNCHRONOUS' diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/depth_first_evaluation_union_and_join.test b/parser/testdata/corpus/sql/parallelism/intraquery/depth_first_evaluation_union_and_join.test index d32db251..880070ea 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/depth_first_evaluation_union_and_join.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/depth_first_evaluation_union_and_join.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/depth_first_evaluation_union_and_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ss_quantity quantity, diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/error_in_pipeline.test b/parser/testdata/corpus/sql/parallelism/intraquery/error_in_pipeline.test index ba086d66..9240340f 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/error_in_pipeline.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/error_in_pipeline.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/error_in_pipeline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=16 diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/parallel_sample.test b/parser/testdata/corpus/sql/parallelism/intraquery/parallel_sample.test index 9e7eedea..5ad7f405 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/parallel_sample.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/parallel_sample.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/parallel_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(50000) tbl(i) diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/test_parallel_nested_aggregates.test b/parser/testdata/corpus/sql/parallelism/intraquery/test_parallel_nested_aggregates.test index 9109f587..3d44971c 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/test_parallel_nested_aggregates.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/test_parallel_nested_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/test_parallel_nested_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t as select range a, range%10 b from range(100000); diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/test_persistent_parallelism.test b/parser/testdata/corpus/sql/parallelism/intraquery/test_persistent_parallelism.test index 46d4eeab..435ad57f 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/test_persistent_parallelism.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/test_persistent_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/test_persistent_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(0, 5000) tbl(i) diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/test_simple_parallelism.test b/parser/testdata/corpus/sql/parallelism/intraquery/test_simple_parallelism.test index 161a4ef1..c4aefe28 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/test_simple_parallelism.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/test_simple_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/test_simple_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(i) FROM integers UNION ALL SELECT AVG(i) FROM integers UNION ALL SELECT MIN(i) FROM integers UNION ALL SELECT MAX(i) FROM integers; diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/test_transaction_local_parallelism.test b/parser/testdata/corpus/sql/parallelism/intraquery/test_transaction_local_parallelism.test index 5b255fd2..b406543e 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/test_transaction_local_parallelism.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/test_transaction_local_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/test_transaction_local_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA {parallelism_pragma} diff --git a/parser/testdata/corpus/sql/parallelism/intraquery/test_verify_parallelism.test b/parser/testdata/corpus/sql/parallelism/intraquery/test_verify_parallelism.test index f7802245..4be954c1 100644 --- a/parser/testdata/corpus/sql/parallelism/intraquery/test_verify_parallelism.test +++ b/parser/testdata/corpus/sql/parallelism/intraquery/test_verify_parallelism.test @@ -1,6 +1,6 @@ # source: test/sql/parallelism/intraquery/test_verify_parallelism.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MIN(i), MAX(i) FROM integers WHERE i>2000 diff --git a/parser/testdata/corpus/sql/parser/adjacent_string_literal.test b/parser/testdata/corpus/sql/parser/adjacent_string_literal.test index 9b20237c..b26039b9 100644 --- a/parser/testdata/corpus/sql/parser/adjacent_string_literal.test +++ b/parser/testdata/corpus/sql/parser/adjacent_string_literal.test @@ -1,6 +1,6 @@ # source: test/sql/parser/adjacent_string_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'foo' diff --git a/parser/testdata/corpus/sql/parser/backtick_identifiers.test b/parser/testdata/corpus/sql/parser/backtick_identifiers.test index 415fc916..ad651494 100644 --- a/parser/testdata/corpus/sql/parser/backtick_identifiers.test +++ b/parser/testdata/corpus/sql/parser/backtick_identifiers.test @@ -1,6 +1,6 @@ # source: test/sql/parser/backtick_identifiers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT `x` FROM (SELECT 1 x) t; diff --git a/parser/testdata/corpus/sql/parser/bare_column_alias.test b/parser/testdata/corpus/sql/parser/bare_column_alias.test index ca4ff259..c4e8c985 100644 --- a/parser/testdata/corpus/sql/parser/bare_column_alias.test +++ b/parser/testdata/corpus/sql/parser/bare_column_alias.test @@ -1,6 +1,6 @@ # source: test/sql/parser/bare_column_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES (1, 2), (3, 4); diff --git a/parser/testdata/corpus/sql/parser/columns_aliases.test b/parser/testdata/corpus/sql/parser/columns_aliases.test index dc99bf4b..1a5dfe54 100644 --- a/parser/testdata/corpus/sql/parser/columns_aliases.test +++ b/parser/testdata/corpus/sql/parser/columns_aliases.test @@ -1,6 +1,6 @@ # source: test/sql/parser/columns_aliases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT 42 i, 84 j UNION ALL SELECT 13, 14 diff --git a/parser/testdata/corpus/sql/parser/columns_issue9867.test b/parser/testdata/corpus/sql/parser/columns_issue9867.test index fe6d0cc9..7821228c 100644 --- a/parser/testdata/corpus/sql/parser/columns_issue9867.test +++ b/parser/testdata/corpus/sql/parser/columns_issue9867.test @@ -1,6 +1,6 @@ # source: test/sql/parser/columns_issue9867.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE df1 AS diff --git a/parser/testdata/corpus/sql/parser/columns_unpacked_empty.test b/parser/testdata/corpus/sql/parser/columns_unpacked_empty.test new file mode 100644 index 00000000..0ac41ed9 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/columns_unpacked_empty.test @@ -0,0 +1,29 @@ +# source: test/sql/parser/columns_unpacked_empty.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE one(a INT); +-- +ok +== +INSERT INTO one VALUES (1); +-- +ok +== +SELECT coalesce(*COLUMNS(* EXCLUDE (a))) FROM one; +-- +ok +== +SELECT 1 IN (*COLUMNS(* EXCLUDE (a))) FROM one; +-- +ok +== +SELECT coalesce(*COLUMNS(*)) FROM one; +-- +ok +== +SELECT 1 IN (*COLUMNS(*)) FROM one; +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/create_macro_tostring.test b/parser/testdata/corpus/sql/parser/create_macro_tostring.test index cb4c3446..3b23cc4f 100644 --- a/parser/testdata/corpus/sql/parser/create_macro_tostring.test +++ b/parser/testdata/corpus/sql/parser/create_macro_tostring.test @@ -1,6 +1,6 @@ # source: test/sql/parser/create_macro_tostring.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_statement='{mode}' diff --git a/parser/testdata/corpus/sql/parser/cte_printing.test b/parser/testdata/corpus/sql/parser/cte_printing.test index 27167a29..618032e7 100644 --- a/parser/testdata/corpus/sql/parser/cte_printing.test +++ b/parser/testdata/corpus/sql/parser/cte_printing.test @@ -1,6 +1,6 @@ # source: test/sql/parser/cte_printing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW printable_cte AS WITH x AS (SELECT 1 AS i) SELECT i FROM x; diff --git a/parser/testdata/corpus/sql/parser/custom_prefix_operator.test b/parser/testdata/corpus/sql/parser/custom_prefix_operator.test index 153bab41..f572d07d 100644 --- a/parser/testdata/corpus/sql/parser/custom_prefix_operator.test +++ b/parser/testdata/corpus/sql/parser/custom_prefix_operator.test @@ -1,6 +1,6 @@ # source: test/sql/parser/custom_prefix_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT @5; @@ -15,3 +15,107 @@ SELECT @ -5 + -6; -- ok == +SELECT 1 + @ -5; +-- +ok +== +SELECT 'a' || @ -1; +-- +ok +== +SELECT 2 ^ @ -3; +-- +ok +== +SELECT 3 % @ -2; +-- +ok +== +SELECT 1 + @ @ -5; +-- +ok +== +SELECT 1 + - @ -5; +-- +ok +== +SELECT 1 + @ 5 * 2; +-- +ok +== +SELECT 1 + @ -2 - 1; +-- +ok +== +SELECT 1 * @ 2 + 3; +-- +ok +== +SELECT @ -2 | 1; +-- +ok +== +SELECT @ -2 || 'x'; +-- +ok +== +SELECT @ -5 << 1; +-- +ok +== +SELECT 1 + @ 2 << 1; +-- +ok +== +SELECT @ -2 = 2; +-- +ok +== +SELECT 1 + @ 5 = 11; +-- +ok +== +SELECT 'a' || @ -1 || 'b'; +-- +ok +== +SELECT -@ 5; +-- +ok +== +SELECT 1 + |/ 4; +-- +ok +== +SELECT ~~ 'a'; +-- +error: Parser Error: syntax error at or near "~~" +== +SELECT count(*) FROM range(3); +-- +ok +== +SELECT typeof(-2147483648); +-- +ok +== +SELECT 1 - -1; +-- +ok +== +SET max_expression_depth TO 20; +-- +ok +== +SELECT @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ 1; +-- +ok +== +SELECT @ @ 1; +-- +ok +== +RESET max_expression_depth; +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/deeply_nested_types.test b/parser/testdata/corpus/sql/parser/deeply_nested_types.test index 826777bb..203c6e8d 100644 --- a/parser/testdata/corpus/sql/parser/deeply_nested_types.test +++ b/parser/testdata/corpus/sql/parser/deeply_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/parser/deeply_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_expression_depth=1000; diff --git a/parser/testdata/corpus/sql/parser/digit_separators.test b/parser/testdata/corpus/sql/parser/digit_separators.test index 3edc160d..596d0758 100644 --- a/parser/testdata/corpus/sql/parser/digit_separators.test +++ b/parser/testdata/corpus/sql/parser/digit_separators.test @@ -1,6 +1,6 @@ # source: test/sql/parser/digit_separators.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1_2 diff --git a/parser/testdata/corpus/sql/parser/division_operator_precedence.test b/parser/testdata/corpus/sql/parser/division_operator_precedence.test index 7676b854..e85adb18 100644 --- a/parser/testdata/corpus/sql/parser/division_operator_precedence.test +++ b/parser/testdata/corpus/sql/parser/division_operator_precedence.test @@ -1,6 +1,6 @@ # source: test/sql/parser/division_operator_precedence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 6 * 1 / 2 diff --git a/parser/testdata/corpus/sql/parser/dollar_quotes_internal_issue2224.test b/parser/testdata/corpus/sql/parser/dollar_quotes_internal_issue2224.test index 8805d8e5..c4497f0d 100644 --- a/parser/testdata/corpus/sql/parser/dollar_quotes_internal_issue2224.test +++ b/parser/testdata/corpus/sql/parser/dollar_quotes_internal_issue2224.test @@ -1,6 +1,6 @@ # source: test/sql/parser/dollar_quotes_internal_issue2224.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select $tag$ $tag$ = $tag$ $tag$; diff --git a/parser/testdata/corpus/sql/parser/drop_qualified_names.test b/parser/testdata/corpus/sql/parser/drop_qualified_names.test index 9f2e8d73..cc51d97e 100644 --- a/parser/testdata/corpus/sql/parser/drop_qualified_names.test +++ b/parser/testdata/corpus/sql/parser/drop_qualified_names.test @@ -1,6 +1,6 @@ # source: test/sql/parser/drop_qualified_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO s.tm() AS TABLE SELECT 1 AS x; diff --git a/parser/testdata/corpus/sql/parser/empty_quoted_identifier.test b/parser/testdata/corpus/sql/parser/empty_quoted_identifier.test index 8dd62a4c..9dcedaa5 100644 --- a/parser/testdata/corpus/sql/parser/empty_quoted_identifier.test +++ b/parser/testdata/corpus/sql/parser/empty_quoted_identifier.test @@ -1,6 +1,6 @@ # source: test/sql/parser/empty_quoted_identifier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a.""; diff --git a/parser/testdata/corpus/sql/parser/expression_depth_limit.test b/parser/testdata/corpus/sql/parser/expression_depth_limit.test index 29ba9938..1005709e 100644 --- a/parser/testdata/corpus/sql/parser/expression_depth_limit.test +++ b/parser/testdata/corpus/sql/parser/expression_depth_limit.test @@ -1,6 +1,6 @@ # source: test/sql/parser/expression_depth_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (1+(1+(1+(1+(1+(1+(1+1))))))); diff --git a/parser/testdata/corpus/sql/parser/external_resource_roundtrip.test b/parser/testdata/corpus/sql/parser/external_resource_roundtrip.test index 386f86d8..6d18d878 100644 --- a/parser/testdata/corpus/sql/parser/external_resource_roundtrip.test +++ b/parser/testdata/corpus/sql/parser/external_resource_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/parser/external_resource_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DESTROY EXTERNAL RESOURCE plain_name @@ -47,6 +47,10 @@ CREATE EXTERNAL RESOURCE 'aws:ec2:it''s quacky' AS x -- ok == +CREATE EXTERNAL RESOURCE aws.ec2.quack AS x (SPOT, REGION 'eu-west-1') +-- +ok +== REGISTER EXTERNAL RESOURCE 'aws:ec2:quack' AS x FROM {'id': 'i-123'} -- ok @@ -63,6 +67,22 @@ SHOW EXTERNAL RESOURCES -- ok == +SHOW EXTERNAL RESOURCES WITH TYPE 'aws:ec2:quack' +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE 'aws:ec2:it''s quacky' +-- +ok +== +SHOW EXTERNAL RESOURCES WITH TYPE quack +-- +ok +== +SHOW ALL EXTERNAL RESOURCES WITH TYPE 'aws:ec2:it''s quacky' +-- +ok +== SELECT count(*) FROM duckdb_external_resources() -- ok diff --git a/parser/testdata/corpus/sql/parser/fetch_first.test b/parser/testdata/corpus/sql/parser/fetch_first.test index 744f0316..66d68efd 100644 --- a/parser/testdata/corpus/sql/parser/fetch_first.test +++ b/parser/testdata/corpus/sql/parser/fetch_first.test @@ -1,6 +1,6 @@ # source: test/sql/parser/fetch_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INT); diff --git a/parser/testdata/corpus/sql/parser/from_first.test b/parser/testdata/corpus/sql/parser/from_first.test index 91d1094e..36d02404 100644 --- a/parser/testdata/corpus/sql/parser/from_first.test +++ b/parser/testdata/corpus/sql/parser/from_first.test @@ -1,6 +1,6 @@ # source: test/sql/parser/from_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM integers SELECT i + 1 diff --git a/parser/testdata/corpus/sql/parser/function_chaining.test b/parser/testdata/corpus/sql/parser/function_chaining.test index 5d54fbe3..30a05dd5 100644 --- a/parser/testdata/corpus/sql/parser/function_chaining.test +++ b/parser/testdata/corpus/sql/parser/function_chaining.test @@ -1,6 +1,6 @@ # source: test/sql/parser/function_chaining.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO varchars VALUES ('Hello'), ('World') diff --git a/parser/testdata/corpus/sql/parser/hex_string_literal.test b/parser/testdata/corpus/sql/parser/hex_string_literal.test index c96f0e8b..47d8adaf 100644 --- a/parser/testdata/corpus/sql/parser/hex_string_literal.test +++ b/parser/testdata/corpus/sql/parser/hex_string_literal.test @@ -1,6 +1,6 @@ # source: test/sql/parser/hex_string_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT pg_typeof(X'FF'); diff --git a/parser/testdata/corpus/sql/parser/indirection.test b/parser/testdata/corpus/sql/parser/indirection.test index 7f1bb240..c6cd86d5 100644 --- a/parser/testdata/corpus/sql/parser/indirection.test +++ b/parser/testdata/corpus/sql/parser/indirection.test @@ -1,6 +1,6 @@ # source: test/sql/parser/indirection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select case when true then {'a': 42} end.a; diff --git a/parser/testdata/corpus/sql/parser/invalid_utf8_parser_location.test b/parser/testdata/corpus/sql/parser/invalid_utf8_parser_location.test index e425b787..03627294 100644 --- a/parser/testdata/corpus/sql/parser/invalid_utf8_parser_location.test +++ b/parser/testdata/corpus/sql/parser/invalid_utf8_parser_location.test @@ -1,6 +1,6 @@ # source: test/sql/parser/invalid_utf8_parser_location.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/parser/invisible_spaces.test b/parser/testdata/corpus/sql/parser/invisible_spaces.test index 7e1fc5e6..c7897f93 100644 --- a/parser/testdata/corpus/sql/parser/invisible_spaces.test +++ b/parser/testdata/corpus/sql/parser/invisible_spaces.test @@ -1,6 +1,6 @@ # source: test/sql/parser/invisible_spaces.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT{unicode_space}42; diff --git a/parser/testdata/corpus/sql/parser/is_not_null_cast.test b/parser/testdata/corpus/sql/parser/is_not_null_cast.test index 157d7858..55d622f6 100644 --- a/parser/testdata/corpus/sql/parser/is_not_null_cast.test +++ b/parser/testdata/corpus/sql/parser/is_not_null_cast.test @@ -1,6 +1,6 @@ # source: test/sql/parser/is_not_null_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10 IS NOT NULL::VARCHAR; diff --git a/parser/testdata/corpus/sql/parser/join_alias.test b/parser/testdata/corpus/sql/parser/join_alias.test index 318de14e..84459b2f 100644 --- a/parser/testdata/corpus/sql/parser/join_alias.test +++ b/parser/testdata/corpus/sql/parser/join_alias.test @@ -1,6 +1,6 @@ # source: test/sql/parser/join_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select t.* diff --git a/parser/testdata/corpus/sql/parser/literal_round_trip.test b/parser/testdata/corpus/sql/parser/literal_round_trip.test index 14653d70..28a05e2c 100644 --- a/parser/testdata/corpus/sql/parser/literal_round_trip.test +++ b/parser/testdata/corpus/sql/parser/literal_round_trip.test @@ -1,6 +1,6 @@ # source: test/sql/parser/literal_round_trip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1_000, 1e3, 1.50, -9223372036854775808, -170141183460469231731687303715884105728, X'FF', B'0101', E'a\x41b', $$a'b$$, N'x', 'it''s', DATE '2020-01-01', -(-5), 2 - -5, .5, 170141183460469231731687303715884105728, 123456789012345678901234567890123456789012345678901234567890, TRUE diff --git a/parser/testdata/corpus/sql/parser/negative_integer_literal_types.test b/parser/testdata/corpus/sql/parser/negative_integer_literal_types.test new file mode 100644 index 00000000..0bb1bd58 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/negative_integer_literal_types.test @@ -0,0 +1,53 @@ +# source: test/sql/parser/negative_integer_literal_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT typeof(-2147483648) +-- +ok +== +SELECT -2147483648 * 2 +-- +ok +== +SELECT typeof(-2147483647) +-- +ok +== +SELECT typeof(-2_147_483_648) +-- +ok +== +SELECT typeof(2147483648) +-- +ok +== +SELECT typeof(-9223372036854775808) +-- +ok +== +SELECT typeof(-9223372036854775807) +-- +ok +== +SELECT typeof(-170141183460469231731687303715884105728) +-- +ok +== +SELECT -(2147483648) +-- +ok +== +SELECT typeof(-(2147483648)) +-- +ok +== +SELECT typeof(-(-2147483648)) +-- +ok +== +SELECT typeof(-128) +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/nested_join_backtracking.test b/parser/testdata/corpus/sql/parser/nested_join_backtracking.test index c94bad15..2add265c 100644 --- a/parser/testdata/corpus/sql/parser/nested_join_backtracking.test +++ b/parser/testdata/corpus/sql/parser/nested_join_backtracking.test @@ -1,6 +1,6 @@ # source: test/sql/parser/nested_join_backtracking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(e INTEGER); diff --git a/parser/testdata/corpus/sql/parser/not_comparison_precedence.test b/parser/testdata/corpus/sql/parser/not_comparison_precedence.test index 684a35be..3bc5135f 100644 --- a/parser/testdata/corpus/sql/parser/not_comparison_precedence.test +++ b/parser/testdata/corpus/sql/parser/not_comparison_precedence.test @@ -1,6 +1,6 @@ # source: test/sql/parser/not_comparison_precedence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT false < NOT true IS NULL diff --git a/parser/testdata/corpus/sql/parser/numeric_literal_underscore_trailing_dot.test b/parser/testdata/corpus/sql/parser/numeric_literal_underscore_trailing_dot.test index 593c9919..ea676546 100644 --- a/parser/testdata/corpus/sql/parser/numeric_literal_underscore_trailing_dot.test +++ b/parser/testdata/corpus/sql/parser/numeric_literal_underscore_trailing_dot.test @@ -1,6 +1,6 @@ # source: test/sql/parser/numeric_literal_underscore_trailing_dot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1.2_3.; diff --git a/parser/testdata/corpus/sql/parser/parenthesized_table_ref.test b/parser/testdata/corpus/sql/parser/parenthesized_table_ref.test new file mode 100644 index 00000000..1a0f4c3e --- /dev/null +++ b/parser/testdata/corpus/sql/parser/parenthesized_table_ref.test @@ -0,0 +1,61 @@ +# source: test/sql/parser/parenthesized_table_ref.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (x INTEGER) +-- +ok +== +INSERT INTO t VALUES (7) +-- +ok +== +FROM (CALL query('SELECT 42')) +-- +error: Parser Error: syntax error at or near ")" +== +FROM (PRAGMA version) +-- +error: Parser Error: syntax error at or near ")" +== +FROM (EXECUTE p) +-- +error: Parser Error: syntax error at or near ")" +== +FROM (t) +-- +error: Parser Error: syntax error at or near ")" +== +FROM (range(3)) +-- +error: Parser Error: syntax error at or near ")" +== +FROM (t a CROSS JOIN t b) SELECT a.x + b.x +-- +ok +== +FROM ((t a CROSS JOIN t b)) j SELECT count(*) +-- +ok +== +FROM j: (t a CROSS JOIN t b) SELECT count(*) +-- +ok +== +SELECT count(*) FROM (range(2) a JOIN range(3) b ON a.range = b.range) JOIN range(4) c ON c.range = a.range +-- +ok +== +FROM ((((((((((((((((((((((((((((((t a CROSS JOIN t b)))))))))))))))))))))))))))))) SELECT count(*) +-- +ok +== +FROM ((SELECT 1 x)) SELECT x +-- +ok +== +FROM (VALUES (1)) v(x) SELECT x +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/parsed_data_statement_roundtrip.test b/parser/testdata/corpus/sql/parser/parsed_data_statement_roundtrip.test index 0c003759..13e15985 100644 --- a/parser/testdata/corpus/sql/parser/parsed_data_statement_roundtrip.test +++ b/parser/testdata/corpus/sql/parser/parsed_data_statement_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/parser/parsed_data_statement_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA IF NOT EXISTS parsed_data_options WITH (location='somewhere', format='parquet') @@ -83,6 +83,26 @@ DROP EXTENSION REPOSITORY IF EXISTS parsed_data_repo -- ok == +CREATE OR REPLACE EXTENSION REPOSITORY parsed_data.example +-- +ok +== +CREATE EXTENSION REPOSITORY IF NOT EXISTS "parsed-data.example" +-- +ok +== +CREATE EXTENSION REPOSITORY IF NOT EXISTS parsed-data.example +-- +ok +== +RESET autoload_known_extensions +-- +ok +== +DROP EXTENSION REPOSITORY IF EXISTS "parsed-data.example" +-- +ok +== DROP TABLE IF EXISTS parsed_data_trigger_target -- ok diff --git a/parser/testdata/corpus/sql/parser/parser_rewrites_method_chain.test b/parser/testdata/corpus/sql/parser/parser_rewrites_method_chain.test index 27adc206..f3573861 100644 --- a/parser/testdata/corpus/sql/parser/parser_rewrites_method_chain.test +++ b/parser/testdata/corpus/sql/parser/parser_rewrites_method_chain.test @@ -1,6 +1,6 @@ # source: test/sql/parser/parser_rewrites_method_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (3).ifnull(5); diff --git a/parser/testdata/corpus/sql/parser/position_prepare.test b/parser/testdata/corpus/sql/parser/position_prepare.test index 2b3ede13..e462723e 100644 --- a/parser/testdata/corpus/sql/parser/position_prepare.test +++ b/parser/testdata/corpus/sql/parser/position_prepare.test @@ -1,6 +1,6 @@ # source: test/sql/parser/position_prepare.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT POSITION(? in ?) diff --git a/parser/testdata/corpus/sql/parser/qualified_table_function_reserved_keyword.test b/parser/testdata/corpus/sql/parser/qualified_table_function_reserved_keyword.test new file mode 100644 index 00000000..1b53ff96 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/qualified_table_function_reserved_keyword.test @@ -0,0 +1,50 @@ +# source: test/sql/parser/qualified_table_function_reserved_keyword.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SCHEMA g +-- +ok +== +CREATE MACRO g.describe(x) AS TABLE SELECT x AS v +-- +ok +== +CREATE MACRO g.summarize(x) AS TABLE SELECT x AS v +-- +ok +== +CREATE MACRO g.show(x) AS TABLE SELECT x AS v +-- +ok +== +CREATE MACRO g.pivot(x) AS TABLE SELECT x AS v +-- +ok +== +CREATE MACRO g.unpivot(x) AS TABLE SELECT x AS v +-- +ok +== +FROM g.describe('a') UNION ALL FROM g.summarize('b') UNION ALL FROM g.show('c') UNION ALL FROM g.pivot('d') +UNION ALL FROM g.unpivot('e') ORDER BY ALL +-- +ok +== +ATTACH ':memory:' AS db +-- +ok +== +CREATE SCHEMA db.g +-- +ok +== +CREATE MACRO db.g.describe(x) AS TABLE SELECT x AS v +-- +ok +== +SELECT * FROM db.g.describe('f') +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/qualified_underscore_digit.test b/parser/testdata/corpus/sql/parser/qualified_underscore_digit.test index d8f0e6f4..34c4c500 100644 --- a/parser/testdata/corpus/sql/parser/qualified_underscore_digit.test +++ b/parser/testdata/corpus/sql/parser/qualified_underscore_digit.test @@ -1,6 +1,6 @@ # source: test/sql/parser/qualified_underscore_digit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "_3_schema"; diff --git a/parser/testdata/corpus/sql/parser/reject_accidental_expression_syntax.test b/parser/testdata/corpus/sql/parser/reject_accidental_expression_syntax.test index 6017518f..c0d1dfbb 100644 --- a/parser/testdata/corpus/sql/parser/reject_accidental_expression_syntax.test +++ b/parser/testdata/corpus/sql/parser/reject_accidental_expression_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/parser/reject_accidental_expression_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'a' NOT !~~ 'b'; diff --git a/parser/testdata/corpus/sql/parser/reject_accidental_statement_syntax.test b/parser/testdata/corpus/sql/parser/reject_accidental_statement_syntax.test index 816b9915..9e8f4b26 100644 --- a/parser/testdata/corpus/sql/parser/reject_accidental_statement_syntax.test +++ b/parser/testdata/corpus/sql/parser/reject_accidental_statement_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/parser/reject_accidental_statement_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE PERSISTENT TABLE x (a INTEGER); diff --git a/parser/testdata/corpus/sql/parser/reject_accidental_type_syntax.test b/parser/testdata/corpus/sql/parser/reject_accidental_type_syntax.test index 4375dc3f..5949ba14 100644 --- a/parser/testdata/corpus/sql/parser/reject_accidental_type_syntax.test +++ b/parser/testdata/corpus/sql/parser/reject_accidental_type_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/parser/reject_accidental_type_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '2020-01-01'::TIMESTAMP(3) WITH TIME ZONE; diff --git a/parser/testdata/corpus/sql/parser/reject_unknown_option_values.test b/parser/testdata/corpus/sql/parser/reject_unknown_option_values.test index 22f5946f..d635c98b 100644 --- a/parser/testdata/corpus/sql/parser/reject_unknown_option_values.test +++ b/parser/testdata/corpus/sql/parser/reject_unknown_option_values.test @@ -1,6 +1,6 @@ # source: test/sql/parser/reject_unknown_option_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit VACUUM (foo); diff --git a/parser/testdata/corpus/sql/parser/single_quoted_names.test b/parser/testdata/corpus/sql/parser/single_quoted_names.test index 74a2d3fd..15b85580 100644 --- a/parser/testdata/corpus/sql/parser/single_quoted_names.test +++ b/parser/testdata/corpus/sql/parser/single_quoted_names.test @@ -1,6 +1,6 @@ # source: test/sql/parser/single_quoted_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE 'p' AS SELECT 42; diff --git a/parser/testdata/corpus/sql/parser/star_expression.test b/parser/testdata/corpus/sql/parser/star_expression.test index 539bd69b..5fa6f94a 100644 --- a/parser/testdata/corpus/sql/parser/star_expression.test +++ b/parser/testdata/corpus/sql/parser/star_expression.test @@ -1,6 +1,6 @@ # source: test/sql/parser/star_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE * diff --git a/parser/testdata/corpus/sql/parser/statement_query_text.test b/parser/testdata/corpus/sql/parser/statement_query_text.test new file mode 100644 index 00000000..d55a06a7 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/statement_query_text.test @@ -0,0 +1,26 @@ +# source: test/sql/parser/statement_query_text.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +/* leading */ SELECT current_query(); +-- +ok +== +SELECT current_query() /* trailing */; +-- +ok +== +-- tag +SELECT replace(current_query(), chr(10), '|'); +-- +ok +== +SELECT 'first'; /* between */ SELECT 'second' +-- +ok +== +SELECT '[' || message || ']' FROM duckdb_logs WHERE type = 'QueryLog' AND (message LIKE 'SELECT ''first''%' OR message LIKE ' /* between */%') ORDER BY timestamp; +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/statement_tostring_roundtrip.test b/parser/testdata/corpus/sql/parser/statement_tostring_roundtrip.test index cdfbc046..31789eda 100644 --- a/parser/testdata/corpus/sql/parser/statement_tostring_roundtrip.test +++ b/parser/testdata/corpus/sql/parser/statement_tostring_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/parser/statement_tostring_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "weird name"("odd col" INTEGER, "select" VARCHAR, "He said ""hi""" INTEGER) @@ -135,6 +135,19 @@ INSERT INTO "t chk" VALUES (1, 1) ON CONFLICT DO NOTHING -- ok == +INSERT INTO "t comp" VALUES (1, 1) ON CONFLICT ("a b", "c d") DO NOTHING +-- +ok +== +INSERT INTO "t chk" VALUES (1, 1) ON CONFLICT ("c d") DO UPDATE SET "a b" = excluded."a b" + 1 WHERE "t chk"."a b" > 0 +-- +ok +== +INSERT INTO "weird name"("odder col", "select", "He said ""hi""") VALUES (5, 'x', 6) +ON CONFLICT ("select") DO UPDATE SET "He said ""hi""" = excluded."He said ""hi""" +-- +ok +== UPDATE "weird name" SET "select" = 'z' WHERE "odder col" = 1 -- ok @@ -147,6 +160,10 @@ MERGE INTO "t chk" USING "t chk" AS "src x" ON "t chk"."a b" = "src x"."a b" WHE -- ok == +MERGE INTO "t comp" USING (SELECT 1 AS "a b", 1 AS "c d") AS "src x" USING ("a b", "c d") WHEN MATCHED THEN DELETE +-- +ok +== SELECT ~1 + 2 -- ok diff --git a/parser/testdata/corpus/sql/parser/switch_case.test b/parser/testdata/corpus/sql/parser/switch_case.test index 8a7c79d4..8933ab7f 100644 --- a/parser/testdata/corpus/sql/parser/switch_case.test +++ b/parser/testdata/corpus/sql/parser/switch_case.test @@ -1,6 +1,6 @@ # source: test/sql/parser/switch_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS FROM values(1), (4), (8), (0) i(x); diff --git a/parser/testdata/corpus/sql/parser/switch_null_arguments.test b/parser/testdata/corpus/sql/parser/switch_null_arguments.test index 45adc100..93cb7e8d 100644 --- a/parser/testdata/corpus/sql/parser/switch_null_arguments.test +++ b/parser/testdata/corpus/sql/parser/switch_null_arguments.test @@ -1,6 +1,6 @@ # source: test/sql/parser/switch_null_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT val, switch(val, MAP {1: 'one'}, NULL) FROM null_test ORDER BY val; diff --git a/parser/testdata/corpus/sql/parser/table_at_clause.test b/parser/testdata/corpus/sql/parser/table_at_clause.test index e1444472..3552c96d 100644 --- a/parser/testdata/corpus/sql/parser/table_at_clause.test +++ b/parser/testdata/corpus/sql/parser/table_at_clause.test @@ -1,6 +1,6 @@ # source: test/sql/parser/table_at_clause.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM tbl AT (TIMESTAMP => TIMESTAMP '2020-01-01') diff --git a/parser/testdata/corpus/sql/parser/test_columns.test b/parser/testdata/corpus/sql/parser/test_columns.test index 9d2da084..571c8f3e 100644 --- a/parser/testdata/corpus/sql/parser/test_columns.test +++ b/parser/testdata/corpus/sql/parser/test_columns.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COLUMNS(*) FROM integers diff --git a/parser/testdata/corpus/sql/parser/test_columns_lists.test b/parser/testdata/corpus/sql/parser/test_columns_lists.test index 00c12e3a..80dd8e7c 100644 --- a/parser/testdata/corpus/sql/parser/test_columns_lists.test +++ b/parser/testdata/corpus/sql/parser/test_columns_lists.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns_lists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COLUMNS([x for x in *]) FROM integers diff --git a/parser/testdata/corpus/sql/parser/test_columns_order.test b/parser/testdata/corpus/sql/parser/test_columns_order.test index bfd49e5d..0360edcb 100644 --- a/parser/testdata/corpus/sql/parser/test_columns_order.test +++ b/parser/testdata/corpus/sql/parser/test_columns_order.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(col1 INTEGER, col2 INTEGER, col3 INTEGER); diff --git a/parser/testdata/corpus/sql/parser/test_columns_prepared.test b/parser/testdata/corpus/sql/parser/test_columns_prepared.test index 46c25e45..8b06ac8a 100644 --- a/parser/testdata/corpus/sql/parser/test_columns_prepared.test +++ b/parser/testdata/corpus/sql/parser/test_columns_prepared.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns_prepared.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table my_table as diff --git a/parser/testdata/corpus/sql/parser/test_columns_unpacked.test b/parser/testdata/corpus/sql/parser/test_columns_unpacked.test index b68d76e5..400ff06d 100644 --- a/parser/testdata/corpus/sql/parser/test_columns_unpacked.test +++ b/parser/testdata/corpus/sql/parser/test_columns_unpacked.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns_unpacked.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select COALESCE(*COLUMNS(*)) from (select NULL, 2, 3) t(a, b, c); diff --git a/parser/testdata/corpus/sql/parser/test_columns_where.test b/parser/testdata/corpus/sql/parser/test_columns_where.test index 0f12654f..9ddca3a4 100644 --- a/parser/testdata/corpus/sql/parser/test_columns_where.test +++ b/parser/testdata/corpus/sql/parser/test_columns_where.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_columns_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM tbl WHERE COLUMNS(*) >= 2 ORDER BY ALL diff --git a/parser/testdata/corpus/sql/parser/test_deep_expression_chains.test b/parser/testdata/corpus/sql/parser/test_deep_expression_chains.test index 9429241c..6023dbe4 100644 --- a/parser/testdata/corpus/sql/parser/test_deep_expression_chains.test +++ b/parser/testdata/corpus/sql/parser/test_deep_expression_chains.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_deep_expression_chains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM query('SELECT 1' || repeat('::INTEGER', 150)) diff --git a/parser/testdata/corpus/sql/parser/test_deep_expression_nesting.test b/parser/testdata/corpus/sql/parser/test_deep_expression_nesting.test index a52dae05..9d62ab9b 100644 --- a/parser/testdata/corpus/sql/parser/test_deep_expression_nesting.test +++ b/parser/testdata/corpus/sql/parser/test_deep_expression_nesting.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_deep_expression_nesting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] diff --git a/parser/testdata/corpus/sql/parser/test_long_error.test b/parser/testdata/corpus/sql/parser/test_long_error.test index 8299cf69..2e9cd6f3 100644 --- a/parser/testdata/corpus/sql/parser/test_long_error.test +++ b/parser/testdata/corpus/sql/parser/test_long_error.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_long_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx diff --git a/parser/testdata/corpus/sql/parser/test_many_or.test b/parser/testdata/corpus/sql/parser/test_many_or.test index aea49d2c..3967892d 100644 --- a/parser/testdata/corpus/sql/parser/test_many_or.test +++ b/parser/testdata/corpus/sql/parser/test_many_or.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_many_or.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_expression_depth=10 diff --git a/parser/testdata/corpus/sql/parser/test_nested_subquery_depth.test b/parser/testdata/corpus/sql/parser/test_nested_subquery_depth.test new file mode 100644 index 00000000..b7149df2 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/test_nested_subquery_depth.test @@ -0,0 +1,21 @@ +# source: test/sql/parser/test_nested_subquery_depth.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET max_expression_depth=10; +-- +ok +== +SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT 1 AS x))))))))))) t; +-- +ok +== +SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT 1 AS x))))); +-- +ok +== +SELECT * FROM (SELECT * FROM (SELECT x FROM (SELECT 1 AS x) t1) t2) t3 JOIN LATERAL (SELECT x + 1 AS y) t4 ON true; +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/test_operator_precedence.test b/parser/testdata/corpus/sql/parser/test_operator_precedence.test index c2a482b0..c1d852d5 100644 --- a/parser/testdata/corpus/sql/parser/test_operator_precedence.test +++ b/parser/testdata/corpus/sql/parser/test_operator_precedence.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_operator_precedence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 2*3+1 diff --git a/parser/testdata/corpus/sql/parser/test_value_functions.test b/parser/testdata/corpus/sql/parser/test_value_functions.test index b5893d57..710f37f9 100644 --- a/parser/testdata/corpus/sql/parser/test_value_functions.test +++ b/parser/testdata/corpus/sql/parser/test_value_functions.test @@ -1,6 +1,6 @@ # source: test/sql/parser/test_value_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT user FROM (VALUES ('hello world')) t(user) diff --git a/parser/testdata/corpus/sql/parser/tostring_load_export_quoting.test b/parser/testdata/corpus/sql/parser/tostring_load_export_quoting.test new file mode 100644 index 00000000..bd61ca68 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/tostring_load_export_quoting.test @@ -0,0 +1,25 @@ +# source: test/sql/parser/tostring_load_export_quoting.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +LOAD 'it''s'; +-- +ok +== +EXPORT DATABASE "my db" TO '__TEST_DIR__/tostring_export'; +-- +ok +== +CREATE TABLE "my db".tbl AS SELECT 42 i; +-- +ok +== +EXPORT DATABASE "my db" TO '__TEST_DIR__/tostring_export_ok'; +-- +ok +== +EXPORT DATABASE "my db" TO '__TEST_DIR__/tostring''s_export'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/parser/trailing_commas.test b/parser/testdata/corpus/sql/parser/trailing_commas.test index 73c06b39..65d81980 100644 --- a/parser/testdata/corpus/sql/parser/trailing_commas.test +++ b/parser/testdata/corpus/sql/parser/trailing_commas.test @@ -1,6 +1,6 @@ # source: test/sql/parser/trailing_commas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42, diff --git a/parser/testdata/corpus/sql/parser/unicode_whitespace_error_position.test b/parser/testdata/corpus/sql/parser/unicode_whitespace_error_position.test new file mode 100644 index 00000000..ed47ff35 --- /dev/null +++ b/parser/testdata/corpus/sql/parser/unicode_whitespace_error_position.test @@ -0,0 +1,69 @@ +# source: test/sql/parser/unicode_whitespace_error_position.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +/* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS /* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +/* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS /* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +/* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS /* é */ SELECT ); +-- +error: Parser Error: syntax error at or near ")" +== +SELECT  ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS SELECT  ); +-- +error: Parser Error: syntax error at or near ")" +== +/* é */ SELECT  ); +-- +error: Parser Error: syntax error at or near ")" +== +PREPARE p AS /* é */ SELECT  ); +-- +error: Parser Error: syntax error at or near ")" +== diff --git a/parser/testdata/corpus/sql/parser/unquoted_underscore_digit_identifiers.test b/parser/testdata/corpus/sql/parser/unquoted_underscore_digit_identifiers.test index 2f22647f..ab568005 100644 --- a/parser/testdata/corpus/sql/parser/unquoted_underscore_digit_identifiers.test +++ b/parser/testdata/corpus/sql/parser/unquoted_underscore_digit_identifiers.test @@ -1,6 +1,6 @@ # source: test/sql/parser/unquoted_underscore_digit_identifiers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE _1099_vendors (id INTEGER, _1099_amount DECIMAL(10,2)); diff --git a/parser/testdata/corpus/sql/parser/unreserved_keyword_casing.test b/parser/testdata/corpus/sql/parser/unreserved_keyword_casing.test index d84399b1..4e6c9139 100644 --- a/parser/testdata/corpus/sql/parser/unreserved_keyword_casing.test +++ b/parser/testdata/corpus/sql/parser/unreserved_keyword_casing.test @@ -1,6 +1,6 @@ # source: test/sql/parser/unreserved_keyword_casing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE people(Name VARCHAR, STATE VARCHAR, Country VARCHAR); diff --git a/parser/testdata/corpus/sql/parser/values_list_error.test b/parser/testdata/corpus/sql/parser/values_list_error.test index f170fbf8..cf77233e 100644 --- a/parser/testdata/corpus/sql/parser/values_list_error.test +++ b/parser/testdata/corpus/sql/parser/values_list_error.test @@ -1,6 +1,6 @@ # source: test/sql/parser/values_list_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (VALUES ('1', '2'), ('1')) diff --git a/parser/testdata/corpus/sql/parser/values_list_without_brackets.test b/parser/testdata/corpus/sql/parser/values_list_without_brackets.test index 97037e1f..e31b93cc 100644 --- a/parser/testdata/corpus/sql/parser/values_list_without_brackets.test +++ b/parser/testdata/corpus/sql/parser/values_list_without_brackets.test @@ -1,6 +1,6 @@ # source: test/sql/parser/values_list_without_brackets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM values (42) t; diff --git a/parser/testdata/corpus/sql/parser/wide_type_definitions.test b/parser/testdata/corpus/sql/parser/wide_type_definitions.test index 190bccca..f98110c7 100644 --- a/parser/testdata/corpus/sql/parser/wide_type_definitions.test +++ b/parser/testdata/corpus/sql/parser/wide_type_definitions.test @@ -1,6 +1,6 @@ # source: test/sql/parser/wide_type_definitions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE wide_struct_sql = ( @@ -12,7 +12,7 @@ ok == FROM query(getvariable('wide_struct_sql')); -- -error: Parser Error: syntax error at or near "NULL" +ok == SET VARIABLE many_structs_sql = ( SELECT 'SELECT ' || string_agg('NULL::STRUCT(a INTEGER) AS c' || i, ',') @@ -23,7 +23,7 @@ ok == SELECT count(*) FROM query(getvariable('many_structs_sql')); -- -error: Parser Error: syntax error at or near "NULL" +ok == SET VARIABLE many_maps_sql = ( SELECT 'SELECT ' || string_agg('NULL::MAP(INTEGER, INTEGER) AS c' || i, ',') @@ -34,7 +34,7 @@ ok == CREATE TABLE wide_maps AS FROM query(getvariable('many_maps_sql')); -- -error: Parser Error: syntax error at or near "NULL" +ok == SELECT count(*) FROM wide_maps -- diff --git a/parser/testdata/corpus/sql/peg_parser/binary_type.test b/parser/testdata/corpus/sql/peg_parser/binary_type.test index f20aed73..3dac9472 100644 --- a/parser/testdata/corpus/sql/peg_parser/binary_type.test +++ b/parser/testdata/corpus/sql/peg_parser/binary_type.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/binary_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(b binary, c blob, d varbinary); diff --git a/parser/testdata/corpus/sql/peg_parser/deep_nesting.test b/parser/testdata/corpus/sql/peg_parser/deep_nesting.test index db15cb8f..668ce6d1 100644 --- a/parser/testdata/corpus/sql/peg_parser/deep_nesting.test +++ b/parser/testdata/corpus/sql/peg_parser/deep_nesting.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/deep_nesting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_expression_depth=1000000; diff --git a/parser/testdata/corpus/sql/peg_parser/enable_peg_parser.test b/parser/testdata/corpus/sql/peg_parser/enable_peg_parser.test index e02b8422..d7d7b78b 100644 --- a/parser/testdata/corpus/sql/peg_parser/enable_peg_parser.test +++ b/parser/testdata/corpus/sql/peg_parser/enable_peg_parser.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/enable_peg_parser.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select xvariable a = 1; diff --git a/parser/testdata/corpus/sql/peg_parser/escape_string.test b/parser/testdata/corpus/sql/peg_parser/escape_string.test index ff506257..4d7605e0 100644 --- a/parser/testdata/corpus/sql/peg_parser/escape_string.test +++ b/parser/testdata/corpus/sql/peg_parser/escape_string.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/escape_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT E'it\'s a test' = 'it''s a test'; diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0000.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0000.test index de9f2401..88816d5f 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0000.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0000.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0000.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DETACH IF EXISTS my_table; diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0002.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0002.test index 28c7a191..d76a8d6c 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0002.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0002.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0002.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ANALYZE VERBOSE diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0004.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0004.test index 97f41d2e..3b28d8a4 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0004.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0004.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0004.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP MATERIALIZED VIEW IF EXISTS t diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0007.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0007.test index f9c0cd69..79f0cceb 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0007.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0007.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0007.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN ( entry ) RESET SESSION item diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0009.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0009.test index 8d0f6ae7..b7e8d244 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0009.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0009.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0009.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE SEQUENCE t1 NO MINVALUE diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0014.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0014.test index 02cbb6d7..a6bb4295 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0014.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0014.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0014.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN RESET LOCAL result diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0020.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0020.test index c4cffd5d..5a5170c8 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0020.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0020.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0020.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE y AS DEALLOCATE PREPARE result diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0039.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0039.test index 81f3e7eb..db6c610f 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0039.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0039.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0039.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t(i bigint); diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0060.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0060.test index b81f3790..72ff9c43 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0060.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/diverge_0060.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/diverge_0060.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t(i bigint);create table t1(i bigint); diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test index 4ae4ee5b..f1e390ea 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/fuzzer_4434.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit n''''+ST�&6>ttacrotablesampimportleT�&6>tta�rordeT�Niqeger[], e�tfilter% diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0001.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0001.test index 1f5f0731..4c278aa8 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0001.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0001.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/internal_0001.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SECRET ( x '\r' ); diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0206.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0206.test index 3a2fe81e..e443b3af 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0206.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0206.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/internal_0206.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP COLLATION a diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0208.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0208.test index 26629e06..903610da 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0208.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0208.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/internal_0208.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSTALL 'CWQqtzCCq9' FROM ''''' 'bj7OGvEqL' diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0227.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0227.test index 6d5cc552..a6a46cbb 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0227.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/internal_0227.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/internal_0227.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table mytbl(i bigint); diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0074.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0074.test index 95d6c0f6..1d1f176e 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0074.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0074.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/new_parser_failure_0074.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_agg(col0) WITHIN GROUP (ORDER BY col0) OVER () FROM (VALUES (2), (1), (3)) t(col0) LIMIT 1 diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0076.test b/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0076.test index de6a366f..5e88dde7 100644 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0076.test +++ b/parser/testdata/corpus/sql/peg_parser/fuzzer/new_parser_failure_0076.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/fuzzer/new_parser_failure_0076.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 IN (1, 2) IN (TRUE, FALSE); diff --git a/parser/testdata/corpus/sql/peg_parser/identifier.test b/parser/testdata/corpus/sql/peg_parser/identifier.test index 87cd6099..d79252a3 100644 --- a/parser/testdata/corpus/sql/peg_parser/identifier.test +++ b/parser/testdata/corpus/sql/peg_parser/identifier.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/identifier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 a; diff --git a/parser/testdata/corpus/sql/peg_parser/parser/alter.test b/parser/testdata/corpus/sql/peg_parser/parser/alter.test index 6257694a..c34138a8 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/alter.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/alter.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/alter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$ALTER TABLE tbl SET SORTED BY (i DESC NULLS FIRST)$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/analyze_vacuum.test b/parser/testdata/corpus/sql/peg_parser/parser/analyze_vacuum.test index ac0aab2a..84662b14 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/analyze_vacuum.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/analyze_vacuum.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/analyze_vacuum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$ANALYZE;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/array_subquery.test b/parser/testdata/corpus/sql/peg_parser/parser/array_subquery.test index 09c37630..ef61f392 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/array_subquery.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/array_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/array_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT i, ARRAY( SELECT 42 ) top FROM integers i1 ORDER BY i$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/attach_or_replace.test b/parser/testdata/corpus/sql/peg_parser/parser/attach_or_replace.test index f4c9c3e6..565a1a54 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/attach_or_replace.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/attach_or_replace.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/attach_or_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$ATTACH OR REPLACE '{TEST_DIR}/attach_or_replace.db' AS db1;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/collate.test b/parser/testdata/corpus/sql/peg_parser/parser/collate.test index 044d5096..4bac3eae 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/collate.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/collate.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select left(b collate de, 6) from tbl order by all;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/colon_alias.test b/parser/testdata/corpus/sql/peg_parser/parser/colon_alias.test index 704b03d0..b3a590a3 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/colon_alias.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/colon_alias.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/colon_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT * FROM b : a$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/comments.test b/parser/testdata/corpus/sql/peg_parser/parser/comments.test index ec7a3c90..bc94d666 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/comments.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/comments.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/comments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 /* I /* love */ comments */ + 2; diff --git a/parser/testdata/corpus/sql/peg_parser/parser/copy_expression.test b/parser/testdata/corpus/sql/peg_parser/parser/copy_expression.test index d8423d7d..0ed92235 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/copy_expression.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/copy_expression.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/copy_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$COPY (SELECT * FROM foo) TO ('foo') WITH (HEADER)$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/copy_file_name.test b/parser/testdata/corpus/sql/peg_parser/parser/copy_file_name.test index 8f196e3b..aecefb0a 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/copy_file_name.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/copy_file_name.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/copy_file_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE copy_file_name(a INTEGER); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/create_macro.test b/parser/testdata/corpus/sql/peg_parser/parser/create_macro.test index aefbf495..06cd1c98 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/create_macro.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/create_macro.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/create_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$create macro my_range(x) as table from range(x);$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/create_table.test b/parser/testdata/corpus/sql/peg_parser/parser/create_table.test index 746d44ea..0f44a1dd 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/create_table.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/create_table.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/create_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE TABLE test (bar GENERATED ALWAYS AS (1));$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/create_type.test b/parser/testdata/corpus/sql/peg_parser/parser/create_type.test index a4c84130..04efccb5 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/create_type.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/create_type.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/create_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE TYPE t4 AS UNION ( v0 SETOF t4 );$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/custom_operator.test b/parser/testdata/corpus/sql/peg_parser/parser/custom_operator.test index 3566aa08..1a36fcff 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/custom_operator.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/custom_operator.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/custom_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT i FROM tbl WHERE i >>= '127.0.0.1/8';$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/delete_from.test b/parser/testdata/corpus/sql/peg_parser/parser/delete_from.test index 6306dc1b..faa89179 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/delete_from.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/delete_from.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/delete_from.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$DELETE FROM integers i1 WHERE i>(SELECT MAX(i) FROM integers WHERE i1.i<>i)$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/dollar_quoted.test b/parser/testdata/corpus/sql/peg_parser/parser/dollar_quoted.test index efa9ae7d..a611ca16 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/dollar_quoted.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/dollar_quoted.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/dollar_quoted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$set variable time_travel_snapshot_id = $$foo$$$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/dotted_functions.test b/parser/testdata/corpus/sql/peg_parser/parser/dotted_functions.test index 618561ce..c8510eea 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/dotted_functions.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/dotted_functions.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/dotted_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select trim('a')$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/empty_map.test b/parser/testdata/corpus/sql/peg_parser/parser/empty_map.test index 778f4c73..70656577 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/empty_map.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/empty_map.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/empty_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT MAP {};$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/ignore_nulls.test b/parser/testdata/corpus/sql/peg_parser/parser/ignore_nulls.test index 8d3019c6..359db5a1 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/ignore_nulls.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/ignore_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/ignore_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$explain select first_value(i IGNORE NULLS) over () from integers$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/index.test b/parser/testdata/corpus/sql/peg_parser/parser/index.test index 05733bc6..d35ba571 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/index.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/index.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$create unique index part_comp_key_index on insertconflicttest(key, fruit) where 1;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/insert.test b/parser/testdata/corpus/sql/peg_parser/parser/insert.test index 2ef0c326..e5b913dd 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/insert.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/insert.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT TRUE OFFSET 1 ROWS;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/insert_statement.test b/parser/testdata/corpus/sql/peg_parser/parser/insert_statement.test index 0c5422f6..2efbc0a6 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/insert_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/insert_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/insert_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$INSERT INTO v0 BY POSITION ( SELECT TRUE ) OFFSET 1 ROWS RETURNING v0 . * EXCLUDE c1 ;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/invisible_space.test b/parser/testdata/corpus/sql/peg_parser/parser/invisible_space.test index 6e248070..f66bfe1f 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/invisible_space.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/invisible_space.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/invisible_space.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$ $TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/lambda_functions.test b/parser/testdata/corpus/sql/peg_parser/parser/lambda_functions.test index 1b539e43..b02edb08 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/lambda_functions.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/lambda_functions.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/lambda_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select histogram(g) from hist_data group by g%2==0 ORDER BY g%2==0$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/list_slices.test b/parser/testdata/corpus/sql/peg_parser/parser/list_slices.test index a9c227fb..588148b5 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/list_slices.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/list_slices.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/list_slices.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT ([1,2,3])[1:-1:1];$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/load_extension.test b/parser/testdata/corpus/sql/peg_parser/parser/load_extension.test index 64a8746a..026f5259 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/load_extension.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/load_extension.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/load_extension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$INSTALL tpch;$TEST_PEG_PARSER$); @@ -71,6 +71,38 @@ CALL check_peg_parser($TEST_PEG_PARSER$CREATE EXTENSION REPOSITORY acme WITH PRE -- ok == +CALL check_peg_parser($TEST_PEG_PARSER$CREATE EXTENSION REPOSITORY acme.example.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$CREATE OR REPLACE EXTENSION REPOSITORY IF NOT EXISTS 'acme.example.com';$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$DROP EXTENSION REPOSITORY acme.example.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$INSTALL AND LOAD x FROM acme.example.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$LOAD x FROM acme.example.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$CREATE EXTENSION REPOSITORY my-website.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$INSTALL x FROM my-website.com;$TEST_PEG_PARSER$); +-- +ok +== +CALL check_peg_parser($TEST_PEG_PARSER$DROP EXTENSION REPOSITORY IF EXISTS my-website.com;$TEST_PEG_PARSER$); +-- +ok +== CALL check_peg_parser($TEST_PEG_PARSER$CREATE EXTENSION REPOSITORY acme PREFIX 'http://acme.com' PUBLIC KEY 'mykey';$TEST_PEG_PARSER$); -- ok diff --git a/parser/testdata/corpus/sql/peg_parser/parser/map.test b/parser/testdata/corpus/sql/peg_parser/parser/map.test index da79a496..7063389a 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/map.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/map.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$INSERT INTO test VALUES (MAP {ROW(3,3): ROW(1, 1)}), (MAP {ROW(4,4): ROW(2, 2)})$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/merge_into.test b/parser/testdata/corpus/sql/peg_parser/parser/merge_into.test index 5c888c02..4ed46f7b 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/merge_into.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/merge_into.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/merge_into.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$WITH initial_stocks(item_id, balance) AS (VALUES (10, 2200), (20, 1900)) MERGE INTO Stock USING initial_stocks ON FALSE WHEN MATCHED THEN DO NOTHING WHEN NOT MATCHED THEN INSERT VALUES (initial_stocks.item_id, initial_stocks.balance) RETURNING merge_action, *$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/named_parameters.test b/parser/testdata/corpus/sql/peg_parser/parser/named_parameters.test index 84f44002..cc14bdaf 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/named_parameters.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/named_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/named_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT * FROM read_csv('file.csv', columns := {'a': 'INTEGER'})$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/nested_join.test b/parser/testdata/corpus/sql/peg_parser/parser/nested_join.test index 42e37b62..23620da8 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/nested_join.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/nested_join.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/nested_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$from tenk1 join tenk1 join int8_tbl on 1 = 1 on 1 = 1;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/on_conflict.test b/parser/testdata/corpus/sql/peg_parser/parser/on_conflict.test index bd07a4fd..2a36a9ea 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/on_conflict.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/on_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/on_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$INSERT INTO tbl_comp VALUES (2, 'hello', 1, 'world') ON CONFLICT (c, b) DO UPDATE SET a = excluded.a, d = excluded.d;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/pivot_statement.test b/parser/testdata/corpus/sql/peg_parser/parser/pivot_statement.test index cc4d764d..338028f2 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/pivot_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/pivot_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/pivot_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT * FROM oncall UNPIVOT ((name) FOR precedence IN ((name1), (name2)));$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/position.test b/parser/testdata/corpus/sql/peg_parser/parser/position.test index 53da56f8..4c6bfb91 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/position.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/position.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT POSITION('a' || 'b' IN 'xab')$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/recursive.test b/parser/testdata/corpus/sql/peg_parser/parser/recursive.test index cee8f3e4..46668a66 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/recursive.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/recursive.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/recursive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE RECURSIVE VIEW nums (n) AS VALUES (1) UNION ALL SELECT n+1;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/sample.test b/parser/testdata/corpus/sql/peg_parser/parser/sample.test index b020dc23..c043cf06 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/sample.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/sample.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select count(*)$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/scientific_notation.test b/parser/testdata/corpus/sql/peg_parser/parser/scientific_notation.test index 04debc3c..ed168002 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/scientific_notation.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/scientific_notation.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/scientific_notation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select +1234.56789e-1$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/select_star.test b/parser/testdata/corpus/sql/peg_parser/parser/select_star.test index bac0abf6..5364ed31 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/select_star.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/select_star.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/select_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT integers.* EXCLUDE ('i')$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/show_table.test b/parser/testdata/corpus/sql/peg_parser/parser/show_table.test index 4fea5e90..e0e3bb18 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/show_table.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/show_table.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/show_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SHOW TABLES FROM db.main$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/struct_identifier.test b/parser/testdata/corpus/sql/peg_parser/parser/struct_identifier.test index 7576bebd..9af4344a 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/struct_identifier.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/struct_identifier.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/struct_identifier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$ALTER TABLE test ADD COLUMN s.i INTEGER$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/support_optional_not_null_constraint.test b/parser/testdata/corpus/sql/peg_parser/parser/support_optional_not_null_constraint.test index c09a035d..bfb8daad 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/support_optional_not_null_constraint.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/support_optional_not_null_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/support_optional_not_null_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE TABLE tag_8764 ( key VARCHAR(65535) NOT NULL, name VARCHAR(65535) NULL, value VARCHAR(65535) NOT NULL, PRIMARY KEY (key, name) );$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/support_try.test b/parser/testdata/corpus/sql/peg_parser/parser/support_try.test index 1345b602..65d240ed 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/support_try.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/support_try.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/support_try.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$select TRY(~CAST('abc' as INTEGER))$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/support_unreserved_keywords.test b/parser/testdata/corpus/sql/peg_parser/parser/support_unreserved_keywords.test index 941af49e..79c8cdfe 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/support_unreserved_keywords.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/support_unreserved_keywords.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/support_unreserved_keywords.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE OR REPLACE TABLE 'everflow_daily' AS SELECT *$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/type.test b/parser/testdata/corpus/sql/peg_parser/parser/type.test index b37fe123..cfa58402 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/type.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/type.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$CREATE TYPE type_int AS ENUM (SELECT 1);$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/update_statement.test b/parser/testdata/corpus/sql/peg_parser/parser/update_statement.test index ab907dbf..c5dcaf2f 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/update_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/update_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/update_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$UPDATE temp.a SET i = 44$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/use_statement.test b/parser/testdata/corpus/sql/peg_parser/parser/use_statement.test index 53ed6b85..bbe4aef4 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/use_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/use_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/use_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$use my_datalake.default;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/window_function.test b/parser/testdata/corpus/sql/peg_parser/parser/window_function.test index 5cb4f2ca..b3c2701f 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/window_function.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/window_function.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/window_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$explain select first_value(i IGNORE NULLS) over () from integers;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/parser/with_ordinality.test b/parser/testdata/corpus/sql/peg_parser/parser/with_ordinality.test index a8d727cf..0ad843d8 100644 --- a/parser/testdata/corpus/sql/peg_parser/parser/with_ordinality.test +++ b/parser/testdata/corpus/sql/peg_parser/parser/with_ordinality.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/parser/with_ordinality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$FROM foo() WITH ORDINALITY AS _(ordinality);$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/peg_syntax_error.test b/parser/testdata/corpus/sql/peg_parser/peg_syntax_error.test index 6d66337a..52c794dc 100644 --- a/parser/testdata/corpus/sql/peg_parser/peg_syntax_error.test +++ b/parser/testdata/corpus/sql/peg_parser/peg_syntax_error.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/peg_syntax_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (1 + (2 * 3) @@ -49,7 +49,7 @@ error: Parser Error: syntax error at or near "," == SELECT users..id FROM users; -- -error: Parser Error: syntax error at or near ".." +error: Parser Error: syntax error at or near "." == SELECT * FROM tbl WHERE x = (SELECT 1 FROM (SELECT 2) -- diff --git a/parser/testdata/corpus/sql/peg_parser/qualified_operator.test b/parser/testdata/corpus/sql/peg_parser/qualified_operator.test index 03831eb3..a0ec518e 100644 --- a/parser/testdata/corpus/sql/peg_parser/qualified_operator.test +++ b/parser/testdata/corpus/sql/peg_parser/qualified_operator.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/qualified_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1 OPERATOR(main.+) 2; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/alter_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/alter_statement.test index 06257977..66b5d25b 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/alter_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/alter_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/alter_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test3(s integer); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/attach_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/attach_statement.test index 6f8d184f..760c934e 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/attach_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/attach_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/attach_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE db_type='DUCKDB'; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/between_asymmetric.test b/parser/testdata/corpus/sql/peg_parser/transformer/between_asymmetric.test index 446e3a55..300f79cd 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/between_asymmetric.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/between_asymmetric.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/between_asymmetric.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 5 BETWEEN ASYMMETRIC 1 AND 10; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/call_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/call_statement.test index 04e5a8f8..a551aa2e 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/call_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/call_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/call_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging(['FileSystem'], storage='file', storage_config={'path': '{TEST_DIR}/logging_csv_log.csv', 'normalize': false}); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/delete_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/delete_statement.test index 483be189..c5560a73 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/delete_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/delete_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/delete_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers (i bigint); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/drop_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/drop_statement.test index 641fe142..523b2218 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/drop_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/drop_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/drop_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP MACRO plus1; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/is_predicate_operators.test b/parser/testdata/corpus/sql/peg_parser/transformer/is_predicate_operators.test index 36cddb9e..1216b9b9 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/is_predicate_operators.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/is_predicate_operators.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/is_predicate_operators.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 IS NULL = FALSE; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/load_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/load_statement.test index 85974eb3..e618b4ba 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/load_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/load_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/load_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set extension_directory='{TEST_DIR}/install_extension' diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/peg_transformer.test b/parser/testdata/corpus/sql/peg_parser/transformer/peg_transformer.test index 3b14d7ca..b19bb3ab 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/peg_transformer.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/peg_transformer.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/peg_transformer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 1; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/set_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/set_statement.test index 0b354c0a..6cd21a5a 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/set_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/set_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/set_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set VARIABLE dataset_size = 122880; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/special_string.test b/parser/testdata/corpus/sql/peg_parser/transformer/special_string.test index a84d8513..f2778f45 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/special_string.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/special_string.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/special_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select B'1010'; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/statement_length.test b/parser/testdata/corpus/sql/peg_parser/transformer/statement_length.test index 74901fc2..37994862 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/statement_length.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/statement_length.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/statement_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allow_parser_override_extension = strict; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/transaction_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/transaction_statement.test index 11b56ddc..4dad7d51 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/transaction_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/transaction_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/transaction_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit BEGIN TRANSACTION READ ONLY; diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/trim.test b/parser/testdata/corpus/sql/peg_parser/transformer/trim.test index 808edb59..ccf8d3ed 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/trim.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/trim.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/trim.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRIM(TRAILING FROM 'hello'); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/unary_expression.test b/parser/testdata/corpus/sql/peg_parser/transformer/unary_expression.test index f3f90702..bf5077f5 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/unary_expression.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/unary_expression.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/unary_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$SELECT - + 16;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/update_extensions.test b/parser/testdata/corpus/sql/peg_parser/transformer/update_extensions.test index e294b71f..ba7dbf14 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/update_extensions.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/update_extensions.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/update_extensions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL check_peg_parser($TEST_PEG_PARSER$UPDATE EXTENSIONS;$TEST_PEG_PARSER$); diff --git a/parser/testdata/corpus/sql/peg_parser/transformer/use_statement.test b/parser/testdata/corpus/sql/peg_parser/transformer/use_statement.test index 99a0e649..e79689f3 100644 --- a/parser/testdata/corpus/sql/peg_parser/transformer/use_statement.test +++ b/parser/testdata/corpus/sql/peg_parser/transformer/use_statement.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/transformer/use_statement.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS trampoline_use_catalog @@ -53,5 +53,5 @@ ok == USE main.main.extra -- -error: Parser Error: Expected "USE database" or "USE database.schema" +ok == diff --git a/parser/testdata/corpus/sql/peg_parser/unterminated_literals.test b/parser/testdata/corpus/sql/peg_parser/unterminated_literals.test index 42d36360..c6224c16 100644 --- a/parser/testdata/corpus/sql/peg_parser/unterminated_literals.test +++ b/parser/testdata/corpus/sql/peg_parser/unterminated_literals.test @@ -1,6 +1,6 @@ # source: test/sql/peg_parser/unterminated_literals.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'hello diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_attribute.test b/parser/testdata/corpus/sql/pg_catalog/pg_attribute.test index 41286466..7b9c0422 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_attribute.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_attribute.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_attribute.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_attribute @@ -15,3 +15,44 @@ select relname, attname, attnum from pg_attribute join pg_class on (pg_attribute -- ok == +CREATE TABLE typed ( + v VARCHAR, i INTEGER, d DOUBLE, n DECIMAL(10, 2), tm TIME, ts TIMESTAMP_S, tn TIMESTAMP_NS, l DATE[] +); +-- +ok +== +SELECT a.attname, a.atttypid, t.typname, format_type(a.atttypid, a.atttypmod) +FROM pg_attribute a JOIN pg_class c ON c.oid = a.attrelid LEFT JOIN pg_type t ON t.oid = a.atttypid +WHERE c.relname = 'typed' AND a.attnum <= 5 +ORDER BY a.attnum; +-- +ok +== +SELECT a.attname, a.atttypid BETWEEN 16384 AND 19999, t.typname, format_type(a.atttypid, a.atttypmod) +FROM pg_attribute a JOIN pg_class c ON c.oid = a.attrelid LEFT JOIN pg_type t ON t.oid = a.atttypid +WHERE c.relname = 'typed' AND a.attnum > 5 +ORDER BY a.attnum; +-- +ok +== +CREATE TYPE mood AS ENUM ('sad', 'happy'); +-- +ok +== +SELECT format_type(oid, -1) FROM pg_type WHERE typname = 'mood'; +-- +ok +== +CREATE TYPE s.int AS VARCHAR; +-- +ok +== +SELECT count(*), min(typname) FROM pg_type WHERE oid = 23; +-- +ok +== +SELECT t.typname FROM pg_attribute a JOIN pg_class c ON c.oid = a.attrelid JOIN pg_type t ON t.oid = a.atttypid +WHERE c.relname = 'typed' AND a.attname = 'i'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_constraint.test b/parser/testdata/corpus/sql/pg_catalog/pg_constraint.test index ace83ee6..9367c7b3 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_constraint.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_constraint diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_database.test b/parser/testdata/corpus/sql/pg_catalog/pg_database.test index b3f20c82..ff3c7ef9 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_database.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_database.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_database diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_depend.test b/parser/testdata/corpus/sql/pg_catalog/pg_depend.test index 6d471932..adce10a6 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_depend.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_depend.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_depend.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_depend ORDER BY ALL diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_enum.test b/parser/testdata/corpus/sql/pg_catalog/pg_enum.test index 06c75cd0..1354d622 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_enum.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_enum.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_enum diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_index.test b/parser/testdata/corpus/sql/pg_catalog/pg_index.test index 5f4855c5..d8a4160e 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_index.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_index.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER, k INTEGER) diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_namespace.test b/parser/testdata/corpus/sql/pg_catalog/pg_namespace.test index 40ff0bcb..d6d37a58 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_namespace.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_namespace.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_namespace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM pg_namespace WHERE nspname='myschema' diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_prepared_statements.test b/parser/testdata/corpus/sql/pg_catalog/pg_prepared_statements.test index 1a0e1619..1fb91344 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_prepared_statements.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_prepared_statements.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_prepared_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit prepare p1 as select 42; diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_privilege.test b/parser/testdata/corpus/sql/pg_catalog/pg_privilege.test index eff6d18b..398cd218 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_privilege.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_privilege.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_privilege.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {function}('main', 'test') diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_sequence.test b/parser/testdata/corpus/sql/pg_catalog/pg_sequence.test index e94af692..86070b6d 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_sequence.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_sequence diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_sequences.test b/parser/testdata/corpus/sql/pg_catalog/pg_sequences.test index cc0cb209..4a581120 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_sequences.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_sequences.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_sequences.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_sequences diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_settings.test b/parser/testdata/corpus/sql/pg_catalog/pg_settings.test index af485616..48231b5a 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_settings.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_settings.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_settings; diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_tablespace.test b/parser/testdata/corpus/sql/pg_catalog/pg_tablespace.test index 029dd883..1f294a08 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_tablespace.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_tablespace.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_tablespace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_tablespace diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_type.test b/parser/testdata/corpus/sql/pg_catalog/pg_type.test index 56631dab..66272e33 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_type.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_type.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE greeting AS ENUM('hi', 'bonjour', 'konnichiwa', 'howdy') diff --git a/parser/testdata/corpus/sql/pg_catalog/pg_views.test b/parser/testdata/corpus/sql/pg_catalog/pg_views.test index 2cfd151c..146e6607 100644 --- a/parser/testdata/corpus/sql/pg_catalog/pg_views.test +++ b/parser/testdata/corpus/sql/pg_catalog/pg_views.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/pg_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pg_views diff --git a/parser/testdata/corpus/sql/pg_catalog/sqlalchemy.test b/parser/testdata/corpus/sql/pg_catalog/sqlalchemy.test index bc6d67ab..cd06080b 100644 --- a/parser/testdata/corpus/sql/pg_catalog/sqlalchemy.test +++ b/parser/testdata/corpus/sql/pg_catalog/sqlalchemy.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/sqlalchemy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integral_values ( diff --git a/parser/testdata/corpus/sql/pg_catalog/system_functions.test b/parser/testdata/corpus/sql/pg_catalog/system_functions.test index 38a86698..6a319b07 100644 --- a/parser/testdata/corpus/sql/pg_catalog/system_functions.test +++ b/parser/testdata/corpus/sql/pg_catalog/system_functions.test @@ -1,6 +1,6 @@ # source: test/sql/pg_catalog/system_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CURRENT_USER diff --git a/parser/testdata/corpus/sql/pivot/optional_pivots.test b/parser/testdata/corpus/sql/pivot/optional_pivots.test index 4c7b1466..b04b4043 100644 --- a/parser/testdata/corpus/sql/pivot/optional_pivots.test +++ b/parser/testdata/corpus/sql/pivot/optional_pivots.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/optional_pivots.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Cities(Country VARCHAR, Name VARCHAR, Year INT, Population INT); diff --git a/parser/testdata/corpus/sql/pivot/pivot_15141.test b/parser/testdata/corpus/sql/pivot/pivot_15141.test index a4597b03..9de8d74e 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_15141.test +++ b/parser/testdata/corpus/sql/pivot/pivot_15141.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_15141.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table p (col1 timestamp, col2 int); diff --git a/parser/testdata/corpus/sql/pivot/pivot_6390.test b/parser/testdata/corpus/sql/pivot/pivot_6390.test index 14f86b01..21d9ee5e 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_6390.test +++ b/parser/testdata/corpus/sql/pivot/pivot_6390.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_6390.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cpb_tbl AS diff --git a/parser/testdata/corpus/sql/pivot/pivot_aggregate_filter.test b/parser/testdata/corpus/sql/pivot/pivot_aggregate_filter.test new file mode 100644 index 00000000..70b43023 --- /dev/null +++ b/parser/testdata/corpus/sql/pivot/pivot_aggregate_filter.test @@ -0,0 +1,25 @@ +# source: test/sql/pivot/pivot_aggregate_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(k INT, y VARCHAR, v INT); +-- +ok +== +INSERT INTO t VALUES (1,'p',1),(1,'p',12),(1,'q',5),(2,'p',20); +-- +ok +== +SELECT * FROM (PIVOT t ON y USING sum(v) FILTER (WHERE v>1) GROUP BY k) ORDER BY k; +-- +ok +== +SELECT * FROM (PIVOT t ON y IN ('p', 'q') USING sum(v) FILTER (WHERE v>1) GROUP BY k) ORDER BY k; +-- +ok +== +SET pivot_filter_threshold=0; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pivot/pivot_bigquery.test b/parser/testdata/corpus/sql/pivot/pivot_bigquery.test index b91977b9..abe6a55b 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_bigquery.test +++ b/parser/testdata/corpus/sql/pivot/pivot_bigquery.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_bigquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Produce AS diff --git a/parser/testdata/corpus/sql/pivot/pivot_case_insensitive.test b/parser/testdata/corpus/sql/pivot/pivot_case_insensitive.test index 6c12f394..e360ebd3 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_case_insensitive.test +++ b/parser/testdata/corpus/sql/pivot/pivot_case_insensitive.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_case_insensitive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Cities (Name VARCHAR, id INTEGER); diff --git a/parser/testdata/corpus/sql/pivot/pivot_databricks.test b/parser/testdata/corpus/sql/pivot/pivot_databricks.test index 95bde83d..442f95de 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_databricks.test +++ b/parser/testdata/corpus/sql/pivot/pivot_databricks.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_databricks.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP VIEW sales(year, quarter, region, sales) AS diff --git a/parser/testdata/corpus/sql/pivot/pivot_empty.test b/parser/testdata/corpus/sql/pivot/pivot_empty.test index 6b2932de..4e856924 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_empty.test +++ b/parser/testdata/corpus/sql/pivot/pivot_empty.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT Cities ON Country USING SUM(Population); diff --git a/parser/testdata/corpus/sql/pivot/pivot_empty_string_value.test b/parser/testdata/corpus/sql/pivot/pivot_empty_string_value.test index 343018d5..b6d5d7d2 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_empty_string_value.test +++ b/parser/testdata/corpus/sql/pivot/pivot_empty_string_value.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_empty_string_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET pivot_filter_threshold = 1 diff --git a/parser/testdata/corpus/sql/pivot/pivot_enum.test b/parser/testdata/corpus/sql/pivot/pivot_enum.test index 4afe8051..f07913c1 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_enum.test +++ b/parser/testdata/corpus/sql/pivot/pivot_enum.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE monthly_sales(empid INT, amount INT, month TEXT); diff --git a/parser/testdata/corpus/sql/pivot/pivot_errors.test b/parser/testdata/corpus/sql/pivot/pivot_errors.test index 35000e0c..c0665023 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_errors.test +++ b/parser/testdata/corpus/sql/pivot/pivot_errors.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INT, j VARCHAR); diff --git a/parser/testdata/corpus/sql/pivot/pivot_expressions.test b/parser/testdata/corpus/sql/pivot/pivot_expressions.test index 20731e12..c956631d 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_expressions.test +++ b/parser/testdata/corpus/sql/pivot/pivot_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT Cities ON Country || '_' || Name USING SUM(Population) GROUP BY Year; diff --git a/parser/testdata/corpus/sql/pivot/pivot_generated.test b/parser/testdata/corpus/sql/pivot/pivot_generated.test index 28f76943..befbe39e 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_generated.test +++ b/parser/testdata/corpus/sql/pivot/pivot_generated.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_generated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Product(DaysToManufacture int, StandardCost int GENERATED ALWAYS AS (DaysToManufacture * 5)); diff --git a/parser/testdata/corpus/sql/pivot/pivot_identical_aggregates_names.test b/parser/testdata/corpus/sql/pivot/pivot_identical_aggregates_names.test index f7a3785f..2602e2d6 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_identical_aggregates_names.test +++ b/parser/testdata/corpus/sql/pivot/pivot_identical_aggregates_names.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_identical_aggregates_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT (SELECT 'k' || (r % 21) a, r v FROM range(42) t(r)) ON a USING sum(v) AS x, sum(v) AS y; diff --git a/parser/testdata/corpus/sql/pivot/pivot_in_boolean.test b/parser/testdata/corpus/sql/pivot/pivot_in_boolean.test index bbc1b725..6c09ef60 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_in_boolean.test +++ b/parser/testdata/corpus/sql/pivot/pivot_in_boolean.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_in_boolean.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pivot cities on (Country='NL') using avg(Population) group by name; diff --git a/parser/testdata/corpus/sql/pivot/pivot_in_cte.test b/parser/testdata/corpus/sql/pivot/pivot_in_cte.test new file mode 100644 index 00000000..c12ec57e --- /dev/null +++ b/parser/testdata/corpus/sql/pivot/pivot_in_cte.test @@ -0,0 +1,41 @@ +# source: test/sql/pivot/pivot_in_cte.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +WITH src AS (SELECT 'a' AS k), p AS (PIVOT src ON k) SELECT * FROM p; +-- +ok +== +WITH src AS (SELECT 'a' AS k), p AS (PIVOT (SELECT * FROM src) ON k) SELECT * FROM p; +-- +ok +== +WITH src AS (SELECT 'a' AS k, 1 AS v UNION ALL SELECT 'b', 2), p AS (PIVOT src ON k USING sum(v)) SELECT * FROM p; +-- +ok +== +WITH s1 AS (SELECT 'x' AS k), s2 AS (SELECT * FROM s1), p AS (PIVOT s2 ON k) SELECT * FROM p; +-- +ok +== +WITH src AS (SELECT 'a' AS k), p AS (WITH src AS (SELECT 'z' AS k) PIVOT src ON k) SELECT * FROM p; +-- +ok +== +WITH src AS (SELECT 'a' AS k), p AS (WITH src AS (SELECT 'z' AS k) PIVOT src ON k) SELECT z FROM p; +-- +ok +== +WITH p AS (PIVOT src ON k), src AS (SELECT 'a' AS k) SELECT * FROM p; +-- +ok +== +WITH src AS (SELECT 'a' AS k), src AS (SELECT 'b' AS k) SELECT * FROM src; +-- +error: Parser Error: Duplicate CTE name "src" +== +WITH RECURSIVE r(i) AS (SELECT 1 UNION ALL SELECT i + 1 FROM r WHERE i < 3), p AS (PIVOT r ON i) SELECT * FROM p; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pivot/pivot_in_map.test b/parser/testdata/corpus/sql/pivot/pivot_in_map.test index 38791738..d257c094 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_in_map.test +++ b/parser/testdata/corpus/sql/pivot/pivot_in_map.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_in_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(col VARCHAR); diff --git a/parser/testdata/corpus/sql/pivot/pivot_in_subquery.test b/parser/testdata/corpus/sql/pivot/pivot_in_subquery.test index 6288dd73..276a4083 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_in_subquery.test +++ b/parser/testdata/corpus/sql/pivot/pivot_in_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_in_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT Cities ON Year IN (SELECT Year FROM Cities ORDER BY Year DESC) USING SUM(Population); diff --git a/parser/testdata/corpus/sql/pivot/pivot_operator_expression.test b/parser/testdata/corpus/sql/pivot/pivot_operator_expression.test index 9be975b9..278d479b 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_operator_expression.test +++ b/parser/testdata/corpus/sql/pivot/pivot_operator_expression.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_operator_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO monthly_sales VALUES diff --git a/parser/testdata/corpus/sql/pivot/pivot_prepare.test b/parser/testdata/corpus/sql/pivot/pivot_prepare.test index f7178745..f3152eb4 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_prepare.test +++ b/parser/testdata/corpus/sql/pivot/pivot_prepare.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_prepare.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO monthly_sales VALUES diff --git a/parser/testdata/corpus/sql/pivot/pivot_query_text.test b/parser/testdata/corpus/sql/pivot/pivot_query_text.test index d47cf593..98559e13 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_query_text.test +++ b/parser/testdata/corpus/sql/pivot/pivot_query_text.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_query_text.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(c VARCHAR, v INTEGER); diff --git a/parser/testdata/corpus/sql/pivot/pivot_star.test b/parser/testdata/corpus/sql/pivot/pivot_star.test index 635636d9..b3568f6f 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_star.test +++ b/parser/testdata/corpus/sql/pivot/pivot_star.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INT, jan INT, feb INT); diff --git a/parser/testdata/corpus/sql/pivot/pivot_storage.test b/parser/testdata/corpus/sql/pivot/pivot_storage.test index 8b1f233e..2f71ba3a 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_storage.test +++ b/parser/testdata/corpus/sql/pivot/pivot_storage.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT * diff --git a/parser/testdata/corpus/sql/pivot/pivot_struct_aggregate.test b/parser/testdata/corpus/sql/pivot/pivot_struct_aggregate.test index 90e13eca..ca5316a8 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_struct_aggregate.test +++ b/parser/testdata/corpus/sql/pivot/pivot_struct_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_struct_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table donnees_csv as select {'year': i::varchar, 'month': i::varchar} AS donnee, i%5 as variable_id, i%10 id_niv from range(1000) t(i); diff --git a/parser/testdata/corpus/sql/pivot/pivot_subquery.test b/parser/testdata/corpus/sql/pivot/pivot_subquery.test index 5700b63f..e603074e 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_subquery.test +++ b/parser/testdata/corpus/sql/pivot/pivot_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE sales(empid INT, amount INT, d DATE); diff --git a/parser/testdata/corpus/sql/pivot/pivot_value_collisions.test b/parser/testdata/corpus/sql/pivot/pivot_value_collisions.test index 7e2e2333..08073a6b 100644 --- a/parser/testdata/corpus/sql/pivot/pivot_value_collisions.test +++ b/parser/testdata/corpus/sql/pivot/pivot_value_collisions.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/pivot_value_collisions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET pivot_filter_threshold=1 diff --git a/parser/testdata/corpus/sql/pivot/pivot_value_group_name_clash.test b/parser/testdata/corpus/sql/pivot/pivot_value_group_name_clash.test new file mode 100644 index 00000000..5cad64a6 --- /dev/null +++ b/parser/testdata/corpus/sql/pivot/pivot_value_group_name_clash.test @@ -0,0 +1,21 @@ +# source: test/sql/pivot/pivot_value_group_name_clash.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t2 AS SELECT 'g' || (i % 3) AS g, 'c' || i AS c, i AS v FROM range(30) r(i); +-- +ok +== +INSERT INTO t2 VALUES ('g0', 'g', 1000); +-- +ok +== +SELECT g, "g_1" FROM (PIVOT t2 ON c USING sum(v) GROUP BY g) ORDER BY g; +-- +ok +== +SET pivot_filter_threshold=100; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pivot/test_multi_pivot.test b/parser/testdata/corpus/sql/pivot/test_multi_pivot.test index 0219ee8a..22d0565f 100644 --- a/parser/testdata/corpus/sql/pivot/test_multi_pivot.test +++ b/parser/testdata/corpus/sql/pivot/test_multi_pivot.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/test_multi_pivot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE sales(empid INT, amount INT, month TEXT, year INT); diff --git a/parser/testdata/corpus/sql/pivot/test_pivot.test b/parser/testdata/corpus/sql/pivot/test_pivot.test index 7eb3cc84..07fada92 100644 --- a/parser/testdata/corpus/sql/pivot/test_pivot.test +++ b/parser/testdata/corpus/sql/pivot/test_pivot.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/test_pivot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Product(DaysToManufacture int, StandardCost int); diff --git a/parser/testdata/corpus/sql/pivot/test_pivot_duplicate_aggregates.test b/parser/testdata/corpus/sql/pivot/test_pivot_duplicate_aggregates.test index eec19ef9..ee1ea5ba 100644 --- a/parser/testdata/corpus/sql/pivot/test_pivot_duplicate_aggregates.test +++ b/parser/testdata/corpus/sql/pivot/test_pivot_duplicate_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/test_pivot_duplicate_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT (FROM range(21)) ON range USING sum(range), sum(range); diff --git a/parser/testdata/corpus/sql/pivot/test_unpivot.test b/parser/testdata/corpus/sql/pivot/test_unpivot.test index 30e78412..7dbd8680 100644 --- a/parser/testdata/corpus/sql/pivot/test_unpivot.test +++ b/parser/testdata/corpus/sql/pivot/test_unpivot.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/test_unpivot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE monthly_sales(empid INT, dept TEXT, Jan INT, Feb INT, Mar INT, April INT); diff --git a/parser/testdata/corpus/sql/pivot/test_unpivot_stmt.test b/parser/testdata/corpus/sql/pivot/test_unpivot_stmt.test index 00e1018d..6f748206 100644 --- a/parser/testdata/corpus/sql/pivot/test_unpivot_stmt.test +++ b/parser/testdata/corpus/sql/pivot/test_unpivot_stmt.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/test_unpivot_stmt.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(id BIGINT, "Sales (05/19/2020)" BIGINT, "Sales (06/03/2020)" BIGINT, "Sales (10/23/2020)" BIGINT); diff --git a/parser/testdata/corpus/sql/pivot/top_level_pivot_syntax.test b/parser/testdata/corpus/sql/pivot/top_level_pivot_syntax.test index 4ecfc59a..f56a0aa1 100644 --- a/parser/testdata/corpus/sql/pivot/top_level_pivot_syntax.test +++ b/parser/testdata/corpus/sql/pivot/top_level_pivot_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/top_level_pivot_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT monthly_sales ON MONTH USING SUM(AMOUNT) diff --git a/parser/testdata/corpus/sql/pivot/unpivot_exclude_nulls_name_clash.test b/parser/testdata/corpus/sql/pivot/unpivot_exclude_nulls_name_clash.test new file mode 100644 index 00000000..5a84bbf0 --- /dev/null +++ b/parser/testdata/corpus/sql/pivot/unpivot_exclude_nulls_name_clash.test @@ -0,0 +1,33 @@ +# source: test/sql/pivot/unpivot_exclude_nulls_name_clash.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE w(id INT, a INT, b INT, g INT); +-- +ok +== +INSERT INTO w VALUES (1, 10, NULL, NULL), (2, NULL, 5, 7); +-- +ok +== +SELECT id, g, n, g_1 FROM (UNPIVOT w ON a, b INTO NAME n VALUE g) ORDER BY ALL; +-- +ok +== +SELECT id, n, id_1 FROM (UNPIVOT w ON a, b INTO NAME n VALUE id) ORDER BY ALL; +-- +ok +== +SELECT id, g, n, n_1 FROM (UNPIVOT w ON a, b INTO NAME n VALUE n) ORDER BY ALL; +-- +ok +== +SELECT id, g, n, g_1 FROM (SELECT * FROM w UNPIVOT INCLUDE NULLS (g FOR n IN (a, b))) ORDER BY ALL; +-- +ok +== +SELECT id, name, value FROM (UNPIVOT w ON a, b) ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pivot/unpivot_expression.test b/parser/testdata/corpus/sql/pivot/unpivot_expression.test index ec1bea2c..8a0a816a 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_expression.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_expression.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit unpivot (select 42 as col1, 'woot' as col2) diff --git a/parser/testdata/corpus/sql/pivot/unpivot_internal_names.test b/parser/testdata/corpus/sql/pivot/unpivot_internal_names.test index b5eae1a4..7a43301d 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_internal_names.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_internal_names.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_internal_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unpivot_names(unpivot_names VARCHAR, unpivot_list VARCHAR, unpivot_list_2 VARCHAR, col1 INT, col2 INT, col3 INT); diff --git a/parser/testdata/corpus/sql/pivot/unpivot_no_columns.test b/parser/testdata/corpus/sql/pivot/unpivot_no_columns.test index 338590c2..87aec419 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_no_columns.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_no_columns.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_no_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(i integer); diff --git a/parser/testdata/corpus/sql/pivot/unpivot_non_aligned_columns.test b/parser/testdata/corpus/sql/pivot/unpivot_non_aligned_columns.test index 4e33411f..dcacc87e 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_non_aligned_columns.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_non_aligned_columns.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_non_aligned_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(id BIGINT, metric_1 VARCHAR, value_x VARCHAR, metric_2 VARCHAR, value_q VARCHAR, metric_3 VARCHAR, value_j VARCHAR);; diff --git a/parser/testdata/corpus/sql/pivot/unpivot_types.test b/parser/testdata/corpus/sql/pivot/unpivot_types.test index 8da3d305..4d737f9a 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_types.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_types.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column_name, column_type FROM (DESCRIBE unpivot ( select 42) on columns(*)) diff --git a/parser/testdata/corpus/sql/pivot/unpivot_unnamed_subquery.test b/parser/testdata/corpus/sql/pivot/unpivot_unnamed_subquery.test index 6fe62657..85e39223 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_unnamed_subquery.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_unnamed_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_unnamed_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit unpivot (select cast(columns(*) as varchar) from (select 42 as col1, 'woot' as col2)) diff --git a/parser/testdata/corpus/sql/pivot/unpivot_view.test b/parser/testdata/corpus/sql/pivot/unpivot_view.test index 3ac3650c..9284d06d 100644 --- a/parser/testdata/corpus/sql/pivot/unpivot_view.test +++ b/parser/testdata/corpus/sql/pivot/unpivot_view.test @@ -1,6 +1,6 @@ # source: test/sql/pivot/unpivot_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t ( diff --git a/parser/testdata/corpus/sql/pragma/pragma_database_size_readonly.test b/parser/testdata/corpus/sql/pragma/pragma_database_size_readonly.test index b9b603ed..b952d963 100644 --- a/parser/testdata/corpus/sql/pragma/pragma_database_size_readonly.test +++ b/parser/testdata/corpus/sql/pragma/pragma_database_size_readonly.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/pragma_database_size_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA database_size diff --git a/parser/testdata/corpus/sql/pragma/profiling/call_enable_profiling_function.test b/parser/testdata/corpus/sql/pragma/profiling/call_enable_profiling_function.test index 6e343632..1f9562b8 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/call_enable_profiling_function.test +++ b/parser/testdata/corpus/sql/pragma/profiling/call_enable_profiling_function.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/call_enable_profiling_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA profiling_output = '{TEST_DIR}/test.txt' diff --git a/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test b/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test new file mode 100644 index 00000000..cb1c8199 --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test @@ -0,0 +1,29 @@ +# source: test/sql/pragma/profiling/profiling_output_not_allowed.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET enable_profiling='json' +-- +ok +== +SET profiling_output='__TEST_DIR__/profiling_outside.json' +-- +error: Parser Error: Profiler file type (__TEST_DIR__/profiling_outside.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET allowed_directories=['__TEST_DIR__/profiling_allowed'] +-- +ok +== +SET profiling_output='' +-- +ok +== +SET enable_profiling='no_output' +-- +ok +== +SELECT 44 +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test.metadata.json b/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test.metadata.json new file mode 100644 index 00000000..aa930a7b --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/profiling_output_not_allowed.test.metadata.json @@ -0,0 +1,5 @@ +{ + "todo": { + "28b5e148b653875c": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/pragma/profiling/profiling_renderer_settings_null.test b/parser/testdata/corpus/sql/pragma/profiling/profiling_renderer_settings_null.test index 1e9fa1b3..ce100186 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/profiling_renderer_settings_null.test +++ b/parser/testdata/corpus/sql/pragma/profiling/profiling_renderer_settings_null.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/profiling_renderer_settings_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET profiling_renderer_settings = MAP {'expand_all': NULL::INTEGER[]}; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_all_profiling_settings.test b/parser/testdata/corpus/sql/pragma/profiling/test_all_profiling_settings.test index f57f7e6d..4f1fc1fd 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_all_profiling_settings.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_all_profiling_settings.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_all_profiling_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET profiling_mode='all'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_attach_and_checkpoint_latency.test b/parser/testdata/corpus/sql/pragma/profiling/test_attach_and_checkpoint_latency.test index 52cd28d6..fb4302e6 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_attach_and_checkpoint_latency.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_attach_and_checkpoint_latency.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_attach_and_checkpoint_latency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/profile_fs.db'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_autocheckpoint_latency.test b/parser/testdata/corpus/sql/pragma/profiling/test_autocheckpoint_latency.test index 8dde49bb..49eecd90 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_autocheckpoint_latency.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_autocheckpoint_latency.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_autocheckpoint_latency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/autocheckpoint_latency.db' AS acp_db; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_checkpoint_profiling.test b/parser/testdata/corpus/sql/pragma/profiling/test_checkpoint_profiling.test index 1e851537..53cc349b 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_checkpoint_profiling.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_checkpoint_profiling.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_checkpoint_profiling.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/checkpoint_prof.db'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_commit_write_wal_latency_and_count.test b/parser/testdata/corpus/sql/pragma/profiling/test_commit_write_wal_latency_and_count.test index 35aa2207..35168f25 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_commit_write_wal_latency_and_count.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_commit_write_wal_latency_and_count.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_commit_write_wal_latency_and_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_latency.db' AS wal_latency; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_blocked_thread_time.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_blocked_thread_time.test index 3ede982a..bf65eece 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_blocked_thread_time.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_blocked_thread_time.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_blocked_thread_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads = 4; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_disable_metrics.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_disable_metrics.test index 9e076315..fdd31e9c 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_disable_metrics.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_disable_metrics.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_disable_metrics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['operator.extra_info', 'operator.intermediate_rows', 'operator.timing', 'query.total_time']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_errors.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_errors.test index bb1662ae..9770377b 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_errors.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_errors.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA custom_profiling_settings='}}}}}}'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_optimizer_settings.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_optimizer_settings.test index f5035d03..d1e6b945 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_optimizer_settings.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_optimizer_settings.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_optimizer_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET profiling_mode='standard'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_peak_streaming_buffer_size.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_peak_streaming_buffer_size.test index e3488509..81a76e5d 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_peak_streaming_buffer_size.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_peak_streaming_buffer_size.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_peak_streaming_buffer_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['system.peak_streaming_buffer_size']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_result_set_size.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_result_set_size.test index 134a0907..e3e2c9b2 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_result_set_size.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_result_set_size.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_result_set_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['operator.intermediate_size_bytes', 'operator.intermediate_rows']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_row_group_metrics_local_storage.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_row_group_metrics_local_storage.test index c56dd6d4..b6393220 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_row_group_metrics_local_storage.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_row_group_metrics_local_storage.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_row_group_metrics_local_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE local_pruned(i BIGINT); diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned.test index 80317af6..fa2bac1f 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_rows_scanned.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['operator.intermediate_rows', 'operator.rows_scanned', 'query.total_intermediate_rows', 'query.total_rows_scanned']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned_parquet.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned_parquet.test index 6888e1fc..98cb95c5 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned_parquet.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_rows_scanned_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_rows_scanned_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM range(0, 10) as r(i)) TO '{TEST_DIR}/range.parquet' (FORMAT 'parquet'); diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_total_memory_allocated.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_total_memory_allocated.test index 9130e91b..b8e45898 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_total_memory_allocated.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_total_memory_allocated.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_total_memory_allocated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['system.total_memory_allocated']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_using_groups.test b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_using_groups.test index 9bc4531b..cf2517b1 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_using_groups.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_custom_profiling_using_groups.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_custom_profiling_using_groups.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT operator[1].extra_info, diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_duckdb_profiling_settings_function.test b/parser/testdata/corpus/sql/pragma/profiling/test_duckdb_profiling_settings_function.test index e17f057c..d17b6824 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_duckdb_profiling_settings_function.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_duckdb_profiling_settings_function.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_duckdb_profiling_settings_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * EXCLUDE(value, description) FROM duckdb_profiling_settings(); diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_empty_profiling_settings.test b/parser/testdata/corpus/sql/pragma/profiling/test_empty_profiling_settings.test index 25438b0b..623d77ac 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_empty_profiling_settings.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_empty_profiling_settings.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_empty_profiling_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cpu_time FROM metrics_output; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test b/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test new file mode 100644 index 00000000..5910dcaf --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test @@ -0,0 +1,47 @@ +# source: test/sql/pragma/profiling/test_io_operation_metrics.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT metric_name, metric_type, description, unit +FROM duckdb_available_metrics() +WHERE metric_name = 'io.total_read_operations'; +-- +ok +== +SELECT metric_name, metric_type, description, unit +FROM duckdb_available_metrics() +WHERE metric_name = 'io.total_write_operations'; +-- +ok +== +COPY (SELECT i AS a, i * 2 AS b FROM range(100000) t(i)) TO '{TEST_DIR}/read_ops_src.csv'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/read_ops_profile.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/read_ops_profile.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['io.*']; +-- +ok +== +COPY (SELECT * FROM read_csv('{TEST_DIR}/read_ops_src.csv')) TO '{TEST_DIR}/read_ops_dst.csv'; +-- +ok +== +CREATE OR REPLACE TABLE metrics_output AS SELECT * FROM '{TEST_DIR}/read_ops_profile.json'; +-- +ok +== +SELECT io.total_read_operations > 0 AND io.total_write_operations > 0 FROM metrics_output; +-- +ok +== +SELECT io.total_read_operations >= 1 AND io.total_bytes_read > 0 + AND io.total_write_operations >= 1 AND io.total_bytes_written > 0 +FROM metrics_output; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test.metadata.json b/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test.metadata.json new file mode 100644 index 00000000..04d6d967 --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_io_operation_metrics.test.metadata.json @@ -0,0 +1,5 @@ +{ + "todo": { + "b6b77c8905515f29": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_legacy_metrics_format.test b/parser/testdata/corpus/sql/pragma/profiling/test_legacy_metrics_format.test index 4db057e6..7dbb96d7 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_legacy_metrics_format.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_legacy_metrics_format.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_legacy_metrics_format.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['query.total_time', 'query.cpu_time', 'query.sql', 'query.total_intermediate_rows', 'query.total_rows_scanned', 'operator.type', 'operator.timing', 'operator.intermediate_rows']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_logging_interaction.test b/parser/testdata/corpus/sql/pragma/profiling/test_logging_interaction.test index 057e2a3a..a9d5a2a3 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_logging_interaction.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_logging_interaction.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_logging_interaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA profiling_output = '{TEST_DIR}/profile_attach.json'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_metrics_log_timing.test b/parser/testdata/corpus/sql/pragma/profiling/test_metrics_log_timing.test index 28d36e1b..b946d5ce 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_metrics_log_timing.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_metrics_log_timing.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_metrics_log_timing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL enable_logging('Metrics') diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_no_reset_setting.test b/parser/testdata/corpus/sql/pragma/profiling/test_no_reset_setting.test index 0b8efa5c..2e04b754 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_no_reset_setting.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_no_reset_setting.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_no_reset_setting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA profiling_output = '{TEST_DIR}/profile_file.json'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_operator_info_suppression.test b/parser/testdata/corpus/sql/pragma/profiling/test_operator_info_suppression.test index 8fd0f11b..a1ee0a47 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_operator_info_suppression.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_operator_info_suppression.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_operator_info_suppression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET tracked_metrics = ['operator.timing']; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_all.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_all.test index 4f6f3a7b..1f06dcdb 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_all.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_all.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_profiling_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/profile_attach.db'; diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test new file mode 100644 index 00000000..aeab07eb --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test @@ -0,0 +1,137 @@ +# source: test/sql/pragma/profiling/test_profiling_bytes_scanned.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range AS i, repeat('x', 100) || range AS s FROM range(3 * 2048)) TO '{TEST_DIR}/bytes_scanned_1.parquet' (ROW_GROUP_SIZE 2048); +-- +ok +== +COPY (SELECT range AS i, repeat('x', 100) || range AS s FROM range(3 * 2048)) TO '{TEST_DIR}/bytes_scanned_2.parquet' (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TABLE chunks AS +SELECT file_name, row_group_id, path_in_schema AS col, TRY_CAST(stats_max AS BIGINT) AS max_i, total_compressed_size AS bytes +FROM parquet_metadata('{TEST_DIR}/bytes_scanned_*.parquet'); +-- +ok +== +SELECT count(DISTINCT file_name), count(DISTINCT row_group_id) FROM chunks; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_one_column.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_one_column.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['query.total_bytes_scanned']; +-- +ok +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.parquet'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet' AND col = 'i') +FROM '{TEST_DIR}/bytes_scanned_one_column.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_two_columns.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_two_columns.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['query.total_bytes_scanned', 'operator.bytes_scanned', 'operator.type']; +-- +ok +== +SELECT sum(i), max(s) FROM '{TEST_DIR}/bytes_scanned_1.parquet'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet') +FROM '{TEST_DIR}/bytes_scanned_two_columns.json'; +-- +ok +== +CREATE MACRO scan_bytes(profile) AS TABLE +WITH RECURSIVE ops(op) AS ( + SELECT unnest(operator)::JSON AS op FROM read_json(profile) + UNION ALL + SELECT unnest((op->'children')::JSON[]) FROM ops WHERE json_array_length(op->'children') > 0 +) +SELECT (op->>'bytes_scanned')::BIGINT AS bytes FROM ops WHERE op->>'type' = 'TABLE_SCAN'; +-- +ok +== +SELECT count(*), sum(bytes) = (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet') +FROM scan_bytes('{TEST_DIR}/bytes_scanned_two_columns.json'); +-- +ok +== +SELECT count(*) FROM chunks WHERE file_name LIKE '%_1.parquet' AND col = 'i' AND max_i >= 4096; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_skipped.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_skipped.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.parquet' WHERE i >= 4096; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet' AND col = 'i' AND max_i >= 4096) +FROM '{TEST_DIR}/bytes_scanned_skipped.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_glob.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_glob.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_*.parquet'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(bytes) FROM chunks WHERE col = 'i') +FROM '{TEST_DIR}/bytes_scanned_glob.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_twice.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_twice.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.parquet') + (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.parquet'); +-- +ok +== +SELECT query.total_bytes_scanned = 2 * (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet' AND col = 'i') +FROM '{TEST_DIR}/bytes_scanned_twice.json'; +-- +ok +== +SELECT count(*), bool_and(bytes = (SELECT sum(bytes) FROM chunks WHERE file_name LIKE '%_1.parquet' AND col = 'i')) +FROM scan_bytes('{TEST_DIR}/bytes_scanned_twice.json'); +-- +ok +== +CREATE TABLE native AS SELECT range AS i FROM range(2048); +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM native +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.parquet' +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) +SELECT sum(p.i) FROM '{TEST_DIR}/bytes_scanned_1.parquet' p JOIN native n USING (i) +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test.metadata.json b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test.metadata.json new file mode 100644 index 00000000..545f682b --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned.test.metadata.json @@ -0,0 +1,9 @@ +{ + "todo": { + "246adac3a5740607": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "54b1ca141f53f4d7": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "5ad56e7c3c3f8f13": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "8afe2d7890c35823": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "e464943eb4746a48": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test new file mode 100644 index 00000000..c0ad140a --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test @@ -0,0 +1,193 @@ +# source: test/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_1.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_2.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_1.csv.gz' (COMPRESSION gzip); +-- +ok +== +COPY (SELECT lpad(range::VARCHAR, 7, '0') AS v FROM range(16384)) TO '{TEST_DIR}/bytes_scanned_exact.csv.gz' (HEADER false, COMPRESSION gzip); +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_many_1.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_many_2.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_many_3.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_many_4.csv'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_many_5.csv'; +-- +ok +== +CREATE TABLE sizes AS SELECT filename, size FROM read_blob(['{TEST_DIR}/bytes_scanned_*.csv*', 'data/csv/encodings/latin1.csv']); +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_one.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_one.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.csv'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_one.json'; +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.csv' +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_gzip.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_gzip.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.csv.gz'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv.gz') +FROM '{TEST_DIR}/bytes_scanned_csv_gzip.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_two.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_two.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_csv(['{TEST_DIR}/bytes_scanned_1.csv', '{TEST_DIR}/bytes_scanned_2.csv']); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(size) FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_[12]\.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_two.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_twice.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_twice.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.csv') + (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.csv'); +-- +ok +== +SELECT query.total_bytes_scanned = 2 * (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_twice.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_limit.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_limit.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT * FROM read_csv('{TEST_DIR}/bytes_scanned_1.csv', buffer_size = 65536) LIMIT 10; +-- +ok +== +SELECT query.total_bytes_scanned > 0, + query.total_bytes_scanned < (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_limit.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_serial.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_serial.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_csv('{TEST_DIR}/bytes_scanned_1.csv', parallel = false, buffer_size = 65536); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_serial.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_many.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_many.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_csv('{TEST_DIR}/bytes_scanned_many_*.csv', buffer_size = 65536); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(size) FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_many_[1-5]\.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_many.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_skip.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_skip.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT count(*) FROM read_csv('{TEST_DIR}/bytes_scanned_1.csv', skip = 90000, header = false, buffer_size = 65536); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_skip.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_skip_gzip.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_skip_gzip.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT count(*) FROM read_csv('{TEST_DIR}/bytes_scanned_1.csv.gz', skip = 90000, header = false, buffer_size = 65536); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv.gz') +FROM '{TEST_DIR}/bytes_scanned_csv_skip_gzip.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_exact.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_exact.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT count(*) FROM read_csv('{TEST_DIR}/bytes_scanned_exact.csv.gz', header = false, buffer_size = 65536); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_exact.csv.gz') +FROM '{TEST_DIR}/bytes_scanned_csv_exact.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_csv_latin1.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_csv_latin1.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT count(*) FROM read_csv('data/csv/encodings/latin1.csv', encoding = 'latin-1'); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%encodings/latin1.csv') +FROM '{TEST_DIR}/bytes_scanned_csv_latin1.json'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test.metadata.json b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test.metadata.json new file mode 100644 index 00000000..92a3dde8 --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_csv.test.metadata.json @@ -0,0 +1,15 @@ +{ + "todo": { + "09b3b6fe2d783489": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "32c71dda429fdd56": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "343d4f0151d8cac1": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "68d5a28d93a397da": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "97c2605b476fc0ee": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "9b089e1d5caa59c5": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "ac9ba9a745189f56": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "d5446ce3adbb6f8b": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "ddf66e4e98286484": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "df7f03edbac7fa5f": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "fd6313830fe84597": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test new file mode 100644 index 00000000..f486d532 --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test @@ -0,0 +1,140 @@ +# source: test/sql/pragma/profiling/test_profiling_bytes_scanned_json.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_1.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_2.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_1.json.gz' (COMPRESSION gzip); +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(100000)) TO '{TEST_DIR}/bytes_scanned_array.json' (ARRAY true); +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(20000)) TO '{TEST_DIR}/bytes_scanned_many_1.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(20000)) TO '{TEST_DIR}/bytes_scanned_many_2.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(20000)) TO '{TEST_DIR}/bytes_scanned_many_3.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(20000)) TO '{TEST_DIR}/bytes_scanned_many_4.json'; +-- +ok +== +COPY (SELECT range AS i, 'value ' || range AS s FROM range(20000)) TO '{TEST_DIR}/bytes_scanned_many_5.json'; +-- +ok +== +CREATE TABLE sizes AS SELECT filename, size FROM read_blob('{TEST_DIR}/bytes_scanned_*.json*'); +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_one.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_one.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.json'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_1\.json') +FROM '{TEST_DIR}/bytes_scanned_json_one.json'; +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.json' +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_gzip.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_gzip.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.json.gz'; +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_1\.json\.gz') +FROM '{TEST_DIR}/bytes_scanned_json_gzip.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_array.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_array.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_json('{TEST_DIR}/bytes_scanned_array.json', format = 'array'); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_array\.json') +FROM '{TEST_DIR}/bytes_scanned_json_array.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_two.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_two.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_json(['{TEST_DIR}/bytes_scanned_1.json', '{TEST_DIR}/bytes_scanned_2.json']); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(size) FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_[12]\.json') +FROM '{TEST_DIR}/bytes_scanned_json_two.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_twice.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_twice.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.json') + (SELECT sum(i) FROM '{TEST_DIR}/bytes_scanned_1.json'); +-- +ok +== +SELECT query.total_bytes_scanned = 2 * (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_1\.json') +FROM '{TEST_DIR}/bytes_scanned_json_twice.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_array_buffers.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_array_buffers.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_json('{TEST_DIR}/bytes_scanned_array.json', format = 'array', maximum_object_size = 32768); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_array\.json') +FROM '{TEST_DIR}/bytes_scanned_json_array_buffers.json'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/bytes_scanned_json_many.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/bytes_scanned_json_many.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT sum(i) FROM read_json('{TEST_DIR}/bytes_scanned_many_*.json', maximum_object_size = 32768); +-- +ok +== +SELECT query.total_bytes_scanned = (SELECT sum(size) FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_many_[1-5]\.json') +FROM '{TEST_DIR}/bytes_scanned_json_many.json'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test.metadata.json b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test.metadata.json new file mode 100644 index 00000000..07339f2f --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_json.test.metadata.json @@ -0,0 +1,11 @@ +{ + "todo": { + "3d594a0a9db952b0": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "617412b1c3774210": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "6d6a9498ce479779": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "92dcb1ada7adc329": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "94efa89b217ea965": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "a92dd765e12c15f8": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "fc5cf4d55f44be37": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_secure_view.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_secure_view.test new file mode 100644 index 00000000..32a63062 --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_bytes_scanned_secure_view.test @@ -0,0 +1,21 @@ +# source: test/sql/pragma/profiling/test_profiling_bytes_scanned_secure_view.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SECURE VIEW secure_scan AS SELECT i FROM '{TEST_DIR}/bytes_scanned_1.parquet'; +-- +ok +== +CREATE VIEW regular_scan AS SELECT i FROM '{TEST_DIR}/bytes_scanned_1.parquet'; +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM secure_scan +-- +ok +== +EXPLAIN ANALYZE (FORMAT json) SELECT sum(i) FROM regular_scan +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_fs.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_fs.test index 6f8ca29a..fa819097 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_fs.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_fs.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_profiling_fs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE profile_fs.tbl AS SELECT range AS id FROM range(10000); diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_operator_name.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_operator_name.test new file mode 100644 index 00000000..30518a1d --- /dev/null +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_operator_name.test @@ -0,0 +1,21 @@ +# source: test/sql/pragma/profiling/test_profiling_operator_name.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE integers AS SELECT range AS i FROM range(100); +-- +ok +== +EXPLAIN (ANALYZE, FORMAT json) SELECT i FROM integers WHERE i > 10; +-- +ok +== +EXPLAIN ANALYZE SELECT i FROM integers WHERE i > 10; +-- +ok +== +SET tracked_metrics = ['operator.type']; +-- +ok +== diff --git a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_output_file_overwrite.test b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_output_file_overwrite.test index 4a874847..b9dca71e 100644 --- a/parser/testdata/corpus/sql/pragma/profiling/test_profiling_output_file_overwrite.test +++ b/parser/testdata/corpus/sql/pragma/profiling/test_profiling_output_file_overwrite.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/profiling/test_profiling_output_file_overwrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA profiling_output = '{TEST_DIR}/profiler.json'; diff --git a/parser/testdata/corpus/sql/pragma/storage_info_empty_enum.test b/parser/testdata/corpus/sql/pragma/storage_info_empty_enum.test index 6fe4c137..08c342f4 100644 --- a/parser/testdata/corpus/sql/pragma/storage_info_empty_enum.test +++ b/parser/testdata/corpus/sql/pragma/storage_info_empty_enum.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/storage_info_empty_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE empty_enum AS ENUM(); diff --git a/parser/testdata/corpus/sql/pragma/test_db_invalidation_after_load.test b/parser/testdata/corpus/sql/pragma/test_db_invalidation_after_load.test index 6839dd31..cb38809f 100644 --- a/parser/testdata/corpus/sql/pragma/test_db_invalidation_after_load.test +++ b/parser/testdata/corpus/sql/pragma/test_db_invalidation_after_load.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_db_invalidation_after_load.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disable_database_invalidation=true; diff --git a/parser/testdata/corpus/sql/pragma/test_disabled_compression.test b/parser/testdata/corpus/sql/pragma/test_disabled_compression.test index e2d0fb3d..6a6224a1 100644 --- a/parser/testdata/corpus/sql/pragma/test_disabled_compression.test +++ b/parser/testdata/corpus/sql/pragma/test_disabled_compression.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_disabled_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disabled_compression_methods='{compression}' diff --git a/parser/testdata/corpus/sql/pragma/test_enable_profile.test b/parser/testdata/corpus/sql/pragma/test_enable_profile.test index ce75836a..736aba13 100644 --- a/parser/testdata/corpus/sql/pragma/test_enable_profile.test +++ b/parser/testdata/corpus/sql/pragma/test_enable_profile.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_enable_profile.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_profiling() diff --git a/parser/testdata/corpus/sql/pragma/test_force_compression.test b/parser/testdata/corpus/sql/pragma/test_force_compression.test index ee663560..4781551c 100644 --- a/parser/testdata/corpus/sql/pragma/test_force_compression.test +++ b/parser/testdata/corpus/sql/pragma/test_force_compression.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_force_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='{compression}' diff --git a/parser/testdata/corpus/sql/pragma/test_memory_limit.test b/parser/testdata/corpus/sql/pragma/test_memory_limit.test index fe548d5b..62f1b015 100644 --- a/parser/testdata/corpus/sql/pragma/test_memory_limit.test +++ b/parser/testdata/corpus/sql/pragma/test_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA memory_limit='1GB' diff --git a/parser/testdata/corpus/sql/pragma/test_metadata_info.test b/parser/testdata/corpus/sql/pragma/test_metadata_info.test index 4f45acbe..b3bce146 100644 --- a/parser/testdata/corpus/sql/pragma/test_metadata_info.test +++ b/parser/testdata/corpus/sql/pragma/test_metadata_info.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_metadata_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA metadata_info; diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_database_list.test b/parser/testdata/corpus/sql/pragma/test_pragma_database_list.test index 4acc7aff..97dcb5fe 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_database_list.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_database_list.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_database_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA database_list diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_database_size.test b/parser/testdata/corpus/sql/pragma/test_pragma_database_size.test index 90d4ddf5..0cff7a4c 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_database_size.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_database_size.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_database_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA database_size; diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_functions.test b/parser/testdata/corpus/sql/pragma/test_pragma_functions.test index b5086e68..13ef80ce 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_functions.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_functions.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA functions diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_parsing.test b/parser/testdata/corpus/sql/pragma/test_pragma_parsing.test index 5e7d264a..5228dc64 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_parsing.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_parsing.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_parsing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAG diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_sanitized_inputs.test b/parser/testdata/corpus/sql/pragma/test_pragma_sanitized_inputs.test index 223e142e..aa7d5064 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_sanitized_inputs.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_sanitized_inputs.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_sanitized_inputs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table(i INTEGER, j VARCHAR) diff --git a/parser/testdata/corpus/sql/pragma/test_pragma_version.test b/parser/testdata/corpus/sql/pragma/test_pragma_version.test index b4e555a1..873de7f0 100644 --- a/parser/testdata/corpus/sql/pragma/test_pragma_version.test +++ b/parser/testdata/corpus/sql/pragma/test_pragma_version.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_pragma_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA version; diff --git a/parser/testdata/corpus/sql/pragma/test_query_log.test b/parser/testdata/corpus/sql/pragma/test_query_log.test index 9db4c35e..64bad78b 100644 --- a/parser/testdata/corpus/sql/pragma/test_query_log.test +++ b/parser/testdata/corpus/sql/pragma/test_query_log.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_query_log.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CURRENT_SETTING('log_query_path') diff --git a/parser/testdata/corpus/sql/pragma/test_show_tables.test b/parser/testdata/corpus/sql/pragma/test_show_tables.test index d7f72139..4236c5fb 100644 --- a/parser/testdata/corpus/sql/pragma/test_show_tables.test +++ b/parser/testdata/corpus/sql/pragma/test_show_tables.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_show_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "select"(i INTEGER); diff --git a/parser/testdata/corpus/sql/pragma/test_show_tables_from.test b/parser/testdata/corpus/sql/pragma/test_show_tables_from.test index c89b19c0..57c70e90 100644 --- a/parser/testdata/corpus/sql/pragma/test_show_tables_from.test +++ b/parser/testdata/corpus/sql/pragma/test_show_tables_from.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_show_tables_from.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH IF NOT EXISTS ':memory:' AS db diff --git a/parser/testdata/corpus/sql/pragma/test_show_tables_temp_views.test b/parser/testdata/corpus/sql/pragma/test_show_tables_temp_views.test index 709be8ef..b185c14e 100644 --- a/parser/testdata/corpus/sql/pragma/test_show_tables_temp_views.test +++ b/parser/testdata/corpus/sql/pragma/test_show_tables_temp_views.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_show_tables_temp_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY VIEW v1 AS SELECT 42 AS a diff --git a/parser/testdata/corpus/sql/pragma/test_storage_info.test b/parser/testdata/corpus/sql/pragma/test_storage_info.test index e7faded4..8077aa73 100644 --- a/parser/testdata/corpus/sql/pragma/test_storage_info.test +++ b/parser/testdata/corpus/sql/pragma/test_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA storage_info('integers') diff --git a/parser/testdata/corpus/sql/pragma/test_table_info.test b/parser/testdata/corpus/sql/pragma/test_table_info.test index 6354717c..decc2bc1 100644 --- a/parser/testdata/corpus/sql/pragma/test_table_info.test +++ b/parser/testdata/corpus/sql/pragma/test_table_info.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_table_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER DEFAULT 1+3, j INTEGER) diff --git a/parser/testdata/corpus/sql/pragma/test_table_info_quoted_names.test b/parser/testdata/corpus/sql/pragma/test_table_info_quoted_names.test index 6b9bdbf6..5025b23e 100644 --- a/parser/testdata/corpus/sql/pragma/test_table_info_quoted_names.test +++ b/parser/testdata/corpus/sql/pragma/test_table_info_quoted_names.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_table_info_quoted_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "my.schema" diff --git a/parser/testdata/corpus/sql/pragma/test_various_pragmas.test b/parser/testdata/corpus/sql/pragma/test_various_pragmas.test index 3a899097..8ecb2908 100644 --- a/parser/testdata/corpus/sql/pragma/test_various_pragmas.test +++ b/parser/testdata/corpus/sql/pragma/test_various_pragmas.test @@ -1,6 +1,6 @@ # source: test/sql/pragma/test_various_pragmas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_checkpoint_on_shutdown diff --git a/parser/testdata/corpus/sql/prepared/invalid_prepare.test b/parser/testdata/corpus/sql/prepared/invalid_prepare.test index 19c2c533..761bdb1e 100644 --- a/parser/testdata/corpus/sql/prepared/invalid_prepare.test +++ b/parser/testdata/corpus/sql/prepared/invalid_prepare.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/invalid_prepare.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select ?; diff --git a/parser/testdata/corpus/sql/prepared/parameter_order_subquery.test b/parser/testdata/corpus/sql/prepared/parameter_order_subquery.test index 62c34c22..04ec8627 100644 --- a/parser/testdata/corpus/sql/prepared/parameter_order_subquery.test +++ b/parser/testdata/corpus/sql/prepared/parameter_order_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/parameter_order_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT2); diff --git a/parser/testdata/corpus/sql/prepared/parameter_variants.test b/parser/testdata/corpus/sql/prepared/parameter_variants.test index e44c967e..5740cfcf 100644 --- a/parser/testdata/corpus/sql/prepared/parameter_variants.test +++ b/parser/testdata/corpus/sql/prepared/parameter_variants.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/parameter_variants.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE s1 AS SELECT CAST(? AS INTEGER), CAST(? AS STRING) diff --git a/parser/testdata/corpus/sql/prepared/prepare_catalog_table_functions.test b/parser/testdata/corpus/sql/prepared/prepare_catalog_table_functions.test index 9322a4fb..7d666788 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_catalog_table_functions.test +++ b/parser/testdata/corpus/sql/prepared/prepare_catalog_table_functions.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_catalog_table_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER) @@ -11,10 +11,6 @@ PREPARE p AS SELECT * FROM {func}('t') -- error: Parser Error: syntax error at or near "{" == -EXECUTE p --- -ok -== DEALLOCATE p -- ok diff --git a/parser/testdata/corpus/sql/prepared/prepare_copy.test b/parser/testdata/corpus/sql/prepared/prepare_copy.test index 878cc8e2..437cbccf 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_copy.test +++ b/parser/testdata/corpus/sql/prepared/prepare_copy.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE q1 AS diff --git a/parser/testdata/corpus/sql/prepared/prepare_default_varchar.test b/parser/testdata/corpus/sql/prepared/prepare_default_varchar.test index 2d0899cf..a73f1b16 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_default_varchar.test +++ b/parser/testdata/corpus/sql/prepared/prepare_default_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_default_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT ? diff --git a/parser/testdata/corpus/sql/prepared/prepare_from_first.test b/parser/testdata/corpus/sql/prepared/prepare_from_first.test index 472f6fd1..df7ba2c4 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_from_first.test +++ b/parser/testdata/corpus/sql/prepared/prepare_from_first.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_from_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit prepare fromFirst as from (select ? fromV) select ? selectV,*; diff --git a/parser/testdata/corpus/sql/prepared/prepare_in.test b/parser/testdata/corpus/sql/prepared/prepare_in.test index 6c8ed8fd..daa8df97 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_in.test +++ b/parser/testdata/corpus/sql/prepared/prepare_in.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test(id varchar); diff --git a/parser/testdata/corpus/sql/prepared/prepare_lambda.test b/parser/testdata/corpus/sql/prepared/prepare_lambda.test index a546c9e3..5ebcad0f 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_lambda.test +++ b/parser/testdata/corpus/sql/prepared/prepare_lambda.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_lambda.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT list_transform(?, lambda x: x + 1) diff --git a/parser/testdata/corpus/sql/prepared/prepare_list_functions.test b/parser/testdata/corpus/sql/prepared/prepare_list_functions.test index 8a02a39b..b0d8acb4 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_list_functions.test +++ b/parser/testdata/corpus/sql/prepared/prepare_list_functions.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_list_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT list_aggregate(?, 'min') diff --git a/parser/testdata/corpus/sql/prepared/prepare_list_sort_untyped_parameter.test b/parser/testdata/corpus/sql/prepared/prepare_list_sort_untyped_parameter.test new file mode 100644 index 00000000..7c404bcc --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepare_list_sort_untyped_parameter.test @@ -0,0 +1,305 @@ +# source: test/sql/prepared/prepare_list_sort_untyped_parameter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE q1 AS SELECT list_sort($1)[1] > 0; +-- +ok +== +EXECUTE q1([3, 1, 2]); +-- +ok +== +PREPARE q2 AS SELECT list_sort($1)[1] = 0; +-- +ok +== +EXECUTE q2([3, 1, 2]); +-- +ok +== +PREPARE q3 AS SELECT TRY(list_sort($1)[1] > 0); +-- +ok +== +EXECUTE q3([3, 1, 2]); +-- +ok +== +PREPARE q4 AS SELECT list_min(list_sort($1)); +-- +ok +== +EXECUTE q4([3, 1, 2]); +-- +ok +== +PREPARE q5 AS SELECT 1 > ANY(list_sort($1)); +-- +ok +== +EXECUTE q5([3, 1, 2]); +-- +ok +== +PREPARE q6 AS SELECT CASE WHEN false THEN list_sort($1) END; +-- +ok +== +EXECUTE q6([3, 1, 2]); +-- +ok +== +PREPARE q7 AS SELECT 1 = ANY(list_sort($1)); +-- +ok +== +EXECUTE q7([3, 1, 2]); +-- +ok +== +PREPARE q8 AS SELECT list_sort($1)[1]; +-- +ok +== +EXECUTE q8([3, 1, 2]); +-- +ok +== +EXECUTE q8(['b', 'a']); +-- +ok +== +EXECUTE q8([3.5, 1.5]); +-- +ok +== +PREPARE q9 AS SELECT list_reverse_sort($1)[1] > 0; +-- +ok +== +EXECUTE q9([3, 1, 2]); +-- +ok +== +PREPARE q10 AS SELECT list_sort($1, 'DESC')[1] > 0; +-- +ok +== +EXECUTE q10([3, 1, 2]); +-- +ok +== +PREPARE q11 AS SELECT list_grade_up($1)[1] > 0; +-- +ok +== +EXECUTE q11([3, 1, 2]); +-- +ok +== +PREPARE q12 AS SELECT list_grade_up($1); +-- +ok +== +EXECUTE q12([3, 1, 2]); +-- +ok +== +PREPARE q12b AS SELECT list_grade_up($1, 'DESC'); +-- +ok +== +EXECUTE q12b([3, 1, 2]); +-- +ok +== +PREPARE q12c AS SELECT list_grade_up($1, 'DESC', 'NULLS FIRST'); +-- +ok +== +EXECUTE q12c([3, NULL, 2]); +-- +ok +== +PREPARE q9b AS SELECT list_reverse_sort($1, 'NULLS LAST'); +-- +ok +== +EXECUTE q9b([3, NULL, 2]); +-- +ok +== +PREPARE q16 AS SELECT list_sort($1, $2, $3), list_grade_up($1, $2, $3), list_reverse_sort($1, $3); +-- +ok +== +EXECUTE q16([3, NULL, 1], 'DESC', 'NULLS FIRST'); +-- +ok +== +EXECUTE q16([3, NULL, 1], 'ASC', 'NULLS LAST'); +-- +ok +== +PREPARE q15 AS SELECT array_slice($1, 1, 2)[1] > 0; +-- +ok +== +EXECUTE q15([3, 1, 2]); +-- +ok +== +PREPARE q14 AS SELECT list_filter($1, lambda x: x > 1)[1] > 0; +-- +ok +== +EXECUTE q14([3, 1, 2]); +-- +ok +== +PREPARE q17 AS SELECT list_sort($1)[1] + 1, abs(list_sort($1)[1]), list_sort($1)[1] BETWEEN 0 AND 5; +-- +ok +== +EXECUTE q17([3, 1, 2]); +-- +ok +== +PREPARE q18 AS SELECT CASE WHEN list_sort($1)[1] > 0 THEN 1 END; +-- +ok +== +EXECUTE q18([3, 1, 2]); +-- +ok +== +PREPARE q19 AS SELECT i FROM range(3) t(i) WHERE list_sort($1)[1] > i; +-- +ok +== +EXECUTE q19([3, 1, 2]); +-- +ok +== +PREPARE q20 AS SELECT list_distinct(list_sort($1))[1] > 0; +-- +ok +== +EXECUTE q20([3, 1, 2, 1]); +-- +ok +== +PREPARE q21 AS SELECT list_transform(list_sort($1), lambda x: x + 1); +-- +ok +== +EXECUTE q21([3, 1, 2]); +-- +ok +== +PREPARE q22 AS SELECT list_sum(list_sort($1)), list_aggregate(list_filter($1, lambda x: x > 1), 'min'); +-- +ok +== +EXECUTE q22([3, 1, 2]); +-- +ok +== +PREPARE q23 AS SELECT cardinality($1); +-- +ok +== +EXECUTE q23([3, 1, 2]); +-- +ok +== +EXECUTE q23(MAP {1: 2}); +-- +ok +== +PREPARE q24 AS SELECT struct_keys($1), struct_update($1, b := 2); +-- +ok +== +EXECUTE q24({'a': 1}); +-- +ok +== +PREPARE q13 AS SELECT list_sort($1::INTEGER[])[1] > 0; +-- +ok +== +EXECUTE q13([3, 1, 2]); +-- +ok +== +EXECUTE q8(NULL); +-- +ok +== +PREPARE q25 AS SELECT list_sort([3, 1, 2], $1); +-- +ok +== +EXECUTE q25('DESC'); +-- +ok +== +PREPARE q26 AS SELECT list_sort(list_distinct($1)), list_contains($1, $2); +-- +ok +== +EXECUTE q26([3, 1, 2, 1], 2); +-- +ok +== +EXECUTE q26(['b', 'a', 'b'], 'c'); +-- +ok +== +PREPARE q26b AS SELECT list_contains($1, 1); +-- +ok +== +EXECUTE q26b([3, 1, 2]); +-- +ok +== +EXECUTE q26b(['b', 'a']); +-- +ok +== +PREPARE q27 AS SELECT count($1); +-- +ok +== +EXECUTE q27(3); +-- +ok +== +PREPARE q27b AS SELECT list($1)[1]; +-- +ok +== +EXECUTE q27b(3); +-- +ok +== +EXECUTE q27b('x'); +-- +ok +== +PREPARE q27c AS SELECT first($1) OVER (); +-- +ok +== +EXECUTE q27c(3); +-- +ok +== +EXECUTE q27c('x'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepare_maintain_types.test b/parser/testdata/corpus/sql/prepared/prepare_maintain_types.test index 7006404c..7704732a 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_maintain_types.test +++ b/parser/testdata/corpus/sql/prepared/prepare_maintain_types.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_maintain_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit prepare v1 as select cast(111 as short) * $1; diff --git a/parser/testdata/corpus/sql/prepared/prepare_mixed_types.test b/parser/testdata/corpus/sql/prepared/prepare_mixed_types.test index 1b8d1b9d..0a5d3499 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_mixed_types.test +++ b/parser/testdata/corpus/sql/prepared/prepare_mixed_types.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_mixed_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT $1::INT, $1::BIGINT diff --git a/parser/testdata/corpus/sql/prepared/prepare_nested_unresolved_parameter.test b/parser/testdata/corpus/sql/prepared/prepare_nested_unresolved_parameter.test new file mode 100644 index 00000000..86cbed86 --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepare_nested_unresolved_parameter.test @@ -0,0 +1,33 @@ +# source: test/sql/prepared/prepare_nested_unresolved_parameter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE p1 AS SELECT (SELECT a) FROM (SELECT ARRAY[{'a': $1}, $1]) t(a); +-- +ok +== +EXECUTE p1(NULL); +-- +ok +== +EXECUTE p1(1); +-- +ok +== +PREPARE p2 AS SELECT (SELECT a) FROM (SELECT [$1, $1]) t(a); +-- +ok +== +EXECUTE p2(5); +-- +ok +== +SET debug_verify_statement='prepared_statement'; +-- +ok +== +SELECT (SELECT a) FROM (SELECT ARRAY[{'a': NULL}, NULL]) t(a); +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepare_offset_first.test b/parser/testdata/corpus/sql/prepared/prepare_offset_first.test index 341e5595..52b8e308 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_offset_first.test +++ b/parser/testdata/corpus/sql/prepared/prepare_offset_first.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_offset_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE q AS SELECT x FROM generate_series(1, 10) t(x) OFFSET ? LIMIT ?; diff --git a/parser/testdata/corpus/sql/prepared/prepare_query_function_parameters.test b/parser/testdata/corpus/sql/prepared/prepare_query_function_parameters.test new file mode 100644 index 00000000..dd39ecb5 --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepare_query_function_parameters.test @@ -0,0 +1,81 @@ +# source: test/sql/prepared/prepare_query_function_parameters.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET VARIABLE n = 10 +-- +ok +== +SELECT * FROM query('SELECT $n') +-- +ok +== +PREPARE stmt AS SELECT * FROM query('SELECT $n') +-- +ok +== +PREPARE stmt AS SELECT * FROM query('SELECT $1') +-- +ok +== +PREPARE stmt AS SELECT * FROM query('SELECT ?') +-- +ok +== +PREPARE stmt_getvariable AS SELECT * FROM query('SELECT getvariable(''n'')') +-- +ok +== +EXECUTE stmt_getvariable +-- +ok +== +SET VARIABLE n = 20 +-- +ok +== +PREPARE stmt_outer AS SELECT $n, * FROM query('SELECT 1') +-- +ok +== +EXECUTE stmt_outer +-- +ok +== +EXECUTE stmt_outer(n := 5) +-- +ok +== +CREATE TABLE t AS SELECT 1 AS i +-- +ok +== +PREPARE stmt_table AS SELECT * FROM query_table('t') +-- +ok +== +EXECUTE stmt_table +-- +ok +== +PREPARE stmt_shared AS SELECT $customer::INTEGER AS supplied, * FROM query('SELECT $customer::INTEGER AS value') +-- +ok +== +EXECUTE stmt_shared(customer := 42) +-- +ok +== +PREPARE stmt_shared_positional AS SELECT $1::INTEGER AS supplied, * FROM query('SELECT $1::INTEGER AS value') +-- +ok +== +EXECUTE stmt_shared_positional(7) +-- +ok +== +PREPARE stmt_partial AS SELECT $a, * FROM query('SELECT $a + $b') +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepare_summarize.test b/parser/testdata/corpus/sql/prepared/prepare_summarize.test index 039ae59e..77f24b10 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_summarize.test +++ b/parser/testdata/corpus/sql/prepared/prepare_summarize.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_summarize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE accounts AS SELECT 1 id, 'Mark' AS name diff --git a/parser/testdata/corpus/sql/prepared/prepare_window_functions.test b/parser/testdata/corpus/sql/prepared/prepare_window_functions.test index 10eac604..1a9363c6 100644 --- a/parser/testdata/corpus/sql/prepared/prepare_window_functions.test +++ b/parser/testdata/corpus/sql/prepared/prepare_window_functions.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepare_window_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT SUM(?) OVER () diff --git a/parser/testdata/corpus/sql/prepared/prepared_named_param.test b/parser/testdata/corpus/sql/prepared/prepared_named_param.test index 5338083d..8cdd9cd4 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_named_param.test +++ b/parser/testdata/corpus/sql/prepared/prepared_named_param.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_named_param.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit prepare q123 as select $param, $other_name, $param; diff --git a/parser/testdata/corpus/sql/prepared/prepared_null_binding.test b/parser/testdata/corpus/sql/prepared/prepared_null_binding.test index fbfef965..7d42fa01 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_null_binding.test +++ b/parser/testdata/corpus/sql/prepared/prepared_null_binding.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_null_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT COALESCE(COALESCE(NULL, $1) / 42::BIGINT, 0.5); diff --git a/parser/testdata/corpus/sql/prepared/prepared_rebind_macro_view.test b/parser/testdata/corpus/sql/prepared/prepared_rebind_macro_view.test new file mode 100644 index 00000000..75d0e132 --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepared_rebind_macro_view.test @@ -0,0 +1,65 @@ +# source: test/sql/prepared/prepared_rebind_macro_view.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE q AS SELECT m(10); +-- +ok +== +EXECUTE q; +-- +ok +== +CREATE OR REPLACE MACRO m(x) AS x * 100; +-- +ok +== +CREATE VIEW v AS SELECT 1 AS a; +-- +ok +== +PREPARE qv AS SELECT * FROM v; +-- +ok +== +EXECUTE qv; +-- +ok +== +CREATE OR REPLACE VIEW v AS SELECT 2 AS a; +-- +ok +== +CREATE TEMP MACRO t(x) AS x + 1; +-- +ok +== +PREPARE qt AS SELECT t(1); +-- +ok +== +EXECUTE qt; +-- +ok +== +CREATE OR REPLACE TEMP MACRO t(x) AS x + 50; +-- +ok +== +CREATE MACRO tm() AS TABLE SELECT 1 AS a; +-- +ok +== +PREPARE qtm AS SELECT * FROM tm(); +-- +ok +== +EXECUTE qtm; +-- +ok +== +CREATE OR REPLACE MACRO tm() AS TABLE SELECT 2 AS a; +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepared_select.test b/parser/testdata/corpus/sql/prepared/prepared_select.test index d234e18a..db3a16fc 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_select.test +++ b/parser/testdata/corpus/sql/prepared/prepared_select.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE s1 AS SELECT ?::VARCHAR FROM (SELECT ?::INTEGER) tbl(i) WHERE i > ?::INTEGER diff --git a/parser/testdata/corpus/sql/prepared/prepared_stale_statistics.test b/parser/testdata/corpus/sql/prepared/prepared_stale_statistics.test index 1ad9cfb7..855aea62 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_stale_statistics.test +++ b/parser/testdata/corpus/sql/prepared/prepared_stale_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_stale_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE filter_t(i INTEGER); @@ -45,10 +45,6 @@ CREATE TABLE probe AS SELECT i::BIGINT AS k FROM range(0, 6144) t(i); -- ok == -CREATE TABLE build(k BIGINT); --- -ok -== INSERT INTO build VALUES (3000), (5000); -- ok diff --git a/parser/testdata/corpus/sql/prepared/prepared_statistics_optimization.test b/parser/testdata/corpus/sql/prepared/prepared_statistics_optimization.test index 3c477847..b18005a7 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_statistics_optimization.test +++ b/parser/testdata/corpus/sql/prepared/prepared_statistics_optimization.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_statistics_optimization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE cached_constant AS SELECT 42; diff --git a/parser/testdata/corpus/sql/prepared/prepared_time_zone.test b/parser/testdata/corpus/sql/prepared/prepared_time_zone.test new file mode 100644 index 00000000..5a11c5c0 --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepared_time_zone.test @@ -0,0 +1,49 @@ +# source: test/sql/prepared/prepared_time_zone.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE function_bind AS SELECT hour(to_timestamp(1767225600)); +-- +ok +== +PREPARE folded_cast AS SELECT epoch_us(TIMESTAMPTZ '2026-01-01 00:00:00'); +-- +ok +== +PREPARE evaluated_cast AS SELECT switch(to_timestamp(1767225600), MAP {TIMESTAMP '2026-01-01 00:00:00': 'hit'}, 'miss'); +-- +ok +== +EXECUTE function_bind; +-- +ok +== +EXECUTE folded_cast; +-- +ok +== +EXECUTE evaluated_cast; +-- +ok +== +SELECT hour(to_timestamp(1767225600)), epoch_us(TIMESTAMPTZ '2026-01-01 00:00:00'), switch(to_timestamp(1767225600), MAP {TIMESTAMP '2026-01-01 00:00:00': 'hit'}, 'miss'); +-- +ok +== +CREATE TABLE local_times (ts TIMESTAMP); +-- +ok +== +PREPARE local_time AS INSERT INTO local_times SELECT current_localtimestamp(); +-- +ok +== +EXECUTE local_time; +-- +ok +== +SELECT max(ts) - min(ts) FROM local_times; +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepared_time_zone_remote_catalog.test b/parser/testdata/corpus/sql/prepared/prepared_time_zone_remote_catalog.test new file mode 100644 index 00000000..5691f990 --- /dev/null +++ b/parser/testdata/corpus/sql/prepared/prepared_time_zone_remote_catalog.test @@ -0,0 +1,25 @@ +# source: test/sql/prepared/prepared_time_zone_remote_catalog.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PREPARE folded_function AS SELECT hour(to_timestamp(1767225600)); +-- +ok +== +PREPARE folded_argument AS SELECT epoch_us(TIMESTAMPTZ '2026-01-01 00:00:00'); +-- +ok +== +PREPARE folded_cast AS SELECT (TIMESTAMPTZ '2026-01-01 00:00:00+00')::VARCHAR; +-- +ok +== +EXECUTE folded_function; +-- +ok +== +EXECUTE folded_argument; +-- +ok +== diff --git a/parser/testdata/corpus/sql/prepared/prepared_update.test b/parser/testdata/corpus/sql/prepared/prepared_update.test index e17c4d44..5c2ab6d2 100644 --- a/parser/testdata/corpus/sql/prepared/prepared_update.test +++ b/parser/testdata/corpus/sql/prepared/prepared_update.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/prepared_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j VARCHAR) diff --git a/parser/testdata/corpus/sql/prepared/test_basic_prepare.test b/parser/testdata/corpus/sql/prepared/test_basic_prepare.test index a8ce46d8..578d5331 100644 --- a/parser/testdata/corpus/sql/prepared/test_basic_prepare.test +++ b/parser/testdata/corpus/sql/prepared/test_basic_prepare.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_basic_prepare.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE s1 AS SELECT CAST($1 AS INTEGER), CAST($2 AS STRING) diff --git a/parser/testdata/corpus/sql/prepared/test_issue_2079.test b/parser/testdata/corpus/sql/prepared/test_issue_2079.test index e20bce00..9979dc5f 100644 --- a/parser/testdata/corpus/sql/prepared/test_issue_2079.test +++ b/parser/testdata/corpus/sql/prepared/test_issue_2079.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_issue_2079.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT ? + 1.0 AS a diff --git a/parser/testdata/corpus/sql/prepared/test_issue_21077.test b/parser/testdata/corpus/sql/prepared/test_issue_21077.test index 9b9cd668..7fc15ee1 100644 --- a/parser/testdata/corpus/sql/prepared/test_issue_21077.test +++ b/parser/testdata/corpus/sql/prepared/test_issue_21077.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_issue_21077.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE pssmallint AS SELECT - ? diff --git a/parser/testdata/corpus/sql/prepared/test_issue_4010.test b/parser/testdata/corpus/sql/prepared/test_issue_4010.test index 8c7623d4..4ecdde4e 100644 --- a/parser/testdata/corpus/sql/prepared/test_issue_4010.test +++ b/parser/testdata/corpus/sql/prepared/test_issue_4010.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_issue_4010.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE table T1(A0 TIMESTAMP, A1 INTEGER, A2 VARCHAR, A3 VARCHAR, A4 INTEGER, A5 DOUBLE) diff --git a/parser/testdata/corpus/sql/prepared/test_issue_4042.test b/parser/testdata/corpus/sql/prepared/test_issue_4042.test index 88fb863e..c16bc80a 100644 --- a/parser/testdata/corpus/sql/prepared/test_issue_4042.test +++ b/parser/testdata/corpus/sql/prepared/test_issue_4042.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_issue_4042.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE stringliterals AS SELECT 1 AS ID, 1::BIGINT AS a1,'value-1' AS a2,'value-1' AS a3,10::BIGINT AS a4 diff --git a/parser/testdata/corpus/sql/prepared/test_issue_6276.test b/parser/testdata/corpus/sql/prepared/test_issue_6276.test index e8987800..f2c9b6c9 100644 --- a/parser/testdata/corpus/sql/prepared/test_issue_6276.test +++ b/parser/testdata/corpus/sql/prepared/test_issue_6276.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_issue_6276.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT CASE ? WHEN ? THEN ? WHEN ? THEN ? ELSE ? END AS x diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_ambiguous_type.test b/parser/testdata/corpus/sql/prepared/test_prepare_ambiguous_type.test index 965b9036..fc67600b 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_ambiguous_type.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_ambiguous_type.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_ambiguous_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT typeof(?) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_delete.test b/parser/testdata/corpus/sql/prepared/test_prepare_delete.test index fe2c744c..d268423d 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_delete.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_delete.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE b (i TINYINT) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_delete_update.test b/parser/testdata/corpus/sql/prepared/test_prepare_delete_update.test index ecc53fd9..0b8c3361 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_delete_update.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_delete_update.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_delete_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE s1 AS UPDATE b SET i=$1 WHERE i=$2 diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_drop.test b/parser/testdata/corpus/sql/prepared/test_prepare_drop.test index 004e3713..8492dc44 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_drop.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_drop.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a (i TINYINT) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_error.test b/parser/testdata/corpus/sql/prepared/test_prepare_error.test index 380b3f33..9ba73c45 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_error.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_error.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT ?::VARCHAR::INT diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_issue_5132.test b/parser/testdata/corpus/sql/prepared/test_prepare_issue_5132.test index aadfbdbb..8889e6ed 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_issue_5132.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_issue_5132.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_issue_5132.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select 42 i diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_issue_8500.test b/parser/testdata/corpus/sql/prepared/test_prepare_issue_8500.test index 4e6f0b4b..dbbd6bf1 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_issue_8500.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_issue_8500.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_issue_8500.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE S1 AS SELECT (? / 1) + 1; diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_null.test b/parser/testdata/corpus/sql/prepared/test_prepare_null.test index c4c209fa..f944404d 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_null.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_null.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE s1 AS INSERT INTO b VALUES ($1) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_select.test b/parser/testdata/corpus/sql/prepared/test_prepare_select.test index 017b2549..b2cc4082 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_select.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_select.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES (42) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_subquery.test b/parser/testdata/corpus/sql/prepared/test_prepare_subquery.test index fee008ce..4853646f 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_subquery.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PREPARE v1 AS SELECT * FROM (SELECT $1::INTEGER) sq1; diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_types.test b/parser/testdata/corpus/sql/prepared/test_prepare_types.test index c6c27126..ca137035 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_types.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_types.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a TINYINT, b SMALLINT, c INTEGER, d BIGINT, e REAL, f DOUBLE, g DATE, h VARCHAR) diff --git a/parser/testdata/corpus/sql/prepared/test_prepare_unused_cte.test b/parser/testdata/corpus/sql/prepared/test_prepare_unused_cte.test index 29de6786..600ed684 100644 --- a/parser/testdata/corpus/sql/prepared/test_prepare_unused_cte.test +++ b/parser/testdata/corpus/sql/prepared/test_prepare_unused_cte.test @@ -1,6 +1,6 @@ # source: test/sql/prepared/test_prepare_unused_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "user" (name string); diff --git a/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test b/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test new file mode 100644 index 00000000..5f978691 --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test @@ -0,0 +1,46 @@ +# source: test/sql/profiling/test_failed_query_profile.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PRAGMA profiling_output = '{TEST_DIR}/failed_query_profile.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/failed_query_profile.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT CASE WHEN i = 5000 THEN error('boom') END FROM range(10000) t(i); +-- +ok +== +SELECT prof.query.sql LIKE '%error(''boom'')%', len(prof.operator) > 0 +FROM read_json('{TEST_DIR}/failed_query_profile.json') prof; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/failed_prepare_profile.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/failed_prepare_profile.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT * FROM table_that_does_not_exist; +-- +ok +== +SELECT prof.result FROM read_json('{TEST_DIR}/failed_prepare_profile.json') prof; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/after_failure_profile.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/after_failure_profile.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT 43; +-- +ok +== +SELECT prof.query.sql LIKE '%43%' FROM read_json('{TEST_DIR}/after_failure_profile.json') prof; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/no_such_directory/profile.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/no_such_directory/profile.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== diff --git a/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test.metadata.json b/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test.metadata.json new file mode 100644 index 00000000..4562e76e --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_failed_query_profile.test.metadata.json @@ -0,0 +1,8 @@ +{ + "todo": { + "05337e909f8057a0": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "94797a7f383a3ba4": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "c7e717557f3a71cc": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "ce864a128b375519": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test b/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test new file mode 100644 index 00000000..ebc7d5a5 --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test @@ -0,0 +1,39 @@ +# source: test/sql/profiling/test_io_time_metrics.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PRAGMA profiling_output = '{TEST_DIR}/io_time_write.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/io_time_write.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['io.total_bytes_written', 'io.total_write_time']; +-- +ok +== +COPY (SELECT range AS id FROM range(100000)) TO '{TEST_DIR}/io_time.parquet' (FORMAT parquet); +-- +ok +== +SELECT prof.io.total_bytes_written > 0, prof.io.total_write_time >= 0 +FROM read_json('{TEST_DIR}/io_time_write.json') prof; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/io_time_read.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/io_time_read.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['io.total_bytes_read', 'io.total_read_time']; +-- +ok +== +SELECT sum(id) FROM read_parquet('{TEST_DIR}/io_time.parquet'); +-- +ok +== +SELECT prof.io.total_bytes_read >= 0, prof.io.total_read_time >= 0 +FROM read_json('{TEST_DIR}/io_time_read.json') prof; +-- +ok +== diff --git a/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test.metadata.json b/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test.metadata.json new file mode 100644 index 00000000..0f4e526c --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_io_time_metrics.test.metadata.json @@ -0,0 +1,6 @@ +{ + "todo": { + "da80b9d03142a950": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "e641a09324095fe5": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test b/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test new file mode 100644 index 00000000..c1a0c8eb --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test @@ -0,0 +1,34 @@ +# source: test/sql/profiling/test_spilled_bytes_metric.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +PRAGMA temp_directory = '{TEST_DIR}/spilled_bytes_tmp'; +-- +ok +== +SET preserve_insertion_order = false; +-- +ok +== +PRAGMA memory_limit = '100MB'; +-- +ok +== +PRAGMA profiling_output = '{TEST_DIR}/spilled_bytes.json'; +-- +error: Parser Error: Profiler file type ({TEST_DIR}/spilled_bytes.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SET tracked_metrics = ['system.total_bytes_spilled']; +-- +ok +== +SELECT first(i) FROM (SELECT i FROM range(20000000) t(i) ORDER BY i DESC); +-- +ok +== +SELECT prof.system.total_bytes_spilled > 0 +FROM read_json('{TEST_DIR}/spilled_bytes.json') prof; +-- +ok +== diff --git a/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test.metadata.json b/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test.metadata.json new file mode 100644 index 00000000..12d0ccaa --- /dev/null +++ b/parser/testdata/corpus/sql/profiling/test_spilled_bytes_metric.test.metadata.json @@ -0,0 +1,5 @@ +{ + "todo": { + "4aa9e306808399aa": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/progress/test_verify_progress.test b/parser/testdata/corpus/sql/progress/test_verify_progress.test index 8c15ea45..e9e5c374 100644 --- a/parser/testdata/corpus/sql/progress/test_verify_progress.test +++ b/parser/testdata/corpus/sql/progress/test_verify_progress.test @@ -1,6 +1,6 @@ # source: test/sql/progress/test_verify_progress.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_progress='unknown' @@ -11,10 +11,6 @@ CREATE TABLE integers AS SELECT i FROM range(500000) t(i) -- ok == -SET debug_verify_progress='error' --- -ok -== SET debug_verify_progress_ignore='' -- ok diff --git a/parser/testdata/corpus/sql/projection/coalesce_error.test b/parser/testdata/corpus/sql/projection/coalesce_error.test index 1a0667ee..e8330ee2 100644 --- a/parser/testdata/corpus/sql/projection/coalesce_error.test +++ b/parser/testdata/corpus/sql/projection/coalesce_error.test @@ -1,6 +1,6 @@ # source: test/sql/projection/coalesce_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COALESCE(1, 'hello'::INT) diff --git a/parser/testdata/corpus/sql/projection/coalesce_rowid.test b/parser/testdata/corpus/sql/projection/coalesce_rowid.test index 0948ef6f..956b8c60 100644 --- a/parser/testdata/corpus/sql/projection/coalesce_rowid.test +++ b/parser/testdata/corpus/sql/projection/coalesce_rowid.test @@ -1,6 +1,6 @@ # source: test/sql/projection/coalesce_rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select case when i%2=0 then null else i end as i from range(10) tbl(i); diff --git a/parser/testdata/corpus/sql/projection/reference_only_output.test b/parser/testdata/corpus/sql/projection/reference_only_output.test index 96c9deee..c04d0a3a 100644 --- a/parser/testdata/corpus/sql/projection/reference_only_output.test +++ b/parser/testdata/corpus/sql/projection/reference_only_output.test @@ -1,6 +1,6 @@ # source: test/sql/projection/reference_only_output.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE projection_input AS diff --git a/parser/testdata/corpus/sql/projection/select_star_exclude.test b/parser/testdata/corpus/sql/projection/select_star_exclude.test index 24423f42..a7df38fc 100644 --- a/parser/testdata/corpus/sql/projection/select_star_exclude.test +++ b/parser/testdata/corpus/sql/projection/select_star_exclude.test @@ -1,6 +1,6 @@ # source: test/sql/projection/select_star_exclude.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * EXCLUDE i FROM integers diff --git a/parser/testdata/corpus/sql/projection/select_star_like.test b/parser/testdata/corpus/sql/projection/select_star_like.test index 02e31922..586a9c16 100644 --- a/parser/testdata/corpus/sql/projection/select_star_like.test +++ b/parser/testdata/corpus/sql/projection/select_star_like.test @@ -1,6 +1,6 @@ # source: test/sql/projection/select_star_like.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COLUMNS(lambda x: x LIKE 'col%') FROM integers diff --git a/parser/testdata/corpus/sql/projection/select_star_rename.test b/parser/testdata/corpus/sql/projection/select_star_rename.test index 980fbede..d2900485 100644 --- a/parser/testdata/corpus/sql/projection/select_star_rename.test +++ b/parser/testdata/corpus/sql/projection/select_star_rename.test @@ -1,6 +1,6 @@ # source: test/sql/projection/select_star_rename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 2, 3); diff --git a/parser/testdata/corpus/sql/projection/select_star_replace.test b/parser/testdata/corpus/sql/projection/select_star_replace.test index bacd2eee..650ceaeb 100644 --- a/parser/testdata/corpus/sql/projection/select_star_replace.test +++ b/parser/testdata/corpus/sql/projection/select_star_replace.test @@ -1,6 +1,6 @@ # source: test/sql/projection/select_star_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * REPLACE i+100 AS i FROM integers @@ -45,7 +45,7 @@ ok == SELECT * EXCLUDE (i) REPLACE (i+100 AS i) FROM integers -- -error: Parser Error: Column ""i"" cannot occur in both EXCLUDE and REPLACE list +error: Parser Error: Column "i" cannot occur in both EXCLUDE and REPLACE list == CREATE TABLE test_star(id INTEGER, col1 VARCHAR, col2 VARCHAR, col3 INTEGER); -- diff --git a/parser/testdata/corpus/sql/projection/select_star_similar_to_full_match.test b/parser/testdata/corpus/sql/projection/select_star_similar_to_full_match.test new file mode 100644 index 00000000..f2424ab5 --- /dev/null +++ b/parser/testdata/corpus/sql/projection/select_star_similar_to_full_match.test @@ -0,0 +1,25 @@ +# source: test/sql/projection/select_star_similar_to_full_match.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(ab INT, b INT, bc INT); +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT * SIMILAR TO 'b' FROM t) +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT * SIMILAR TO 'a|b' FROM t) +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT * SIMILAR TO 'b.*' FROM t) ORDER BY 1 +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT regexp_full_match(*, 'b') FROM t) +-- +ok +== diff --git a/parser/testdata/corpus/sql/projection/select_struct_star.test b/parser/testdata/corpus/sql/projection/select_struct_star.test index e9735f46..5f85a5d9 100644 --- a/parser/testdata/corpus/sql/projection/select_struct_star.test +++ b/parser/testdata/corpus/sql/projection/select_struct_star.test @@ -1,6 +1,6 @@ # source: test/sql/projection/select_struct_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a STRUCT(i INT, j INT)); diff --git a/parser/testdata/corpus/sql/projection/test_columns_replace_using.test b/parser/testdata/corpus/sql/projection/test_columns_replace_using.test index b89dcd46..fb6f55d1 100644 --- a/parser/testdata/corpus/sql/projection/test_columns_replace_using.test +++ b/parser/testdata/corpus/sql/projection/test_columns_replace_using.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_columns_replace_using.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COLUMNS(* REPLACE a AS a) FROM range(1) t1(a) NATURAL JOIN range(1) t2(a) diff --git a/parser/testdata/corpus/sql/projection/test_complex_expressions.test b/parser/testdata/corpus/sql/projection/test_complex_expressions.test index af0d3af5..9ab65426 100644 --- a/parser/testdata/corpus/sql/projection/test_complex_expressions.test +++ b/parser/testdata/corpus/sql/projection/test_complex_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_complex_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM exprtest diff --git a/parser/testdata/corpus/sql/projection/test_row_id.test b/parser/testdata/corpus/sql/projection/test_row_id.test index 384702ff..c725216a 100644 --- a/parser/testdata/corpus/sql/projection/test_row_id.test +++ b/parser/testdata/corpus/sql/projection/test_row_id.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_row_id.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into a values (42), (44); diff --git a/parser/testdata/corpus/sql/projection/test_row_id_expression.test b/parser/testdata/corpus/sql/projection/test_row_id_expression.test index e6aeddc2..6d74b56d 100644 --- a/parser/testdata/corpus/sql/projection/test_row_id_expression.test +++ b/parser/testdata/corpus/sql/projection/test_row_id_expression.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_row_id_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT rowid + 1, rowid - 1, rowid + rowid, i + rowid FROM a diff --git a/parser/testdata/corpus/sql/projection/test_scalar_projection.test b/parser/testdata/corpus/sql/projection/test_scalar_projection.test index 79025908..e094dee4 100644 --- a/parser/testdata/corpus/sql/projection/test_scalar_projection.test +++ b/parser/testdata/corpus/sql/projection/test_scalar_projection.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_scalar_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 + 1 diff --git a/parser/testdata/corpus/sql/projection/test_simple_projection.test b/parser/testdata/corpus/sql/projection/test_simple_projection.test index b0951826..98e5a63b 100644 --- a/parser/testdata/corpus/sql/projection/test_simple_projection.test +++ b/parser/testdata/corpus/sql/projection/test_simple_projection.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_simple_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, j FROM a; diff --git a/parser/testdata/corpus/sql/projection/test_table_star.test b/parser/testdata/corpus/sql/projection/test_table_star.test index dccb9c68..a0946ead 100644 --- a/parser/testdata/corpus/sql/projection/test_table_star.test +++ b/parser/testdata/corpus/sql/projection/test_table_star.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_table_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT test.* FROM test diff --git a/parser/testdata/corpus/sql/projection/test_value_list.test b/parser/testdata/corpus/sql/projection/test_value_list.test index be587ea3..1a216cca 100644 --- a/parser/testdata/corpus/sql/projection/test_value_list.test +++ b/parser/testdata/corpus/sql/projection/test_value_list.test @@ -1,6 +1,6 @@ # source: test/sql/projection/test_value_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit (VALUES (1, 3), (2, 4)); diff --git a/parser/testdata/corpus/sql/returning/no_crash_when_no_returning_columns.test b/parser/testdata/corpus/sql/returning/no_crash_when_no_returning_columns.test index feb692ff..59d4ddc9 100644 --- a/parser/testdata/corpus/sql/returning/no_crash_when_no_returning_columns.test +++ b/parser/testdata/corpus/sql/returning/no_crash_when_no_returning_columns.test @@ -1,6 +1,6 @@ # source: test/sql/returning/no_crash_when_no_returning_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v0 ( c1 INT ); diff --git a/parser/testdata/corpus/sql/returning/returning_delete.test b/parser/testdata/corpus/sql/returning/returning_delete.test index 96241a6d..1fad7d51 100644 --- a/parser/testdata/corpus/sql/returning/returning_delete.test +++ b/parser/testdata/corpus/sql/returning/returning_delete.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE table1 (a INTEGER DEFAULT -1, b INTEGER DEFAULT -2, c INTEGER DEFAULT -3); diff --git a/parser/testdata/corpus/sql/returning/returning_delete_list.test b/parser/testdata/corpus/sql/returning/returning_delete_list.test index ad0080a5..a3cfe692 100644 --- a/parser/testdata/corpus/sql/returning/returning_delete_list.test +++ b/parser/testdata/corpus/sql/returning/returning_delete_list.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_delete_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE all_types("varchar" VARCHAR, nested_int_array INTEGER[][]);; diff --git a/parser/testdata/corpus/sql/returning/returning_delete_same_transaction.test b/parser/testdata/corpus/sql/returning/returning_delete_same_transaction.test index 5857820d..3bb3f29d 100644 --- a/parser/testdata/corpus/sql/returning/returning_delete_same_transaction.test +++ b/parser/testdata/corpus/sql/returning/returning_delete_same_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_delete_same_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INT PRIMARY KEY, name TEXT); diff --git a/parser/testdata/corpus/sql/returning/returning_insert.test b/parser/testdata/corpus/sql/returning/returning_insert.test index 3d59262f..af08f54e 100644 --- a/parser/testdata/corpus/sql/returning/returning_insert.test +++ b/parser/testdata/corpus/sql/returning/returning_insert.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO table1 VALUES (1, 2, 3); diff --git a/parser/testdata/corpus/sql/returning/returning_large.test b/parser/testdata/corpus/sql/returning/returning_large.test index 4633c847..88768e46 100644 --- a/parser/testdata/corpus/sql/returning/returning_large.test +++ b/parser/testdata/corpus/sql/returning/returning_large.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO table1(a, b, c) SELECT a, b, c FROM table1 RETURNING a; diff --git a/parser/testdata/corpus/sql/returning/returning_update.test b/parser/testdata/corpus/sql/returning/returning_update.test index c7ba1a98..a1b1cdac 100644 --- a/parser/testdata/corpus/sql/returning/returning_update.test +++ b/parser/testdata/corpus/sql/returning/returning_update.test @@ -1,6 +1,6 @@ # source: test/sql/returning/returning_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE table1 @@ -72,18 +72,18 @@ ok UPDATE table3 SET c3 = t2.c2 FROM table2 AS t2 -RETURNING a3, b3, c3 IN (1, 2, 3, 100, 200); +RETURNING *; -- ok == -SELECT a3, b3, c3 IN (1, 2, 3, 100, 200) FROM table3; +SELECT a3, b3, c3 IN (1, 200) FROM table3; -- ok == UPDATE table3 SET b3 = t2.b2 FROM table2 AS t2 -WHERE table3.a3 = t2.a2 RETURNING a3, b3, c3 IN (1, 2, 3, 100, 200); +WHERE table3.a3 = t2.a2 RETURNING a3, b3, c3 IN (1, 200); -- ok == diff --git a/parser/testdata/corpus/sql/sample/can_sample_from_ingested_files.test b/parser/testdata/corpus/sql/sample/can_sample_from_ingested_files.test index f7d837e7..13e242e9 100644 --- a/parser/testdata/corpus/sql/sample/can_sample_from_ingested_files.test +++ b/parser/testdata/corpus/sql/sample/can_sample_from_ingested_files.test @@ -1,6 +1,6 @@ # source: test/sql/sample/can_sample_from_ingested_files.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table all_types as select * exclude(small_enum, medium_enum, large_enum, "union", bit, empty_struct) from test_all_types(); diff --git a/parser/testdata/corpus/sql/sample/helper_operator_coverage.test b/parser/testdata/corpus/sql/sample/helper_operator_coverage.test index 7156db1a..6dc25b30 100644 --- a/parser/testdata/corpus/sql/sample/helper_operator_coverage.test +++ b/parser/testdata/corpus/sql/sample/helper_operator_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/sample/helper_operator_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM range(100) USING SAMPLE 0 PERCENT (reservoir, 42); diff --git a/parser/testdata/corpus/sql/sample/repeatable_seed_range.test b/parser/testdata/corpus/sql/sample/repeatable_seed_range.test new file mode 100644 index 00000000..7a0e68d8 --- /dev/null +++ b/parser/testdata/corpus/sql/sample/repeatable_seed_range.test @@ -0,0 +1,18 @@ +# source: test/sql/sample/repeatable_seed_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM range(100) USING SAMPLE bernoulli(10%) REPEATABLE (9223372036854775808); +-- +error: Parser Error: REPEATABLE seed 9223372036854775808 is out of range, the maximum is 9223372036854775807 +== +SELECT count(*) FROM range(100) USING SAMPLE bernoulli(10%) REPEATABLE (18446744073709551615); +-- +error: Parser Error: REPEATABLE seed 18446744073709551615 is out of range, the maximum is 9223372036854775807 +== +SELECT (SELECT count(*) FROM range(1000) USING SAMPLE bernoulli(10%) REPEATABLE (9223372036854775807)) = + (SELECT count(*) FROM range(1000) USING SAMPLE bernoulli(10%) REPEATABLE (9223372036854775807)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/sample/reservoir_sample.test b/parser/testdata/corpus/sql/sample/reservoir_sample.test index b9b747f8..ff7e96a6 100644 --- a/parser/testdata/corpus/sql/sample/reservoir_sample.test +++ b/parser/testdata/corpus/sql/sample/reservoir_sample.test @@ -1,6 +1,6 @@ # source: test/sql/sample/reservoir_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*), count(DISTINCT i) diff --git a/parser/testdata/corpus/sql/sample/reservoir_sample_memory_limit.test b/parser/testdata/corpus/sql/sample/reservoir_sample_memory_limit.test index 7e711166..4eb29029 100644 --- a/parser/testdata/corpus/sql/sample/reservoir_sample_memory_limit.test +++ b/parser/testdata/corpus/sql/sample/reservoir_sample_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/sample/reservoir_sample_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT sum(length(s)) FROM (SELECT repeat('x', 1000) s FROM range(300000)) USING SAMPLE 50 PERCENT (reservoir) diff --git a/parser/testdata/corpus/sql/sample/same_seed_same_sample.test b/parser/testdata/corpus/sql/sample/same_seed_same_sample.test index 4739a0c5..514efa19 100644 --- a/parser/testdata/corpus/sql/sample/same_seed_same_sample.test +++ b/parser/testdata/corpus/sql/sample/same_seed_same_sample.test @@ -1,6 +1,6 @@ # source: test/sql/sample/same_seed_same_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE test AS SELECT UNNEST(RANGE(100000)) as x; diff --git a/parser/testdata/corpus/sql/sample/system_sample_index_scan.test b/parser/testdata/corpus/sql/sample/system_sample_index_scan.test index 046d1374..f51d22dd 100644 --- a/parser/testdata/corpus/sql/sample/system_sample_index_scan.test +++ b/parser/testdata/corpus/sql/sample/system_sample_index_scan.test @@ -1,6 +1,6 @@ # source: test/sql/sample/system_sample_index_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c1 BOOLEAN); diff --git a/parser/testdata/corpus/sql/sample/table_samples/basic_sample_tests.test b/parser/testdata/corpus/sql/sample/table_samples/basic_sample_tests.test index 587169f0..cd68fa37 100644 --- a/parser/testdata/corpus/sql/sample/table_samples/basic_sample_tests.test +++ b/parser/testdata/corpus/sql/sample/table_samples/basic_sample_tests.test @@ -1,6 +1,6 @@ # source: test/sql/sample/table_samples/basic_sample_tests.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from range(100000) using sample (10000); diff --git a/parser/testdata/corpus/sql/sample/table_samples/table_sample_converts_to_block_sample.test b/parser/testdata/corpus/sql/sample/table_samples/table_sample_converts_to_block_sample.test index 1c0507f9..6226bce0 100644 --- a/parser/testdata/corpus/sql/sample/table_samples/table_sample_converts_to_block_sample.test +++ b/parser/testdata/corpus/sql/sample/table_samples/table_sample_converts_to_block_sample.test @@ -1,6 +1,6 @@ # source: test/sql/sample/table_samples/table_sample_converts_to_block_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table materialized_range as select 1 a from range(102400); diff --git a/parser/testdata/corpus/sql/sample/table_samples/test_sample_is_destroyed_on_updates.test b/parser/testdata/corpus/sql/sample/table_samples/test_sample_is_destroyed_on_updates.test index d32d6cca..82016a3e 100644 --- a/parser/testdata/corpus/sql/sample/table_samples/test_sample_is_destroyed_on_updates.test +++ b/parser/testdata/corpus/sql/sample/table_samples/test_sample_is_destroyed_on_updates.test @@ -1,6 +1,6 @@ # source: test/sql/sample/table_samples/test_sample_is_destroyed_on_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table integers_1 as select range a, range+1 b from range(102400); diff --git a/parser/testdata/corpus/sql/sample/table_samples/test_sample_types.test b/parser/testdata/corpus/sql/sample/table_samples/test_sample_types.test index 84747cac..7aea2f64 100644 --- a/parser/testdata/corpus/sql/sample/table_samples/test_sample_types.test +++ b/parser/testdata/corpus/sql/sample/table_samples/test_sample_types.test @@ -1,6 +1,6 @@ # source: test/sql/sample/table_samples/test_sample_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table string_samples as select range::Varchar a from range(204800); diff --git a/parser/testdata/corpus/sql/sample/table_samples/test_table_sample_errors.test b/parser/testdata/corpus/sql/sample/table_samples/test_table_sample_errors.test index 9b18aa59..8e98fa9c 100644 --- a/parser/testdata/corpus/sql/sample/table_samples/test_table_sample_errors.test +++ b/parser/testdata/corpus/sql/sample/table_samples/test_table_sample_errors.test @@ -1,6 +1,6 @@ # source: test/sql/sample/table_samples/test_table_sample_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create view v1 as select * from t1; diff --git a/parser/testdata/corpus/sql/sample/test_sample_too_big.test b/parser/testdata/corpus/sql/sample/test_sample_too_big.test index 9601c43c..a060d9ca 100644 --- a/parser/testdata/corpus/sql/sample/test_sample_too_big.test +++ b/parser/testdata/corpus/sql/sample/test_sample_too_big.test @@ -1,6 +1,6 @@ # source: test/sql/sample/test_sample_too_big.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(a INT); diff --git a/parser/testdata/corpus/sql/sample/test_system_rows.test b/parser/testdata/corpus/sql/sample/test_system_rows.test index 637109a7..8ed3aea6 100644 --- a/parser/testdata/corpus/sql/sample/test_system_rows.test +++ b/parser/testdata/corpus/sql/sample/test_system_rows.test @@ -1,6 +1,6 @@ # source: test/sql/sample/test_system_rows.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table AS SELECT i FROM range(10000) tbl(i); diff --git a/parser/testdata/corpus/sql/sample/test_system_rows_pushdown.test b/parser/testdata/corpus/sql/sample/test_system_rows_pushdown.test index a9b1365c..f2e839b5 100644 --- a/parser/testdata/corpus/sql/sample/test_system_rows_pushdown.test +++ b/parser/testdata/corpus/sql/sample/test_system_rows_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/sample/test_system_rows_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pushdown_test AS SELECT i FROM range(1000000) tbl(i); diff --git a/parser/testdata/corpus/sql/secrets/connection_secret_storage.test b/parser/testdata/corpus/sql/secrets/connection_secret_storage.test index 320945b2..96f0f408 100644 --- a/parser/testdata/corpus/sql/secrets/connection_secret_storage.test +++ b/parser/testdata/corpus/sql/secrets/connection_secret_storage.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/connection_secret_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SECRET s1 IN connection (TYPE http, SCOPE 'https://a.example.com') diff --git a/parser/testdata/corpus/sql/secrets/create_secret_expression.test b/parser/testdata/corpus/sql/secrets/create_secret_expression.test index a37ab8fa..51b109d6 100644 --- a/parser/testdata/corpus/sql/secrets/create_secret_expression.test +++ b/parser/testdata/corpus/sql/secrets/create_secret_expression.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/create_secret_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SECRET a (TYPE http); @@ -91,3 +91,47 @@ SELECT l[2] secret_value FROM (SELECT unnest(list_transform(split(secret_string, -- ok == +CREATE OR REPLACE SECRET my_secret (TYPE HTTP, HTTP_PROXY COALESCE(getvariable('unset_proxy'), 'http://fallback-proxy/')); +-- +ok +== +SELECT secret_string.contains('http_proxy=http://fallback-proxy/') FROM duckdb_secrets() WHERE name='my_secret' +-- +ok +== +SET VARIABLE my_proxy='http://variable-proxy/'; +-- +ok +== +CREATE OR REPLACE SECRET my_secret (TYPE HTTP, HTTP_PROXY COALESCE(getvariable('my_proxy'), 'http://fallback-proxy/')); +-- +ok +== +SELECT secret_string.contains('http_proxy=http://variable-proxy/') FROM duckdb_secrets() WHERE name='my_secret' +-- +ok +== +CREATE OR REPLACE SECRET my_secret (TYPE HTTP, HTTP_PROXY CASE WHEN getvariable('my_proxy') IS NULL THEN 'http://a/' ELSE 'http://b/' END); +-- +ok +== +SELECT secret_string.contains('http_proxy=http://b/') FROM duckdb_secrets() WHERE name='my_secret' +-- +ok +== +CREATE OR REPLACE SECRET my_secret (TYPE HTTP, VERIFY_SSL 1 = 0); +-- +ok +== +SELECT secret_string.contains('verify_ssl=false') FROM duckdb_secrets() WHERE name='my_secret' +-- +ok +== +CREATE OR REPLACE SECRET my_secret (TYPE COALESCE(NULL, 'http'), HTTP_PROXY 'http://some-proxy/'); +-- +ok +== +SELECT type FROM duckdb_secrets() WHERE name='my_secret' +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/create_secret_filesystem_logging.test b/parser/testdata/corpus/sql/secrets/create_secret_filesystem_logging.test index 27945ae5..6f09b75d 100644 --- a/parser/testdata/corpus/sql/secrets/create_secret_filesystem_logging.test +++ b/parser/testdata/corpus/sql/secrets/create_secret_filesystem_logging.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/create_secret_filesystem_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET secret_directory='{TEST_DIR}/secret_fs_logging'; diff --git a/parser/testdata/corpus/sql/secrets/create_secret_hffs_autoload.test b/parser/testdata/corpus/sql/secrets/create_secret_hffs_autoload.test index 188c3327..a1f2f1f0 100644 --- a/parser/testdata/corpus/sql/secrets/create_secret_hffs_autoload.test +++ b/parser/testdata/corpus/sql/secrets/create_secret_hffs_autoload.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/create_secret_hffs_autoload.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set allow_persistent_secrets=false; diff --git a/parser/testdata/corpus/sql/secrets/create_secret_persistence_no_client_context.test b/parser/testdata/corpus/sql/secrets/create_secret_persistence_no_client_context.test index 5cab70c5..9bbf9634 100644 --- a/parser/testdata/corpus/sql/secrets/create_secret_persistence_no_client_context.test +++ b/parser/testdata/corpus/sql/secrets/create_secret_persistence_no_client_context.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/create_secret_persistence_no_client_context.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set secret_directory='{TEST_DIR}/create_secret_persistence_no_client_context' diff --git a/parser/testdata/corpus/sql/secrets/create_transaction_secret.test b/parser/testdata/corpus/sql/secrets/create_transaction_secret.test index 1993a2e7..458043e7 100644 --- a/parser/testdata/corpus/sql/secrets/create_transaction_secret.test +++ b/parser/testdata/corpus/sql/secrets/create_transaction_secret.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/create_transaction_secret.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRANSACTION SECRET transaction_secret (TYPE HTTP); diff --git a/parser/testdata/corpus/sql/secrets/drop_persistent_secret_if_exists.test b/parser/testdata/corpus/sql/secrets/drop_persistent_secret_if_exists.test index 71fb5cf9..dfff133d 100644 --- a/parser/testdata/corpus/sql/secrets/drop_persistent_secret_if_exists.test +++ b/parser/testdata/corpus/sql/secrets/drop_persistent_secret_if_exists.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/drop_persistent_secret_if_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set secret_directory='{TEST_DIR}/drop_persistent_secret_if_exists' diff --git a/parser/testdata/corpus/sql/secrets/drop_temporary_secret_storage.test b/parser/testdata/corpus/sql/secrets/drop_temporary_secret_storage.test index 38f22d80..43d0ac83 100644 --- a/parser/testdata/corpus/sql/secrets/drop_temporary_secret_storage.test +++ b/parser/testdata/corpus/sql/secrets/drop_temporary_secret_storage.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/drop_temporary_secret_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY SECRET s (TYPE http) diff --git a/parser/testdata/corpus/sql/secrets/http_env_scope_lookup.test b/parser/testdata/corpus/sql/secrets/http_env_scope_lookup.test index 53586a79..bb270463 100644 --- a/parser/testdata/corpus/sql/secrets/http_env_scope_lookup.test +++ b/parser/testdata/corpus/sql/secrets/http_env_scope_lookup.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/http_env_scope_lookup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET secret_directory = '{TEST_DIR}/http_env_scope_lookup' diff --git a/parser/testdata/corpus/sql/secrets/http_secret_redaction.test b/parser/testdata/corpus/sql/secrets/http_secret_redaction.test index 3dac0ff1..6202575e 100644 --- a/parser/testdata/corpus/sql/secrets/http_secret_redaction.test +++ b/parser/testdata/corpus/sql/secrets/http_secret_redaction.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/http_secret_redaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allow_unredacted_secrets = false; diff --git a/parser/testdata/corpus/sql/secrets/http_secret_scope_authority.test b/parser/testdata/corpus/sql/secrets/http_secret_scope_authority.test new file mode 100644 index 00000000..a19659a0 --- /dev/null +++ b/parser/testdata/corpus/sql/secrets/http_secret_scope_authority.test @@ -0,0 +1,57 @@ +# source: test/sql/secrets/http_secret_scope_authority.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET secret_directory='{TEST_DIR}/http_secret_scope_authority'; +-- +ok +== +CREATE SECRET port_scope (TYPE http, SCOPE 'http://127.0.0.1:18081'); +-- +ok +== +CREATE SECRET host_scope (TYPE http, SCOPE 'https://trusted.example'); +-- +ok +== +CREATE SECRET file_scope (TYPE http, SCOPE 'https://trusted.example/data/file.csv'); +-- +ok +== +SELECT name FROM which_secret('{url}', 'http'); +-- +ok +== +CREATE SECRET bucket_scope (TYPE http, SCOPE 's3://trusted-bucket'); +-- +ok +== +CREATE SECRET key_prefix_scope (TYPE http, SCOPE 's3://trusted-bucket/data/file'); +-- +ok +== +SELECT name FROM which_secret('s3://trusted-bucket/other.csv', 'http'); +-- +ok +== +SELECT name FROM which_secret('s3://trusted-bucket/data/file.parquet', 'http'); +-- +ok +== +SELECT count(*) FROM which_secret('s3://trusted-bucket-other/file.csv', 'http'); +-- +ok +== +SELECT count(*) FROM which_secret('{url}', 'http'); +-- +ok +== +CREATE SECRET scheme_scope (TYPE http, SCOPE 'https://'); +-- +ok +== +SELECT name FROM which_secret('https://unrelated.example/file.csv', 'http'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/persistent_secret_map_value.test b/parser/testdata/corpus/sql/secrets/persistent_secret_map_value.test index a1ea541d..bd82221a 100644 --- a/parser/testdata/corpus/sql/secrets/persistent_secret_map_value.test +++ b/parser/testdata/corpus/sql/secrets/persistent_secret_map_value.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/persistent_secret_map_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set secret_directory='{TEST_DIR}/persistent_secret_map_value' diff --git a/parser/testdata/corpus/sql/secrets/persistent_secret_name_collision.test b/parser/testdata/corpus/sql/secrets/persistent_secret_name_collision.test new file mode 100644 index 00000000..4efd595c --- /dev/null +++ b/parser/testdata/corpus/sql/secrets/persistent_secret_name_collision.test @@ -0,0 +1,33 @@ +# source: test/sql/secrets/persistent_secret_name_collision.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +set secret_directory='{TEST_DIR}/persistent_secret_name_collision' +-- +ok +== +CREATE PERSISTENT SECRET "lit/name" (TYPE HTTP, BEARER_TOKEN 'tok'); +-- +ok +== +SELECT name FROM duckdb_secrets() ORDER BY name; +-- +ok +== +CREATE PERSISTENT SECRET "lit%2Fname" (TYPE HTTP, BEARER_TOKEN 'tok2'); +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/persistent_secret_name_collision/*.duckdb_secret'); +-- +ok +== +DROP PERSISTENT SECRET "lit/name"; +-- +ok +== +DROP PERSISTENT SECRET "lit%2Fname"; +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/persistent_secret_name_path_traversal.test b/parser/testdata/corpus/sql/secrets/persistent_secret_name_path_traversal.test new file mode 100644 index 00000000..4337f0a0 --- /dev/null +++ b/parser/testdata/corpus/sql/secrets/persistent_secret_name_path_traversal.test @@ -0,0 +1,81 @@ +# source: test/sql/secrets/persistent_secret_name_path_traversal.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +set secret_directory='{TEST_DIR}/persistent_secret_name_path_traversal' +-- +ok +== +CREATE PERSISTENT SECRET "../escaped_secret" (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET "a/b%c" (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE OR REPLACE PERSISTENT SECRET "..\escaped_secret" (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET regular_secret (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET "." (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET ".." (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET ".hidden" (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +CREATE PERSISTENT SECRET "my.secret:1" (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/*escaped_secret*'); +-- +ok +== +SELECT count(*) FROM glob('{TEST_DIR}/persistent_secret_name_path_traversal/*.duckdb_secret'); +-- +ok +== +DROP PERSISTENT SECRET "../escaped_secret"; +-- +ok +== +DROP PERSISTENT SECRET "a/b%c"; +-- +ok +== +DROP PERSISTENT SECRET "..\escaped_secret"; +-- +ok +== +DROP PERSISTENT SECRET regular_secret; +-- +ok +== +DROP PERSISTENT SECRET "."; +-- +ok +== +DROP PERSISTENT SECRET ".."; +-- +ok +== +DROP PERSISTENT SECRET ".hidden"; +-- +ok +== +DROP PERSISTENT SECRET "my.secret:1"; +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/refresh_info_redaction.test b/parser/testdata/corpus/sql/secrets/refresh_info_redaction.test new file mode 100644 index 00000000..eab0c607 --- /dev/null +++ b/parser/testdata/corpus/sql/secrets/refresh_info_redaction.test @@ -0,0 +1,63 @@ +# source: test/sql/secrets/refresh_info_redaction.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET secret_directory = '{TEST_DIR}/refresh_info_redaction'; +-- +ok +== +CREATE PERSISTENT SECRET refresh_auto_{type} ( + TYPE {type}, + KEY_ID 'dummy-key-id', + SECRET 'dummy-secret', + SESSION_TOKEN 'dummy-session-token', + REFRESH 'auto' +); +-- +error: Parser Error: syntax error at or near "{" +== +CREATE PERSISTENT SECRET refresh_explicit_{type} ( + TYPE {type}, + KEY_ID 'dummy-key-id', + REFRESH_INFO MAP { + 'SeCrEt': 'dummy-secret', + 'SeSsIoN_ToKeN': 'dummy-session-token' + } +); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT count(*), + bool_and(contains(regexp_extract(secret_string, 'refresh_info=([^;]*)', 1), 'dummy-secret')), + bool_and(contains(regexp_extract(secret_string, 'refresh_info=([^;]*)', 1), 'dummy-session-token')) +FROM duckdb_secrets(redact = false); +-- +ok +== +SELECT count(*), + bool_and(contains(secret_string, 'refresh_info=redacted')), + bool_and(NOT contains(secret_string, 'dummy-secret') AND NOT contains(secret_string, 'dummy-session-token')), + bool_and(contains(secret_string, 'key_id=dummy-key-id')) +FROM duckdb_secrets(); +-- +ok +== +SELECT count(*), + bool_and(contains(secret_string, 'refresh_info=redacted')), + bool_and(NOT contains(secret_string, 'dummy-secret') AND NOT contains(secret_string, 'dummy-session-token')) +FROM duckdb_secrets(); +-- +ok +== +SELECT count(*), + bool_and(contains(secret_string, 'refresh_info=redacted')), + bool_and(NOT contains(secret_string, 'dummy-secret') AND NOT contains(secret_string, 'dummy-session-token')) +FROM duckdb_secrets(redact = true); +-- +ok +== +SELECT loaded FROM duckdb_extensions() WHERE extension_name = 'httpfs'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/secret_autoloading_errors.test b/parser/testdata/corpus/sql/secrets/secret_autoloading_errors.test index ab4e8593..b2cbab0a 100644 --- a/parser/testdata/corpus/sql/secrets/secret_autoloading_errors.test +++ b/parser/testdata/corpus/sql/secrets/secret_autoloading_errors.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/secret_autoloading_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SECRET (TYPE S3) diff --git a/parser/testdata/corpus/sql/secrets/secret_compatibility_http.test b/parser/testdata/corpus/sql/secrets/secret_compatibility_http.test index c167187b..4536a68a 100644 --- a/parser/testdata/corpus/sql/secrets/secret_compatibility_http.test +++ b/parser/testdata/corpus/sql/secrets/secret_compatibility_http.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/secret_compatibility_http.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set secret_directory='./data/secrets/http' diff --git a/parser/testdata/corpus/sql/secrets/secrets_without_external_access.test b/parser/testdata/corpus/sql/secrets/secrets_without_external_access.test new file mode 100644 index 00000000..1478fa25 --- /dev/null +++ b/parser/testdata/corpus/sql/secrets/secrets_without_external_access.test @@ -0,0 +1,13 @@ +# source: test/sql/secrets/secrets_without_external_access.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM duckdb_secrets(); +-- +ok +== +CREATE TEMPORARY SECRET temp_secret (TYPE HTTP, BEARER_TOKEN 'x'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/secrets/test_secret_type_parameters.test b/parser/testdata/corpus/sql/secrets/test_secret_type_parameters.test index 9b3bc03a..ab4009e0 100644 --- a/parser/testdata/corpus/sql/secrets/test_secret_type_parameters.test +++ b/parser/testdata/corpus/sql/secrets/test_secret_type_parameters.test @@ -1,6 +1,6 @@ # source: test/sql/secrets/test_secret_type_parameters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) > 0 FROM duckdb_secret_type_parameters(); diff --git a/parser/testdata/corpus/sql/select/test_multi_column_reference.test b/parser/testdata/corpus/sql/select/test_multi_column_reference.test index 61a408cc..ae7fc1c2 100644 --- a/parser/testdata/corpus/sql/select/test_multi_column_reference.test +++ b/parser/testdata/corpus/sql/select/test_multi_column_reference.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_multi_column_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test.tbl(col INTEGER); diff --git a/parser/testdata/corpus/sql/select/test_positional_reference.test b/parser/testdata/corpus/sql/select/test_positional_reference.test index e398fcde..a8a80c9e 100644 --- a/parser/testdata/corpus/sql/select/test_positional_reference.test +++ b/parser/testdata/corpus/sql/select/test_positional_reference.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_positional_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT #1 FROM range(1) @@ -35,10 +35,6 @@ SELECT #-1 FROM range(1) -- error: Parser Error: syntax error at or near "-" == -CREATE TABLE t(a INT, b INT); --- -ok -== INSERT INTO t VALUES (1, 2), (3, NULL); -- ok diff --git a/parser/testdata/corpus/sql/select/test_projection_names.test b/parser/testdata/corpus/sql/select/test_projection_names.test index 013d50c4..d3f6a851 100644 --- a/parser/testdata/corpus/sql/select/test_projection_names.test +++ b/parser/testdata/corpus/sql/select/test_projection_names.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_projection_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers("COL1" INTEGER, "COL2" INTEGER) diff --git a/parser/testdata/corpus/sql/select/test_schema_reference.test b/parser/testdata/corpus/sql/select/test_schema_reference.test index bba50b01..140d1b68 100644 --- a/parser/testdata/corpus/sql/select/test_schema_reference.test +++ b/parser/testdata/corpus/sql/select/test_schema_reference.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_schema_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE s1.tbl(i INTEGER) diff --git a/parser/testdata/corpus/sql/select/test_select_alias_prefix_colon.test b/parser/testdata/corpus/sql/select/test_select_alias_prefix_colon.test index 0c077859..efee1922 100644 --- a/parser/testdata/corpus/sql/select/test_select_alias_prefix_colon.test +++ b/parser/testdata/corpus/sql/select/test_select_alias_prefix_colon.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_select_alias_prefix_colon.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT j : 42; diff --git a/parser/testdata/corpus/sql/select/test_select_into.test b/parser/testdata/corpus/sql/select/test_select_into.test index 8fd319f9..bdee999c 100644 --- a/parser/testdata/corpus/sql/select/test_select_into.test +++ b/parser/testdata/corpus/sql/select/test_select_into.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_select_into.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (t TEXT); diff --git a/parser/testdata/corpus/sql/select/test_select_locking.test b/parser/testdata/corpus/sql/select/test_select_locking.test index 60239a86..5d1617ea 100644 --- a/parser/testdata/corpus/sql/select/test_select_locking.test +++ b/parser/testdata/corpus/sql/select/test_select_locking.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_select_locking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM t FOR UPDATE; diff --git a/parser/testdata/corpus/sql/select/test_select_qualified_view.test b/parser/testdata/corpus/sql/select/test_select_qualified_view.test index 1097fa08..552783f7 100644 --- a/parser/testdata/corpus/sql/select/test_select_qualified_view.test +++ b/parser/testdata/corpus/sql/select/test_select_qualified_view.test @@ -1,6 +1,6 @@ # source: test/sql/select/test_select_qualified_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table s.a as select 'hello' as col1; diff --git a/parser/testdata/corpus/sql/serialization/function_argument_metadata.test b/parser/testdata/corpus/sql/serialization/function_argument_metadata.test new file mode 100644 index 00000000..388c5897 --- /dev/null +++ b/parser/testdata/corpus/sql/serialization/function_argument_metadata.test @@ -0,0 +1,23 @@ +# source: test/sql/serialization/function_argument_metadata.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT json_extract_string(j, '$..positional_arguments')[1], + json_extract_string(j, '$..named_arguments')[1] +FROM (SELECT json_serialize_plan('SELECT least(10, 20, (SELECT 3))') j) t; +-- +ok +== +SELECT json_extract_string(j, '$..positional_arguments')[1], + json_extract_string(j, '$..named_arguments')[1] +FROM (SELECT json_serialize_plan('SELECT union_value(k := (SELECT 7))') j) t; +-- +ok +== +SELECT json_extract_string(j, '$..positional_arguments')[1], + json_extract_string(j, '$..named_arguments')[1] +FROM (SELECT json_serialize_plan('SELECT struct_pack(v, w) FROM (SELECT 1, 2) t(v, w)') j) t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/serialization/function_argument_names.test b/parser/testdata/corpus/sql/serialization/function_argument_names.test new file mode 100644 index 00000000..fbd72109 --- /dev/null +++ b/parser/testdata/corpus/sql/serialization/function_argument_names.test @@ -0,0 +1,77 @@ +# source: test/sql/serialization/function_argument_names.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET storage_compatibility_version='v2.0.0'; +-- +ok +== +SELECT least((SELECT 41), (SELECT 42), (SELECT 43)); +-- +ok +== +SELECT greatest((SELECT 41), (SELECT 42), (SELECT 43)); +-- +ok +== +SELECT concat((SELECT 'x'), (SELECT 'y'), (SELECT 'z')); +-- +ok +== +SELECT least(100, (SELECT 1)); +-- +ok +== +SELECT least(10, 20, (SELECT 3)); +-- +ok +== +SELECT greatest(1, 2, (SELECT 30)); +-- +ok +== +SELECT concat('a', 'b', (SELECT 'c')); +-- +ok +== +SELECT least((SELECT 5), 4, (SELECT 3)); +-- +ok +== +SELECT least(9, (SELECT greatest(1, (SELECT 8)))); +-- +ok +== +SELECT least(3, x := 2); +-- +ok +== +SELECT struct_pack(a := 1, b := (SELECT 2)); +-- +ok +== +SELECT struct_insert({'a': 1}, b := (SELECT 2)); +-- +ok +== +SELECT union_value(k := (SELECT 7)); +-- +ok +== +SELECT struct_pack(v, w) FROM (SELECT 1, 2) t(v, w); +-- +ok +== +SELECT struct_pack(); +-- +ok +== +SELECT * FROM repeat_row(7, num_rows := 2); +-- +ok +== +SET storage_compatibility_version='v1.4.4'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/serialization/logical_operator_serialization.test b/parser/testdata/corpus/sql/serialization/logical_operator_serialization.test index 2bc50185..318154e3 100644 --- a/parser/testdata/corpus/sql/serialization/logical_operator_serialization.test +++ b/parser/testdata/corpus/sql/serialization/logical_operator_serialization.test @@ -1,6 +1,6 @@ # source: test/sql/serialization/logical_operator_serialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE operator_vacuum(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/setops/ambiguous_order_by.test b/parser/testdata/corpus/sql/setops/ambiguous_order_by.test index d1868366..8b15f53d 100644 --- a/parser/testdata/corpus/sql/setops/ambiguous_order_by.test +++ b/parser/testdata/corpus/sql/setops/ambiguous_order_by.test @@ -1,6 +1,6 @@ # source: test/sql/setops/ambiguous_order_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from (values(42, 84)) s1(c1, c2) union all select * from (values(84, 42)) s2(c2, c3) order by c1; diff --git a/parser/testdata/corpus/sql/setops/compression_expression_collation.test b/parser/testdata/corpus/sql/setops/compression_expression_collation.test new file mode 100644 index 00000000..272eccf9 --- /dev/null +++ b/parser/testdata/corpus/sql/setops/compression_expression_collation.test @@ -0,0 +1,73 @@ +# source: test/sql/setops/compression_expression_collation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE l(s VARCHAR); +-- +ok +== +INSERT INTO l VALUES ('A'),('A'),('B'),(NULL),(NULL); +-- +ok +== +CREATE TABLE r(s VARCHAR); +-- +ok +== +INSERT INTO r VALUES ('a'),('b'),(NULL); +-- +ok +== +SET disabled_optimizers={disabled}; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM (SELECT s,rowid FROM l ORDER BY rowid)) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM (SELECT s,rowid FROM l ORDER BY rowid)) INTERSECT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM (SELECT s,rowid FROM l ORDER BY rowid)) EXCEPT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM (SELECT s,rowid FROM l ORDER BY rowid)) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) EXCEPT ALL (SELECT s COLLATE NOCASE FROM (SELECT s,rowid FROM r ORDER BY rowid))); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM (SELECT s,rowid FROM l ORDER BY rowid)) EXCEPT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM (SELECT s,rowid FROM l ORDER BY rowid)) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== +EXPLAIN (FORMAT JSON) SELECT s,rowid FROM l ORDER BY rowid; +-- +ok +== +SET debug_verify_statement='explain_sql'; +-- +ok +== +EXPLAIN(SQL) SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l LIMIT 999) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l LIMIT 999) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l LIMIT 999) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/setops/except_intersect_collation.test b/parser/testdata/corpus/sql/setops/except_intersect_collation.test index 11428cf1..fc293c64 100644 --- a/parser/testdata/corpus/sql/setops/except_intersect_collation.test +++ b/parser/testdata/corpus/sql/setops/except_intersect_collation.test @@ -1,6 +1,6 @@ # source: test/sql/setops/except_intersect_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INT, s VARCHAR); @@ -11,10 +11,6 @@ INSERT INTO a VALUES (1, 'a'); -- ok == -CREATE TABLE b(s VARCHAR); --- -ok -== INSERT INTO b VALUES ('A'); -- ok @@ -23,10 +19,6 @@ CREATE TABLE c(s VARCHAR COLLATE NOCASE); -- ok == -INSERT INTO c VALUES ('a'); --- -ok -== SELECT count(*) FROM ((SELECT s COLLATE NOCASE AS c FROM a WHERE id > 0) EXCEPT (SELECT s FROM b)); -- ok diff --git a/parser/testdata/corpus/sql/setops/projection_expression_collation.test b/parser/testdata/corpus/sql/setops/projection_expression_collation.test new file mode 100644 index 00000000..11a2c9f0 --- /dev/null +++ b/parser/testdata/corpus/sql/setops/projection_expression_collation.test @@ -0,0 +1,89 @@ +# source: test/sql/setops/projection_expression_collation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +INSERT INTO l VALUES ('A'); +-- +ok +== +INSERT INTO r VALUES ('a'); +-- +ok +== +EXPLAIN(SQL) SELECT count(*) FROM ((SELECT DISTINCT s COLLATE NOCASE FROM l) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT DISTINCT s COLLATE NOCASE FROM l) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT DISTINCT s COLLATE NOCASE FROM l) INTERSECT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT DISTINCT s COLLATE NOCASE FROM l) EXCEPT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT DISTINCT s COLLATE NOCASE FROM l) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== +INSERT INTO l VALUES ('A'),(NULL),(NULL); +-- +ok +== +INSERT INTO r VALUES (NULL); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l) EXCEPT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) EXCEPT ALL (SELECT s COLLATE NOCASE FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) INTERSECT ALL (SELECT s COLLATE NOCASE FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT DISTINCT s FROM l) EXCEPT (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) EXCEPT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) INTERSECT ALL (SELECT s FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) EXCEPT ALL (SELECT DISTINCT s COLLATE NOCASE FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) INTERSECT ALL (SELECT DISTINCT s COLLATE NOCASE FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) EXCEPT (SELECT DISTINCT s COLLATE NOCASE FROM r)); +-- +ok +== +SELECT count(*) FROM ((SELECT s FROM l) INTERSECT (SELECT DISTINCT s COLLATE NOCASE FROM r)); +-- +ok +== +EXPLAIN (FORMAT JSON) SELECT s FROM l; +-- +ok +== diff --git a/parser/testdata/corpus/sql/setops/setops_pushdown.test b/parser/testdata/corpus/sql/setops/setops_pushdown.test index 744017fb..8e271132 100644 --- a/parser/testdata/corpus/sql/setops/setops_pushdown.test +++ b/parser/testdata/corpus/sql/setops/setops_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/setops/setops_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42 WHERE 1=0 EXCEPT SELECT 42 diff --git a/parser/testdata/corpus/sql/setops/test_except.test b/parser/testdata/corpus/sql/setops/test_except.test index ef4ff509..70ee1b63 100644 --- a/parser/testdata/corpus/sql/setops/test_except.test +++ b/parser/testdata/corpus/sql/setops/test_except.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_except.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(i INTEGER) diff --git a/parser/testdata/corpus/sql/setops/test_full_outer_join_union.test b/parser/testdata/corpus/sql/setops/test_full_outer_join_union.test index a54c5688..9ef2f67e 100644 --- a/parser/testdata/corpus/sql/setops/test_full_outer_join_union.test +++ b/parser/testdata/corpus/sql/setops/test_full_outer_join_union.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_full_outer_join_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (2); diff --git a/parser/testdata/corpus/sql/setops/test_nested_except.test b/parser/testdata/corpus/sql/setops/test_nested_except.test index caae4644..e23fdef6 100644 --- a/parser/testdata/corpus/sql/setops/test_nested_except.test +++ b/parser/testdata/corpus/sql/setops/test_nested_except.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_nested_except.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table b(i integer) diff --git a/parser/testdata/corpus/sql/setops/test_pg_union.test b/parser/testdata/corpus/sql/setops/test_pg_union.test index 674e8f31..6b817e75 100644 --- a/parser/testdata/corpus/sql/setops/test_pg_union.test +++ b/parser/testdata/corpus/sql/setops/test_pg_union.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_pg_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 AS two UNION SELECT 2 ORDER BY 1; diff --git a/parser/testdata/corpus/sql/setops/test_setops.test b/parser/testdata/corpus/sql/setops/test_setops.test index cf8a38b4..6d2f5926 100644 --- a/parser/testdata/corpus/sql/setops/test_setops.test +++ b/parser/testdata/corpus/sql/setops/test_setops.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_setops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 UNION ALL SELECT 2 diff --git a/parser/testdata/corpus/sql/setops/test_union_all_by_name.test b/parser/testdata/corpus/sql/setops/test_union_all_by_name.test index 4930f43e..85830239 100644 --- a/parser/testdata/corpus/sql/setops/test_union_all_by_name.test +++ b/parser/testdata/corpus/sql/setops/test_union_all_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_all_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (x INT, y INT); diff --git a/parser/testdata/corpus/sql/setops/test_union_binding.test b/parser/testdata/corpus/sql/setops/test_union_binding.test index 8f244c4c..2bc38b7d 100644 --- a/parser/testdata/corpus/sql/setops/test_union_binding.test +++ b/parser/testdata/corpus/sql/setops/test_union_binding.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2(b INTEGER); diff --git a/parser/testdata/corpus/sql/setops/test_union_by_name.test b/parser/testdata/corpus/sql/setops/test_union_by_name.test index aa98b138..d03a58f6 100644 --- a/parser/testdata/corpus/sql/setops/test_union_by_name.test +++ b/parser/testdata/corpus/sql/setops/test_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1 VALUES (3, 3), (3, 3), (1, 1); diff --git a/parser/testdata/corpus/sql/setops/test_union_error.test b/parser/testdata/corpus/sql/setops/test_union_error.test index ec3d60c3..8d767c73 100644 --- a/parser/testdata/corpus/sql/setops/test_union_error.test +++ b/parser/testdata/corpus/sql/setops/test_union_error.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x::INT FROM (SELECT x::VARCHAR x FROM range(10) tbl(x) UNION ALL SELECT 'hello' x) tbl(x); diff --git a/parser/testdata/corpus/sql/setops/test_union_except_empty.test b/parser/testdata/corpus/sql/setops/test_union_except_empty.test index 9d4b418b..1c676f8f 100644 --- a/parser/testdata/corpus/sql/setops/test_union_except_empty.test +++ b/parser/testdata/corpus/sql/setops/test_union_except_empty.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_except_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (i int); diff --git a/parser/testdata/corpus/sql/setops/test_union_order.test b/parser/testdata/corpus/sql/setops/test_union_order.test index 5032bd0c..e970413d 100644 --- a/parser/testdata/corpus/sql/setops/test_union_order.test +++ b/parser/testdata/corpus/sql/setops/test_union_order.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT NULL UNION ALL SELECT 3 diff --git a/parser/testdata/corpus/sql/setops/test_union_staged_types.test b/parser/testdata/corpus/sql/setops/test_union_staged_types.test new file mode 100644 index 00000000..47284197 --- /dev/null +++ b/parser/testdata/corpus/sql/setops/test_union_staged_types.test @@ -0,0 +1,53 @@ +# source: test/sql/setops/test_union_staged_types.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +(SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +(SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION ALL SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +SELECT x FROM (SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) q UNION SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER UNION SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +SELECT count(*) FROM ((SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION SELECT 'text'::VARCHAR UNION SELECT '87'::VARCHAR); +-- +ok +== +(SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION BY NAME SELECT 'text'::VARCHAR AS x ORDER BY 1; +-- +ok +== +(SELECT 1.5::DOUBLE AS x UNION ALL SELECT 87::INTEGER) UNION ALL SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +((SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION SELECT 2::INTEGER) UNION SELECT 'text'::VARCHAR ORDER BY 1; +-- +ok +== +SELECT 'text'::VARCHAR AS x UNION (SELECT 1.5::DOUBLE UNION SELECT 87::INTEGER) ORDER BY 1; +-- +ok +== +(SELECT 1.5::DOUBLE AS x) UNION (SELECT 87::INTEGER) UNION (SELECT 'text'::VARCHAR) ORDER BY 1; +-- +ok +== +CREATE VIEW staged_union AS (SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION SELECT 'text'::VARCHAR; +-- +ok +== +SELECT x FROM staged_union ORDER BY 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/setops/test_union_subquery.test b/parser/testdata/corpus/sql/setops/test_union_subquery.test index 3e6bb8f0..e52aa665 100644 --- a/parser/testdata/corpus/sql/setops/test_union_subquery.test +++ b/parser/testdata/corpus/sql/setops/test_union_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES (42) diff --git a/parser/testdata/corpus/sql/setops/test_union_type_cast.test b/parser/testdata/corpus/sql/setops/test_union_type_cast.test index 53f83333..dbc949be 100644 --- a/parser/testdata/corpus/sql/setops/test_union_type_cast.test +++ b/parser/testdata/corpus/sql/setops/test_union_type_cast.test @@ -1,6 +1,6 @@ # source: test/sql/setops/test_union_type_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 UNION SELECT 1.0 diff --git a/parser/testdata/corpus/sql/setops/union_aggregate.test b/parser/testdata/corpus/sql/setops/union_aggregate.test index 6a43e5b9..d869edef 100644 --- a/parser/testdata/corpus/sql/setops/union_aggregate.test +++ b/parser/testdata/corpus/sql/setops/union_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM range(1) diff --git a/parser/testdata/corpus/sql/setops/union_all_projection_pushdown.test b/parser/testdata/corpus/sql/setops/union_all_projection_pushdown.test index 8b41581d..7221d92a 100644 --- a/parser/testdata/corpus/sql/setops/union_all_projection_pushdown.test +++ b/parser/testdata/corpus/sql/setops/union_all_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_all_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT i, i+1 AS j, i+2 AS k, i+3 AS l FROM range(42,43) t(i) diff --git a/parser/testdata/corpus/sql/setops/union_limit.test b/parser/testdata/corpus/sql/setops/union_limit.test index c0692b74..5300ec95 100644 --- a/parser/testdata/corpus/sql/setops/union_limit.test +++ b/parser/testdata/corpus/sql/setops/union_limit.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 UNION ALL SELECT * FROM range(2, 100) UNION ALL SELECT 999 LIMIT 5; diff --git a/parser/testdata/corpus/sql/setops/union_order_by_expression.test b/parser/testdata/corpus/sql/setops/union_order_by_expression.test index 3cd1e8ed..9a2ff72f 100644 --- a/parser/testdata/corpus/sql/setops/union_order_by_expression.test +++ b/parser/testdata/corpus/sql/setops/union_order_by_expression.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_order_by_expression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT * FROM (VALUES (1, 'a'), (NULL, 'b'), (3, 'c')) t(i, s); diff --git a/parser/testdata/corpus/sql/setops/union_pipeline.test b/parser/testdata/corpus/sql/setops/union_pipeline.test index b4697d58..14e0e1a6 100644 --- a/parser/testdata/corpus/sql/setops/union_pipeline.test +++ b/parser/testdata/corpus/sql/setops/union_pipeline.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_pipeline.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM (SELECT * FROM range(1000000) tbl(i) UNION ALL SELECT * FROM range(1000000) tbl(i)) tbl(i) diff --git a/parser/testdata/corpus/sql/setops/union_shared_scan.test b/parser/testdata/corpus/sql/setops/union_shared_scan.test index 9bbc5e8c..42b628df 100644 --- a/parser/testdata/corpus/sql/setops/union_shared_scan.test +++ b/parser/testdata/corpus/sql/setops/union_shared_scan.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_shared_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT * FROM range(10000) tbl(i) UNION ALL SELECT NULL diff --git a/parser/testdata/corpus/sql/setops/union_single_dedup.test b/parser/testdata/corpus/sql/setops/union_single_dedup.test index 6d3b2d8c..04a38042 100644 --- a/parser/testdata/corpus/sql/setops/union_single_dedup.test +++ b/parser/testdata/corpus/sql/setops/union_single_dedup.test @@ -1,6 +1,6 @@ # source: test/sql/setops/union_single_dedup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT range AS i FROM range(10); diff --git a/parser/testdata/corpus/sql/setops/value_union.test b/parser/testdata/corpus/sql/setops/value_union.test index 3c0559d2..bac9a721 100644 --- a/parser/testdata/corpus/sql/setops/value_union.test +++ b/parser/testdata/corpus/sql/setops/value_union.test @@ -1,6 +1,6 @@ # source: test/sql/setops/value_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vals AS SELECT * FROM (VALUES (1, 10), (2, 5), (3, 4)) tbl(i, j); diff --git a/parser/testdata/corpus/sql/settings/access_mode.test b/parser/testdata/corpus/sql/settings/access_mode.test index 1baeed3a..d0528923 100644 --- a/parser/testdata/corpus/sql/settings/access_mode.test +++ b/parser/testdata/corpus/sql/settings/access_mode.test @@ -1,6 +1,6 @@ # source: test/sql/settings/access_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET access_mode='read_only' diff --git a/parser/testdata/corpus/sql/settings/allowed_configs.test b/parser/testdata/corpus/sql/settings/allowed_configs.test index 9b525ef5..99f85316 100644 --- a/parser/testdata/corpus/sql/settings/allowed_configs.test +++ b/parser/testdata/corpus/sql/settings/allowed_configs.test @@ -1,6 +1,6 @@ # source: test/sql/settings/allowed_configs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allowed_configs=['lock_configuration'] diff --git a/parser/testdata/corpus/sql/settings/allowed_configs_extensions.test b/parser/testdata/corpus/sql/settings/allowed_configs_extensions.test index 36c46128..eb1bf726 100644 --- a/parser/testdata/corpus/sql/settings/allowed_configs_extensions.test +++ b/parser/testdata/corpus/sql/settings/allowed_configs_extensions.test @@ -1,6 +1,6 @@ # source: test/sql/settings/allowed_configs_extensions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='America/New_York' diff --git a/parser/testdata/corpus/sql/settings/allowed_directories.test b/parser/testdata/corpus/sql/settings/allowed_directories.test index 615b773e..4e1cf3f8 100644 --- a/parser/testdata/corpus/sql/settings/allowed_directories.test +++ b/parser/testdata/corpus/sql/settings/allowed_directories.test @@ -1,6 +1,6 @@ # source: test/sql/settings/allowed_directories.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allowed_directories=['{DATA_DIR}/csv/glob'] diff --git a/parser/testdata/corpus/sql/settings/allowed_directories_atomic_update.test b/parser/testdata/corpus/sql/settings/allowed_directories_atomic_update.test new file mode 100644 index 00000000..1d2accfc --- /dev/null +++ b/parser/testdata/corpus/sql/settings/allowed_directories_atomic_update.test @@ -0,0 +1,41 @@ +# source: test/sql/settings/allowed_directories_atomic_update.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET allowed_directories=['{TEST_DIR}/dir_a']; +-- +ok +== +SELECT len(current_setting('allowed_directories')); +-- +ok +== +SET allowed_directories=['{TEST_DIR}/dir_b', '{TEST_DIR}/dir_c']; +-- +ok +== +SET allowed_paths=['{TEST_DIR}/a.csv', '{TEST_DIR}/b.csv']; +-- +ok +== +SELECT len(current_setting('allowed_paths')); +-- +ok +== +SET allowed_paths=['{TEST_DIR}/c.csv']; +-- +ok +== +RESET allowed_paths; +-- +ok +== +RESET allowed_directories; +-- +ok +== +SELECT len(current_setting('allowed_directories')) + len(current_setting('allowed_paths')); +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/allowed_directories_home_directory.test b/parser/testdata/corpus/sql/settings/allowed_directories_home_directory.test index 4a888801..43eb9530 100644 --- a/parser/testdata/corpus/sql/settings/allowed_directories_home_directory.test +++ b/parser/testdata/corpus/sql/settings/allowed_directories_home_directory.test @@ -1,6 +1,6 @@ # source: test/sql/settings/allowed_directories_home_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 99 AS col1, 100 AS col2) TO '{TEST_DIR}/outside_home.csv' diff --git a/parser/testdata/corpus/sql/settings/allowed_paths.test b/parser/testdata/corpus/sql/settings/allowed_paths.test index 1e46a3c8..63992940 100644 --- a/parser/testdata/corpus/sql/settings/allowed_paths.test +++ b/parser/testdata/corpus/sql/settings/allowed_paths.test @@ -1,6 +1,6 @@ # source: test/sql/settings/allowed_paths.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allowed_paths=['{DATA_DIR}/csv/glob/f_1.csv'] diff --git a/parser/testdata/corpus/sql/settings/allowed_remote_paths.test b/parser/testdata/corpus/sql/settings/allowed_remote_paths.test new file mode 100644 index 00000000..c5cbedf9 --- /dev/null +++ b/parser/testdata/corpus/sql/settings/allowed_remote_paths.test @@ -0,0 +1,49 @@ +# source: test/sql/settings/allowed_remote_paths.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET autoload_known_extensions=false; +-- +ok +== +SET autoinstall_known_extensions=false; +-- +ok +== +SET allowed_directories=['{TEST_DIR}', 'http://127.0.0.1:1/allowed/', 'https://127.0.0.1:1/allowed/', 'az://cont-public/allowed/', 's3://bucket.name/allowed/', 'custom://bucket.name/allowed/']; +-- +ok +== +COPY (SELECT 42 AS i) TO '{TEST_DIR}/%2e%2e' (FORMAT CSV); +-- +ok +== +SET allowed_paths=['http://127.0.0.1:1/explicit/%2e%2e/private']; +-- +ok +== +SET disabled_filesystems='HTTPFileSystem,S3FileSystem,AzureBlobStorageFileSystem'; +-- +ok +== +SELECT * FROM glob('http://127.0.0.1:1/allowed/%2e%2e/private'); +-- +ok +== +SELECT i FROM read_csv('{TEST_DIR}/./%2e%2e'); +-- +ok +== +SELECT * FROM glob('http://127.0.0.1:1/allowed/{path}'); +-- +ok +== +SELECT * FROM glob('{prefix}/allowed/.%2e/private'); +-- +ok +== +SELECT * FROM glob('http://127.0.0.1:1/explicit/%2e%2e/private'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/block_allocator_memory.test b/parser/testdata/corpus/sql/settings/block_allocator_memory.test index 8a9d8d77..c8450476 100644 --- a/parser/testdata/corpus/sql/settings/block_allocator_memory.test +++ b/parser/testdata/corpus/sql/settings/block_allocator_memory.test @@ -1,6 +1,6 @@ # source: test/sql/settings/block_allocator_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit RESET block_allocator_memory; diff --git a/parser/testdata/corpus/sql/settings/concurrent_set_disabled_optimizers.test b/parser/testdata/corpus/sql/settings/concurrent_set_disabled_optimizers.test index 9484ea62..1d496801 100644 --- a/parser/testdata/corpus/sql/settings/concurrent_set_disabled_optimizers.test +++ b/parser/testdata/corpus/sql/settings/concurrent_set_disabled_optimizers.test @@ -1,6 +1,6 @@ # source: test/sql/settings/concurrent_set_disabled_optimizers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE m AS SELECT range i, range % 100 g FROM range(1000); diff --git a/parser/testdata/corpus/sql/settings/connection_local_settings.test b/parser/testdata/corpus/sql/settings/connection_local_settings.test index 7ede87df..9b57f317 100644 --- a/parser/testdata/corpus/sql/settings/connection_local_settings.test +++ b/parser/testdata/corpus/sql/settings/connection_local_settings.test @@ -1,6 +1,6 @@ # source: test/sql/settings/connection_local_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS FROM (VALUES (1), (2), (3), (NULL)) t(i) diff --git a/parser/testdata/corpus/sql/settings/debug_deprecated_settings.test b/parser/testdata/corpus/sql/settings/debug_deprecated_settings.test index 1de4b182..24ac3d45 100644 --- a/parser/testdata/corpus/sql/settings/debug_deprecated_settings.test +++ b/parser/testdata/corpus/sql/settings/debug_deprecated_settings.test @@ -1,6 +1,6 @@ # source: test/sql/settings/debug_deprecated_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_count( diff --git a/parser/testdata/corpus/sql/settings/default_null_order_extended.test b/parser/testdata/corpus/sql/settings/default_null_order_extended.test index 9b2e9cc0..73833999 100644 --- a/parser/testdata/corpus/sql/settings/default_null_order_extended.test +++ b/parser/testdata/corpus/sql/settings/default_null_order_extended.test @@ -1,6 +1,6 @@ # source: test/sql/settings/default_null_order_extended.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers ORDER BY i; diff --git a/parser/testdata/corpus/sql/settings/deprecated_settings.test b/parser/testdata/corpus/sql/settings/deprecated_settings.test index 27947e1f..486e750f 100644 --- a/parser/testdata/corpus/sql/settings/deprecated_settings.test +++ b/parser/testdata/corpus/sql/settings/deprecated_settings.test @@ -1,6 +1,6 @@ # source: test/sql/settings/deprecated_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET warnings_as_errors=true; @@ -31,6 +31,10 @@ SET table_function_identifier_conversion='ENABLE_IMPLICIT_STRING'; -- ok == +SET lambda_syntax='DISABLE_SINGLE_ARROW'; +-- +ok +== SET GLOBAL experimental_metadata_reuse=false; -- ok diff --git a/parser/testdata/corpus/sql/settings/dialect_compatibility_mode.test b/parser/testdata/corpus/sql/settings/dialect_compatibility_mode.test index 2d4284d5..9006246b 100644 --- a/parser/testdata/corpus/sql/settings/dialect_compatibility_mode.test +++ b/parser/testdata/corpus/sql/settings/dialect_compatibility_mode.test @@ -1,6 +1,6 @@ # source: test/sql/settings/dialect_compatibility_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('dialect_compatibility_mode') diff --git a/parser/testdata/corpus/sql/settings/drop_set_schema.test b/parser/testdata/corpus/sql/settings/drop_set_schema.test index ef6e6572..09ebaffd 100644 --- a/parser/testdata/corpus/sql/settings/drop_set_schema.test +++ b/parser/testdata/corpus/sql/settings/drop_set_schema.test @@ -1,6 +1,6 @@ # source: test/sql/settings/drop_set_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select current_schema(); diff --git a/parser/testdata/corpus/sql/settings/errors_as_json.test b/parser/testdata/corpus/sql/settings/errors_as_json.test index d8d35fc2..2bcdfd53 100644 --- a/parser/testdata/corpus/sql/settings/errors_as_json.test +++ b/parser/testdata/corpus/sql/settings/errors_as_json.test @@ -1,6 +1,6 @@ # source: test/sql/settings/errors_as_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET errors_as_json=true diff --git a/parser/testdata/corpus/sql/settings/http_client_pool_capacity.test b/parser/testdata/corpus/sql/settings/http_client_pool_capacity.test index 9cd52d76..d536f112 100644 --- a/parser/testdata/corpus/sql/settings/http_client_pool_capacity.test +++ b/parser/testdata/corpus/sql/settings/http_client_pool_capacity.test @@ -1,6 +1,6 @@ # source: test/sql/settings/http_client_pool_capacity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE default_http_capacity = current_setting('http_client_pool_capacity') diff --git a/parser/testdata/corpus/sql/settings/integer_division_setting.test b/parser/testdata/corpus/sql/settings/integer_division_setting.test index d5033c55..7ad58255 100644 --- a/parser/testdata/corpus/sql/settings/integer_division_setting.test +++ b/parser/testdata/corpus/sql/settings/integer_division_setting.test @@ -1,6 +1,6 @@ # source: test/sql/settings/integer_division_setting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1/2 diff --git a/parser/testdata/corpus/sql/settings/lock_configuration_pragmas.test b/parser/testdata/corpus/sql/settings/lock_configuration_pragmas.test index 212a5f9a..b801750c 100644 --- a/parser/testdata/corpus/sql/settings/lock_configuration_pragmas.test +++ b/parser/testdata/corpus/sql/settings/lock_configuration_pragmas.test @@ -1,6 +1,6 @@ # source: test/sql/settings/lock_configuration_pragmas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('enable_optimizer'); @@ -79,6 +79,14 @@ CALL enable_logging(storage='file', storage_path='__TEST_DIR__/locked_logs'); -- ok == +CALL add_grammar_extension('shell'); +-- +ok +== +CALL remove_grammar_extension('shell'); +-- +ok +== SELECT current_setting('enable_logging')::BOOLEAN; -- ok diff --git a/parser/testdata/corpus/sql/settings/lock_configuration_schema.test b/parser/testdata/corpus/sql/settings/lock_configuration_schema.test index e7873c3c..0571fea3 100644 --- a/parser/testdata/corpus/sql/settings/lock_configuration_schema.test +++ b/parser/testdata/corpus/sql/settings/lock_configuration_schema.test @@ -1,6 +1,6 @@ # source: test/sql/settings/lock_configuration_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create schema s2; diff --git a/parser/testdata/corpus/sql/settings/max_execution_time.test b/parser/testdata/corpus/sql/settings/max_execution_time.test index 10bc69f5..d329faa1 100644 --- a/parser/testdata/corpus/sql/settings/max_execution_time.test +++ b/parser/testdata/corpus/sql/settings/max_execution_time.test @@ -1,6 +1,6 @@ # source: test/sql/settings/max_execution_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('max_execution_time') @@ -23,6 +23,10 @@ SELECT i, SUM(i) OVER (PARTITION BY i % 1000000 ORDER BY i) FROM range(10000000) -- ok == +SELECT DISTINCT i FROM range(50000000) t(i) +-- +ok +== SELECT COUNT(*) FROM range(1000) -- ok @@ -47,7 +51,3 @@ SET max_execution_time=10000000000000; -- ok == -SET max_execution_time=0; --- -ok -== diff --git a/parser/testdata/corpus/sql/settings/max_execution_time_nested_expansion.test b/parser/testdata/corpus/sql/settings/max_execution_time_nested_expansion.test index cc52e344..769329ab 100644 --- a/parser/testdata/corpus/sql/settings/max_execution_time_nested_expansion.test +++ b/parser/testdata/corpus/sql/settings/max_execution_time_nested_expansion.test @@ -1,6 +1,6 @@ # source: test/sql/settings/max_execution_time_nested_expansion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO d(x) AS x + x; diff --git a/parser/testdata/corpus/sql/settings/max_memory_percentage.test b/parser/testdata/corpus/sql/settings/max_memory_percentage.test index 20162b25..f2fdb594 100644 --- a/parser/testdata/corpus/sql/settings/max_memory_percentage.test +++ b/parser/testdata/corpus/sql/settings/max_memory_percentage.test @@ -1,6 +1,6 @@ # source: test/sql/settings/max_memory_percentage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_memory='100%' diff --git a/parser/testdata/corpus/sql/settings/max_streaming_buffer_size.test b/parser/testdata/corpus/sql/settings/max_streaming_buffer_size.test index cf910ed1..09d29385 100644 --- a/parser/testdata/corpus/sql/settings/max_streaming_buffer_size.test +++ b/parser/testdata/corpus/sql/settings/max_streaming_buffer_size.test @@ -1,6 +1,6 @@ # source: test/sql/settings/max_streaming_buffer_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_streaming_buffer_size='2MiB' diff --git a/parser/testdata/corpus/sql/settings/memory_limit_settings_unlimited.test b/parser/testdata/corpus/sql/settings/memory_limit_settings_unlimited.test index 7c14a26e..e57e46df 100644 --- a/parser/testdata/corpus/sql/settings/memory_limit_settings_unlimited.test +++ b/parser/testdata/corpus/sql/settings/memory_limit_settings_unlimited.test @@ -1,6 +1,6 @@ # source: test/sql/settings/memory_limit_settings_unlimited.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET operator_memory_limit = '-1'; diff --git a/parser/testdata/corpus/sql/settings/operator_memory_limit.test b/parser/testdata/corpus/sql/settings/operator_memory_limit.test index c6da0983..bdc20887 100644 --- a/parser/testdata/corpus/sql/settings/operator_memory_limit.test +++ b/parser/testdata/corpus/sql/settings/operator_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/settings/operator_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('operator_memory_limit') @@ -31,10 +31,18 @@ SET operator_memory_limit='1MB' -- ok == +SELECT * FROM range(10000000) ORDER BY random(); +-- +ok +== SELECT i % 1000000 as g, COUNT(*) FROM range(10000000) t(i) GROUP BY 1; -- ok == +SELECT DISTINCT i FROM range(10000000) t(i); +-- +ok +== SELECT i, SUM(i) OVER (PARTITION BY i % 100000 ORDER BY i) FROM range(5000000) t(i); -- ok @@ -51,10 +59,19 @@ SELECT SUM(i) FROM range(1000000) t(i) -- ok == +SET operator_memory_limit='{operator_limit}' +-- +error: Parser Error: Memory must have a number (e.g. 1GB) +== SELECT i % 10 as g, COUNT(*) FROM range(1000000) t(i) GROUP BY 1 ORDER BY 1 -- ok == +SELECT COUNT(*), MIN(n), MAX(n) +FROM (SELECT i % 20000 AS g, COUNT(*) AS n FROM range(100000) t(i) GROUP BY g) +-- +ok +== SELECT COUNT(*) FROM (SELECT * FROM range(1000) ORDER BY random()) -- ok diff --git a/parser/testdata/corpus/sql/settings/operator_memory_limit.test.metadata.json b/parser/testdata/corpus/sql/settings/operator_memory_limit.test.metadata.json new file mode 100644 index 00000000..37886cc9 --- /dev/null +++ b/parser/testdata/corpus/sql/settings/operator_memory_limit.test.metadata.json @@ -0,0 +1,5 @@ +{ + "todo": { + "e5e7613e34167588": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/settings/pragma_assignment_deprecated.test b/parser/testdata/corpus/sql/settings/pragma_assignment_deprecated.test index 5ffcb9cd..dd0f32d9 100644 --- a/parser/testdata/corpus/sql/settings/pragma_assignment_deprecated.test +++ b/parser/testdata/corpus/sql/settings/pragma_assignment_deprecated.test @@ -1,6 +1,6 @@ # source: test/sql/settings/pragma_assignment_deprecated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=2; diff --git a/parser/testdata/corpus/sql/settings/reset/reset_memory_limit.test b/parser/testdata/corpus/sql/settings/reset/reset_memory_limit.test index b2d20c88..396751d8 100644 --- a/parser/testdata/corpus/sql/settings/reset/reset_memory_limit.test +++ b/parser/testdata/corpus/sql/settings/reset/reset_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/settings/reset/reset_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA temp_directory=''; diff --git a/parser/testdata/corpus/sql/settings/reset/reset_threads.test b/parser/testdata/corpus/sql/settings/reset/reset_threads.test index 55fa0360..4b08ddfe 100644 --- a/parser/testdata/corpus/sql/settings/reset/reset_threads.test +++ b/parser/testdata/corpus/sql/settings/reset/reset_threads.test @@ -1,6 +1,6 @@ # source: test/sql/settings/reset/reset_threads.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select current_setting('threads') diff --git a/parser/testdata/corpus/sql/settings/set_null_settings.test b/parser/testdata/corpus/sql/settings/set_null_settings.test index 495f6092..ecdf636e 100644 --- a/parser/testdata/corpus/sql/settings/set_null_settings.test +++ b/parser/testdata/corpus/sql/settings/set_null_settings.test @@ -1,6 +1,6 @@ # source: test/sql/settings/set_null_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET allocator_background_threads=NULL; diff --git a/parser/testdata/corpus/sql/settings/set_schema_temp_main.test b/parser/testdata/corpus/sql/settings/set_schema_temp_main.test index 3a018076..d0d4b2ee 100644 --- a/parser/testdata/corpus/sql/settings/set_schema_temp_main.test +++ b/parser/testdata/corpus/sql/settings/set_schema_temp_main.test @@ -1,6 +1,6 @@ # source: test/sql/settings/set_schema_temp_main.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA temp.s1; diff --git a/parser/testdata/corpus/sql/settings/set_scoped_time_zone_schema.test b/parser/testdata/corpus/sql/settings/set_scoped_time_zone_schema.test new file mode 100644 index 00000000..f25d162a --- /dev/null +++ b/parser/testdata/corpus/sql/settings/set_scoped_time_zone_schema.test @@ -0,0 +1,93 @@ +# source: test/sql/settings/set_scoped_time_zone_schema.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET GLOBAL TIME ZONE 'UTC' +-- +ok +== +SELECT current_setting('TimeZone') +-- +ok +== +SET SESSION TIME ZONE 'Europe/Amsterdam' +-- +ok +== +RESET TimeZone +-- +ok +== +CREATE TABLE default_tz AS SELECT current_setting('TimeZone') AS tz +-- +ok +== +SET SESSION TIME ZONE 'Asia/Tokyo' +-- +ok +== +RESET SESSION TIME ZONE +-- +ok +== +SELECT current_setting('TimeZone') = (SELECT tz FROM default_tz) +-- +ok +== +RESET TIME ZONE +-- +ok +== +SET SESSION TIME ZONE DEFAULT +-- +ok +== +SET SESSION TIME ZONE LOCAL +-- +ok +== +SET LOCAL TIME ZONE 'UTC' +-- +ok +== +RESET LOCAL TIME ZONE +-- +ok +== +SET SESSION TimeZone = 'UTC' +-- +ok +== +RESET SESSION TimeZone +-- +ok +== +SET SESSION SCHEMA 's1' +-- +ok +== +SELECT current_schema() +-- +ok +== +RESET SESSION SCHEMA +-- +ok +== +SET SCHEMA 'main' +-- +ok +== +RESET SCHEMA +-- +ok +== +SET LOCAL SCHEMA 's1' +-- +ok +== +SET GLOBAL SCHEMA 's1' +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/setting_alias.test b/parser/testdata/corpus/sql/settings/setting_alias.test index af405975..9af5e83c 100644 --- a/parser/testdata/corpus/sql/settings/setting_alias.test +++ b/parser/testdata/corpus/sql/settings/setting_alias.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('null_order'), (SELECT value FROM duckdb_settings() WHERE name='null_order') diff --git a/parser/testdata/corpus/sql/settings/setting_collation.test b/parser/testdata/corpus/sql/settings/setting_collation.test index 73bdba2d..cc495688 100644 --- a/parser/testdata/corpus/sql/settings/setting_collation.test +++ b/parser/testdata/corpus/sql/settings/setting_collation.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA default_collation='unknown' diff --git a/parser/testdata/corpus/sql/settings/setting_collection_roundtrip.test b/parser/testdata/corpus/sql/settings/setting_collection_roundtrip.test index 28a275b9..d6836c17 100644 --- a/parser/testdata/corpus/sql/settings/setting_collection_roundtrip.test +++ b/parser/testdata/corpus/sql/settings/setting_collection_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_collection_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET extension_directories=['first', 'second'] diff --git a/parser/testdata/corpus/sql/settings/setting_disabled_optimizer.test b/parser/testdata/corpus/sql/settings/setting_disabled_optimizer.test index c381c195..4ef1cf03 100644 --- a/parser/testdata/corpus/sql/settings/setting_disabled_optimizer.test +++ b/parser/testdata/corpus/sql/settings/setting_disabled_optimizer.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_disabled_optimizer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers TO 'expression_rewriter' diff --git a/parser/testdata/corpus/sql/settings/setting_exhaustive.test b/parser/testdata/corpus/sql/settings/setting_exhaustive.test index 055a57f1..7ef623fe 100644 --- a/parser/testdata/corpus/sql/settings/setting_exhaustive.test +++ b/parser/testdata/corpus/sql/settings/setting_exhaustive.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_exhaustive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_window_mode='unknown'; diff --git a/parser/testdata/corpus/sql/settings/setting_null_order.test b/parser/testdata/corpus/sql/settings/setting_null_order.test index 3e9c5488..3c6b41b0 100644 --- a/parser/testdata/corpus/sql/settings/setting_null_order.test +++ b/parser/testdata/corpus/sql/settings/setting_null_order.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_null_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit {statement_type} {null_order_type}='nulls_last' @@ -15,3 +15,7 @@ error: Parser Error: syntax error at or near "{" -- error: Parser Error: syntax error at or near "{" == +SET default_null_order = this_doesnt_exist.nulls_last +-- +error: Parser Error: Unrecognized parameter for option NULL_ORDER "this_doesnt_exist.nulls_last", expected either NULLS FIRST, NULLS LAST, SQLite, MySQL or Postgres +== diff --git a/parser/testdata/corpus/sql/settings/setting_null_order.test.metadata.json b/parser/testdata/corpus/sql/settings/setting_null_order.test.metadata.json new file mode 100644 index 00000000..fa075b94 --- /dev/null +++ b/parser/testdata/corpus/sql/settings/setting_null_order.test.metadata.json @@ -0,0 +1,5 @@ +{ + "todo": { + "3df6f0669d70491c": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/settings/setting_order.test b/parser/testdata/corpus/sql/settings/setting_order.test index c311c5af..d21b3834 100644 --- a/parser/testdata/corpus/sql/settings/setting_order.test +++ b/parser/testdata/corpus/sql/settings/setting_order.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit {statement_type} default_order='desc' diff --git a/parser/testdata/corpus/sql/settings/setting_preserve_identifier_case.test b/parser/testdata/corpus/sql/settings/setting_preserve_identifier_case.test index 9beddac5..2e1ee938 100644 --- a/parser/testdata/corpus/sql/settings/setting_preserve_identifier_case.test +++ b/parser/testdata/corpus/sql/settings/setting_preserve_identifier_case.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_preserve_identifier_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT value FROM duckdb_settings() WHERE name='preserve_identifier_case' diff --git a/parser/testdata/corpus/sql/settings/setting_profiling_mode.test b/parser/testdata/corpus/sql/settings/setting_profiling_mode.test index 48734cc3..180b88b9 100644 --- a/parser/testdata/corpus/sql/settings/setting_profiling_mode.test +++ b/parser/testdata/corpus/sql/settings/setting_profiling_mode.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_profiling_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET profiling_mode='detailed'; diff --git a/parser/testdata/corpus/sql/settings/setting_threads.test b/parser/testdata/corpus/sql/settings/setting_threads.test index 19bbb028..bad5dbe8 100644 --- a/parser/testdata/corpus/sql/settings/setting_threads.test +++ b/parser/testdata/corpus/sql/settings/setting_threads.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_threads.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET {thread_type} TO '3' diff --git a/parser/testdata/corpus/sql/settings/setting_validation_and_reset.test b/parser/testdata/corpus/sql/settings/setting_validation_and_reset.test index ae39e948..69c7aa88 100644 --- a/parser/testdata/corpus/sql/settings/setting_validation_and_reset.test +++ b/parser/testdata/corpus/sql/settings/setting_validation_and_reset.test @@ -1,6 +1,6 @@ # source: test/sql/settings/setting_validation_and_reset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_compression_methods='rle,dictionary' diff --git a/parser/testdata/corpus/sql/settings/settings_icu.test b/parser/testdata/corpus/sql/settings/settings_icu.test index 156f927a..e2a6d800 100644 --- a/parser/testdata/corpus/sql/settings/settings_icu.test +++ b/parser/testdata/corpus/sql/settings/settings_icu.test @@ -1,6 +1,6 @@ # source: test/sql/settings/settings_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='pacific/honolulu'; diff --git a/parser/testdata/corpus/sql/settings/test_disabled_file_systems.test b/parser/testdata/corpus/sql/settings/test_disabled_file_systems.test index 8d3d67b4..2bb77151 100644 --- a/parser/testdata/corpus/sql/settings/test_disabled_file_systems.test +++ b/parser/testdata/corpus/sql/settings/test_disabled_file_systems.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_disabled_file_systems.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('disabled_filesystems') diff --git a/parser/testdata/corpus/sql/settings/test_disabled_file_systems_whitespace.test b/parser/testdata/corpus/sql/settings/test_disabled_file_systems_whitespace.test new file mode 100644 index 00000000..c1b4f540 --- /dev/null +++ b/parser/testdata/corpus/sql/settings/test_disabled_file_systems_whitespace.test @@ -0,0 +1,9 @@ +# source: test/sql/settings/test_disabled_file_systems_whitespace.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET disabled_filesystems='x, LocalFileSystem '; +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_metadata.test b/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_metadata.test index 735dfd81..0fc273ff 100644 --- a/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_metadata.test +++ b/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_disabled_local_filesystem_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET secret_directory='{TEST_DIR}/disabled_fs_secrets'; diff --git a/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_secrets.test b/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_secrets.test index e52a9bf4..c31df3a1 100644 --- a/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_secrets.test +++ b/parser/testdata/corpus/sql/settings/test_disabled_local_filesystem_secrets.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_disabled_local_filesystem_secrets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE PERSISTENT SECRET my_s (TYPE S3); diff --git a/parser/testdata/corpus/sql/settings/test_external_access_secrets.test b/parser/testdata/corpus/sql/settings/test_external_access_secrets.test index 81e956e0..b5782025 100644 --- a/parser/testdata/corpus/sql/settings/test_external_access_secrets.test +++ b/parser/testdata/corpus/sql/settings/test_external_access_secrets.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_external_access_secrets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET secret_directory='{TEST_DIR}/external_access_secrets'; diff --git a/parser/testdata/corpus/sql/settings/test_lock_configuration.test b/parser/testdata/corpus/sql/settings/test_lock_configuration.test index ed4c0c72..2e3e78a8 100644 --- a/parser/testdata/corpus/sql/settings/test_lock_configuration.test +++ b/parser/testdata/corpus/sql/settings/test_lock_configuration.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_lock_configuration.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('lock_configuration') diff --git a/parser/testdata/corpus/sql/settings/test_nan_percentage_settings.test b/parser/testdata/corpus/sql/settings/test_nan_percentage_settings.test new file mode 100644 index 00000000..4b66b3db --- /dev/null +++ b/parser/testdata/corpus/sql/settings/test_nan_percentage_settings.test @@ -0,0 +1,25 @@ +# source: test/sql/settings/test_nan_percentage_settings.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET memory_limit='nan%'; +-- +ok +== +SET max_memory='nan%'; +-- +ok +== +SET index_scan_percentage='nan'::DOUBLE; +-- +ok +== +SET index_scan_percentage=0.5; +-- +ok +== +RESET index_scan_percentage; +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/test_progress_bar_null.test b/parser/testdata/corpus/sql/settings/test_progress_bar_null.test index 91a87436..2908d07b 100644 --- a/parser/testdata/corpus/sql/settings/test_progress_bar_null.test +++ b/parser/testdata/corpus/sql/settings/test_progress_bar_null.test @@ -1,6 +1,6 @@ # source: test/sql/settings/test_progress_bar_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA enable_progress_bar=null; diff --git a/parser/testdata/corpus/sql/settings/test_progress_bar_time_negative.test b/parser/testdata/corpus/sql/settings/test_progress_bar_time_negative.test new file mode 100644 index 00000000..83402d77 --- /dev/null +++ b/parser/testdata/corpus/sql/settings/test_progress_bar_time_negative.test @@ -0,0 +1,17 @@ +# source: test/sql/settings/test_progress_bar_time_negative.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET progress_bar_time = -1; +-- +ok +== +SET progress_bar_time = 100; +-- +ok +== +RESET progress_bar_time; +-- +ok +== diff --git a/parser/testdata/corpus/sql/settings/user_agent.test b/parser/testdata/corpus/sql/settings/user_agent.test index 33c0f1f5..777d2081 100644 --- a/parser/testdata/corpus/sql/settings/user_agent.test +++ b/parser/testdata/corpus/sql/settings/user_agent.test @@ -1,6 +1,6 @@ # source: test/sql/settings/user_agent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET custom_user_agent='something else' diff --git a/parser/testdata/corpus/sql/show_select/describe_case_alias.test b/parser/testdata/corpus/sql/show_select/describe_case_alias.test new file mode 100644 index 00000000..a610dd33 --- /dev/null +++ b/parser/testdata/corpus/sql/show_select/describe_case_alias.test @@ -0,0 +1,25 @@ +# source: test/sql/show_select/describe_case_alias.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE src ("Amount" INTEGER PRIMARY KEY, x INTEGER, y INTEGER); +-- +ok +== +CREATE VIEW v AS SELECT Amount AS amount, x AS X, y FROM src; +-- +ok +== +SELECT column_name, key FROM (DESCRIBE SELECT Amount AS amount, x AS X, y AS Y, x FROM src) +-- +ok +== +SELECT column_name FROM (DESCRIBE v) +-- +ok +== +SELECT column_name FROM (DESCRIBE SELECT * FROM src) +-- +ok +== diff --git a/parser/testdata/corpus/sql/show_select/describe_rowid.test b/parser/testdata/corpus/sql/show_select/describe_rowid.test index 964eb54c..499d1ced 100644 --- a/parser/testdata/corpus/sql/show_select/describe_rowid.test +++ b/parser/testdata/corpus/sql/show_select/describe_rowid.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/describe_rowid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table sometable ( diff --git a/parser/testdata/corpus/sql/show_select/describe_subquery.test b/parser/testdata/corpus/sql/show_select/describe_subquery.test index 2d7ae6e5..dca83a82 100644 --- a/parser/testdata/corpus/sql/show_select/describe_subquery.test +++ b/parser/testdata/corpus/sql/show_select/describe_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/describe_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column_name FROM (DESCRIBE SELECT 42 AS a) diff --git a/parser/testdata/corpus/sql/show_select/show_quote_identifier.test b/parser/testdata/corpus/sql/show_select/show_quote_identifier.test index 9ec6a63d..77c25c5d 100644 --- a/parser/testdata/corpus/sql/show_select/show_quote_identifier.test +++ b/parser/testdata/corpus/sql/show_select/show_quote_identifier.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/show_quote_identifier.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "s1"".tbl"(i INT); diff --git a/parser/testdata/corpus/sql/show_select/show_select_constraints.test b/parser/testdata/corpus/sql/show_select/show_select_constraints.test index 37878545..93193f29 100644 --- a/parser/testdata/corpus/sql/show_select/show_select_constraints.test +++ b/parser/testdata/corpus/sql/show_select/show_select_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/show_select_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(c1 INTEGER PRIMARY KEY, c2 INT NOT NULL, c3 INT DEFAULT 42, c4 INT UNIQUE, c5 INT); diff --git a/parser/testdata/corpus/sql/show_select/show_settings.test b/parser/testdata/corpus/sql/show_select/show_settings.test index 77040648..712347e5 100644 --- a/parser/testdata/corpus/sql/show_select/show_settings.test +++ b/parser/testdata/corpus/sql/show_select/show_settings.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/show_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE my_table(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/show_select/show_settings_extension.test b/parser/testdata/corpus/sql/show_select/show_settings_extension.test index 05dad9f8..7cb423fb 100644 --- a/parser/testdata/corpus/sql/show_select/show_settings_extension.test +++ b/parser/testdata/corpus/sql/show_select/show_settings_extension.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/show_settings_extension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='Europe/Amsterdam'; diff --git a/parser/testdata/corpus/sql/show_select/summarize_subquery.test b/parser/testdata/corpus/sql/show_select/summarize_subquery.test index dbcdb83b..247af622 100644 --- a/parser/testdata/corpus/sql/show_select/summarize_subquery.test +++ b/parser/testdata/corpus/sql/show_select/summarize_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/summarize_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT column_name, min FROM (SUMMARIZE SELECT 42 AS a); diff --git a/parser/testdata/corpus/sql/show_select/test_describe_all.test b/parser/testdata/corpus/sql/show_select/test_describe_all.test index f0bdbe3a..30a3fa12 100644 --- a/parser/testdata/corpus/sql/show_select/test_describe_all.test +++ b/parser/testdata/corpus/sql/show_select/test_describe_all.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/test_describe_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER, j INTEGER, a INTEGER); diff --git a/parser/testdata/corpus/sql/show_select/test_describe_quoted.test b/parser/testdata/corpus/sql/show_select/test_describe_quoted.test index 8d1b175a..2380ab8e 100644 --- a/parser/testdata/corpus/sql/show_select/test_describe_quoted.test +++ b/parser/testdata/corpus/sql/show_select/test_describe_quoted.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/test_describe_quoted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table "a.b.c" (x int); diff --git a/parser/testdata/corpus/sql/show_select/test_show_select.test b/parser/testdata/corpus/sql/show_select/test_show_select.test index e8cc997e..ce89f258 100644 --- a/parser/testdata/corpus/sql/show_select/test_show_select.test +++ b/parser/testdata/corpus/sql/show_select/test_show_select.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/test_show_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers2 (i INTEGER, j INTEGER, st VARCHAR, d DATE) diff --git a/parser/testdata/corpus/sql/show_select/test_summarize.test b/parser/testdata/corpus/sql/show_select/test_summarize.test index 76f9b58d..02049269 100644 --- a/parser/testdata/corpus/sql/show_select/test_summarize.test +++ b/parser/testdata/corpus/sql/show_select/test_summarize.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/test_summarize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE types(i INTEGER, j VARCHAR, k HUGEINT, d DOUBLE, e BLOB); diff --git a/parser/testdata/corpus/sql/show_select/test_summarize_quoted.test b/parser/testdata/corpus/sql/show_select/test_summarize_quoted.test index f4f702dd..1040a2db 100644 --- a/parser/testdata/corpus/sql/show_select/test_summarize_quoted.test +++ b/parser/testdata/corpus/sql/show_select/test_summarize_quoted.test @@ -1,6 +1,6 @@ # source: test/sql/show_select/test_summarize_quoted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit summarize "a.b.c"; diff --git a/parser/testdata/corpus/sql/show_select/test_summarize_temporal_ns.test b/parser/testdata/corpus/sql/show_select/test_summarize_temporal_ns.test new file mode 100644 index 00000000..e3317e17 --- /dev/null +++ b/parser/testdata/corpus/sql/show_select/test_summarize_temporal_ns.test @@ -0,0 +1,40 @@ +# source: test/sql/show_select/test_summarize_temporal_ns.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT avg(x) FROM (SELECT TIMESTAMP_NS '2026-01-01 00:00:00.000000001' AS x UNION ALL SELECT TIMESTAMP_NS '2026-01-01 00:00:00.000000003'); +-- +ok +== +SELECT avg(x) FROM (SELECT TIME_NS '01:00:00.000000001' AS x UNION ALL SELECT TIME_NS '01:00:00.000000003'); +-- +ok +== +SELECT avg(x) FROM (SELECT TIMESTAMPTZ_NS '2026-01-01 10:00:00+10:00' AS x); +-- +ok +== +SELECT typeof(approx_quantile(x, 0.5)) FROM (SELECT TIME_NS '01:00:00.000000000' AS x); +-- +ok +== +SELECT typeof(approx_quantile(x, 0.5)) FROM (SELECT TIMESTAMP_NS '2026-01-01 00:00:00' AS x); +-- +ok +== +SELECT typeof(approx_quantile(x, 0.5)) FROM (SELECT TIMESTAMPTZ_NS '2026-01-01 00:00:00+00:00' AS x); +-- +ok +== +CREATE OR REPLACE TABLE summarize_ns AS SELECT + TIMESTAMP_NS '2026-01-01 10:00:00.000000001' AS ts_ns, + TIME_NS '01:02:03.000000001' AS time_ns, + TIMESTAMPTZ_NS '2026-01-01 10:00:00+10:00' AS tstz_ns; +-- +ok +== +SELECT count(*) FROM (SUMMARIZE summarize_ns); +-- +ok +== diff --git a/parser/testdata/corpus/sql/sql_export/aggregate_literals.test b/parser/testdata/corpus/sql/sql_export/aggregate_literals.test index 7dfac9f0..3dd4a969 100644 --- a/parser/testdata/corpus/sql/sql_export/aggregate_literals.test +++ b/parser/testdata/corpus/sql/sql_export/aggregate_literals.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/aggregate_literals.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT string_agg(DISTINCT v, '|' ORDER BY length(v), v) diff --git a/parser/testdata/corpus/sql/sql_export/aggregate_results.test b/parser/testdata/corpus/sql/sql_export/aggregate_results.test index 75b284da..895f178d 100644 --- a/parser/testdata/corpus/sql/sql_export/aggregate_results.test +++ b/parser/testdata/corpus/sql/sql_export/aggregate_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/aggregate_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimal_values(i DECIMAL(9,2)); diff --git a/parser/testdata/corpus/sql/sql_export/aggregate_topn_rewrites.test b/parser/testdata/corpus/sql/sql_export/aggregate_topn_rewrites.test index df3b7c3e..4c49d9c6 100644 --- a/parser/testdata/corpus/sql/sql_export/aggregate_topn_rewrites.test +++ b/parser/testdata/corpus/sql/sql_export/aggregate_topn_rewrites.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/aggregate_topn_rewrites.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE reuse_owner AS FROM (VALUES (1,10),(2,20),(3,30),(4,40)) t(k,dim_id); @@ -71,10 +71,6 @@ EXPLAIN SELECT o.k,d.label,sum(f.v) FROM reuse_owner o JOIN reuse_dim d ON o.dim -- ok == -SET disabled_optimizers='join_filter_pushdown'; --- -ok -== SELECT f.v FROM reuse_fact f JOIN reuse_owner o USING(k) WHERE o.dim_id>10 ORDER BY ALL; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/alias.test b/parser/testdata/corpus/sql/sql_export/alias.test index 2fd1bed9..4d0caf7f 100644 --- a/parser/testdata/corpus/sql/sql_export/alias.test +++ b/parser/testdata/corpus/sql/sql_export/alias.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE names("MiXeD" INTEGER, other INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/basic_plan_shapes.test b/parser/testdata/corpus/sql/sql_export/basic_plan_shapes.test index cde2797e..efb57840 100644 --- a/parser/testdata/corpus/sql/sql_export/basic_plan_shapes.test +++ b/parser/testdata/corpus/sql/sql_export/basic_plan_shapes.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/basic_plan_shapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE readable_scan("unusual name" INTEGER, column0 INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/call_values.test b/parser/testdata/corpus/sql/sql_export/call_values.test index 2df94204..02c9a5c3 100644 --- a/parser/testdata/corpus/sql/sql_export/call_values.test +++ b/parser/testdata/corpus/sql/sql_export/call_values.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/call_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT abs(-7::INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/catalog_invocations.test b/parser/testdata/corpus/sql/sql_export/catalog_invocations.test index 15e3baa4..f833b108 100644 --- a/parser/testdata/corpus/sql/sql_export/catalog_invocations.test +++ b/parser/testdata/corpus/sql/sql_export/catalog_invocations.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/catalog_invocations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH ':memory:' AS attached; diff --git a/parser/testdata/corpus/sql/sql_export/ci_reconstruction.test b/parser/testdata/corpus/sql/sql_export/ci_reconstruction.test index 8d61cdae..784401dc 100644 --- a/parser/testdata/corpus/sql/sql_export/ci_reconstruction.test +++ b/parser/testdata/corpus/sql/sql_export/ci_reconstruction.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/ci_reconstruction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ci_structs(s STRUCT(c1 VARCHAR, c2 INTEGER)); diff --git a/parser/testdata/corpus/sql/sql_export/collated_aggregate_state.test b/parser/testdata/corpus/sql/sql_export/collated_aggregate_state.test index a9b7e5a4..e7f0e681 100644 --- a/parser/testdata/corpus/sql/sql_export/collated_aggregate_state.test +++ b/parser/testdata/corpus/sql/sql_export/collated_aggregate_state.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/collated_aggregate_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collated_state_input(g INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/collation_results.test b/parser/testdata/corpus/sql/sql_export/collation_results.test index ab7553f1..ed801fbd 100644 --- a/parser/testdata/corpus/sql/sql_export/collation_results.test +++ b/parser/testdata/corpus/sql/sql_export/collation_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/collation_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collated_values(v VARCHAR); INSERT INTO collated_values VALUES ('A'),('a'),(NULL); diff --git a/parser/testdata/corpus/sql/sql_export/composition_plan.test b/parser/testdata/corpus/sql/sql_export/composition_plan.test index bfed8f7f..370d8b82 100644 --- a/parser/testdata/corpus/sql/sql_export/composition_plan.test +++ b/parser/testdata/corpus/sql/sql_export/composition_plan.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/composition_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE composition_input(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/composition_q1.test b/parser/testdata/corpus/sql/sql_export/composition_q1.test index a316d8c4..581fea0f 100644 --- a/parser/testdata/corpus/sql/sql_export/composition_q1.test +++ b/parser/testdata/corpus/sql/sql_export/composition_q1.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/composition_q1.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lineitem(l_orderkey BIGINT,l_partkey BIGINT,l_suppkey BIGINT,l_linenumber BIGINT,l_quantity DECIMAL(15,2),l_extendedprice DECIMAL(15,2),l_discount DECIMAL(15,2),l_tax DECIMAL(15,2),l_returnflag VARCHAR,l_linestatus VARCHAR,l_shipdate DATE,l_commitdate DATE,l_receiptdate DATE,l_shipinstruct VARCHAR,l_shipmode VARCHAR,l_comment VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/composition_q1_plan.test b/parser/testdata/corpus/sql/sql_export/composition_q1_plan.test index fee7b489..966618e8 100644 --- a/parser/testdata/corpus/sql/sql_export/composition_q1_plan.test +++ b/parser/testdata/corpus/sql/sql_export/composition_q1_plan.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/composition_q1_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT diff --git a/parser/testdata/corpus/sql/sql_export/composition_results.test b/parser/testdata/corpus/sql/sql_export/composition_results.test index 6030e9f2..ff61de17 100644 --- a/parser/testdata/corpus/sql/sql_export/composition_results.test +++ b/parser/testdata/corpus/sql/sql_export/composition_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/composition_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_disable_optimizer={optimizer}; diff --git a/parser/testdata/corpus/sql/sql_export/compressed_materialization_sql_export.test b/parser/testdata/corpus/sql/sql_export/compressed_materialization_sql_export.test index 9206b2a3..a8cb4ab5 100644 --- a/parser/testdata/corpus/sql/sql_export/compressed_materialization_sql_export.test +++ b/parser/testdata/corpus/sql/sql_export/compressed_materialization_sql_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/compressed_materialization_sql_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE compressed_values(i BIGINT); diff --git a/parser/testdata/corpus/sql/sql_export/compression_fallbacks.test b/parser/testdata/corpus/sql/sql_export/compression_fallbacks.test index e0fd5854..23d78d72 100644 --- a/parser/testdata/corpus/sql/sql_export/compression_fallbacks.test +++ b/parser/testdata/corpus/sql/sql_export/compression_fallbacks.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/compression_fallbacks.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE materialized_source AS SELECT (i+100000)::INTEGER id, printf('v%02d', i) s, printf('POINT(%d %d)', i, i)::GEOMETRY g FROM range(100)t(i); diff --git a/parser/testdata/corpus/sql/sql_export/compression_fallbacks_plan.test b/parser/testdata/corpus/sql/sql_export/compression_fallbacks_plan.test index e0b06bc8..d68ad00e 100644 --- a/parser/testdata/corpus/sql/sql_export/compression_fallbacks_plan.test +++ b/parser/testdata/corpus/sql/sql_export/compression_fallbacks_plan.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/compression_fallbacks_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN SELECT id FROM materialized_source ORDER BY id; diff --git a/parser/testdata/corpus/sql/sql_export/constant_values.test b/parser/testdata/corpus/sql/sql_export/constant_values.test index aeea981e..e181f979 100644 --- a/parser/testdata/corpus/sql/sql_export/constant_values.test +++ b/parser/testdata/corpus/sql/sql_export/constant_values.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/constant_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/sql_export/correlated_metadata.test b/parser/testdata/corpus/sql/sql_export/correlated_metadata.test index 47ff5ee0..a4e10042 100644 --- a/parser/testdata/corpus/sql/sql_export/correlated_metadata.test +++ b/parser/testdata/corpus/sql/sql_export/correlated_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/correlated_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (WITH c AS MATERIALIZED (SELECT i x) SELECT count(*) FROM c) FROM range(3) t(i); diff --git a/parser/testdata/corpus/sql/sql_export/correlated_sql_export.test b/parser/testdata/corpus/sql/sql_export/correlated_sql_export.test index e12c6cc9..e7551126 100644 --- a/parser/testdata/corpus/sql/sql_export/correlated_sql_export.test +++ b/parser/testdata/corpus/sql/sql_export/correlated_sql_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/correlated_sql_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE l(id INTEGER,k DOUBLE,x INTEGER); @@ -19,10 +19,6 @@ INSERT INTO r VALUES (1,10),(1,10),(1,NULL),(2,99),(NULL,NULL); -- ok == -SET debug_verify_statement='explain_sql'; --- -ok -== SELECT id,x=ANY(SELECT y FROM r WHERE r.k=l.k),x<>ALL(SELECT y FROM r WHERE r.k=l.k),x=ALL(SELECT y FROM r WHERE r.k=l.k) FROM l; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/cte_names.test b/parser/testdata/corpus/sql/sql_export/cte_names.test index dc83c697..87886a66 100644 --- a/parser/testdata/corpus/sql/sql_export/cte_names.test +++ b/parser/testdata/corpus/sql/sql_export/cte_names.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/cte_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH r0(x) AS MATERIALIZED (VALUES (1)), r1(y) AS MATERIALIZED (VALUES (2)) diff --git a/parser/testdata/corpus/sql/sql_export/cte_result_matrices.test b/parser/testdata/corpus/sql/sql_export/cte_result_matrices.test index e30d0a94..0e429fef 100644 --- a/parser/testdata/corpus/sql/sql_export/cte_result_matrices.test +++ b/parser/testdata/corpus/sql/sql_export/cte_result_matrices.test @@ -1,12 +1,8 @@ # source: test/sql/sql_export/cte_result_matrices.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET disabled_optimizers='compressed_materialization'; --- -ok -== CREATE TABLE cte_input(x INTEGER, y DECIMAL(9,2), z INTEGER[]); -- ok diff --git a/parser/testdata/corpus/sql/sql_export/dml_statements.test b/parser/testdata/corpus/sql/sql_export/dml_statements.test index 78ab685a..e1d96259 100644 --- a/parser/testdata/corpus/sql/sql_export/dml_statements.test +++ b/parser/testdata/corpus/sql/sql_export/dml_statements.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/dml_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dml_target(a INTEGER, b TEXT DEFAULT 'x'); @@ -314,6 +314,22 @@ SELECT a FROM d ORDER BY a LIMIT 1; -- ok == +CREATE TABLE dml_key_only(k INTEGER PRIMARY KEY, v INTEGER); +-- +ok +== +INSERT INTO dml_key_only VALUES (1, 10); +-- +ok +== +EXPLAIN (SQL) INSERT OR REPLACE INTO dml_key_only(k) VALUES (1), (2); +-- +ok +== +INSERT OR REPLACE INTO dml_key_only(k) VALUES (1), (2); +-- +ok +== EXPLAIN (SQL) WITH ups AS (INSERT INTO dml_keyed VALUES (1,'x') ON CONFLICT DO NOTHING RETURNING a) SELECT * FROM ups; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/empty_aggregate_state.test b/parser/testdata/corpus/sql/sql_export/empty_aggregate_state.test index 652e9a6a..38895d5e 100644 --- a/parser/testdata/corpus/sql/sql_export/empty_aggregate_state.test +++ b/parser/testdata/corpus/sql/sql_export/empty_aggregate_state.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/empty_aggregate_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE states AS SELECT avg(i) EXPORT_STATE a, sum(i) EXPORT_STATE s, diff --git a/parser/testdata/corpus/sql/sql_export/empty_enum.test b/parser/testdata/corpus/sql/sql_export/empty_enum.test index 917e17c3..08ca640b 100644 --- a/parser/testdata/corpus/sql/sql_export/empty_enum.test +++ b/parser/testdata/corpus/sql/sql_export/empty_enum.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/empty_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE nonempty_enum AS ENUM ('a', 'b'); diff --git a/parser/testdata/corpus/sql/sql_export/execution_once.test b/parser/testdata/corpus/sql/sql_export/execution_once.test index 2d13a572..64c2b242 100644 --- a/parser/testdata/corpus/sql/sql_export/execution_once.test +++ b/parser/testdata/corpus/sql/sql_export/execution_once.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/execution_once.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE exported_calls; diff --git a/parser/testdata/corpus/sql/sql_export/explain_sql.test b/parser/testdata/corpus/sql/sql_export/explain_sql.test index 800fbd38..adf27d00 100644 --- a/parser/testdata/corpus/sql/sql_export/explain_sql.test +++ b/parser/testdata/corpus/sql/sql_export/explain_sql.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/explain_sql.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT 1 + 2 AS answer; diff --git a/parser/testdata/corpus/sql/sql_export/explain_sql_formatting.test b/parser/testdata/corpus/sql/sql_export/explain_sql_formatting.test index ada1f12a..f8931e8c 100644 --- a/parser/testdata/corpus/sql/sql_export/explain_sql_formatting.test +++ b/parser/testdata/corpus/sql/sql_export/explain_sql_formatting.test @@ -1,16 +1,8 @@ # source: test/sql/sql_export/explain_sql_formatting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET autoload_known_extensions=false; --- -ok -== -SET autoinstall_known_extensions=false; --- -ok -== SELECT count(*) FROM duckdb_extensions() WHERE extension_name='autocomplete' AND loaded; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/explain_sql_roundtrip.test b/parser/testdata/corpus/sql/sql_export/explain_sql_roundtrip.test index e1fe7117..e3847578 100644 --- a/parser/testdata/corpus/sql/sql_export/explain_sql_roundtrip.test +++ b/parser/testdata/corpus/sql/sql_export/explain_sql_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/explain_sql_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE explain_data(i INTEGER, g VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/explain_sql_scopes.test b/parser/testdata/corpus/sql/sql_export/explain_sql_scopes.test index ae9b4ed1..f52aafc3 100644 --- a/parser/testdata/corpus/sql/sql_export/explain_sql_scopes.test +++ b/parser/testdata/corpus/sql/sql_export/explain_sql_scopes.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/explain_sql_scopes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT 1; diff --git a/parser/testdata/corpus/sql/sql_export/expression_results.test b/parser/testdata/corpus/sql/sql_export/expression_results.test index 3acf9c96..2c46b465 100644 --- a/parser/testdata/corpus/sql/sql_export/expression_results.test +++ b/parser/testdata/corpus/sql/sql_export/expression_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/expression_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/sql_export/function_result_types.test b/parser/testdata/corpus/sql/sql_export/function_result_types.test index 749a8e62..a9c369bb 100644 --- a/parser/testdata/corpus/sql/sql_export/function_result_types.test +++ b/parser/testdata/corpus/sql/sql_export/function_result_types.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/function_result_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT abs(i) FROM (VALUES (-7), (NULL), (2), (-7)) t(i); diff --git a/parser/testdata/corpus/sql/sql_export/geometry_values.test b/parser/testdata/corpus/sql/sql_export/geometry_values.test index 6569180f..621c93df 100644 --- a/parser/testdata/corpus/sql/sql_export/geometry_values.test +++ b/parser/testdata/corpus/sql/sql_export/geometry_values.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/geometry_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/sql_export/grouped_mark_roundtrip.test b/parser/testdata/corpus/sql/sql_export/grouped_mark_roundtrip.test index e8b5688c..3942a277 100644 --- a/parser/testdata/corpus/sql/sql_export/grouped_mark_roundtrip.test +++ b/parser/testdata/corpus/sql/sql_export/grouped_mark_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/grouped_mark_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE probes(id INTEGER,g VARCHAR COLLATE nocase,h INTEGER[],v INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/grouped_tuple_mark_roundtrip.test b/parser/testdata/corpus/sql/sql_export/grouped_tuple_mark_roundtrip.test new file mode 100644 index 00000000..da91ead1 --- /dev/null +++ b/parser/testdata/corpus/sql/sql_export/grouped_tuple_mark_roundtrip.test @@ -0,0 +1,65 @@ +# source: test/sql/sql_export/grouped_tuple_mark_roundtrip.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE probe_values(id INTEGER,g INTEGER,is_null BOOLEAN,a INTEGER,b INTEGER); +-- +ok +== +CREATE TABLE candidate_values(g INTEGER,is_null BOOLEAN,a INTEGER,b INTEGER); +-- +ok +== +CREATE VIEW probes AS SELECT id,g,CASE WHEN is_null THEN NULL::TUPLE(INTEGER,INTEGER) ELSE row(a,b) END AS v FROM probe_values; +-- +ok +== +CREATE VIEW candidates AS SELECT g,CASE WHEN is_null THEN NULL::TUPLE(INTEGER,INTEGER) ELSE row(a,b) END AS v FROM candidate_values; +-- +ok +== +INSERT INTO probe_values VALUES(0,0,true,NULL,NULL),(1,1,false,1,2),(2,1,false,9,9),(3,1,true,NULL,NULL),(4,2,false,1,2),(5,2,false,2,2),(6,2,true,NULL,NULL),(7,3,false,1,2),(8,3,true,NULL,NULL),(9,NULL,false,1,2),(10,4,false,1,NULL),(11,4,false,1,2); +-- +ok +== +INSERT INTO candidate_values VALUES(1,false,1,2),(1,false,1,2),(1,true,NULL,NULL),(2,false,2,2),(NULL,false,1,2),(4,false,1,NULL); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v IN(SELECT c.v FROM candidates c WHERE c.g=p.g) marker FROM probes p); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v NOT IN(SELECT c.v FROM candidates c WHERE c.g=p.g) marker FROM probes p); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v IN(SELECT c.v FROM candidates c WHERE c.g IS NOT DISTINCT FROM p.g) marker FROM probes p); +-- +ok +== +SELECT list(__mark_join_marker ORDER BY id) FROM probes p JOIN BY(TYPE MARK) candidates c ON p.g IS NOT DISTINCT FROM c.g AND p.v=c.v; +-- +ok +== +SELECT count(*) FROM probes p WHERE p.v IN(SELECT c.v FROM candidates c WHERE c.g=p.g); +-- +ok +== +SELECT __mark_join_marker FROM probes p JOIN BY(TYPE MARK) candidates c ON p.g IS NOT DISTINCT FROM c.g AND p.vc.v; +-- +ok +== +INSERT INTO candidate_values SELECT 2,false,2,2 FROM range(4096); +-- +ok +== +DELETE FROM candidate_values; +-- +ok +== diff --git a/parser/testdata/corpus/sql/sql_export/icu_datepart_roundtrip.test b/parser/testdata/corpus/sql/sql_export/icu_datepart_roundtrip.test index a6e9538d..35250398 100644 --- a/parser/testdata/corpus/sql/sql_export/icu_datepart_roundtrip.test +++ b/parser/testdata/corpus/sql/sql_export/icu_datepart_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/icu_datepart_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE export_dates(id INTEGER, part VARCHAR, ts TIMESTAMPTZ); diff --git a/parser/testdata/corpus/sql/sql_export/join_multiplicities.test b/parser/testdata/corpus/sql/sql_export/join_multiplicities.test index ec70e5e1..11279313 100644 --- a/parser/testdata/corpus/sql/sql_export/join_multiplicities.test +++ b/parser/testdata/corpus/sql/sql_export/join_multiplicities.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/join_multiplicities.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (VALUES (1,10),(2,20),(2,21),(NULL,30)) l(a,x) CROSS JOIN (VALUES (2,100),(3,200),(NULL,300)) r(b,y); diff --git a/parser/testdata/corpus/sql/sql_export/json_ordering.test b/parser/testdata/corpus/sql/sql_export/json_ordering.test index 1558f4e6..f48cc659 100644 --- a/parser/testdata/corpus/sql/sql_export/json_ordering.test +++ b/parser/testdata/corpus/sql/sql_export/json_ordering.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/json_ordering.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE json_ordering(v JSON); diff --git a/parser/testdata/corpus/sql/sql_export/legacy_source_serialization.test b/parser/testdata/corpus/sql/sql_export/legacy_source_serialization.test index 14faaebd..9592f3f4 100644 --- a/parser/testdata/corpus/sql/sql_export/legacy_source_serialization.test +++ b/parser/testdata/corpus/sql/sql_export/legacy_source_serialization.test @@ -1,12 +1,8 @@ # source: test/sql/sql_export/legacy_source_serialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET storage_compatibility_version='v1.0.0'; --- -ok -== COPY (SELECT * FROM (VALUES (10,1),(10,1),(NULL,1),(20,2),(30,NULL)) t(i,p)) TO '{TEST_DIR}/legacy_source_parquet' (FORMAT parquet, PARTITION_BY(p)); -- ok diff --git a/parser/testdata/corpus/sql/sql_export/mark_collation.test b/parser/testdata/corpus/sql/sql_export/mark_collation.test index 18b3a9a2..f09067db 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_collation.test +++ b/parser/testdata/corpus/sql/sql_export/mark_collation.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/mark_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s, 'ABC' COLLATE nocase IN (SELECT s) diff --git a/parser/testdata/corpus/sql/sql_export/mark_condition_shapes.test b/parser/testdata/corpus/sql/sql_export/mark_condition_shapes.test index 420a562b..d031feb1 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_condition_shapes.test +++ b/parser/testdata/corpus/sql/sql_export/mark_condition_shapes.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/mark_condition_shapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a,b,__mark_join_marker FROM (VALUES (1,1),(2,2),(NULL,2)) l(a,b) diff --git a/parser/testdata/corpus/sql/sql_export/mark_export_effects.test b/parser/testdata/corpus/sql/sql_export/mark_export_effects.test index a36679b6..08c18f61 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_export_effects.test +++ b/parser/testdata/corpus/sql/sql_export/mark_export_effects.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/mark_export_effects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_streaming_buffer_size='1b'; diff --git a/parser/testdata/corpus/sql/sql_export/mark_nested_comparison_roundtrip.test b/parser/testdata/corpus/sql/sql_export/mark_nested_comparison_roundtrip.test index 1c1e4f60..c872db43 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_nested_comparison_roundtrip.test +++ b/parser/testdata/corpus/sql/sql_export/mark_nested_comparison_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/mark_nested_comparison_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::TUPLE(INTEGER,INTEGER)),(1,row(1,2)),(2,row(2,1)),(3,row(1,2)),(4,row(1,NULL::INTEGER))) p(id,k) JOIN BY(TYPE MARK) (VALUES (row(1,2)),(row(1,2)),(row(1,NULL::INTEGER))) b(k) ON p.k = b.k; diff --git a/parser/testdata/corpus/sql/sql_export/mark_results.test b/parser/testdata/corpus/sql/sql_export/mark_results.test index ddab65da..9bea4834 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_results.test +++ b/parser/testdata/corpus/sql/sql_export/mark_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/mark_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 = ANY(SELECT 2); diff --git a/parser/testdata/corpus/sql/sql_export/mark_strategies.test b/parser/testdata/corpus/sql/sql_export/mark_strategies.test index 2f0e7453..d578fa46 100644 --- a/parser/testdata/corpus/sql/sql_export/mark_strategies.test +++ b/parser/testdata/corpus/sql/sql_export/mark_strategies.test @@ -1,12 +1,8 @@ # source: test/sql/sql_export/mark_strategies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET merge_join_threshold=0; --- -ok -== SET prefer_range_joins=true; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/named_scalar_arguments.test b/parser/testdata/corpus/sql/sql_export/named_scalar_arguments.test index f5a69bb1..2b892d7b 100644 --- a/parser/testdata/corpus/sql/sql_export/named_scalar_arguments.test +++ b/parser/testdata/corpus/sql/sql_export/named_scalar_arguments.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/named_scalar_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_insert(s, "named column" := j, "constant field" := 7, "list field" := l, "nested field" := n) FROM (VALUES ({'a': 1, 'MiXeD': [2]}, 2, [2, NULL]::INTEGER[], {'items': [2, NULL]::INTEGER[]}), ({'a': 1, 'MiXeD': [2]}, 2, [2, NULL]::INTEGER[], {'items': [2, NULL]::INTEGER[]}), ({'a': NULL, 'MiXeD': NULL::INTEGER[]}, NULL, NULL::INTEGER[], {'items': NULL::INTEGER[]})) src(s, j, l, n); diff --git a/parser/testdata/corpus/sql/sql_export/nested_collated_nulls.test b/parser/testdata/corpus/sql/sql_export/nested_collated_nulls.test index 48ecf366..6f3a663a 100644 --- a/parser/testdata/corpus/sql/sql_export/nested_collated_nulls.test +++ b/parser/testdata/corpus/sql/sql_export/nested_collated_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/nested_collated_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CASE WHEN false THEN ['x' COLLATE nocase] ELSE NULL END AS v; diff --git a/parser/testdata/corpus/sql/sql_export/nested_collations.test b/parser/testdata/corpus/sql/sql_export/nested_collations.test index 2a012b9e..b654de07 100644 --- a/parser/testdata/corpus/sql/sql_export/nested_collations.test +++ b/parser/testdata/corpus/sql/sql_export/nested_collations.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/nested_collations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_input(id INTEGER, l VARCHAR[], needle VARCHAR COLLATE nocase); diff --git a/parser/testdata/corpus/sql/sql_export/nested_result_collation.test b/parser/testdata/corpus/sql/sql_export/nested_result_collation.test index 9efafeda..756eb562 100644 --- a/parser/testdata/corpus/sql/sql_export/nested_result_collation.test +++ b/parser/testdata/corpus/sql/sql_export/nested_result_collation.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/nested_result_collation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT i,CASE WHEN i=4 THEN NULL ELSE struct_pack(v := s COLLATE NOCASE) END v FROM (VALUES (0,'A'),(1,'a'),(2,'B'),(3,NULL),(4,'A')) t(i,s) ORDER BY i; diff --git a/parser/testdata/corpus/sql/sql_export/nested_values.test b/parser/testdata/corpus/sql/sql_export/nested_values.test index c2f74644..01038fb9 100644 --- a/parser/testdata/corpus/sql/sql_export/nested_values.test +++ b/parser/testdata/corpus/sql/sql_export/nested_values.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/nested_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct_insert_input AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/sql_export/null_safe_mark_roundtrip.test b/parser/testdata/corpus/sql/sql_export/null_safe_mark_roundtrip.test index 20d12839..ce32809c 100644 --- a/parser/testdata/corpus/sql/sql_export/null_safe_mark_roundtrip.test +++ b/parser/testdata/corpus/sql/sql_export/null_safe_mark_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/null_safe_mark_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT i AS order_key, (i * 7 + j) % 13 AS supplier_key, (i + j) % 5 AS receipt, 2 AS committed diff --git a/parser/testdata/corpus/sql/sql_export/numbered_scan_results.test b/parser/testdata/corpus/sql/sql_export/numbered_scan_results.test index 246ac4a8..8c5ab7df 100644 --- a/parser/testdata/corpus/sql/sql_export/numbered_scan_results.test +++ b/parser/testdata/corpus/sql/sql_export/numbered_scan_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/numbered_scan_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TABLE IF EXISTS numbered_scan; diff --git a/parser/testdata/corpus/sql/sql_export/parquet_variant_type.test b/parser/testdata/corpus/sql/sql_export/parquet_variant_type.test new file mode 100644 index 00000000..3859f82d --- /dev/null +++ b/parser/testdata/corpus/sql/sql_export/parquet_variant_type.test @@ -0,0 +1,58 @@ +# source: test/sql/sql_export/parquet_variant_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT variant_to_parquet_variant(NULL); +-- +ok +== +SELECT variant_to_parquet_variant(i::VARIANT) FROM range(2) t(i); +-- +ok +== +SELECT variant_to_parquet_variant(i::VARIANT) FROM (VALUES (1),(NULL),(1)) t(i); +-- +ok +== +SELECT get_type(variant_to_parquet_variant(NULL)); +-- +ok +== +SELECT get_type([variant_to_parquet_variant(NULL)]); +-- +ok +== +SELECT get_type({'v': variant_to_parquet_variant(NULL)}); +-- +ok +== +SELECT [variant_to_parquet_variant(NULL)]; +-- +ok +== +SELECT {'v': variant_to_parquet_variant(NULL)}; +-- +ok +== +SELECT NULL::PARQUET_VARIANT IS NULL, variant_to_parquet_variant(NULL) IS NULL; +-- +ok +== +SELECT get_type(NULL::PARQUET_VARIANT); +-- +ok +== +SELECT variant_to_parquet_variant(i::VARIANT)::STRUCT(metadata BLOB, value BLOB)::PARQUET_VARIANT +FROM range(1) t(i); +-- +ok +== +SELECT NULL::PARQUET_VARIANT('STRUCT(a VARCHAR)'); +-- +ok +== +SELECT get_type(1.25::DECIMAL(9,2)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/sql_export/pivot_list_results.test b/parser/testdata/corpus/sql/sql_export/pivot_list_results.test index 107b5d4c..fa7b8767 100644 --- a/parser/testdata/corpus/sql/sql_export/pivot_list_results.test +++ b/parser/testdata/corpus/sql/sql_export/pivot_list_results.test @@ -1,12 +1,8 @@ # source: test/sql/sql_export/pivot_list_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET pivot_filter_threshold=0; --- -ok -== SET pivot_filter_threshold={threshold}; -- error: Parser Error: syntax error at or near "}" diff --git a/parser/testdata/corpus/sql/sql_export/pivot_sql_export.test b/parser/testdata/corpus/sql/sql_export/pivot_sql_export.test index 7da796b4..39afbadb 100644 --- a/parser/testdata/corpus/sql/sql_export/pivot_sql_export.test +++ b/parser/testdata/corpus/sql/sql_export/pivot_sql_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/pivot_sql_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * @@ -81,6 +81,20 @@ PIVOT (quantile_cont(v,0.25) AS q, string_agg(v::VARCHAR,'|' ORDER BY v) AS s, -- ok == +FROM (VALUES ('g','p',1),('h','q',2)) t(g,k,v) +PIVOT (bitstring_agg(v, 1, 3) FOR k IN ('p','q')); +-- +ok +== +EXPLAIN (SQL) FROM (VALUES ('g','p',1),('h','q',2)) t(g,k,v) +PIVOT (bitstring_agg(v, 1, 3) FOR k IN ('p','q')); +-- +ok +== +EXPLAIN (SQL) SELECT bitstring_agg(v, 1, 3) AS b FROM (VALUES (1),(2)) t(v); +-- +ok +== RESET pivot_filter_threshold; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/plain_scope_results.test b/parser/testdata/corpus/sql/sql_export/plain_scope_results.test index 8b52ed8e..7781f180 100644 --- a/parser/testdata/corpus/sql/sql_export/plain_scope_results.test +++ b/parser/testdata/corpus/sql/sql_export/plain_scope_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/plain_scope_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE scope_rows(id INTEGER, i INTEGER, label VARCHAR COLLATE nocase, xs INTEGER[], ys INTEGER[], payload VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/plan_reconstruction_coverage.test b/parser/testdata/corpus/sql/sql_export/plan_reconstruction_coverage.test index 17b48116..e6a635e0 100644 --- a/parser/testdata/corpus/sql/sql_export/plan_reconstruction_coverage.test +++ b/parser/testdata/corpus/sql/sql_export/plan_reconstruction_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/plan_reconstruction_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE c(x) AS ( diff --git a/parser/testdata/corpus/sql/sql_export/pruned_offset.test b/parser/testdata/corpus/sql/sql_export/pruned_offset.test index 328076a7..b38e80a4 100644 --- a/parser/testdata/corpus/sql/sql_export/pruned_offset.test +++ b/parser/testdata/corpus/sql/sql_export/pruned_offset.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/pruned_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE offset_rows AS SELECT i::INTEGER AS i FROM range(245760) t(i) diff --git a/parser/testdata/corpus/sql/sql_export/pure_values_input.test b/parser/testdata/corpus/sql/sql_export/pure_values_input.test index 983bacd5..0bb436a3 100644 --- a/parser/testdata/corpus/sql/sql_export/pure_values_input.test +++ b/parser/testdata/corpus/sql/sql_export/pure_values_input.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/pure_values_input.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pure_values_input(i INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/pushed_column_paths.test b/parser/testdata/corpus/sql/sql_export/pushed_column_paths.test index 33e314f4..46e7fd3e 100644 --- a/parser/testdata/corpus/sql/sql_export/pushed_column_paths.test +++ b/parser/testdata/corpus/sql/sql_export/pushed_column_paths.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/pushed_column_paths.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE column_paths(s STRUCT("a'b" INTEGER, y STRUCT(z BIGINT)), v VARIANT);INSERT INTO column_paths VALUES ({'a''b':1,'y':{'z':2}},{'x':{'y':'3'}}::VARIANT),(NULL,NULL),({'a''b':NULL,'y':NULL},{'x':{'y':4}}::VARIANT); diff --git a/parser/testdata/corpus/sql/sql_export/pushed_projection_rejection.test b/parser/testdata/corpus/sql/sql_export/pushed_projection_rejection.test index 997090be..4fcf5c99 100644 --- a/parser/testdata/corpus/sql/sql_export/pushed_projection_rejection.test +++ b/parser/testdata/corpus/sql/sql_export/pushed_projection_rejection.test @@ -1,16 +1,12 @@ # source: test/sql/sql_export/pushed_projection_rejection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT * FROM (VALUES ('abc'), ('x'), (NULL)) t(s)) TO '{TEST_DIR}/pushed_projection.parquet'; -- ok == -SET storage_compatibility_version='v2.0.0'; --- -ok -== EXPLAIN (SQL) SELECT strlen(s) FROM read_parquet('{TEST_DIR}/pushed_projection.parquet'); -- ok diff --git a/parser/testdata/corpus/sql/sql_export/range_folded_offset.test b/parser/testdata/corpus/sql/sql_export/range_folded_offset.test index efc92044..033b0355 100644 --- a/parser/testdata/corpus/sql/sql_export/range_folded_offset.test +++ b/parser/testdata/corpus/sql/sql_export/range_folded_offset.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/range_folded_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x, sum(x) OVER (ORDER BY x RANGE BETWEEN 1 + 1 PRECEDING AND CURRENT ROW) diff --git a/parser/testdata/corpus/sql/sql_export/range_frames.test b/parser/testdata/corpus/sql/sql_export/range_frames.test index 55021478..97f0edf0 100644 --- a/parser/testdata/corpus/sql/sql_export/range_frames.test +++ b/parser/testdata/corpus/sql/sql_export/range_frames.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/range_frames.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE frame_values(id INTEGER,k INTEGER,d DATE,v INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/range_origin_inputs.test b/parser/testdata/corpus/sql/sql_export/range_origin_inputs.test index d4920e2d..1b2f3518 100644 --- a/parser/testdata/corpus/sql/sql_export/range_origin_inputs.test +++ b/parser/testdata/corpus/sql/sql_export/range_origin_inputs.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/range_origin_inputs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x, sum(x) OVER (ORDER BY x RANGE BETWEEN (SELECT 1) PRECEDING AND CURRENT ROW) diff --git a/parser/testdata/corpus/sql/sql_export/recursive_payload_results.test b/parser/testdata/corpus/sql/sql_export/recursive_payload_results.test index e333d10d..931603a1 100644 --- a/parser/testdata/corpus/sql/sql_export/recursive_payload_results.test +++ b/parser/testdata/corpus/sql/sql_export/recursive_payload_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/recursive_payload_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_payload AS SELECT ['A' COLLATE nocase] v UNION ALL SELECT ['a' COLLATE nocase]; diff --git a/parser/testdata/corpus/sql/sql_export/recursive_payload_types.test b/parser/testdata/corpus/sql/sql_export/recursive_payload_types.test index 9319d97f..baa19cfe 100644 --- a/parser/testdata/corpus/sql/sql_export/recursive_payload_types.test +++ b/parser/testdata/corpus/sql/sql_export/recursive_payload_types.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/recursive_payload_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH RECURSIVE c(x) USING KEY(x) AS (SELECT (x) COLLATE nocase FROM (VALUES ('A'),('a'),(NULL))v(x) UNION SELECT x FROM c WHERE false) SELECT x FROM c ORDER BY x NULLS LAST; diff --git a/parser/testdata/corpus/sql/sql_export/recursive_state.test b/parser/testdata/corpus/sql/sql_export/recursive_state.test index a8f9e2a5..73e8cd48 100644 --- a/parser/testdata/corpus/sql/sql_export/recursive_state.test +++ b/parser/testdata/corpus/sql/sql_export/recursive_state.test @@ -1,12 +1,8 @@ # source: test/sql/sql_export/recursive_state.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET max_execution_time=60000; --- -ok -== WITH RECURSIVE c(x) AS (SELECT 1 UNION ALL SELECT count(*)::INTEGER FROM c WHERE false) SELECT x FROM c LIMIT 4; -- ok diff --git a/parser/testdata/corpus/sql/sql_export/regex_range_filter_export.test b/parser/testdata/corpus/sql/sql_export/regex_range_filter_export.test index cb1f3a11..6eeed962 100644 --- a/parser/testdata/corpus/sql/sql_export/regex_range_filter_export.test +++ b/parser/testdata/corpus/sql/sql_export/regex_range_filter_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/regex_range_filter_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT 'goose' AS v UNION ALL SELECT 'gooxe' UNION ALL SELECT 'duck' UNION ALL SELECT 'goo\x5Ce'; diff --git a/parser/testdata/corpus/sql/sql_export/result_modifiers.test b/parser/testdata/corpus/sql/sql_export/result_modifiers.test index 4d26e105..f97d9e5a 100644 --- a/parser/testdata/corpus/sql/sql_export/result_modifiers.test +++ b/parser/testdata/corpus/sql/sql_export/result_modifiers.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/result_modifiers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x FROM (VALUES (3,30), (1,10), (NULL,40), (3,20), (NULL,50)) t(x,y) ORDER BY x DESC NULLS LAST, y; diff --git a/parser/testdata/corpus/sql/sql_export/rewrite_qualification.test b/parser/testdata/corpus/sql/sql_export/rewrite_qualification.test index 43b900d4..62c01e5c 100644 --- a/parser/testdata/corpus/sql/sql_export/rewrite_qualification.test +++ b/parser/testdata/corpus/sql/sql_export/rewrite_qualification.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/rewrite_qualification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO shadow.prefix(a,b) AS false; diff --git a/parser/testdata/corpus/sql/sql_export/rewritten_functions.test b/parser/testdata/corpus/sql/sql_export/rewritten_functions.test index 4c9bfc08..0bead724 100644 --- a/parser/testdata/corpus/sql/sql_export/rewritten_functions.test +++ b/parser/testdata/corpus/sql/sql_export/rewritten_functions.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/rewritten_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bounded_values(i INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/sampling_values.test b/parser/testdata/corpus/sql/sql_export/sampling_values.test index 89dfbb00..9ff19bd7 100644 --- a/parser/testdata/corpus/sql/sql_export/sampling_values.test +++ b/parser/testdata/corpus/sql/sql_export/sampling_values.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/sampling_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM (SELECT i,CASE WHEN i%5=0 THEN NULL ELSE i%3 END v FROM range(10000)t(i) WHERE i%2=0) USING SAMPLE 31 (reservoir,42); diff --git a/parser/testdata/corpus/sql/sql_export/scalar_limit.test b/parser/testdata/corpus/sql/sql_export/scalar_limit.test index 33a1c974..0b701ae4 100644 --- a/parser/testdata/corpus/sql/sql_export/scalar_limit.test +++ b/parser/testdata/corpus/sql/sql_export/scalar_limit.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/scalar_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE limit_calls; diff --git a/parser/testdata/corpus/sql/sql_export/scope_reuse.test b/parser/testdata/corpus/sql/sql_export/scope_reuse.test index a4c52685..5c4c90b5 100644 --- a/parser/testdata/corpus/sql/sql_export/scope_reuse.test +++ b/parser/testdata/corpus/sql/sql_export/scope_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/scope_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/scope_reuse_plan.test b/parser/testdata/corpus/sql/sql_export/scope_reuse_plan.test index c3e5899d..5425f537 100644 --- a/parser/testdata/corpus/sql/sql_export/scope_reuse_plan.test +++ b/parser/testdata/corpus/sql/sql_export/scope_reuse_plan.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/scope_reuse_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT t.i,t.s,u.v FROM t JOIN u USING (i); diff --git a/parser/testdata/corpus/sql/sql_export/secure_view_predicates.test b/parser/testdata/corpus/sql/sql_export/secure_view_predicates.test index 72a15c1e..0b812fd1 100644 --- a/parser/testdata/corpus/sql/sql_export/secure_view_predicates.test +++ b/parser/testdata/corpus/sql/sql_export/secure_view_predicates.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/secure_view_predicates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE private_rows(i INTEGER, p VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/secure_view_sql_export.test b/parser/testdata/corpus/sql/sql_export/secure_view_sql_export.test index b37d4d48..0b47f353 100644 --- a/parser/testdata/corpus/sql/sql_export/secure_view_sql_export.test +++ b/parser/testdata/corpus/sql/sql_export/secure_view_sql_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/secure_view_sql_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA secret; diff --git a/parser/testdata/corpus/sql/sql_export/single_child_union.test b/parser/testdata/corpus/sql/sql_export/single_child_union.test index a143c970..2158698b 100644 --- a/parser/testdata/corpus/sql/sql_export/single_child_union.test +++ b/parser/testdata/corpus/sql/sql_export/single_child_union.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/single_child_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 x UNION ALL SELECT 2 x WHERE false; diff --git a/parser/testdata/corpus/sql/sql_export/slices_and_limits.test b/parser/testdata/corpus/sql/sql_export/slices_and_limits.test index ba7c20ef..8765e06e 100644 --- a/parser/testdata/corpus/sql/sql_export/slices_and_limits.test +++ b/parser/testdata/corpus/sql/sql_export/slices_and_limits.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/slices_and_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE slice_input(id INTEGER, b INTEGER[][], s VARCHAR); diff --git a/parser/testdata/corpus/sql/sql_export/source_arguments.test b/parser/testdata/corpus/sql/sql_export/source_arguments.test index aeaecd59..0f74e2ce 100644 --- a/parser/testdata/corpus/sql/sql_export/source_arguments.test +++ b/parser/testdata/corpus/sql/sql_export/source_arguments.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/source_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT name,value,typed_value FROM system.main.duckdb_settings() WHERE name IN ('threads','default_collation') ORDER BY name; diff --git a/parser/testdata/corpus/sql/sql_export/source_invocation_results.test b/parser/testdata/corpus/sql/sql_export/source_invocation_results.test index 3bced84b..4fcd0489 100644 --- a/parser/testdata/corpus/sql/sql_export/source_invocation_results.test +++ b/parser/testdata/corpus/sql/sql_export/source_invocation_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/source_invocation_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a.s+b.s FROM (SELECT sum(x) s FROM range(10) t(x)) a, (SELECT sum(x) s FROM range(10) u(x)) b; diff --git a/parser/testdata/corpus/sql/sql_export/source_names.test b/parser/testdata/corpus/sql/sql_export/source_names.test index daeb8e95..fc3b0ba1 100644 --- a/parser/testdata/corpus/sql/sql_export/source_names.test +++ b/parser/testdata/corpus/sql/sql_export/source_names.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/source_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "_3_schema" diff --git a/parser/testdata/corpus/sql/sql_export/source_results.test b/parser/testdata/corpus/sql/sql_export/source_results.test index 60c37c8c..89690f4b 100644 --- a/parser/testdata/corpus/sql/sql_export/source_results.test +++ b/parser/testdata/corpus/sql/sql_export/source_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/source_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*)>0 FROM duckdb_functions(); diff --git a/parser/testdata/corpus/sql/sql_export/sql_export_aggregate_order_by_null.test b/parser/testdata/corpus/sql/sql_export/sql_export_aggregate_order_by_null.test index 17fa3601..923e7a37 100644 --- a/parser/testdata/corpus/sql/sql_export/sql_export_aggregate_order_by_null.test +++ b/parser/testdata/corpus/sql/sql_export/sql_export_aggregate_order_by_null.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/sql_export_aggregate_order_by_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(s VARCHAR, i INT); diff --git a/parser/testdata/corpus/sql/sql_export/sql_export_join_scopes.test b/parser/testdata/corpus/sql/sql_export/sql_export_join_scopes.test index 59416b1a..7091f357 100644 --- a/parser/testdata/corpus/sql/sql_export/sql_export_join_scopes.test +++ b/parser/testdata/corpus/sql/sql_export/sql_export_join_scopes.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/sql_export_join_scopes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES (1,'a'),(1,'b'),(2,'a'),(NULL,'n'),(4,'z'); diff --git a/parser/testdata/corpus/sql/sql_export/sql_export_quantiles.test b/parser/testdata/corpus/sql/sql_export/sql_export_quantiles.test index d2568dee..08dbf11c 100644 --- a/parser/testdata/corpus/sql/sql_export/sql_export_quantiles.test +++ b/parser/testdata/corpus/sql/sql_export/sql_export_quantiles.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/sql_export_quantiles.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT quantile_cont(x, 0.0 ORDER BY x DESC) FROM (VALUES (1), (2), (2), (NULL)) t(x) diff --git a/parser/testdata/corpus/sql/sql_export/statement_verification.test b/parser/testdata/corpus/sql/sql_export/statement_verification.test index 512acbe3..b79d2d12 100644 --- a/parser/testdata/corpus/sql/sql_export/statement_verification.test +++ b/parser/testdata/corpus/sql/sql_export/statement_verification.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/statement_verification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM system.main.duckdb_tables(); diff --git a/parser/testdata/corpus/sql/sql_export/structural_expressions.test b/parser/testdata/corpus/sql/sql_export/structural_expressions.test index 12f6beb6..2cbe3301 100644 --- a/parser/testdata/corpus/sql/sql_export/structural_expressions.test +++ b/parser/testdata/corpus/sql/sql_export/structural_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/structural_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST(CAST(42 AS INTEGER) AS BIGINT); diff --git a/parser/testdata/corpus/sql/sql_export/table_row_number_sql_export.test b/parser/testdata/corpus/sql/sql_export/table_row_number_sql_export.test index 3b5950c7..ccebac4e 100644 --- a/parser/testdata/corpus/sql/sql_export/table_row_number_sql_export.test +++ b/parser/testdata/corpus/sql/sql_export/table_row_number_sql_export.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/table_row_number_sql_export.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA "number space"; diff --git a/parser/testdata/corpus/sql/sql_export/tuple_type_constants.test b/parser/testdata/corpus/sql/sql_export/tuple_type_constants.test index 1d926e62..84e1ce9e 100644 --- a/parser/testdata/corpus/sql/sql_export/tuple_type_constants.test +++ b/parser/testdata/corpus/sql/sql_export/tuple_type_constants.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/tuple_type_constants.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/sql_export/union_type_witness.test b/parser/testdata/corpus/sql/sql_export/union_type_witness.test index d7090dc8..669b6dc5 100644 --- a/parser/testdata/corpus/sql/sql_export/union_type_witness.test +++ b/parser/testdata/corpus/sql/sql_export/union_type_witness.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/union_type_witness.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT union_tag(u),union_extract(u,'v'),union_extract(u,'v')='a',u IS NULL FROM (SELECT union_value(v := 'A' COLLATE NOCASE) u); diff --git a/parser/testdata/corpus/sql/sql_export/union_value.test b/parser/testdata/corpus/sql/sql_export/union_value.test index 671a54f5..007177d2 100644 --- a/parser/testdata/corpus/sql/sql_export/union_value.test +++ b/parser/testdata/corpus/sql/sql_export/union_value.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/union_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE union_export_input(i INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/values_consumers.test b/parser/testdata/corpus/sql/sql_export/values_consumers.test index 147c4088..a8544f0d 100644 --- a/parser/testdata/corpus/sql/sql_export/values_consumers.test +++ b/parser/testdata/corpus/sql/sql_export/values_consumers.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/values_consumers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE values_input(v INTEGER); diff --git a/parser/testdata/corpus/sql/sql_export/values_effect_rejection.test b/parser/testdata/corpus/sql/sql_export/values_effect_rejection.test index 47e083b3..290fd5ea 100644 --- a/parser/testdata/corpus/sql/sql_export/values_effect_rejection.test +++ b/parser/testdata/corpus/sql/sql_export/values_effect_rejection.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/values_effect_rejection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO values_input VALUES (1),(2); diff --git a/parser/testdata/corpus/sql/sql_export/variant_key_order.test b/parser/testdata/corpus/sql/sql_export/variant_key_order.test index 7cc196b2..91d6ae1a 100644 --- a/parser/testdata/corpus/sql/sql_export/variant_key_order.test +++ b/parser/testdata/corpus/sql/sql_export/variant_key_order.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/variant_key_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_extract_string(v, '') FROM (VALUES ({'a': [{'b': 1::SMALLINT, 'c': 2::TINYINT, 'a': 3}], 'b': 4, 'c': 5}::VARIANT)) t(v); diff --git a/parser/testdata/corpus/sql/sql_export/variant_key_rejection.test b/parser/testdata/corpus/sql/sql_export/variant_key_rejection.test index 5fca3dd5..c29c3e54 100644 --- a/parser/testdata/corpus/sql/sql_export/variant_key_rejection.test +++ b/parser/testdata/corpus/sql/sql_export/variant_key_rejection.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/variant_key_rejection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN (SQL) SELECT '{payload}'::JSON::VARIANT; diff --git a/parser/testdata/corpus/sql/sql_export/window_unnest_results.test b/parser/testdata/corpus/sql/sql_export/window_unnest_results.test index 9e0a583b..7963d04e 100644 --- a/parser/testdata/corpus/sql/sql_export/window_unnest_results.test +++ b/parser/testdata/corpus/sql/sql_export/window_unnest_results.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/window_unnest_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET disabled_optimizers='window_self_join,top_n_window_elimination'; diff --git a/parser/testdata/corpus/sql/sql_export/zero_column_relations.test b/parser/testdata/corpus/sql/sql_export/zero_column_relations.test index 55c49a0e..9522544c 100644 --- a/parser/testdata/corpus/sql/sql_export/zero_column_relations.test +++ b/parser/testdata/corpus/sql/sql_export/zero_column_relations.test @@ -1,6 +1,6 @@ # source: test/sql/sql_export/zero_column_relations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wide_description AS FROM query( @@ -73,6 +73,22 @@ SELECT count(*) FROM (SELECT DISTINCT 1 FROM (DESCRIBE SELECT 1 AS a, 2 AS b)); -- ok == +SELECT count(*) FROM (SELECT 1 FROM (DESCRIBE SELECT 1 AS a, 2 AS b) HAVING true); +-- +ok +== +SELECT count(*) FROM (SELECT 1 FROM range(3) HAVING true); +-- +ok +== +SELECT count(*) FROM (SELECT 1 FROM range(0) HAVING true); +-- +ok +== +SELECT count(*) FROM (SELECT 1 FROM empty_t HAVING true); +-- +ok +== SELECT count(*) FROM (SELECT 1 FROM (DESCRIBE SELECT 1 AS n) LIMIT 0); -- ok diff --git a/parser/testdata/corpus/sql/storage/adaptive_segment_allocation.test b/parser/testdata/corpus/sql/storage/adaptive_segment_allocation.test index 515514de..5d95846a 100644 --- a/parser/testdata/corpus/sql/storage/adaptive_segment_allocation.test +++ b/parser/testdata/corpus/sql/storage/adaptive_segment_allocation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/adaptive_segment_allocation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET initial_column_segment_size = 7 diff --git a/parser/testdata/corpus/sql/storage/adaptive_segment_lifecycle.test b/parser/testdata/corpus/sql/storage/adaptive_segment_lifecycle.test index ed3f83ab..888c222e 100644 --- a/parser/testdata/corpus/sql/storage/adaptive_segment_lifecycle.test +++ b/parser/testdata/corpus/sql/storage/adaptive_segment_lifecycle.test @@ -1,6 +1,6 @@ # source: test/sql/storage/adaptive_segment_lifecycle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET initial_column_segment_size = {segment_size} diff --git a/parser/testdata/corpus/sql/storage/adaptive_segment_rollback.test b/parser/testdata/corpus/sql/storage/adaptive_segment_rollback.test index 7d0de09f..036b4b1c 100644 --- a/parser/testdata/corpus/sql/storage/adaptive_segment_rollback.test +++ b/parser/testdata/corpus/sql/storage/adaptive_segment_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/storage/adaptive_segment_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE rollback_segments AS SELECT range::FLOAT AS value FROM range(100) diff --git a/parser/testdata/corpus/sql/storage/alter/alter_add_col_defaultexpr_sequence.test b/parser/testdata/corpus/sql/storage/alter/alter_add_col_defaultexpr_sequence.test index 3d084eaf..a52c6200 100644 --- a/parser/testdata/corpus/sql/storage/alter/alter_add_col_defaultexpr_sequence.test +++ b/parser/testdata/corpus/sql/storage/alter/alter_add_col_defaultexpr_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/storage/alter/alter_add_col_defaultexpr_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE db1.tbl (id INTEGER DEFAULT nextval('seq'), s VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/alter/alter_based_on_unfinished_insert_fails.test b/parser/testdata/corpus/sql/storage/alter/alter_based_on_unfinished_insert_fails.test index 63e2396b..b8ec066b 100644 --- a/parser/testdata/corpus/sql/storage/alter/alter_based_on_unfinished_insert_fails.test +++ b/parser/testdata/corpus/sql/storage/alter/alter_based_on_unfinished_insert_fails.test @@ -1,6 +1,6 @@ # source: test/sql/storage/alter/alter_based_on_unfinished_insert_fails.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t AS SELECT diff --git a/parser/testdata/corpus/sql/storage/alter/alter_column_constraint.test b/parser/testdata/corpus/sql/storage/alter/alter_column_constraint.test index 83cd3691..497843fa 100644 --- a/parser/testdata/corpus/sql/storage/alter/alter_column_constraint.test +++ b/parser/testdata/corpus/sql/storage/alter/alter_column_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/alter/alter_column_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS a(id INT PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/storage/alter/alter_lazy_metadata_load.test b/parser/testdata/corpus/sql/storage/alter/alter_lazy_metadata_load.test index af839016..a9f05052 100644 --- a/parser/testdata/corpus/sql/storage/alter/alter_lazy_metadata_load.test +++ b/parser/testdata/corpus/sql/storage/alter/alter_lazy_metadata_load.test @@ -1,6 +1,6 @@ # source: test/sql/storage/alter/alter_lazy_metadata_load.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t as select i, i // 2 as j, i // 4 as k from range(1_000_000) t(i); diff --git a/parser/testdata/corpus/sql/storage/append_strings_to_persistent.test b/parser/testdata/corpus/sql/storage/append_strings_to_persistent.test index f3b2b09f..5e5904b6 100644 --- a/parser/testdata/corpus/sql/storage/append_strings_to_persistent.test +++ b/parser/testdata/corpus/sql/storage/append_strings_to_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/append_strings_to_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vals(i INTEGER, v VARCHAR) diff --git a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_in_memory.test b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_in_memory.test index ee7a41af..cfb07888 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_in_memory.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_in_memory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_autocheckpoint_in_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET auto_checkpoint_skip_wal_threshold = 9999999999; diff --git a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_no_wal_writes.test b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_no_wal_writes.test index 122f409d..fa9a8bc1 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_no_wal_writes.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_no_wal_writes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_autocheckpoint_no_wal_writes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_autockpt_no_wal.db' AS nw (RECOVERY_MODE NO_WAL_WRITES); diff --git a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_propagation.test b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_propagation.test index 85b298c7..d087e591 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_propagation.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_autocheckpoint_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_autocheckpoint_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_autockpt_prop.db' AS a; diff --git a/parser/testdata/corpus/sql/storage/attach/attach_invalidation.test b/parser/testdata/corpus/sql/storage/attach/attach_invalidation.test index 72197494..847e7cc2 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_invalidation.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_invalidation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_invalidation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_invalidation_a_{abort_mode}.db' AS a; diff --git a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_default_db.test b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_default_db.test index 83c4a9e7..ebac5448 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_default_db.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_default_db.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_invalidation_default_db.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA wal_autocheckpoint = '1TB'; diff --git a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_commit.test b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_commit.test index 2b966cd9..5e598d2c 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_commit.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_commit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_invalidation_sibling_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_invalidation_sibling_commit_a.db' AS a; diff --git a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_rollback.test b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_rollback.test index 5f001d77..69dd008d 100644 --- a/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_rollback.test +++ b/parser/testdata/corpus/sql/storage/attach/attach_invalidation_sibling_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach/attach_invalidation_sibling_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_invalidation_sibling_rollback_a.db' AS a; diff --git a/parser/testdata/corpus/sql/storage/attach_mmap.test b/parser/testdata/corpus/sql/storage/attach_mmap.test index ed3bbfb2..8e5ae5cc 100644 --- a/parser/testdata/corpus/sql/storage/attach_mmap.test +++ b/parser/testdata/corpus/sql/storage/attach_mmap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/attach_mmap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/bogus.duckdb' AS bogus (IO_MODE 'NOPE') diff --git a/parser/testdata/corpus/sql/storage/bc/internal_schemas_0102.test b/parser/testdata/corpus/sql/storage/bc/internal_schemas_0102.test index f85b5fa7..6d7d2f57 100644 --- a/parser/testdata/corpus/sql/storage/bc/internal_schemas_0102.test +++ b/parser/testdata/corpus/sql/storage/bc/internal_schemas_0102.test @@ -1,6 +1,6 @@ # source: test/sql/storage/bc/internal_schemas_0102.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT database_name, schema_name FROM duckdb_schemas WHERE NOT internal diff --git a/parser/testdata/corpus/sql/storage/bc/null_rows_v1_5_or_filter.test b/parser/testdata/corpus/sql/storage/bc/null_rows_v1_5_or_filter.test new file mode 100644 index 00000000..06694fa0 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/bc/null_rows_v1_5_or_filter.test @@ -0,0 +1,29 @@ +# source: test/sql/storage/bc/null_rows_v1_5_or_filter.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM f WHERE end_snapshot IS NULL +-- +ok +== +SELECT count(*) FROM f WHERE end_snapshot IS NULL OR end_snapshot > 1000000 +-- +ok +== +SELECT min(id), max(id) FROM f WHERE end_snapshot IS NULL OR end_snapshot > 1000000 +-- +ok +== +SELECT count(*) FROM f WHERE end_snapshot IS NULL OR end_snapshot = 3 +-- +ok +== +SELECT count(*) FROM f WHERE end_snapshot > 1000000 OR end_snapshot IS NULL +-- +ok +== +SELECT count(*) FROM f WHERE end_snapshot IS NOT NULL AND end_snapshot > 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/bc/test_array_cast_v1_5.test b/parser/testdata/corpus/sql/storage/bc/test_array_cast_v1_5.test new file mode 100644 index 00000000..b3c9d343 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/bc/test_array_cast_v1_5.test @@ -0,0 +1,45 @@ +# source: test/sql/storage/bc/test_array_cast_v1_5.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/array_cast_v1_5.db' AS old +-- +ok +== +SELECT sql FROM duckdb_views() WHERE database_name = 'old' AND view_name = 'v' +-- +ok +== +CREATE TABLE old.unrelated (i INTEGER) +-- +ok +== +CHECKPOINT old +-- +ok +== +DETACH old +-- +ok +== +SELECT v.x, w.x FROM old.v, old.w WHERE v.x = w.x[1] ORDER BY ALL +-- +ok +== +SELECT old.main.m([1, 2, 3]) +-- +ok +== +INSERT INTO old.g (e) VALUES ([1, 2, 3]) +-- +ok +== +INSERT INTO old.g (e) VALUES ([1, 2]) +-- +ok +== +FROM old.g ORDER BY ALL +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/bc/test_broken_view_v092.test b/parser/testdata/corpus/sql/storage/bc/test_broken_view_v092.test index 63365b6f..11eeee00 100644 --- a/parser/testdata/corpus/sql/storage/bc/test_broken_view_v092.test +++ b/parser/testdata/corpus/sql/storage/bc/test_broken_view_v092.test @@ -1,6 +1,6 @@ # source: test/sql/storage/bc/test_broken_view_v092.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM duckdb_columns(); diff --git a/parser/testdata/corpus/sql/storage/bc/test_lag_lead_v1_5.test b/parser/testdata/corpus/sql/storage/bc/test_lag_lead_v1_5.test new file mode 100644 index 00000000..77e2814e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/bc/test_lag_lead_v1_5.test @@ -0,0 +1,13 @@ +# source: test/sql/storage/bc/test_lag_lead_v1_5.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/lag_lead_v1_5.db' AS old +-- +ok +== +FROM old.v ORDER BY x +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/bc/test_null_stats_v1_5.test b/parser/testdata/corpus/sql/storage/bc/test_null_stats_v1_5.test new file mode 100644 index 00000000..c0c84e27 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/bc/test_null_stats_v1_5.test @@ -0,0 +1,89 @@ +# source: test/sql/storage/bc/test_null_stats_v1_5.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/null_stats_v1_5.db' AS old +-- +ok +== +INSERT INTO old.t VALUES (NULL) +-- +ok +== +SELECT count(*) FROM old.t WHERE x IS NULL OR x > 2 +-- +ok +== +SELECT count(*) FROM old.t WHERE coalesce(x, 5) > 2 +-- +ok +== +SELECT count(*) FROM old.t WHERE x IS DISTINCT FROM 1 +-- +ok +== +SELECT count(*) FILTER (x > 2), count(*) FILTER (x IS NOT NULL) FROM old.t +-- +ok +== +SELECT count(*) FROM old.no_null WHERE x IS NULL OR x > 2 +-- +ok +== +UPDATE old.t SET x = 1 WHERE x = 1 +-- +ok +== +SET experimental_metadata_reuse = {reuse}::BOOLEAN +-- +error: Parser Error: syntax error at or near "}" +== +ATTACH '{TEST_DIR}/null_stats_v1_5_reuse.db' AS reuse (STORAGE_VERSION 'v2.0.0') +-- +ok +== +CREATE TABLE reuse.touch (i INTEGER) +-- +ok +== +CHECKPOINT reuse +-- +ok +== +DETACH reuse +-- +ok +== +ATTACH '{TEST_DIR}/null_stats_v1_5_reuse.db' AS reuse +-- +ok +== +SELECT count(*) FROM reuse.t WHERE x IS NULL OR x > 2 +-- +ok +== +ATTACH '{TEST_DIR}/null_stats_v1_5_rewrite.db' AS rewrite (STORAGE_VERSION 'v2.0.0') +-- +ok +== +UPDATE rewrite.t SET x = 1 WHERE x = 1 +-- +ok +== +CHECKPOINT rewrite +-- +ok +== +DETACH rewrite +-- +ok +== +ATTACH '{TEST_DIR}/null_stats_v1_5_rewrite.db' AS rewrite +-- +ok +== +SELECT count(*) FROM rewrite.t WHERE x IS NULL OR x > 2 +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/bc/test_repeatable_sample_v1_5.test b/parser/testdata/corpus/sql/storage/bc/test_repeatable_sample_v1_5.test new file mode 100644 index 00000000..52ef290e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/bc/test_repeatable_sample_v1_5.test @@ -0,0 +1,21 @@ +# source: test/sql/storage/bc/test_repeatable_sample_v1_5.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/repeatable_sample_v1_5.db' AS old +-- +ok +== +FROM old.v +-- +ok +== +CREATE VIEW old.v2 AS SELECT count(*), min(x), sum(x) FROM old.t TABLESAMPLE BERNOULLI (25 PERCENT) REPEATABLE (42) +-- +ok +== +FROM old.v2 +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_storage_version.test b/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_storage_version.test index f674c5b4..d5058453 100644 --- a/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_storage_version.test +++ b/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/storage/bc/test_slice_bounds_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/slice_bounds_{storage_version}.db' AS db (STORAGE_VERSION '{storage_version}') @@ -31,10 +31,6 @@ CREATE TABLE db.t (a VARCHAR, d VARCHAR DEFAULT ('abcdef'[2:]), g VARCHAR GENERA -- ok == -DETACH db --- -ok -== ATTACH '{TEST_DIR}/slice_bounds_{storage_version}.db' AS db -- ok diff --git a/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_v1_5.test b/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_v1_5.test index 6bebaa9a..c5c6e50f 100644 --- a/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_v1_5.test +++ b/parser/testdata/corpus/sql/storage/bc/test_slice_bounds_v1_5.test @@ -1,6 +1,6 @@ # source: test/sql/storage/bc/test_slice_bounds_v1_5.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/slice_bounds_v1_5.db' AS old @@ -63,10 +63,6 @@ FROM old.t_check -- ok == -DETACH old --- -ok -== SELECT old.m_tail('abcdef') -- ok diff --git a/parser/testdata/corpus/sql/storage/bc/test_view_v092.test b/parser/testdata/corpus/sql/storage/bc/test_view_v092.test index c6aec926..51087db3 100644 --- a/parser/testdata/corpus/sql/storage/bc/test_view_v092.test +++ b/parser/testdata/corpus/sql/storage/bc/test_view_v092.test @@ -1,6 +1,6 @@ # source: test/sql/storage/bc/test_view_v092.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM v3 diff --git a/parser/testdata/corpus/sql/storage/buffer_manager_temp_dir.test b/parser/testdata/corpus/sql/storage/buffer_manager_temp_dir.test index 01d12820..35684fec 100644 --- a/parser/testdata/corpus/sql/storage/buffer_manager_temp_dir.test +++ b/parser/testdata/corpus/sql/storage/buffer_manager_temp_dir.test @@ -1,6 +1,6 @@ # source: test/sql/storage/buffer_manager_temp_dir.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA memory_limit='2MB' diff --git a/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/basic.test b/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/basic.test index 9d57613c..fc340d43 100644 --- a/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/basic.test +++ b/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/basic.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/generated_columns/virtual/basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/constraints.test b/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/constraints.test index ef2d9f1c..74645599 100644 --- a/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/constraints.test +++ b/parser/testdata/corpus/sql/storage/catalog/generated_columns/virtual/constraints.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/generated_columns/virtual/constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/storage/catalog/test_check_constraint.test b/parser/testdata/corpus/sql/storage/catalog/test_check_constraint.test index 08d24a97..cb765b5d 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_check_constraint.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_check_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_check_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a INTEGER CHECK (a<10), b INTEGER CHECK(CASE WHEN b < 10 THEN a < b ELSE a + b < 100 END)); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_drop_table.test b/parser/testdata/corpus/sql/storage/catalog/test_drop_table.test index 02a1b723..9a8a5a9b 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_drop_table.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test.test (a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_macro_storage.test b/parser/testdata/corpus/sql/storage/catalog/test_macro_storage.test index bf9e7eed..77c3a698 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_macro_storage.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_macro_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_macro_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO plus1(a) AS a+1 diff --git a/parser/testdata/corpus/sql/storage/catalog/test_not_distinct_from_default.test b/parser/testdata/corpus/sql/storage/catalog/test_not_distinct_from_default.test index bc5852f7..3ed9a16a 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_not_distinct_from_default.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_not_distinct_from_default.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_not_distinct_from_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_default (a BOOL DEFAULT nextval('seq') is not distinct from nextval('seq'), b INTEGER); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_not_null_constraint.test b/parser/testdata/corpus/sql/storage/catalog/test_not_null_constraint.test index 8ac9de13..2e151e1d 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_not_null_constraint.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_not_null_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_not_null_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a INTEGER NOT NULL); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_prepared_storage.test b/parser/testdata/corpus/sql/storage/catalog/test_prepared_storage.test index f0226f67..8d09247e 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_prepared_storage.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_prepared_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_prepared_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INTEGER) diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_add_column.test b/parser/testdata/corpus/sql/storage/catalog/test_store_add_column.test index 83b8302a..6953cf9f 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_add_column.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_add_column.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_add_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT k FROM test ORDER BY k diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_alter_type.test b/parser/testdata/corpus/sql/storage/catalog/test_store_alter_type.test index 8bdd4182..842fab6e 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_alter_type.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_alter_type.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_alter_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test ALTER b TYPE VARCHAR diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_default_sequence.test b/parser/testdata/corpus/sql/storage/catalog/test_store_default_sequence.test index 28ec9cbf..fd43efce 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_default_sequence.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_default_sequence.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_default_sequence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER DEFAULT nextval('seq'), b INTEGER, c INTEGER DEFAULT currval('seq')); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_defaults.test b/parser/testdata/corpus/sql/storage/catalog/test_store_defaults.test index ca35bd5a..ccd79951 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_defaults.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_defaults.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_defaults.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test (b) VALUES (12), (13) diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_remove_column.test b/parser/testdata/corpus/sql/storage/catalog/test_store_remove_column.test index d79a066e..fb385691 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_remove_column.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_remove_column.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_remove_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test DROP COLUMN b diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_column.test b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_column.test index 5853f059..baeddafd 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_column.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_column.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_rename_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME COLUMN a TO k diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_table.test b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_table.test index aeee95a8..0f1acdae 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_table.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_rename_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE test RENAME TO new_name diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_view.test b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_view.test index 2f4bd00d..3932383f 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_rename_view.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_rename_view.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_rename_view.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW vtest AS SELECT * FROM test diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_sequences.test b/parser/testdata/corpus/sql/storage/catalog/test_store_sequences.test index 985a4a19..e391d968 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_sequences.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_sequences.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_sequences.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SEQUENCE seq_cycle INCREMENT 1 MAXVALUE 3 START 2 CYCLE; diff --git a/parser/testdata/corpus/sql/storage/catalog/test_store_temporary.test b/parser/testdata/corpus/sql/storage/catalog/test_store_temporary.test index 65992dcd..5063a72f 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_store_temporary.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_store_temporary.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_store_temporary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE persistent (i INTEGER) diff --git a/parser/testdata/corpus/sql/storage/catalog/test_table_macro_storage.test b/parser/testdata/corpus/sql/storage/catalog/test_table_macro_storage.test index c29ef9d9..2e060f90 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_table_macro_storage.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_table_macro_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_table_macro_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_tbl (id INT, name string, height double); diff --git a/parser/testdata/corpus/sql/storage/catalog/test_view_explicit_aliases.test b/parser/testdata/corpus/sql/storage/catalog/test_view_explicit_aliases.test index 62a3e58c..98f6152b 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_view_explicit_aliases.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_view_explicit_aliases.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_view_explicit_aliases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW test.v (b,c) AS SELECT * FROM test.t; diff --git a/parser/testdata/corpus/sql/storage/catalog/test_view_storage.test b/parser/testdata/corpus/sql/storage/catalog/test_view_storage.test index f1a85889..e5041533 100644 --- a/parser/testdata/corpus/sql/storage/catalog/test_view_storage.test +++ b/parser/testdata/corpus/sql/storage/catalog/test_view_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/catalog/test_view_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW test.v AS SELECT * FROM test.t; diff --git a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_in_transaction.test b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_in_transaction.test index e4b0987f..96b14fb9 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_in_transaction.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_in_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/checkpoint_in_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET wal_autocheckpoint='100GB' @@ -27,10 +27,6 @@ INSERT INTO db.t VALUES (2) -- ok == -CHECKPOINT db --- -ok -== INSERT INTO db.t VALUES (3) -- ok diff --git a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_rolled_back_use.test b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_rolled_back_use.test new file mode 100644 index 00000000..86982d09 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_rolled_back_use.test @@ -0,0 +1,17 @@ +# source: test/sql/storage/checkpoint/checkpoint_rolled_back_use.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH ':memory:' AS db; +-- +ok +== +FORCE CHECKPOINT; +-- +ok +== +SELECT * FROM checkpoint(); +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_with_outstanding_insertions.test b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_with_outstanding_insertions.test index 5a336d8d..0548d426 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_with_outstanding_insertions.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_with_outstanding_insertions.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/checkpoint_with_outstanding_insertions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table z(id integer); diff --git a/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_without_transactions.test b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_without_transactions.test new file mode 100644 index 00000000..415d7f49 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/checkpoint/checkpoint_without_transactions.test @@ -0,0 +1,45 @@ +# source: test/sql/storage/checkpoint/checkpoint_without_transactions.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE SCHEMA persisted; +-- +ok +== +CREATE TABLE persisted.t (i INTEGER); +-- +ok +== +INSERT INTO persisted.t VALUES (42), (NULL), (42); +-- +ok +== +CREATE VIEW persisted.v AS SELECT * FROM persisted.t; +-- +ok +== +SELECT * FROM persisted.v; +-- +ok +== +INSERT INTO persisted.t VALUES (43); +-- +ok +== +ATTACH '{TEST_DIR}/detach_without_transactions.db' AS other; +-- +ok +== +CREATE TABLE other.t AS SELECT 42 AS i; +-- +ok +== +DETACH other; +-- +ok +== +SELECT i FROM other.t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/checkpoint/indexed_table_delete_insert_fragmentation.test b/parser/testdata/corpus/sql/storage/checkpoint/indexed_table_delete_insert_fragmentation.test index 88b5f398..1d488c4e 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/indexed_table_delete_insert_fragmentation.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/indexed_table_delete_insert_fragmentation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/indexed_table_delete_insert_fragmentation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_rowgroup_append_mode_on_fragmented_tables.db' as snap (READ_WRITE, STORAGE_VERSION 'v1.5.0', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/checkpoint/initial_database_autocheckpoint_failure.test b/parser/testdata/corpus/sql/storage/checkpoint/initial_database_autocheckpoint_failure.test index b4dc40f5..46801d6f 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/initial_database_autocheckpoint_failure.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/initial_database_autocheckpoint_failure.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/initial_database_autocheckpoint_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_checkpoint_abort = 'before_header'; diff --git a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_abort_truncate.test b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_abort_truncate.test index d650a30e..1f26138b 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_abort_truncate.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_abort_truncate.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/test_checkpoint_abort_truncate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_checkpoint_abort='AFTER_FREE_LIST_WRITE'; diff --git a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_delayed_commit.test b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_delayed_commit.test index 805e62b2..60cb8a25 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_delayed_commit.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_delayed_commit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/test_checkpoint_failure_delayed_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fail_detach_delayed' AS db; diff --git a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_on_detach.test b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_on_detach.test index b57f3fc0..f57e7423 100644 --- a/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_on_detach.test +++ b/parser/testdata/corpus/sql/storage/checkpoint/test_checkpoint_failure_on_detach.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpoint/test_checkpoint_failure_on_detach.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fail_detach'; diff --git a/parser/testdata/corpus/sql/storage/checkpoint_system_catalog.test b/parser/testdata/corpus/sql/storage/checkpoint_system_catalog.test new file mode 100644 index 00000000..342924c8 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/checkpoint_system_catalog.test @@ -0,0 +1,21 @@ +# source: test/sql/storage/checkpoint_system_catalog.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CHECKPOINT system; +-- +ok +== +FORCE CHECKPOINT system; +-- +ok +== +CALL checkpoint('system'); +-- +ok +== +SELECT * FROM pragma_metadata_info('system'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/checkpoint_vacuum_unbound_index.test b/parser/testdata/corpus/sql/storage/checkpoint_vacuum_unbound_index.test new file mode 100644 index 00000000..8c523ac1 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/checkpoint_vacuum_unbound_index.test @@ -0,0 +1,37 @@ +# source: test/sql/storage/checkpoint_vacuum_unbound_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET checkpoint_threshold='16MB' +-- +ok +== +CREATE TABLE t AS SELECT i FROM range(491520) r(i) +-- +ok +== +CREATE INDEX idx ON t(i) +-- +ok +== +SELECT count(DISTINCT row_group_id) FROM pragma_storage_info('t') +-- +ok +== +CREATE TABLE other(x INT) +-- +ok +== +INSERT INTO other VALUES (1) +-- +ok +== +SELECT (SELECT count(DISTINCT row_group_id) FROM pragma_storage_info('t')), (SELECT max(rowid) FROM t) +-- +ok +== +SELECT count(*) FROM t WHERE i = 4097 +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/checkpointed_self_append.test b/parser/testdata/corpus/sql/storage/checkpointed_self_append.test index e09e34c8..12458af8 100644 --- a/parser/testdata/corpus/sql/storage/checkpointed_self_append.test +++ b/parser/testdata/corpus/sql/storage/checkpointed_self_append.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpointed_self_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vals(i INTEGER) diff --git a/parser/testdata/corpus/sql/storage/checkpointed_self_append_tinyint.test b/parser/testdata/corpus/sql/storage/checkpointed_self_append_tinyint.test index ff14e392..1295a945 100644 --- a/parser/testdata/corpus/sql/storage/checkpointed_self_append_tinyint.test +++ b/parser/testdata/corpus/sql/storage/checkpointed_self_append_tinyint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/checkpointed_self_append_tinyint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vals(i TINYINT) diff --git a/parser/testdata/corpus/sql/storage/commit_abort.test b/parser/testdata/corpus/sql/storage/commit_abort.test index b193e375..d6a56f27 100644 --- a/parser/testdata/corpus/sql/storage/commit_abort.test +++ b/parser/testdata/corpus/sql/storage/commit_abort.test @@ -1,6 +1,6 @@ # source: test/sql/storage/commit_abort.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER PRIMARY KEY, b INTEGER, c VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/commit_abort_medium.test b/parser/testdata/corpus/sql/storage/commit_abort_medium.test index 6f7526ad..eaab9d05 100644 --- a/parser/testdata/corpus/sql/storage/commit_abort_medium.test +++ b/parser/testdata/corpus/sql/storage/commit_abort_medium.test @@ -1,6 +1,6 @@ # source: test/sql/storage/commit_abort_medium.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT i, NULL, NULL FROM range(15, 10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/commit_index_deletes.test b/parser/testdata/corpus/sql/storage/commit_index_deletes.test index 8958facc..8ea1c640 100644 --- a/parser/testdata/corpus/sql/storage/commit_index_deletes.test +++ b/parser/testdata/corpus/sql/storage/commit_index_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/commit_index_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM test WHERE a=14 diff --git a/parser/testdata/corpus/sql/storage/commit_out_of_memory_reverts_append.test b/parser/testdata/corpus/sql/storage/commit_out_of_memory_reverts_append.test new file mode 100644 index 00000000..3017b5e3 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/commit_out_of_memory_reverts_append.test @@ -0,0 +1,126 @@ +# source: test/sql/storage/commit_out_of_memory_reverts_append.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET temp_directory = '' +-- +ok +== +CREATE MACRO wide_rows(first_row, last_row, width) AS TABLE +SELECT i, repeat('x', width) || i AS s, + CASE WHEN i % 3 = 0 THEN NULL WHEN i % 3 = 1 THEN [] ELSE [i, NULL, i] END AS l, + [i, i + 1]::INTEGER[2] AS a, + {'a': i, 'b': repeat('y', width // 10)} AS st +FROM range(first_row, last_row) r(i) +-- +ok +== +CREATE TABLE fresh (i INTEGER, s VARCHAR, l INTEGER[], a INTEGER[2], st STRUCT(a INTEGER, b VARCHAR)) +-- +ok +== +INSERT INTO fresh FROM wide_rows(0, 1, 1) +-- +ok +== +CREATE TABLE t (i BIGINT PRIMARY KEY, s VARCHAR) +-- +ok +== +INSERT INTO t VALUES (0, 'x') +-- +ok +== +CREATE TABLE wide (i INTEGER, s VARCHAR, l INTEGER[], a INTEGER[2], st STRUCT(a INTEGER, b VARCHAR)) +-- +ok +== +INSERT INTO wide FROM wide_rows(0, 1, 1) +-- +ok +== +SET memory_limit = '40MB' +-- +ok +== +INSERT INTO t SELECT i, repeat('x', 20) || i FROM range(1, 1000000) r(i) +-- +ok +== +DELETE FROM t WHERE i = 1 +-- +ok +== +INSERT INTO wide FROM wide_rows(1, 20000, 1000) +-- +ok +== +DELETE FROM wide WHERE i = 1 +-- +ok +== +INSERT INTO fresh FROM wide_rows(1, 20000, 1000) +-- +ok +== +DELETE FROM fresh WHERE i = 1 +-- +ok +== +RESET memory_limit +-- +ok +== +SELECT count(*), sum(i), max(s) FROM t +-- +ok +== +SELECT count(*), sum(i), max(s), count(l), sum(list_sum(l)), sum(a[2]), max(st.b) FROM wide +-- +ok +== +SELECT count(*), sum(i), max(s), count(l), sum(list_sum(l)), sum(a[2]), max(st.b) FROM fresh +-- +ok +== +INSERT INTO t SELECT i, 'y' || i FROM range(1, 5000) r(i) +-- +ok +== +INSERT INTO t VALUES (999999, 'z') +-- +ok +== +INSERT INTO t VALUES (4999, 'z') +-- +ok +== +INSERT INTO wide FROM wide_rows(100000, 105000, 1) +-- +ok +== +INSERT INTO fresh FROM wide_rows(100000, 105000, 1) +-- +ok +== +SELECT count(*), sum(i), min(s), max(s) FROM t +-- +ok +== +SELECT i, s FROM t WHERE i IN (4999, 999999) ORDER BY i +-- +ok +== +SELECT count(*), sum(i), sum(length(s)), count(l), sum(len(l)), sum(list_sum(l)), sum(a[1] + a[2] + st.a) FROM wide +-- +ok +== +SELECT count(*), sum(i), sum(length(s)), count(l), sum(len(l)), sum(list_sum(l)), sum(a[1] + a[2] + st.a) FROM fresh +-- +ok +== +SELECT i, l, a FROM wide WHERE i IN (100000, 100001, 100002) ORDER BY i +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/block_size_with_rollback.test b/parser/testdata/corpus/sql/storage/compact_block_size/block_size_with_rollback.test index 9a5816f2..618a9983 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/block_size_with_rollback.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/block_size_with_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/block_size_with_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rollback.db' (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/compact_block_size.test b/parser/testdata/corpus/sql/storage/compact_block_size/compact_block_size.test index 30b2b289..72f990b1 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/compact_block_size.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/compact_block_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/compact_block_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{DATA_DIR}/storage/index_0-9-1.db' (TYPE DUCKDB, READONLY); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/compact_vector_size.test b/parser/testdata/corpus/sql/storage/compact_block_size/compact_vector_size.test index 7f902084..e05d4e9e 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/compact_vector_size.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/compact_vector_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/compact_vector_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{DATA_DIR}/storage/vector_size_512.db' (TYPE DUCKDB, READONLY); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/create_table_compression.test b/parser/testdata/corpus/sql/storage/compact_block_size/create_table_compression.test index 3e608de0..72efdfc5 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/create_table_compression.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/create_table_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/create_table_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) > 0 FROM pragma_storage_info('T') diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/default_block_size.test b/parser/testdata/corpus/sql/storage/compact_block_size/default_block_size.test index c55cc241..c7593db5 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/default_block_size.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/default_block_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/default_block_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{DATA_DIR}/storage/block_size_16kb.db' (TYPE DUCKDB, READONLY) diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/ensure_bitpacking.test b/parser/testdata/corpus/sql/storage/compact_block_size/ensure_bitpacking.test index fe4188b2..b32a4a32 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/ensure_bitpacking.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/ensure_bitpacking.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/ensure_bitpacking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/smaller_block_size.db' (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/ensure_no_bitpacking.test b/parser/testdata/corpus/sql/storage/compact_block_size/ensure_no_bitpacking.test index 600dcb86..7fb5450a 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/ensure_no_bitpacking.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/ensure_no_bitpacking.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/ensure_no_bitpacking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/no_bitpacking.db' (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/insertion_order_odd_batches.test b/parser/testdata/corpus/sql/storage/compact_block_size/insertion_order_odd_batches.test index ee18260e..a0b0cc04 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/insertion_order_odd_batches.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/insertion_order_odd_batches.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/insertion_order_odd_batches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM range(100000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compact_block_size/mixed_block_sizes.test b/parser/testdata/corpus/sql/storage/compact_block_size/mixed_block_sizes.test index 679df384..2cdd6508 100644 --- a/parser/testdata/corpus/sql/storage/compact_block_size/mixed_block_sizes.test +++ b/parser/testdata/corpus/sql/storage/compact_block_size/mixed_block_sizes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compact_block_size/mixed_block_sizes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/small.db' (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_count.test index ab7e46a4..303e2c8d 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_count.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_count diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exception_position.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exception_position.test index 6d141b91..f5636ec4 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exception_position.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exception_position.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_exception_position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alp_corrupt_exception_position.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exponent.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exponent.test index ec1c53ad..f85974a8 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exponent.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_exponent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_exponent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_exponent diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_file.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_file.test index 773a6681..70de1c26 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_file.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_file.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alp_corrupt_file.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_header_undercount.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_header_undercount.test index 41dfa3d6..2d9abbb5 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_header_undercount.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_header_undercount.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_header_undercount.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_header_undercount diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_metadata_offset.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_metadata_offset.test index 2fa0fdc2..4b05f4d8 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_metadata_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_metadata_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_metadata_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_metadata_offset diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_null_block.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_null_block.test new file mode 100644 index 00000000..8bd090d5 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_null_block.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/alp/alp_corrupt_null_block.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE alp_corrupt_null_block +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset.test index b93ff62a..617b24c7 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_offset diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset_unordered.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset_unordered.test index 9c02d98d..2f09f3b6 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset_unordered.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offset_unordered.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_offset_unordered.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alp_corrupt_offset_unordered diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offsets.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offsets.test index c71540a5..07da7a8c 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offsets.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_offsets.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_offsets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alp_corrupt_offsets.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_vector_size.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_vector_size.test index 026914b6..6a49d65f 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_vector_size.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_corrupt_vector_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_corrupt_vector_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alp_corrupt_vector_size.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_inf_null_nan.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_inf_null_nan.test index f809263c..56d57671 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_inf_null_nan.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_inf_null_nan.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_inf_null_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='{compression}' diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_list_skip.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_list_skip.test index 0321fc5b..aba6315f 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_list_skip.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_list_skip.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_list_skip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_compression='{comp}' diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_min_max.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_min_max.test index eb4516fd..9e81d023 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_min_max.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_min_max.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_min_max.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='alp'; diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_negative_numbers.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_negative_numbers.test index 268ff235..efaa29b3 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_negative_numbers.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_negative_numbers.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_negative_numbers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='uncompressed' diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_null_min_regression.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_null_min_regression.test index 9c67c57a..0862f1c2 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_null_min_regression.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_null_min_regression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_null_min_regression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='{compression}'; diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_nulls.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_nulls.test index 0e5a46eb..e81fe6b4 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_nulls.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into tbl1_{compression}(d,f) VALUES diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_out_of_range.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_out_of_range.test index bbefca95..58c4900e 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_out_of_range.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_out_of_range.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(v DOUBLE); diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_simple.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_simple.test index e6c9b268..acf4785d 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_double as select round(random(), 6)::DOUBLE as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_simple_float.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_simple_float.test index af21b651..13083982 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_simple_float.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_simple_float.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_simple_float.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_float as select round(random(), 6)::FLOAT as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_storage_version.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_storage_version.test index 8d962dcd..b9a25cf2 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_storage_version.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alp-v1_4_0-16k.db' AS alp_v1_4_0 (STORAGE_VERSION 'v1.4.0', BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compression/alp/alp_zeros.test b/parser/testdata/corpus/sql/storage/compression/alp/alp_zeros.test index 49871a5e..c0b82b73 100644 --- a/parser/testdata/corpus/sql/storage/compression/alp/alp_zeros.test +++ b/parser/testdata/corpus/sql/storage/compression/alp/alp_zeros.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alp/alp_zeros.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_double as select 0::DOUBLE as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_count.test index 1f1078d1..cae48388 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_count.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_count diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count.test index f96f5979..9c2ce9c4 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_dictionary_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_dictionary_count diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count_zero.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count_zero.test index 436a476a..6ba3cb62 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count_zero.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_dictionary_count_zero.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_dictionary_count_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_dictionary_count_zero diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_count.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_count.test index 8de22373..793a7809 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_count.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_exception_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_exception_count diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_position.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_position.test index 0bd758b0..09e6fb16 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_position.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_exception_position.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_exception_position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_exception_position diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_header_undercount.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_header_undercount.test index 009a2afc..07587ac6 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_header_undercount.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_header_undercount.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_header_undercount.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_header_undercount diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_left_bit_width.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_left_bit_width.test index 31b09e00..b17703bd 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_left_bit_width.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_left_bit_width.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_left_bit_width.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_left_bit_width diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_metadata_underflow.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_metadata_underflow.test index 895c60f9..ea2cd001 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_metadata_underflow.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_metadata_underflow.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_metadata_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_metadata_underflow diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset.test index b10a30e7..bb57e1b7 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_offset diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset_unordered.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset_unordered.test index e1a8a529..b34afa32 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset_unordered.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_offset_unordered.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_offset_unordered.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_offset_unordered diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_right_bit_width.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_right_bit_width.test index 867c6113..857627de 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_right_bit_width.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_corrupt_right_bit_width.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_corrupt_right_bit_width.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE alprd_corrupt_right_bit_width diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_inf_null_nan.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_inf_null_nan.test index d68cb4e4..f0b83616 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_inf_null_nan.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_inf_null_nan.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_inf_null_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select d, f from tbl1_alprd; diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_min_max.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_min_max.test index 2382980e..638ef043 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_min_max.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_min_max.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_min_max.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='alprd'; diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_negative_numbers.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_negative_numbers.test index e6800927..2a6845fd 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_negative_numbers.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_negative_numbers.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_negative_numbers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_double as select round(cos(1 / (random() + 0.001)), 15)::DOUBLE * -1 as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_nulls.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_nulls.test index d0acd872..8559f95c 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_nulls.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into tbl3_{compression}(d,f) VALUES diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple.test index 96039111..9df5327d 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_double as select random()::DOUBLE as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple_float.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple_float.test index b4125482..8cee2376 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple_float.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_simple_float.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_simple_float.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table random_float as select random()::FLOAT as data from range(1024) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_storage_version.test b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_storage_version.test index 27e3db22..854ca0e4 100644 --- a/parser/testdata/corpus/sql/storage/compression/alprd/alprd_storage_version.test +++ b/parser/testdata/corpus/sql/storage/compression/alprd/alprd_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/alprd/alprd_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/alprd-v1_4_0-16k.db' AS alprd_v1_4_0 (STORAGE_VERSION 'v1.4.0', BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_bool_modes.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_bool_modes.test index fe29df0f..16c6b862 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_bool_modes.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_bool_modes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_bool_modes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_compression = 'bitpacking' diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_constant_delta.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_constant_delta.test index 5fcb7e3f..7a0328a3 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_constant_delta.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_constant_delta.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_constant_delta.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'bitpacking' diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_count.test index 27f2aabf..af76491e 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_count.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_corrupt_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE bitpacking_corrupt_count diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_group_offset.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_group_offset.test index 83480973..2fee4a34 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_group_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_group_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_corrupt_group_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE bitpacking_corrupt_group_offset diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_metadata_underflow.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_metadata_underflow.test index 7408e0ef..721156e7 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_metadata_underflow.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_metadata_underflow.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_corrupt_metadata_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE bitpacking_corrupt_metadata_underflow diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_width.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_width.test index 63e1a27d..a1a4b81b 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_width.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_corrupt_width.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_corrupt_width.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE bitpacking_corrupt_width diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_delta_for.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_delta_for.test index 70a23573..c7e0793c 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_delta_for.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_delta_for.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_delta_for.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='bitpacking' diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_filter_pushdown.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_filter_pushdown.test index ede6ab19..a1f84006 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_filter_pushdown.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id VARCHAR, col INTEGER) diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_hugeint.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_hugeint.test index 133527c6..d7ca0d0f 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_hugeint.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_bitpacking_mode='constant' diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_mode.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_mode.test index b6db2eef..44a4ae71 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_mode.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_mode.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_mode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('force_bitpacking_mode') diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_nulls.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_nulls.test index b27455d0..10f710f8 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_nulls.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a BIGINT); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple.test index acb1527d..256435b0 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id VARCHAR, a BIGINT); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple_hugeint.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple_hugeint.test index 4facc955..32babe29 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple_hugeint.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_simple_hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_simple_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT i::VARCHAR, -i::HUGEINT + -1234567891011121314151617180000::HUGEINT FROM range(0, 10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_size_calculation.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_size_calculation.test index e5d0c3ba..5f682df3 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_size_calculation.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_size_calculation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_size_calculation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='bitpacking' diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_storage_info.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_storage_info.test index 436578d7..dad2d069 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_storage_info.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (11, 22), (12, 21), (NULL, NULL) diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_table_copy.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_table_copy.test index b4293113..91b7a889 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_table_copy.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_table_copy.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_table_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a integer); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_uhugeint.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_uhugeint.test index edcdbe74..9fe170fc 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_uhugeint.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/bitpacking_uhugeint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/bitpacking_uhugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id VARCHAR, a UHUGEINT); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/force_bitpacking.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/force_bitpacking.test index fc4285d8..3487532b 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/force_bitpacking.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/force_bitpacking.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/force_bitpacking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_bp (a INTEGER); diff --git a/parser/testdata/corpus/sql/storage/compression/bitpacking/struct_bitpacking.test b/parser/testdata/corpus/sql/storage/compression/bitpacking/struct_bitpacking.test index 9668e801..b8222044 100644 --- a/parser/testdata/corpus/sql/storage/compression/bitpacking/struct_bitpacking.test +++ b/parser/testdata/corpus/sql/storage/compression/bitpacking/struct_bitpacking.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/bitpacking/struct_bitpacking.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (s ROW(a INTEGER)); diff --git a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_group_count.test b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_group_count.test index 518b0bef..82977edf 100644 --- a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_group_count.test +++ b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_group_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/chimp/chimp_corrupt_group_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE chimp_corrupt_group_count; diff --git a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_leading_zero_block_count.test b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_leading_zero_block_count.test index 74329190..952d8fc2 100644 --- a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_leading_zero_block_count.test +++ b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_leading_zero_block_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/chimp/chimp_corrupt_leading_zero_block_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE chimp_corrupt_leading_zero_block_count; diff --git a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_metadata_offset.test b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_metadata_offset.test index 9f02d5ff..1e102f31 100644 --- a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_metadata_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_corrupt_metadata_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/chimp/chimp_corrupt_metadata_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE chimp_corrupt_metadata_offset; diff --git a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_fetch_row.test b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_fetch_row.test index 13b825ce..d89c6e82 100644 --- a/parser/testdata/corpus/sql/storage/compression/chimp/chimp_fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/chimp/chimp_fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/chimp/chimp_fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT temperature::VARCHAR FROM temperatures_double LIMIT 3; diff --git a/parser/testdata/corpus/sql/storage/compression/compression_count_sentinel.test b/parser/testdata/corpus/sql/storage/compression/compression_count_sentinel.test index d73269f0..7145e71b 100644 --- a/parser/testdata/corpus/sql/storage/compression/compression_count_sentinel.test +++ b/parser/testdata/corpus/sql/storage/compression/compression_count_sentinel.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/compression_count_sentinel.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (i INTEGER USING COMPRESSION compression_count); diff --git a/parser/testdata/corpus/sql/storage/compression/compression_null_block.test b/parser/testdata/corpus/sql/storage/compression/compression_null_block.test new file mode 100644 index 00000000..8fe7743f --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/compression_null_block.test @@ -0,0 +1,49 @@ +# source: test/sql/storage/compression/compression_null_block.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE constants AS SELECT 42::INTEGER AS a, NULL::DOUBLE AS b FROM range(6000); +-- +ok +== +SET force_compression='dict_fsst'; +-- +ok +== +CREATE TABLE strings AS +SELECT CASE WHEN i % 3 = 0 THEN NULL ELSE 'value-' || (i % 2)::VARCHAR END AS s +FROM range(6000) t(i); +-- +ok +== +SELECT DISTINCT column_name, segment_type, compression, block_id +FROM pragma_storage_info('constants') ORDER BY ALL; +-- +ok +== +SELECT DISTINCT segment_type, compression, block_id +FROM pragma_storage_info('strings') WHERE segment_type='VALIDITY'; +-- +ok +== +SELECT DISTINCT compression FROM pragma_storage_info('strings') WHERE segment_type='VARCHAR'; +-- +ok +== +SET debug_force_fetch_row={fetch_mode}; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*), sum(a), count(b) FROM constants; +-- +ok +== +SELECT a, b FROM constants WHERE rowid IN (0, 2048, 5999) ORDER BY rowid; +-- +ok +== +SELECT s, count(*) FROM strings GROUP BY s ORDER BY s NULLS FIRST; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/compression_padding_initialization.test b/parser/testdata/corpus/sql/storage/compression/compression_padding_initialization.test new file mode 100644 index 00000000..288347d7 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/compression_padding_initialization.test @@ -0,0 +1,361 @@ +# source: test/sql/storage/compression/compression_padding_initialization.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/padding_dictionary_gap.db' AS dictionary_gap (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE dictionary_gap.t AS SELECT lpad(i::VARCHAR,1000,'x') AS x FROM range(14) r(i) +-- +ok +== +CHECKPOINT dictionary_gap +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('dictionary_gap.t') WHERE compression = 'Dictionary' +-- +ok +== +SELECT count(*) FROM dictionary_gap.t +-- +ok +== +DETACH dictionary_gap +-- +ok +== +ATTACH '{TEST_DIR}/padding_dict_fsst_small.db' AS dict_fsst_small (STORAGE_VERSION 'v1.3.0', BLOCK_SIZE 16384) +-- +ok +== +SET force_compression='dict_fsst' +-- +ok +== +CREATE TABLE dict_fsst_small.t AS SELECT * FROM (VALUES ('a'),('b')) v(x) +-- +ok +== +CHECKPOINT dict_fsst_small +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('dict_fsst_small.t') WHERE compression = 'DICT_FSST' +-- +ok +== +SELECT count(*) FROM dict_fsst_small.t +-- +ok +== +DETACH dict_fsst_small +-- +ok +== +ATTACH '{TEST_DIR}/padding_zstd_small.db' AS zstd_small (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384) +-- +ok +== +SET force_compression='zstd' +-- +ok +== +CREATE TABLE zstd_small.t AS SELECT * FROM (VALUES ('a'),('b')) v(x) +-- +ok +== +CHECKPOINT zstd_small +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('zstd_small.t') WHERE compression = 'ZSTD' +-- +ok +== +SELECT count(*) FROM zstd_small.t +-- +ok +== +DETACH zstd_small +-- +ok +== +ATTACH '{TEST_DIR}/padding_zstd_multi.db' AS zstd_multi (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE zstd_multi.t AS SELECT CASE WHEN i%2=0 THEN 'a' ELSE 'b' END AS x FROM range(4097) r(i) +-- +ok +== +CHECKPOINT zstd_multi +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('zstd_multi.t') WHERE compression = 'ZSTD' +-- +ok +== +SELECT count(*) FROM zstd_multi.t +-- +ok +== +DETACH zstd_multi +-- +ok +== +ATTACH '{TEST_DIR}/padding_zstd_overflow.db' AS zstd_overflow (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE zstd_overflow.t AS SELECT CASE WHEN i%2=0 THEN 'a' ELSE 'b' END AS x FROM range(12289) r(i) +-- +ok +== +CHECKPOINT zstd_overflow +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('zstd_overflow.t') WHERE compression = 'ZSTD' +-- +ok +== +SELECT count(*) FROM zstd_overflow.t +-- +ok +== +DETACH zstd_overflow +-- +ok +== +ATTACH '{TEST_DIR}/padding_uncompressed_overflow.db' AS uncompressed_overflow (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE uncompressed_overflow.t AS SELECT * FROM (VALUES (repeat('a',5000)),(repeat('b',5001))) v(x) +-- +ok +== +CHECKPOINT uncompressed_overflow +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('uncompressed_overflow.t') WHERE compression = 'Uncompressed' +-- +ok +== +SELECT count(*) FROM uncompressed_overflow.t +-- +ok +== +DETACH uncompressed_overflow +-- +ok +== +ATTACH '{TEST_DIR}/padding_alp_small.db' AS alp_small (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +SET force_compression='alp' +-- +ok +== +CREATE TABLE alp_small.t AS SELECT i::DOUBLE AS x FROM range(33) r(i) +-- +ok +== +CHECKPOINT alp_small +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('alp_small.t') WHERE compression = 'ALP' +-- +ok +== +SELECT count(*) FROM alp_small.t +-- +ok +== +DETACH alp_small +-- +ok +== +ATTACH '{TEST_DIR}/padding_alp_full.db' AS alp_full (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE alp_full.t AS SELECT sin(i::DOUBLE) AS x FROM range(1700) r(i) +-- +ok +== +CHECKPOINT alp_full +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('alp_full.t') WHERE compression = 'ALP' +-- +ok +== +SELECT count(*) FROM alp_full.t +-- +ok +== +DETACH alp_full +-- +ok +== +ATTACH '{TEST_DIR}/padding_alprd_small.db' AS alprd_small (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +SET force_compression='alprd' +-- +ok +== +CREATE TABLE alprd_small.t AS SELECT i::DOUBLE AS x FROM range(33) r(i) +-- +ok +== +CHECKPOINT alprd_small +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('alprd_small.t') WHERE compression = 'ALPRD' +-- +ok +== +SELECT count(*) FROM alprd_small.t +-- +ok +== +DETACH alprd_small +-- +ok +== +ATTACH '{TEST_DIR}/padding_alprd_full.db' AS alprd_full (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE alprd_full.t AS SELECT sin(i::DOUBLE) AS x FROM range(2400) r(i) +-- +ok +== +CHECKPOINT alprd_full +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('alprd_full.t') WHERE compression = 'ALPRD' +-- +ok +== +SELECT count(*) FROM alprd_full.t +-- +ok +== +DETACH alprd_full +-- +ok +== +ATTACH '{TEST_DIR}/padding_roaring_small.db' AS roaring_small (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE roaring_small.t AS SELECT i=0 AS x FROM range(33) r(i) +-- +ok +== +CHECKPOINT roaring_small +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('roaring_small.t') WHERE compression = 'Roaring' +-- +ok +== +SELECT count(*) FROM roaring_small.t +-- +ok +== +DETACH roaring_small +-- +ok +== +ATTACH '{TEST_DIR}/padding_roaring_multi.db' AS roaring_multi (STORAGE_VERSION 'v1.5.0', BLOCK_SIZE 16384) +-- +ok +== +CREATE TABLE roaring_multi.t AS SELECT CASE WHEN i<2048 THEN i<144 AND i%16=0 ELSE i%2=0 END AS x FROM range(4096) r(i) +-- +ok +== +CHECKPOINT roaring_multi +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('roaring_multi.t') WHERE compression = 'Roaring' +-- +ok +== +SELECT count(*) FROM roaring_multi.t +-- +ok +== +DETACH roaring_multi +-- +ok +== +ATTACH '{TEST_DIR}/padding_no_zeroing.db' AS no_zeroing (STORAGE_VERSION 'v1.5.0') +-- +ok +== +SET force_compression='bitpacking' +-- +ok +== +SET force_bitpacking_mode='{bitpacking_mode}' +-- +ok +== +CREATE TABLE no_zeroing.bitpacking_{bitpacking_mode} AS SELECT CASE WHEN r % 7 = 3 THEN NULL ELSE r * 13 END::INTEGER AS i, CASE WHEN r % 5 = 0 THEN NULL ELSE r % 100 END::SMALLINT AS s FROM range(5000) t(r) +-- +error: Parser Error: syntax error at or near "{" +== +CHECKPOINT no_zeroing +-- +ok +== +RESET force_bitpacking_mode +-- +ok +== +CREATE TABLE no_zeroing.rle AS SELECT CASE WHEN r % 11 = 0 THEN NULL ELSE r // 10 END::BIGINT AS x FROM range(5000) t(r) +-- +ok +== +CREATE TABLE no_zeroing.uncompressed AS SELECT CASE WHEN r % 5 = 0 THEN NULL ELSE r * 7 END::HUGEINT AS x, CASE WHEN r % 3 = 0 THEN NULL ELSE to_seconds(r) END AS y FROM range(5000) t(r) +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('no_zeroing.bitpacking_for') WHERE compression = 'BitPacking' +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('no_zeroing.rle') WHERE compression = 'RLE' +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('no_zeroing.uncompressed') WHERE compression = 'Uncompressed' AND segment_type = 'VALIDITY' +-- +ok +== +SELECT count(*), count(i) FROM no_zeroing.bitpacking_for +-- +ok +== +DETACH no_zeroing +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/compression_selection.test b/parser/testdata/corpus/sql/storage/compression/compression_selection.test index 6501bd95..ddf540d4 100644 --- a/parser/testdata/corpus/sql/storage/compression/compression_selection.test +++ b/parser/testdata/corpus/sql/storage/compression/compression_selection.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/compression_selection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_rle (a INTEGER); diff --git a/parser/testdata/corpus/sql/storage/compression/constant/constant_negative_zero.test b/parser/testdata/corpus/sql/storage/compression/constant/constant_negative_zero.test index 6d0c289d..f949de02 100644 --- a/parser/testdata/corpus/sql/storage/compression/constant/constant_negative_zero.test +++ b/parser/testdata/corpus/sql/storage/compression/constant/constant_negative_zero.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/constant/constant_negative_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mixed_zero(id INTEGER, v DOUBLE, vf FLOAT); diff --git a/parser/testdata/corpus/sql/storage/compression/constant/constant_numeric_types.test b/parser/testdata/corpus/sql/storage/compression/constant/constant_numeric_types.test index fe3b7406..91b09ced 100644 --- a/parser/testdata/corpus/sql/storage/compression/constant/constant_numeric_types.test +++ b/parser/testdata/corpus/sql/storage/compression/constant/constant_numeric_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/constant/constant_numeric_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE constant_numbers AS diff --git a/parser/testdata/corpus/sql/storage/compression/default_storage_dict_fsst.test b/parser/testdata/corpus/sql/storage/compression/default_storage_dict_fsst.test index 603f291e..d047ab8c 100644 --- a/parser/testdata/corpus/sql/storage/compression/default_storage_dict_fsst.test +++ b/parser/testdata/corpus/sql/storage/compression/default_storage_dict_fsst.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/default_storage_dict_fsst.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count.test new file mode 100644 index 00000000..49c62a7a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count.test @@ -0,0 +1,17 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_dict_count; +-- +ok +== +SELECT compression FROM pragma_storage_info('t') WHERE column_name='s' AND compression='DICT_FSST' LIMIT 1; +-- +ok +== +SELECT count(*) FROM t WHERE s = 'string_1'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_boundary.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_boundary.test new file mode 100644 index 00000000..df2cccb0 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_boundary.test @@ -0,0 +1,13 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_boundary.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_dict_count_boundary +-- +ok +== +SELECT count(DISTINCT s) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_lengths.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_lengths.test new file mode 100644 index 00000000..47ebaa8e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_lengths.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dict_count_lengths.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_dict_count_lengths +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dictionary_index.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dictionary_index.test new file mode 100644 index 00000000..867212dc --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dictionary_index.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_dictionary_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_dictionary_index +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_encoded_dictionary_index.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_encoded_dictionary_index.test new file mode 100644 index 00000000..cee2af07 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_encoded_dictionary_index.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_encoded_dictionary_index.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_encoded_dictionary_index +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_fsst_only_dict_count.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_fsst_only_dict_count.test new file mode 100644 index 00000000..c552f89e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_fsst_only_dict_count.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_fsst_only_dict_count.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_fsst_only_dict_count +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_indices_width.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_indices_width.test new file mode 100644 index 00000000..17c41dbf --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_indices_width.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_indices_width.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_indices_width +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_mode.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_mode.test new file mode 100644 index 00000000..07d3534e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_corrupt_mode.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_corrupt_mode.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE dict_fsst_corrupt_mode +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_count_bound.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_count_bound.test new file mode 100644 index 00000000..fccedc1e --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_count_bound.test @@ -0,0 +1,40 @@ +# source: test/sql/storage/compression/dict_fsst/dict_fsst_count_bound.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/dict_fsst_count_bound.db' AS db (BLOCK_SIZE 16384); +-- +ok +== +SET force_compression = 'dict_fsst'; +-- +ok +== +CREATE TABLE db.t(s VARCHAR); +-- +ok +== +INSERT INTO db.t SELECT lpad(i::VARCHAR, 15, '0') || 'x' FROM range(1200) t(i); +-- +ok +== +INSERT INTO db.t SELECT '' FROM range(20000); +-- +ok +== +SELECT count(*), count(DISTINCT s) FROM db.t; +-- +ok +== +SELECT count(*) > 0 +FROM pragma_storage_info('db.t', include_segment_info = true) +WHERE segment_type = 'VARCHAR' AND compression = 'DICT_FSST' + AND segment_info LIKE 'FSST_ONLY:%' AND count > 16384; +-- +ok +== +ATTACH '{TEST_DIR}/dict_fsst_count_bound.db' AS db (READ_ONLY); +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_expression_filter.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_expression_filter.test index 5e415308..0f297bfe 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_expression_filter.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_expression_filter.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/dict_fsst_expression_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE partial_segment AS @@ -67,10 +67,6 @@ SELECT count(*) FROM full_vector -- ok == -SET force_mbedtls_unsafe = true --- -ok -== ATTACH '{TEST_DIR}/dict_fsst_multi_segment_encrypted.db' AS encrypted (ENCRYPTION_KEY 'asdf') -- ok diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_test.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_test.test index e5f14306..405c490a 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_test.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dict_fsst_test.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/dict_fsst_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='uncompressed'; diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_covers_validity.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_covers_validity.test index 18134ceb..864cb0ce 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_covers_validity.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_covers_validity.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/dictionary_covers_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set checkpoint_threshold='10mb'; diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_storage_info.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_storage_info.test index 8195d44b..16ba421f 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_storage_info.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/dictionary_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/dictionary_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'dict_fsst' diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/fetch_row.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/fetch_row.test index 10751c7d..a1cfa453 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'dict_fsst'; diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/force_dictionary.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/force_dictionary.test index 46036910..eb637450 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/force_dictionary.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/force_dictionary.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/force_dictionary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test_dict SELECT i::VARCHAR FROM range(0, 2000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/invalid_symbol_table.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/invalid_symbol_table.test index 9c2d86c2..f82a72b3 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/invalid_symbol_table.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/invalid_symbol_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/invalid_symbol_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/dict_fsst_invalid_symbol_table.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675.test index 055e90dc..beccc039 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/issue_5675.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma threads=1 diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675_followup.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675_followup.test index 5c12f23a..0b78283d 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675_followup.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5675_followup.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/issue_5675_followup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO TEST SELECT CASE WHEN i%2==0 diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5759.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5759.test index 14f98a44..ca230f79 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5759.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/issue_5759.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/issue_5759.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='dict_fsst' diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/repeated_string_stats.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/repeated_string_stats.test index 6d4c1d24..b5f45704 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/repeated_string_stats.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/repeated_string_stats.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/repeated_string_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE repeated AS diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_dict_fsst_with_smaller_block_size.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_dict_fsst_with_smaller_block_size.test index d1b691b8..cd0328f6 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_dict_fsst_with_smaller_block_size.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_dict_fsst_with_smaller_block_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/test_dict_fsst_with_smaller_block_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version='latest'; diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_filter_pushdown.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_filter_pushdown.test index ac716b24..c61a3f3d 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_filter_pushdown.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/test_null_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='DICT_FSST'; diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_update.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_update.test index d2eb0f22..6f338bc9 100644 --- a/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_update.test +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/test_null_update.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dict_fsst/test_null_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t( diff --git a/parser/testdata/corpus/sql/storage/compression/dict_fsst/zero_width_lengths.test b/parser/testdata/corpus/sql/storage/compression/dict_fsst/zero_width_lengths.test new file mode 100644 index 00000000..d24f104a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/dict_fsst/zero_width_lengths.test @@ -0,0 +1,32 @@ +# source: test/sql/storage/compression/dict_fsst/zero_width_lengths.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE strings AS +SELECT NULL::VARCHAR AS all_null, ''::VARCHAR AS all_empty, + CASE WHEN i % 2 = 0 THEN '' ELSE NULL END AS mixed +FROM range(5000) t(i); +-- +ok +== +SELECT column_name, compression = 'DICT_FSST' AND segment_info LIKE 'DICTIONARY:%' +FROM pragma_storage_info('strings', include_segment_info = true) +WHERE segment_type = 'VARCHAR'; +-- +ok +== +SET debug_force_fetch_row = {force_fetch}; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*), count(all_null), count(all_empty), count(mixed), + sum(length(all_empty)), sum(length(mixed)) +FROM strings; +-- +ok +== +SELECT count(*) FROM strings WHERE all_empty = '' AND mixed IS NULL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dict_corrupted_offset.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dict_corrupted_offset.test index dc86e711..2666a632 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dict_corrupted_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dict_corrupted_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dict_corrupted_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/dict_corrupted_offset.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count.test index 82cc5913..68858b3e 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dictionary_corrupt_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE dictionary_corrupt_count; diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count_consistent.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count_consistent.test index 4a07ddfd..bada5f04 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count_consistent.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_count_consistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dictionary_corrupt_count_consistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE dictionary_corrupt_count_consistent; diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_null_index.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_null_index.test index 5ffc3343..e73a479c 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_null_index.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_corrupt_null_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dictionary_corrupt_null_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE dictionary_corrupt_null_index; diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_empty_segment.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_empty_segment.test index fd55df82..ab65c463 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_empty_segment.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_empty_segment.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dictionary_empty_segment.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/dictionary_empty_segment.db' AS d (STORAGE_VERSION 'v1.1.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_storage_info.test b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_storage_info.test index d45f4b47..203e1074 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_storage_info.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/dictionary_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/dictionary_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'dictionary' diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/fetch_row.test b/parser/testdata/corpus/sql/storage/compression/dictionary/fetch_row.test index eace97ea..76e1d3af 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/invalid_dictionary_metadata.test b/parser/testdata/corpus/sql/storage/compression/dictionary/invalid_dictionary_metadata.test index 4c0bbcaf..66ca1b13 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/invalid_dictionary_metadata.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/invalid_dictionary_metadata.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/invalid_dictionary_metadata.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE dictionary_invalid_offset; diff --git a/parser/testdata/corpus/sql/storage/compression/dictionary/total_string_length_dictionary.test b/parser/testdata/corpus/sql/storage/compression/dictionary/total_string_length_dictionary.test index 3ff5fdc7..ed397cdd 100644 --- a/parser/testdata/corpus/sql/storage/compression/dictionary/total_string_length_dictionary.test +++ b/parser/testdata/corpus/sql/storage/compression/dictionary/total_string_length_dictionary.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/dictionary/total_string_length_dictionary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (s VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_decoded_length.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_decoded_length.test index 3f5e28d5..a82689d4 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_decoded_length.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_decoded_length.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_corrupt_decoded_length.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE fsst_corrupt_decoded_length diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_escape_symbol_index.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_escape_symbol_index.test index cdb31e9e..35405933 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_escape_symbol_index.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_corrupt_escape_symbol_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_corrupt_escape_symbol_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE fsst_corrupt_escape_symbol_index diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_disable_compression.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_disable_compression.test index 49951392..3f3fba95 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_disable_compression.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_disable_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_disable_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT concat('longprefix', i) FROM range(30000) t(i); diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_greedy_long_strings.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_greedy_long_strings.test index 31d41629..b14d762f 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_greedy_long_strings.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_greedy_long_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_greedy_long_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_compression = 'fsst'; diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_select_across_segments.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_select_across_segments.test index edd0f9a0..2f5dc41b 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_select_across_segments.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_select_across_segments.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_select_across_segments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fsst_select_across_segments.db' AS db (BLOCK_SIZE 16384, STORAGE_VERSION 'v1.0.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_small_symbol_table.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_small_symbol_table.test index d7de3ade..43667a39 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_small_symbol_table.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_small_symbol_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_small_symbol_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fsst_small_symbol_table.db' AS db1 (BLOCK_SIZE 16384, STORAGE_VERSION 'v1.0.0') diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_storage_info.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_storage_info.test index db260c9b..5056d728 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_storage_info.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_storage_info.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/fsst_storage_info.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'fsst' diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/fsst_uncompacted_gap_initialization.test b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_uncompacted_gap_initialization.test new file mode 100644 index 00000000..c52432ba --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/fsst/fsst_uncompacted_gap_initialization.test @@ -0,0 +1,33 @@ +# source: test/sql/storage/compression/fsst/fsst_uncompacted_gap_initialization.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/fsst_uncompacted_gap_initialization.db' AS db (STORAGE_VERSION 'v1.0.0') +-- +ok +== +SET force_compression='fsst' +-- +ok +== +CREATE TABLE db.t AS SELECT repeat('A', 1000) || i::VARCHAR AS c FROM range(1700) tbl(i) +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('db.t') WHERE compression = 'FSST' +-- +ok +== +SELECT strpos(hex(content), repeat('FF', 100)) FROM read_blob('{TEST_DIR}/fsst_uncompacted_gap_initialization.db') +-- +ok +== +ATTACH '{TEST_DIR}/fsst_uncompacted_gap_initialization.db' AS db +-- +ok +== +SELECT count(*) = 1700 AND bool_and(c = repeat('A', 1000) || rowid::VARCHAR) FROM db.t +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/invalid_fsst_bitpacking_width.test b/parser/testdata/corpus/sql/storage/compression/fsst/invalid_fsst_bitpacking_width.test index c372e5ef..f26aea6f 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/invalid_fsst_bitpacking_width.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/invalid_fsst_bitpacking_width.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/invalid_fsst_bitpacking_width.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/fsst_invalid_bitpacking_width.db' AS invalid_fsst_db diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/issue_5675.test b/parser/testdata/corpus/sql/storage/compression/fsst/issue_5675.test index 5fc84bac..d6191833 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/issue_5675.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/issue_5675.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/issue_5675.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='fsst'; diff --git a/parser/testdata/corpus/sql/storage/compression/fsst/issue_5759.test b/parser/testdata/corpus/sql/storage/compression/fsst/issue_5759.test index 6bdc69d2..456b415f 100644 --- a/parser/testdata/corpus/sql/storage/compression/fsst/issue_5759.test +++ b/parser/testdata/corpus/sql/storage/compression/fsst/issue_5759.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/fsst/issue_5759.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='fsst' diff --git a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_data_offset_high.test b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_data_offset_high.test index 99f250aa..0945407f 100644 --- a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_data_offset_high.test +++ b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_data_offset_high.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/patas/patas_corrupt_data_offset_high.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE patas_corrupt_data_offset_high; diff --git a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_group_count.test b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_group_count.test index dd2a202a..09cc327b 100644 --- a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_group_count.test +++ b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_group_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/patas/patas_corrupt_group_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE patas_corrupt_group_count; diff --git a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_metadata_offset_low.test b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_metadata_offset_low.test index e6bd9ad9..78f4d768 100644 --- a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_metadata_offset_low.test +++ b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupt_metadata_offset_low.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/patas/patas_corrupt_metadata_offset_low.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE patas_corrupt_metadata_offset_low; diff --git a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupted_file.test b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupted_file.test index 3821e21d..16a2a213 100644 --- a/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupted_file.test +++ b/parser/testdata/corpus/sql/storage/compression/patas/patas_corrupted_file.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/patas/patas_corrupted_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT compression FROM pragma_storage_info('temperatures_double') WHERE compression='Patas'; diff --git a/parser/testdata/corpus/sql/storage/compression/rle/force_rle.test b/parser/testdata/corpus/sql/storage/compression/rle/force_rle.test index 4235c63a..bd4be9fa 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/force_rle.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/force_rle.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/force_rle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'rle' diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_bool.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_bool.test index 8679b237..10ca74ed 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_bool.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_bool.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a BOOLEAN); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_constant.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_constant.test index 330b426c..08f7f3df 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_constant.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_constant.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test select 0 from range(4096); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_run_undercount.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_run_undercount.test index 5b974645..8901ed34 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_run_undercount.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_run_undercount.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_corrupt_run_undercount.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE rle_corrupt_run_undercount diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_value_capacity.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_value_capacity.test index 9e8806ce..105e5187 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_value_capacity.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupt_value_capacity.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_corrupt_value_capacity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE rle_corrupt_value_capacity diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupted_count_offset.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupted_count_offset.test index 6538cb12..30c821ac 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupted_count_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_corrupted_count_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_corrupted_count_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT compression FROM pragma_storage_info('t') WHERE compression='RLE'; diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_filter.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_filter.test index 45c7c45f..547c0af7 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_filter.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_filter.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i id, i // 50 rle_val, case when i%8=0 then null else i // 50 end rle_val_null FROM range(100000) t(i); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_filter_pushdown.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_filter_pushdown.test index bdd04036..ab33dab8 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_filter_pushdown.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id VARCHAR, col INTEGER); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_index_fetch.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_index_fetch.test index 4d9af315..635295b2 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_index_fetch.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_index_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_index_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(id INTEGER PRIMARY KEY, col INTEGER); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_medium.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_medium.test index 86153919..e3a9dbd6 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_medium.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_medium.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_medium.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT * FROM repeat(1, 1000); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_nulls_edge_case.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_nulls_edge_case.test index 69e6493e..37e617c3 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_nulls_edge_case.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_nulls_edge_case.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_nulls_edge_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='RLE'; diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_select.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_select.test index e643b07e..13913088 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_select.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_select.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_select.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM tbl WHERE id >= 75 and id <= 125 and id%4=0 diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_force_fetch_row.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_force_fetch_row.test index 81757b95..8c480e0a 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_force_fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_force_fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_select_force_fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i, i::BIGINT AS x FROM range(100000) r(i); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_list.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_list.test index 061c61c9..558ffc4e 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_list.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_list.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_select_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='rle'; diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_run_boundaries.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_run_boundaries.test index a4649a3e..275a3c58 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_select_run_boundaries.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_select_run_boundaries.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_select_run_boundaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rle_select_run_boundaries.db' AS db (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/compression/rle/rle_signed_zero.test b/parser/testdata/corpus/sql/storage/compression/rle/rle_signed_zero.test index bd654b29..441c6538 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/rle_signed_zero.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/rle_signed_zero.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/rle_signed_zero.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='rle' diff --git a/parser/testdata/corpus/sql/storage/compression/rle/struct_rle.test b/parser/testdata/corpus/sql/storage/compression/rle/struct_rle.test index 7f11ca27..8f523a82 100644 --- a/parser/testdata/corpus/sql/storage/compression/rle/struct_rle.test +++ b/parser/testdata/corpus/sql/storage/compression/rle/struct_rle.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/rle/struct_rle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT {'a': i} s FROM repeat(1, 1000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_array.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_array.test index 8d5949d1..29fab79a 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_array.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_array.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_analyze_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set variable dataset_size = 122880; diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_bitset.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_bitset.test index 330e285e..750dc27c 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_bitset.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_bitset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_analyze_bitset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_uncompressed AS SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_run.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_run.test index f39d3405..162970f5 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_run.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_analyze_run.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_analyze_run.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_uncompressed AS SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_array_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_array_simple.test index ea43ebef..c0ac7a20 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_array_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_array_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_array_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i%25=0 then 1337 else null end FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_boundaries.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_boundaries.test new file mode 100644 index 00000000..85477201 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_boundaries.test @@ -0,0 +1,31 @@ +# source: test/sql/storage/compression/roaring/roaring_bitset_boundaries.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET force_compression = 'roaring' +-- +ok +== +CREATE TABLE test AS +SELECT i, i % 3 = 0 AS a, CASE WHEN i % 3 = 0 THEN i ELSE NULL END AS b +FROM range({rows}) t(i) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) > 0 FROM pragma_storage_info('test') +WHERE segment_type = 'BOOLEAN' AND compression = 'Roaring' +-- +ok +== +SELECT count(*) > 0 FROM pragma_storage_info('test') +WHERE column_name = 'b' AND segment_type = 'VALIDITY' AND compression = 'Roaring' +-- +ok +== +SELECT count(*) FROM test +WHERE a IS DISTINCT FROM (i % 3 = 0) + OR b IS DISTINCT FROM CASE WHEN i % 3 = 0 THEN i ELSE NULL END +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_simple.test index ffb56d6b..2f5009a9 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bitset_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bitset_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT CASE WHEN i % 3 = 0 THEN 1337 ELSE NULL END FROM range(0, 10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_array.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_array.test index 70fdda1f..8e111969 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_array.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_array.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_analyze_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='BitPacking' diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_bitset.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_bitset.test index 2e3ae94c..513a28e5 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_bitset.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_bitset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_analyze_bitset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_uncompressed AS SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_run.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_run.test index d06c5d19..8837ee23 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_run.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_analyze_run.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_analyze_run.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_uncompressed AS SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple.test index 8729a4eb..6f27062b 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_array_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a BOOL); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple_w_null.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple_w_null.test index 7eea9561..da31ad1a 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple_w_null.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_array_simple_w_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_array_simple_w_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple.test index f816d936..a4586a4a 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_bitset_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT CASE WHEN i % 3 = 0 THEN true ELSE false END FROM range(0, 10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple_w_null.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple_w_null.test index cdf022d7..fb35cc17 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple_w_null.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_bitset_simple_w_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_bitset_simple_w_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_fetch_row.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_fetch_row.test index 89da0e64..6b2147ee 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_first_is_null.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_first_is_null.test index c924efbe..17571386 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_first_is_null.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_first_is_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_first_is_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='roaring'; diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_array_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_array_simple.test index 14f55c2c..b55ddc2d 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_array_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_array_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_inverted_array_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i%25=0 then false else true end FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_run_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_run_simple.test index d94bb2ea..9a23b76f 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_run_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_inverted_run_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_inverted_run_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i = 0 or (i % 512 != 0 and (i % 512) < 350 or (i % 512) > 450) then true else false end FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple.test index ed7a5006..1f9b4e3e 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_run_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with intermediates as ( diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple_w_null.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple_w_null.test index 96799bf5..7404e18f 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple_w_null.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_run_simple_w_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_run_simple_w_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_smaller_than_vector.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_smaller_than_vector.test index 70cbfaac..8f3ffbae 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_smaller_than_vector.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_smaller_than_vector.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_smaller_than_vector.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set checkpoint_threshold = '10mb'; diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_uncompressed_under_v1_5_0.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_uncompressed_under_v1_5_0.test index ce165be8..75049be9 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_uncompressed_under_v1_5_0.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_bool_uncompressed_under_v1_5_0.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_bool_uncompressed_under_v1_5_0.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT compression FROM pragma_storage_info('test') WHERE segment_type ILIKE 'BOOLEAN' and compression != 'Uncompressed'; diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_boolean_metadata_offset.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_boolean_metadata_offset.test new file mode 100644 index 00000000..cbbbd17a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_boolean_metadata_offset.test @@ -0,0 +1,13 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_boolean_metadata_offset.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_boolean_metadata_offset +-- +ok +== +SELECT compression FROM pragma_storage_info('t') WHERE column_name='a' AND compression='Roaring' LIMIT 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_cardinality_bitset.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_cardinality_bitset.test new file mode 100644 index 00000000..aaaab1d1 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_cardinality_bitset.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_cardinality_bitset.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_cardinality_bitset +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_count.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_count.test new file mode 100644 index 00000000..e1284179 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_count.test @@ -0,0 +1,13 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_container_count.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_container_count +-- +ok +== +SELECT compression FROM pragma_storage_info('t') WHERE column_name='b' AND compression='Roaring' LIMIT 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_type.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_type.test new file mode 100644 index 00000000..3770d19a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_container_type.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_container_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_container_type +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset.test new file mode 100644 index 00000000..7965a9c6 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_metadata_offset.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_metadata_offset +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset_rejected.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset_rejected.test new file mode 100644 index 00000000..0e5b3cc9 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_offset_rejected.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_metadata_offset_rejected.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_metadata_offset_rejected +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_truncated.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_truncated.test new file mode 100644 index 00000000..c1fca914 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_metadata_truncated.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_metadata_truncated.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_metadata_truncated +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_null_block.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_null_block.test new file mode 100644 index 00000000..d89aac3b --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_null_block.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_null_block.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_null_block +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_run_segment_counts.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_run_segment_counts.test new file mode 100644 index 00000000..41a55465 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupt_run_segment_counts.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/roaring/roaring_corrupt_run_segment_counts.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE roaring_corrupt_run_segment_counts +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupted_file.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupted_file.test index 9fb5938c..09e1a153 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupted_file.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_corrupted_file.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_corrupted_file.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/roaring_corrupt.db' AS db2 diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_fetch_row.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_fetch_row.test index 17116737..37306f96 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test ( diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_array_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_array_simple.test index ebc5f133..fd2b8506 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_array_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_array_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_inverted_array_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i%25=0 then null else 1337 end FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_run_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_run_simple.test index b860d543..44dd41fb 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_run_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_inverted_run_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_inverted_run_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i = 0 or (i % 512 != 0 and (i % 512) < 350 or (i % 512) > 450) then 1337 else null end FROM range(0,10000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_boundaries.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_boundaries.test new file mode 100644 index 00000000..f50764ec --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_boundaries.test @@ -0,0 +1,33 @@ +# source: test/sql/storage/compression/roaring/roaring_run_boundaries.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE test AS +SELECT i, + i % 2048 < 16 AS single_run, + i % 64 < 16 AS repeated_run, + CASE WHEN i % 2048 < 16 THEN i ELSE NULL END AS single_null, + CASE WHEN i % 64 < 16 THEN i ELSE NULL END AS repeated_null +FROM range({rows}) t(i) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(DISTINCT column_name) FROM pragma_storage_info('test') +WHERE column_name IN ('single_run', 'repeated_run', 'single_null', 'repeated_null') + AND compression = 'Roaring' +-- +ok +== +SET debug_force_fetch_row = {fetch} +-- +error: Parser Error: syntax error at or near "fetch" +== +SELECT count(*) FROM test +WHERE single_run IS DISTINCT FROM (i % 2048 < 16) + OR repeated_run IS DISTINCT FROM (i % 64 < 16) + OR single_null IS DISTINCT FROM CASE WHEN i % 2048 < 16 THEN i ELSE NULL END + OR repeated_null IS DISTINCT FROM CASE WHEN i % 64 < 16 THEN i ELSE NULL END +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_simple.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_simple.test index d8c523b6..a6f9801b 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_simple.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_run_simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_run_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit with intermediates as ( diff --git a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_smaller_than_vector.test b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_smaller_than_vector.test index 49b5706d..17352dcd 100644 --- a/parser/testdata/corpus/sql/storage/compression/roaring/roaring_smaller_than_vector.test +++ b/parser/testdata/corpus/sql/storage/compression/roaring/roaring_smaller_than_vector.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/roaring/roaring_smaller_than_vector.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT case when i%25=0 then 1337 else null end FROM range(0,1025) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/select_across_segments.test b/parser/testdata/corpus/sql/storage/compression/select_across_segments.test index 48e62d3f..04fdfb1d 100644 --- a/parser/testdata/corpus/sql/storage/compression/select_across_segments.test +++ b/parser/testdata/corpus/sql/storage/compression/select_across_segments.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/select_across_segments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/select_across_segments.db' AS db (BLOCK_SIZE 16384, STORAGE_VERSION 'v1.4.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/simple_compression.test b/parser/testdata/corpus/sql/storage/compression/simple_compression.test index af5fbdea..0ff464f5 100644 --- a/parser/testdata/corpus/sql/storage/compression/simple_compression.test +++ b/parser/testdata/corpus/sql/storage/compression/simple_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/simple_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = '{compression}' diff --git a/parser/testdata/corpus/sql/storage/compression/skip_explicit_compression_analyze.test b/parser/testdata/corpus/sql/storage/compression/skip_explicit_compression_analyze.test index e25b7060..fad16f11 100644 --- a/parser/testdata/corpus/sql/storage/compression/skip_explicit_compression_analyze.test +++ b/parser/testdata/corpus/sql/storage/compression/skip_explicit_compression_analyze.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/skip_explicit_compression_analyze.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold='9999GB' diff --git a/parser/testdata/corpus/sql/storage/compression/string/big_strings.test b/parser/testdata/corpus/sql/storage/compression/string/big_strings.test index 325d97c3..d4b709a8 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/big_strings.test +++ b/parser/testdata/corpus/sql/storage/compression/string/big_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/big_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_big_strings_new.db' AS db_v13 (STORAGE_VERSION 'v1.3.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/string/blob.test b/parser/testdata/corpus/sql/storage/compression/string/blob.test index 251eabb8..37f83b71 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/blob.test +++ b/parser/testdata/corpus/sql/storage/compression/string/blob.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_blob_new.db' AS db_v13 (STORAGE_VERSION 'v1.3.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/string/empty.test b/parser/testdata/corpus/sql/storage/compression/string/empty.test index c05fee74..ff30d556 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/empty.test +++ b/parser/testdata/corpus/sql/storage/compression/string/empty.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_empty_new.db' AS db_v13 (STORAGE_VERSION 'v1.3.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/string/filter_pushdown.test b/parser/testdata/corpus/sql/storage/compression/string/filter_pushdown.test index 82fb87f1..4911da4d 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/filter_pushdown.test +++ b/parser/testdata/corpus/sql/storage/compression/string/filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_filter_pushdown_new.db' AS db_v13 (STORAGE_VERSION 'v1.3.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/string/index_fetch.test b/parser/testdata/corpus/sql/storage/compression/string/index_fetch.test index 138b34b2..1ad9c483 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/index_fetch.test +++ b/parser/testdata/corpus/sql/storage/compression/string/index_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/index_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/test_index_fetch_new.db' AS db_v13 (STORAGE_VERSION 'v1.3.0'); diff --git a/parser/testdata/corpus/sql/storage/compression/string/medium.test b/parser/testdata/corpus/sql/storage/compression/string/medium.test index cf3e2eae..9104c585 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/medium.test +++ b/parser/testdata/corpus/sql/storage/compression/string/medium.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/medium.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version='v1.3.0' diff --git a/parser/testdata/corpus/sql/storage/compression/string/simple.test b/parser/testdata/corpus/sql/storage/compression/string/simple.test index 3912f29f..fcfa35c5 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/simple.test +++ b/parser/testdata/corpus/sql/storage/compression/string/simple.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT CONCAT('A-',(i%5)::VARCHAR) FROM range(0,1025) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_end.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_end.test index 4747d061..a799a827 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_end.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_end.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_dict_end.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_dict_end diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_offset.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_offset.test index 6952a7d4..9a25dc99 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_dict_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_dict_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_dict_offset diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_int32_min.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_int32_min.test index fd19f4ba..9c26120b 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_int32_min.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_int32_min.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_int32_min.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_int32_min diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_negative_marker.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_negative_marker.test index ce61eb06..0a3cea5a 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_negative_marker.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_negative_marker.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_negative_marker.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_negative_marker diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_offset_nonmonotonic.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_offset_nonmonotonic.test index dcc1eae6..be1d1b7d 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_offset_nonmonotonic.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_offset_nonmonotonic.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_offset_nonmonotonic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_offset_nonmonotonic diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_block_id.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_block_id.test index ce821d8b..8d10f4e5 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_block_id.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_block_id.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_overflow_block_id.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_overflow_block_id diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_continuation.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_continuation.test index 43419921..059c7fac 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_continuation.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_continuation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_overflow_continuation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_overflow_continuation diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_offset.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_offset.test index 002c5952..ed436b95 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_overflow_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_overflow_offset diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_transient_block.test b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_transient_block.test index 31452c66..3baa1b30 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_transient_block.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_corrupt_overflow_transient_block.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_corrupt_overflow_transient_block.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE string_corrupt_overflow_transient_block diff --git a/parser/testdata/corpus/sql/storage/compression/string/string_scan_batch_boundaries.test b/parser/testdata/corpus/sql/storage/compression/string/string_scan_batch_boundaries.test index e034f90b..ef72d869 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/string_scan_batch_boundaries.test +++ b/parser/testdata/corpus/sql/storage/compression/string/string_scan_batch_boundaries.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/string_scan_batch_boundaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/string_scan_batch_boundaries.db' AS strings; diff --git a/parser/testdata/corpus/sql/storage/compression/string/struct.test b/parser/testdata/corpus/sql/storage/compression/string/struct.test index 8aced510..31071d36 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/struct.test +++ b/parser/testdata/corpus/sql/storage/compression/string/struct.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (s ROW(a VARCHAR)); diff --git a/parser/testdata/corpus/sql/storage/compression/string/table_copy.test b/parser/testdata/corpus/sql/storage/compression/string/table_copy.test index f4316d98..8f9fae4e 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/table_copy.test +++ b/parser/testdata/corpus/sql/storage/compression/string/table_copy.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/table_copy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT (i%500)::VARCHAR FROM range(0,150000) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/compression/string/vector_flatten.test b/parser/testdata/corpus/sql/storage/compression/string/vector_flatten.test index a70ccb03..82a0520d 100644 --- a/parser/testdata/corpus/sql/storage/compression/string/vector_flatten.test +++ b/parser/testdata/corpus/sql/storage/compression/string/vector_flatten.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/string/vector_flatten.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE source ( diff --git a/parser/testdata/corpus/sql/storage/compression/test_using_compression.test b/parser/testdata/corpus/sql/storage/compression/test_using_compression.test index 76a2284f..3225bf4a 100644 --- a/parser/testdata/corpus/sql/storage/compression/test_using_compression.test +++ b/parser/testdata/corpus/sql/storage/compression/test_using_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/test_using_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t( diff --git a/parser/testdata/corpus/sql/storage/compression/uncompressed/string_gap_reused_memory.test b/parser/testdata/corpus/sql/storage/compression/uncompressed/string_gap_reused_memory.test new file mode 100644 index 00000000..d832a4d0 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/uncompressed/string_gap_reused_memory.test @@ -0,0 +1,25 @@ +# source: test/sql/storage/compression/uncompressed/string_gap_reused_memory.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/string_gap_reused_memory_{row_count}.db' AS db +-- +ok +== +CREATE TEMP TABLE donor AS SELECT repeat('DONOR_MARKER_STRING', 50) || i::VARCHAR AS s FROM range(10000) r(i) +-- +ok +== +CREATE TABLE db.t AS SELECT repeat('A', 1000) || i::VARCHAR AS s FROM range({row_count}) r(i) +-- +error: Parser Error: syntax error at or near "}" +== +SELECT strpos(hex(content), hex('DONOR_MARKER_STRING')) FROM read_blob('{TEST_DIR}/string_gap_reused_memory_{row_count}.db') +-- +ok +== +SELECT count(*) = {row_count} AND bool_and(s = repeat('A', 1000) || rowid::VARCHAR) FROM db.t +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/storage/compression/uncompressed/uncompressed_count.test b/parser/testdata/corpus/sql/storage/compression/uncompressed/uncompressed_count.test index 300e332b..e29f4a6b 100644 --- a/parser/testdata/corpus/sql/storage/compression/uncompressed/uncompressed_count.test +++ b/parser/testdata/corpus/sql/storage/compression/uncompressed/uncompressed_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/uncompressed/uncompressed_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT compression FROM pragma_storage_info('t') WHERE column_name='b' AND compression='Uncompressed'; diff --git a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count.test index 6c2d8629..e5cb8abf 100644 --- a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count.test +++ b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/uncompressed/validity_corrupt_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE validity_corrupt_count diff --git a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count_boundary.test b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count_boundary.test index 11d18e03..c2ecf787 100644 --- a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count_boundary.test +++ b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_count_boundary.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/uncompressed/validity_corrupt_count_boundary.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE validity_corrupt_count_boundary diff --git a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_offset.test b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_offset.test index 56bc39e3..404e1a94 100644 --- a/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_offset.test +++ b/parser/testdata/corpus/sql/storage/compression/uncompressed/validity_corrupt_offset.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/uncompressed/validity_corrupt_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE validity_corrupt_offset diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/fetch_row.test b/parser/testdata/corpus/sql/storage/compression/zstd/fetch_row.test index 3febf153..ffc150ae 100644 --- a/parser/testdata/corpus/sql/storage/compression/zstd/fetch_row.test +++ b/parser/testdata/corpus/sql/storage/compression/zstd/fetch_row.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/zstd/fetch_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE big_string ( diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/nulls.test b/parser/testdata/corpus/sql/storage/compression/zstd/nulls.test index e99d374f..1ecba3ad 100644 --- a/parser/testdata/corpus/sql/storage/compression/zstd/nulls.test +++ b/parser/testdata/corpus/sql/storage/compression/zstd/nulls.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/zstd/nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/test_skipping.test b/parser/testdata/corpus/sql/storage/compression/zstd/test_skipping.test index 48200f11..c1ea6e15 100644 --- a/parser/testdata/corpus/sql/storage/compression/zstd/test_skipping.test +++ b/parser/testdata/corpus/sql/storage/compression/zstd/test_skipping.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/zstd/test_skipping.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='zstd'; diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd.test index 5f47c0ab..4e8e81e0 100644 --- a/parser/testdata/corpus/sql/storage/compression/zstd/zstd.test +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/zstd/zstd.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression = 'zstd' diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_compressed_size.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_compressed_size.test new file mode 100644 index 00000000..31b4c885 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_compressed_size.test @@ -0,0 +1,13 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_compressed_size.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_compressed_size; +-- +ok +== +SELECT compression FROM pragma_storage_info('t') WHERE column_name='s' AND compression='ZSTD' LIMIT 1; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_count.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_count.test new file mode 100644 index 00000000..2bd489bb --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_count.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_count.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_count; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_next_page_id.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_next_page_id.test new file mode 100644 index 00000000..d45680dd --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_next_page_id.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_next_page_id.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_next_page_id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_id.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_id.test new file mode 100644 index 00000000..5654149d --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_id.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_page_id.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_page_id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset.test new file mode 100644 index 00000000..5a31e5bb --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_page_offset.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_page_offset; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_boundary.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_boundary.test new file mode 100644 index 00000000..61d48a85 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_boundary.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_page_offset_boundary.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_page_offset_boundary; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_directory.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_directory.test new file mode 100644 index 00000000..542a974f --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_page_offset_directory.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_page_offset_directory.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_page_offset_directory; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_string_length.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_string_length.test new file mode 100644 index 00000000..0bf353c9 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_corrupt_string_length.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/compression/zstd/zstd_corrupt_string_length.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +USE zstd_corrupt_string_length; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_force_compression.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_force_compression.test index 9ce596a3..33b67915 100644 --- a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_force_compression.test +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_force_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/compression/zstd/zstd_force_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE zstd_data AS SELECT concat('thisisalongstring', i) str FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/storage/compression/zstd/zstd_packed_segment.test b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_packed_segment.test new file mode 100644 index 00000000..b2e72e4d --- /dev/null +++ b/parser/testdata/corpus/sql/storage/compression/zstd/zstd_packed_segment.test @@ -0,0 +1,29 @@ +# source: test/sql/storage/compression/zstd/zstd_packed_segment.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/zstd_packed_segment.db' AS db (STORAGE_VERSION 'v1.2.0', BLOCK_SIZE 16384); +-- +ok +== +CREATE TABLE db.t(p VARCHAR USING COMPRESSION UNCOMPRESSED, s VARCHAR USING COMPRESSION ZSTD); +-- +ok +== +INSERT INTO db.t SELECT CASE WHEN i=0 THEN repeat('b',809) ELSE repeat('a',7) END, 'string-' || lpad(i::VARCHAR,9,'0') FROM range(1000) t(i); +-- +ok +== +USE zstd_packed_segment; +-- +ok +== +SELECT compression, block_offset FROM pragma_storage_info('t') WHERE column_name='s' AND segment_type='VARCHAR'; +-- +ok +== +SELECT SUM(strlen(s)) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/concurrent_attach_if_not_exists_create.test b/parser/testdata/corpus/sql/storage/concurrent_attach_if_not_exists_create.test index c3e144ac..ece7211b 100644 --- a/parser/testdata/corpus/sql/storage/concurrent_attach_if_not_exists_create.test +++ b/parser/testdata/corpus/sql/storage/concurrent_attach_if_not_exists_create.test @@ -1,6 +1,6 @@ # source: test/sql/storage/concurrent_attach_if_not_exists_create.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach if not exists '{TEST_DIR}/concurrent_attach_{name}.duckdb' AS {name} diff --git a/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent.test b/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent.test index 9e06d2db..a4b1caa4 100644 --- a/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent.test +++ b/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/constraints/foreignkey/foreign_key_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE pk_integers (i INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent_memory_limit.test b/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent_memory_limit.test index a273c87e..4bb41d44 100644 --- a/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent_memory_limit.test +++ b/parser/testdata/corpus/sql/storage/constraints/foreignkey/foreign_key_persistent_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/constraints/foreignkey/foreign_key_persistent_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET memory_limit = '1792kB'; diff --git a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_dos.test b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_dos.test index 82e89a1a..5f271163 100644 --- a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_dos.test +++ b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_dos.test @@ -1,6 +1,6 @@ # source: test/sql/storage/corrupt/block_alloc_size_dos.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/block_alloc_size_corrupt_dos.db' AS corrupt_db (READ_ONLY) diff --git a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_max.test b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_max.test index f7c5738c..675a60ed 100644 --- a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_max.test +++ b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_max.test @@ -1,6 +1,6 @@ # source: test/sql/storage/corrupt/block_alloc_size_max.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/block_alloc_size_corrupt_max.db' AS corrupt_db (READ_ONLY) diff --git a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_underflow.test b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_underflow.test index b8a44075..15cb7ecb 100644 --- a/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_underflow.test +++ b/parser/testdata/corpus/sql/storage/corrupt/block_alloc_size_underflow.test @@ -1,6 +1,6 @@ # source: test/sql/storage/corrupt/block_alloc_size_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/block_alloc_size_corrupt_underflow.db' AS corrupt_db (READ_ONLY) diff --git a/parser/testdata/corpus/sql/storage/corrupt/corrupt_catalog_entry.test b/parser/testdata/corpus/sql/storage/corrupt/corrupt_catalog_entry.test index 55a83109..231d6ac0 100644 --- a/parser/testdata/corpus/sql/storage/corrupt/corrupt_catalog_entry.test +++ b/parser/testdata/corpus/sql/storage/corrupt/corrupt_catalog_entry.test @@ -1,6 +1,6 @@ # source: test/sql/storage/corrupt/corrupt_catalog_entry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/duckdb_fuzzer_4671.db' AS corrupt_db (READ_ONLY) diff --git a/parser/testdata/corpus/sql/storage/corrupt/corrupt_encoding_overflow.test b/parser/testdata/corpus/sql/storage/corrupt/corrupt_encoding_overflow.test index 77b5e0ee..27fba093 100644 --- a/parser/testdata/corpus/sql/storage/corrupt/corrupt_encoding_overflow.test +++ b/parser/testdata/corpus/sql/storage/corrupt/corrupt_encoding_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/storage/corrupt/corrupt_encoding_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/corrupt_wal_encoding.db' diff --git a/parser/testdata/corpus/sql/storage/corrupt/index_corrupt_expression.test b/parser/testdata/corpus/sql/storage/corrupt/index_corrupt_expression.test new file mode 100644 index 00000000..b1232fec --- /dev/null +++ b/parser/testdata/corpus/sql/storage/corrupt/index_corrupt_expression.test @@ -0,0 +1,33 @@ +# source: test/sql/storage/corrupt/index_corrupt_expression.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE volatile_key(i INTEGER) +-- +ok +== +CREATE INDEX volatile_index ON volatile_key((i || vector_type(i::VARCHAR))) +-- +ok +== +ATTACH '{TEST_DIR}/index_corrupt_expression.db' AS db2 +-- +ok +== +SET VARIABLE my_var = 'secret' +-- +ok +== +INSERT INTO db2.integers VALUES (1) +-- +ok +== +INSERT INTO db2.volatile_key VALUES (1) +-- +ok +== +INSERT INTO db2.lambda_key VALUES (['a']) +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/ctas_limit0_insert.test b/parser/testdata/corpus/sql/storage/ctas_limit0_insert.test new file mode 100644 index 00000000..239f3088 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/ctas_limit0_insert.test @@ -0,0 +1,77 @@ +# source: test/sql/storage/ctas_limit0_insert.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/ctas_limit0.duckdb' AS db (ROW_GROUP_SIZE 2048); +-- +ok +== +CREATE TEMP TABLE b AS SELECT range AS id FROM range(5000); +-- +ok +== +CREATE TABLE t AS SELECT id FROM b LIMIT 0; +-- +ok +== +INSERT INTO t SELECT id FROM b; +-- +ok +== +SELECT count(*) AS n, sum(id) AS s FROM t; +-- +ok +== +SELECT max(id) FROM t; +-- +ok +== +SELECT id FROM t ORDER BY id LIMIT 1; +-- +ok +== +SELECT count(*) FROM t WHERE id >= 0; +-- +ok +== +SELECT count(*) FROM t GROUP BY id % 2 ORDER BY 1 LIMIT 1; +-- +ok +== +CREATE TABLE u AS SELECT id FROM b WHERE false; +-- +ok +== +INSERT INTO u SELECT id FROM b; +-- +ok +== +SELECT count(*), sum(id) FROM u; +-- +ok +== +CREATE TABLE small AS SELECT id FROM b LIMIT 0; +-- +ok +== +INSERT INTO small SELECT id FROM b WHERE id < 10; +-- +ok +== +SELECT count(*) FROM small; +-- +ok +== +CREATE TABLE direct AS SELECT id FROM b LIMIT 0; +-- +ok +== +INSERT INTO direct SELECT id FROM b; +-- +ok +== +SELECT count(*), sum(id) FROM direct; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/delete/load_delete_modify.test b/parser/testdata/corpus/sql/storage/delete/load_delete_modify.test index eae9790c..65d72795 100644 --- a/parser/testdata/corpus/sql/storage/delete/load_delete_modify.test +++ b/parser/testdata/corpus/sql/storage/delete/load_delete_modify.test @@ -1,6 +1,6 @@ # source: test/sql/storage/delete/load_delete_modify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT * FROM generate_series(0,599999) t(i); diff --git a/parser/testdata/corpus/sql/storage/delete/repeated_deletes.test b/parser/testdata/corpus/sql/storage/delete/repeated_deletes.test index eb2f1244..753f1ce9 100644 --- a/parser/testdata/corpus/sql/storage/delete/repeated_deletes.test +++ b/parser/testdata/corpus/sql/storage/delete/repeated_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/delete/repeated_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (i INTEGER); diff --git a/parser/testdata/corpus/sql/storage/delete/test_store_deletes.test b/parser/testdata/corpus/sql/storage/delete/test_store_deletes.test index 518d89c3..458079d7 100644 --- a/parser/testdata/corpus/sql/storage/delete/test_store_deletes.test +++ b/parser/testdata/corpus/sql/storage/delete/test_store_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/delete/test_store_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (12, 21), (13, 22), (12, 21) diff --git a/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes.test b/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes.test index 5b02bbf3..59c16a22 100644 --- a/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes.test +++ b/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/storage/delete/test_unchanged_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS FROM range(4) t(i) diff --git a/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes_large.test b/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes_large.test index dee13a10..bcce29cd 100644 --- a/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes_large.test +++ b/parser/testdata/corpus/sql/storage/delete/test_unchanged_deletes_large.test @@ -1,6 +1,6 @@ # source: test/sql/storage/delete/test_unchanged_deletes_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (84) diff --git a/parser/testdata/corpus/sql/storage/distinct_statistics_sample.test b/parser/testdata/corpus/sql/storage/distinct_statistics_sample.test index 161f0e5b..15c0d983 100644 --- a/parser/testdata/corpus/sql/storage/distinct_statistics_sample.test +++ b/parser/testdata/corpus/sql/storage/distinct_statistics_sample.test @@ -1,6 +1,6 @@ # source: test/sql/storage/distinct_statistics_sample.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE clustered AS diff --git a/parser/testdata/corpus/sql/storage/distinct_statistics_storage.test b/parser/testdata/corpus/sql/storage/distinct_statistics_storage.test index 7e22320f..6a3af8ec 100644 --- a/parser/testdata/corpus/sql/storage/distinct_statistics_storage.test +++ b/parser/testdata/corpus/sql/storage/distinct_statistics_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/distinct_statistics_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select range % 10 i, range % 30 j from range(100) diff --git a/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_temp_file_size_accounting.test b/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_temp_file_size_accounting.test index c8d30c97..a065b5e7 100644 --- a/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_temp_file_size_accounting.test +++ b/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_temp_file_size_accounting.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/temp_files/encrypted_temp_file_size_accounting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET temp_directory='{TEST_DIR}/encrypted_temp_file_size_accounting_tmp' @@ -11,7 +11,7 @@ SET temp_file_encryption=true -- ok == -SET memory_limit='16MB' +SET memory_limit='1GB' -- ok == @@ -21,7 +21,7 @@ CREATE TEMPORARY TABLE big AS -- ok == -SET memory_limit='1GB' +SET memory_limit='16MB' -- ok == @@ -35,3 +35,15 @@ SELECT -- ok == +DROP TABLE big +-- +ok +== +SELECT COALESCE(sum(temporary_storage_bytes), 0)::BIGINT FROM duckdb_memory() +-- +ok +== +SELECT count(*) FROM duckdb_temporary_files() +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_tmp_file_setting.test b/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_tmp_file_setting.test index d04d9c00..5ff3c6ed 100644 --- a/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_tmp_file_setting.test +++ b/parser/testdata/corpus/sql/storage/encryption/temp_files/encrypted_tmp_file_setting.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/temp_files/encrypted_tmp_file_setting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET temp_directory='{TEST_DIR}/test_temp_dir' diff --git a/parser/testdata/corpus/sql/storage/encryption/temp_files/temp_directory_enable_external_access.test b/parser/testdata/corpus/sql/storage/encryption/temp_files/temp_directory_enable_external_access.test index d248e245..95c10248 100644 --- a/parser/testdata/corpus/sql/storage/encryption/temp_files/temp_directory_enable_external_access.test +++ b/parser/testdata/corpus/sql/storage/encryption/temp_files/temp_directory_enable_external_access.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/temp_files/temp_directory_enable_external_access.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted_temp_files_{cipher}.db' AS enc (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER 'GCM'); diff --git a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_blob_storage.test b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_blob_storage.test index 0388ab41..88591bc4 100644 --- a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_blob_storage.test +++ b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_blob_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/wal/encrypted_wal_blob_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted_blob_storage_{cipher}.db' AS enc (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER '{cipher}'); diff --git a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_lazy_creation.test b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_lazy_creation.test index 9b5e4780..565ebbe5 100644 --- a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_lazy_creation.test +++ b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_lazy_creation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/wal/encrypted_wal_lazy_creation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_no_wal_{cipher}.db' AS attach_no_wal (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER '{cipher}'); diff --git a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_pragmas.test b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_pragmas.test index 3838fc32..f4c0030e 100644 --- a/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_pragmas.test +++ b/parser/testdata/corpus/sql/storage/encryption/wal/encrypted_wal_pragmas.test @@ -1,6 +1,6 @@ # source: test/sql/storage/encryption/wal/encrypted_wal_pragmas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/encrypted_wal_restart_{cipher}.db' as enc (ENCRYPTION_KEY 'asdf', ENCRYPTION_CIPHER '{cipher}'); diff --git a/parser/testdata/corpus/sql/storage/evict_unpinned_without_temp_directory.test b/parser/testdata/corpus/sql/storage/evict_unpinned_without_temp_directory.test index d866c291..0767dd19 100644 --- a/parser/testdata/corpus/sql/storage/evict_unpinned_without_temp_directory.test +++ b/parser/testdata/corpus/sql/storage/evict_unpinned_without_temp_directory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/evict_unpinned_without_temp_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET temp_directory = ''; diff --git a/parser/testdata/corpus/sql/storage/extended_string_stats.test b/parser/testdata/corpus/sql/storage/extended_string_stats.test index 43e3f6d8..1c7611ea 100644 --- a/parser/testdata/corpus/sql/storage/extended_string_stats.test +++ b/parser/testdata/corpus/sql/storage/extended_string_stats.test @@ -1,6 +1,6 @@ # source: test/sql/storage/extended_string_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as from (values diff --git a/parser/testdata/corpus/sql/storage/extensions/extension_default.test b/parser/testdata/corpus/sql/storage/extensions/extension_default.test index 63907939..772840eb 100644 --- a/parser/testdata/corpus/sql/storage/extensions/extension_default.test +++ b/parser/testdata/corpus/sql/storage/extensions/extension_default.test @@ -1,6 +1,6 @@ # source: test/sql/storage/extensions/extension_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(v VARCHAR DEFAULT CURRENT_SCHEMA()) diff --git a/parser/testdata/corpus/sql/storage/extensions/extension_views.test b/parser/testdata/corpus/sql/storage/extensions/extension_views.test index dbaae464..65c056fc 100644 --- a/parser/testdata/corpus/sql/storage/extensions/extension_views.test +++ b/parser/testdata/corpus/sql/storage/extensions/extension_views.test @@ -1,6 +1,6 @@ # source: test/sql/storage/extensions/extension_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT current_schema(); diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_async_toggle.test b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_async_toggle.test index bd258aed..d46ee3df 100644 --- a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_async_toggle.test +++ b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_async_toggle.test @@ -1,6 +1,6 @@ # source: test/sql/storage/external_file_cache/external_file_cache_async_toggle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET async_threads=4 diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_block_size.test b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_block_size.test index 048df750..df7eea26 100644 --- a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_block_size.test +++ b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_block_size.test @@ -1,6 +1,6 @@ # source: test/sql/storage/external_file_cache/external_file_cache_block_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set cache_local_files=true; diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_metadata_memory.test b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_metadata_memory.test new file mode 100644 index 00000000..7c1f3fa5 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_metadata_memory.test @@ -0,0 +1,33 @@ +# source: test/sql/storage/external_file_cache/external_file_cache_metadata_memory.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET cache_local_files=true; +-- +ok +== +SET external_file_cache_local_max_block_size=4096; +-- +ok +== +COPY (SELECT i, md5(i::VARCHAR) AS s FROM range(100000) r(i)) TO '{TEST_DIR}/efc_metadata_memory.parquet' (FORMAT PARQUET); +-- +ok +== +SELECT sum(length(s)) FROM '{TEST_DIR}/efc_metadata_memory.parquet'; +-- +ok +== +SELECT count(*) > 100 FROM duckdb_external_file_cache(); +-- +ok +== +SELECT (SELECT memory_usage_bytes FROM duckdb_memory() WHERE tag = 'OBJECT_CACHE') >= 100 * (SELECT count(*) FROM duckdb_external_file_cache()); +-- +ok +== +SELECT (SELECT count(*) FROM duckdb_external_file_cache()), (SELECT memory_usage_bytes FROM duckdb_memory() WHERE tag = 'OBJECT_CACHE'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_validate.test b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_validate.test index d474776f..7e171e37 100644 --- a/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_validate.test +++ b/parser/testdata/corpus/sql/storage/external_file_cache/external_file_cache_validate.test @@ -1,6 +1,6 @@ # source: test/sql/storage/external_file_cache/external_file_cache_validate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select 1 as col1, 2 as col2 from range(100)) to '{TEST_DIR}/test_validate_cache.parquet'; diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/internal_issue_10700.test b/parser/testdata/corpus/sql/storage/external_file_cache/internal_issue_10700.test index 3f9b723a..aad3385d 100644 --- a/parser/testdata/corpus/sql/storage/external_file_cache/internal_issue_10700.test +++ b/parser/testdata/corpus/sql/storage/external_file_cache/internal_issue_10700.test @@ -1,16 +1,12 @@ # source: test/sql/storage/external_file_cache/internal_issue_10700.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET external_file_cache_spill=true; -- ok == -SET memory_limit='200MB'; --- -ok -== SET temp_directory='{TEST_DIR}/internal_issue_10700'; -- ok diff --git a/parser/testdata/corpus/sql/storage/external_file_cache/local_file_rewrite_same_second.test b/parser/testdata/corpus/sql/storage/external_file_cache/local_file_rewrite_same_second.test new file mode 100644 index 00000000..b3d30e4c --- /dev/null +++ b/parser/testdata/corpus/sql/storage/external_file_cache/local_file_rewrite_same_second.test @@ -0,0 +1,45 @@ +# source: test/sql/storage/external_file_cache/local_file_rewrite_same_second.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT {i}::INTEGER AS x) TO '{TEST_DIR}/rewrite_metadata.parquet' (USE_TMP_FILE false); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT max(x) = {i} FROM read_parquet('{TEST_DIR}/rewrite_metadata.parquet'); +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT ({i} + 10)::INTEGER AS x) TO '{TEST_DIR}/rewrite_metadata.parquet' (USE_TMP_FILE false); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT min(x) = {i} + 10, max(x) = {i} + 10 FROM read_parquet('{TEST_DIR}/rewrite_metadata.parquet'); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT count(*) FROM read_parquet('{TEST_DIR}/rewrite_metadata.parquet') WHERE x = {i} + 10; +-- +error: Parser Error: syntax error at or near "}" +== +RESET parquet_metadata_cache; +-- +ok +== +COPY (SELECT {i}::INTEGER AS x) TO '{TEST_DIR}/rewrite_contents.parquet' (USE_TMP_FILE false); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT x = {i} FROM read_parquet('{TEST_DIR}/rewrite_contents.parquet'); +-- +error: Parser Error: syntax error at or near "}" +== +COPY (SELECT ({i} + 10)::INTEGER AS x) TO '{TEST_DIR}/rewrite_contents.parquet' (USE_TMP_FILE false); +-- +error: Parser Error: syntax error at or near "}" +== +SELECT x = {i} + 10 FROM read_parquet('{TEST_DIR}/rewrite_contents.parquet'); +-- +error: Parser Error: syntax error at or near "}" +== diff --git a/parser/testdata/corpus/sql/storage/filter_pushdown_struct.test b/parser/testdata/corpus/sql/storage/filter_pushdown_struct.test index 2fd577e8..2ae910a9 100644 --- a/parser/testdata/corpus/sql/storage/filter_pushdown_struct.test +++ b/parser/testdata/corpus/sql/storage/filter_pushdown_struct.test @@ -1,6 +1,6 @@ # source: test/sql/storage/filter_pushdown_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (a STRUCT("id" VARCHAR), b STRUCT("id" VARCHAR)); diff --git a/parser/testdata/corpus/sql/storage/full_vector_delete_checkpoint.test b/parser/testdata/corpus/sql/storage/full_vector_delete_checkpoint.test index 2c23df3d..e032ed14 100644 --- a/parser/testdata/corpus/sql/storage/full_vector_delete_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/full_vector_delete_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/full_vector_delete_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i FROM range(8192) t(i); diff --git a/parser/testdata/corpus/sql/storage/issue3789_node_segment_tree.test b/parser/testdata/corpus/sql/storage/issue3789_node_segment_tree.test index 027d7e6b..de509d57 100644 --- a/parser/testdata/corpus/sql/storage/issue3789_node_segment_tree.test +++ b/parser/testdata/corpus/sql/storage/issue3789_node_segment_tree.test @@ -1,6 +1,6 @@ # source: test/sql/storage/issue3789_node_segment_tree.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE table1 (column1 integer, column2 integer) diff --git a/parser/testdata/corpus/sql/storage/issue7582_list_storage.test b/parser/testdata/corpus/sql/storage/issue7582_list_storage.test index 44700c53..734c966b 100644 --- a/parser/testdata/corpus/sql/storage/issue7582_list_storage.test +++ b/parser/testdata/corpus/sql/storage/issue7582_list_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/issue7582_list_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET wal_autocheckpoint='1GB'; diff --git a/parser/testdata/corpus/sql/storage/lazy_load/lazy_load_limit.test b/parser/testdata/corpus/sql/storage/lazy_load/lazy_load_limit.test index 6065bc68..2f449ff1 100644 --- a/parser/testdata/corpus/sql/storage/lazy_load/lazy_load_limit.test +++ b/parser/testdata/corpus/sql/storage/lazy_load/lazy_load_limit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/lazy_load/lazy_load_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO vals SELECT i, i::VARCHAR FROM generate_series(1000000) t(i) diff --git a/parser/testdata/corpus/sql/storage/legacy_function_call_subquery.test b/parser/testdata/corpus/sql/storage/legacy_function_call_subquery.test new file mode 100644 index 00000000..00d13615 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/legacy_function_call_subquery.test @@ -0,0 +1,28 @@ +# source: test/sql/storage/legacy_function_call_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/legacy_function_call_subquery.db' AS old (STORAGE_VERSION 'v1.5.0') +-- +ok +== +CREATE TABLE old.t AS SELECT range AS i FROM range(3) +-- +ok +== +CREATE VIEW old.v AS +SELECT {i: i, c: (SELECT count(*) FROM t t2 WHERE t2.i <= t.i)} AS s, + struct_insert({i: i}, c := (SELECT count(*) FROM t t2 WHERE t2.i <= t.i)) AS s2 +FROM t +-- +ok +== +ATTACH '{TEST_DIR}/legacy_function_call_subquery.db' AS old +-- +ok +== +FROM old.v ORDER BY s.i +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/legacy_named_arguments_upgrade.test b/parser/testdata/corpus/sql/storage/legacy_named_arguments_upgrade.test new file mode 100644 index 00000000..0836c276 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/legacy_named_arguments_upgrade.test @@ -0,0 +1,61 @@ +# source: test/sql/storage/legacy_named_arguments_upgrade.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH 'test/sql/storage/legacy_named_arguments_v1.db' AS legacy (READ_ONLY); +-- +ok +== +ATTACH '{TEST_DIR}/legacy_named_arguments_upgrade.db' AS upgraded (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +COPY FROM DATABASE legacy TO upgraded; +-- +ok +== +DETACH upgraded +-- +ok +== +DETACH legacy +-- +ok +== +ATTACH '{TEST_DIR}/legacy_named_arguments_upgrade.db' AS upgraded; +-- +ok +== +USE upgraded +-- +ok +== +FROM v_sum_x +-- +ok +== +FROM v_sum_arg +-- +ok +== +FROM v_lag +-- +ok +== +SELECT m_sum(c) FROM t LIMIT 1 +-- +ok +== +SELECT m_add(-3) +-- +ok +== +SELECT s FROM v_struct_pack ORDER BY s.a +-- +ok +== +SELECT m_struct(42) +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/many_checkpoints.test b/parser/testdata/corpus/sql/storage/many_checkpoints.test index ae518fe4..ca50a8d9 100644 --- a/parser/testdata/corpus/sql/storage/many_checkpoints.test +++ b/parser/testdata/corpus/sql/storage/many_checkpoints.test @@ -1,6 +1,6 @@ # source: test/sql/storage/many_checkpoints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM test diff --git a/parser/testdata/corpus/sql/storage/many_self_append.test b/parser/testdata/corpus/sql/storage/many_self_append.test index 59585fa4..a86e7d9f 100644 --- a/parser/testdata/corpus/sql/storage/many_self_append.test +++ b/parser/testdata/corpus/sql/storage/many_self_append.test @@ -1,6 +1,6 @@ # source: test/sql/storage/many_self_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO vals SELECT (CASE WHEN i % 2 = 0 THEN NULL ELSE i % 100 END)::TINYINT i FROM range(10) tbl(i) diff --git a/parser/testdata/corpus/sql/storage/memory/in_memory_disabled_zstd.test b/parser/testdata/corpus/sql/storage/memory/in_memory_disabled_zstd.test index c6f41fbd..82415621 100644 --- a/parser/testdata/corpus/sql/storage/memory/in_memory_disabled_zstd.test +++ b/parser/testdata/corpus/sql/storage/memory/in_memory_disabled_zstd.test @@ -1,6 +1,6 @@ # source: test/sql/storage/memory/in_memory_disabled_zstd.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach ':memory:' as db2 (compress); diff --git a/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse.test b/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse.test index 31d84c69..8aa91f1a 100644 --- a/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse.test +++ b/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/full_table_metadata_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigtbl(i INT); diff --git a/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse_v7.test b/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse_v7.test index 79c8449b..0c859970 100644 --- a/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse_v7.test +++ b/parser/testdata/corpus/sql/storage/metadata/full_table_metadata_reuse_v7.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/full_table_metadata_reuse_v7.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_column_metadata_reuse=true diff --git a/parser/testdata/corpus/sql/storage/metadata/multi_table_metadata_reuse.test b/parser/testdata/corpus/sql/storage/metadata/multi_table_metadata_reuse.test index 25693553..a00f82f3 100644 --- a/parser/testdata/corpus/sql/storage/metadata/multi_table_metadata_reuse.test +++ b/parser/testdata/corpus/sql/storage/metadata/multi_table_metadata_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/multi_table_metadata_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET experimental_metadata_reuse=true; diff --git a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse.test b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse.test index deccc250..de96a426 100644 --- a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse.test +++ b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/partial_column_metadata_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wide_tbl AS SELECT diff --git a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_drop_column.test b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_drop_column.test index b00dcbdf..3cf090c9 100644 --- a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_drop_column.test +++ b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_drop_column.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/partial_column_metadata_reuse_drop_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/partial_reuse_drop_column.db' AS db1 (BLOCK_SIZE 16384, STORAGE_VERSION 'latest') diff --git a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_small_block.test b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_small_block.test index 027415f0..bf44ac5f 100644 --- a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_small_block.test +++ b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_small_block.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/partial_column_metadata_reuse_small_block.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/partial_reuse_carries_column_extras.db' (BLOCK_SIZE 16384, STORAGE_VERSION 'latest') diff --git a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_v7.test b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_v7.test index a1e999ca..2dca8f74 100644 --- a/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_v7.test +++ b/parser/testdata/corpus/sql/storage/metadata/partial_column_metadata_reuse_v7.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/partial_column_metadata_reuse_v7.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(DISTINCT column_name) FROM pragma_storage_info('wide_tbl', loaded_segments_only=true) diff --git a/parser/testdata/corpus/sql/storage/metadata/partial_table_metadata_reuse.test b/parser/testdata/corpus/sql/storage/metadata/partial_table_metadata_reuse.test index b41ca81a..737346cc 100644 --- a/parser/testdata/corpus/sql/storage/metadata/partial_table_metadata_reuse.test +++ b/parser/testdata/corpus/sql/storage/metadata/partial_table_metadata_reuse.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/partial_table_metadata_reuse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO bigtbl VALUES (NULL) diff --git a/parser/testdata/corpus/sql/storage/metadata/unchanged_table_statistics.test b/parser/testdata/corpus/sql/storage/metadata/unchanged_table_statistics.test index 63c6f752..d0320ff7 100644 --- a/parser/testdata/corpus/sql/storage/metadata/unchanged_table_statistics.test +++ b/parser/testdata/corpus/sql/storage/metadata/unchanged_table_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/storage/metadata/unchanged_table_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE stable(i INTEGER PRIMARY KEY, s VARCHAR, items INTEGER[]); @@ -19,7 +19,11 @@ ANALYZE stable; -- ok == -CREATE TABLE saved_stats AS SELECT stats(i) AS int_stats, stats(s) AS string_stats FROM stable LIMIT 1; +SET VARIABLE int_stats = (SELECT stats(i) FROM stable LIMIT 1); +-- +ok +== +SET VARIABLE string_stats = (SELECT stats(s) FROM stable LIMIT 1); -- ok == @@ -27,8 +31,8 @@ INSERT INTO changed VALUES ({iteration}); -- error: Parser Error: syntax error at or near "}" == -SELECT stats(i) IS NOT DISTINCT FROM (SELECT int_stats FROM saved_stats), - stats(s) IS NOT DISTINCT FROM (SELECT string_stats FROM saved_stats) +SELECT stats(i) IS NOT DISTINCT FROM getvariable('int_stats'), + stats(s) IS NOT DISTINCT FROM getvariable('string_stats') FROM stable LIMIT 1; -- ok @@ -61,10 +65,6 @@ SELECT count(*), sum(i), min(i), max(i) FROM stable; -- ok == -CREATE OR REPLACE TABLE saved_stats AS SELECT stats(i) AS int_stats, stats(s) AS string_stats FROM stable LIMIT 1; --- -ok -== INSERT INTO changed VALUES (4); -- ok diff --git a/parser/testdata/corpus/sql/storage/mix/test_update_delete_string.test b/parser/testdata/corpus/sql/storage/mix/test_update_delete_string.test index 34e79b09..fade12f0 100644 --- a/parser/testdata/corpus/sql/storage/mix/test_update_delete_string.test +++ b/parser/testdata/corpus/sql/storage/mix/test_update_delete_string.test @@ -1,6 +1,6 @@ # source: test/sql/storage/mix/test_update_delete_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b STRING); diff --git a/parser/testdata/corpus/sql/storage/mix/updates_deletes_big_table.test b/parser/testdata/corpus/sql/storage/mix/updates_deletes_big_table.test index 1da3b633..b8514f27 100644 --- a/parser/testdata/corpus/sql/storage/mix/updates_deletes_big_table.test +++ b/parser/testdata/corpus/sql/storage/mix/updates_deletes_big_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/mix/updates_deletes_big_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT a FROM range(0, 1000) tbl1(a), repeat(0, 100) tbl2(b) diff --git a/parser/testdata/corpus/sql/storage/mix/updates_deletes_persistent_segments.test b/parser/testdata/corpus/sql/storage/mix/updates_deletes_persistent_segments.test index 91bdae6d..b27da5be 100644 --- a/parser/testdata/corpus/sql/storage/mix/updates_deletes_persistent_segments.test +++ b/parser/testdata/corpus/sql/storage/mix/updates_deletes_persistent_segments.test @@ -1,6 +1,6 @@ # source: test/sql/storage/mix/updates_deletes_persistent_segments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/storage/multiple_clients_checkpoint_pending_updates.test b/parser/testdata/corpus/sql/storage/multiple_clients_checkpoint_pending_updates.test index 65072cac..4a5fe1f1 100644 --- a/parser/testdata/corpus/sql/storage/multiple_clients_checkpoint_pending_updates.test +++ b/parser/testdata/corpus/sql/storage/multiple_clients_checkpoint_pending_updates.test @@ -1,6 +1,6 @@ # source: test/sql/storage/multiple_clients_checkpoint_pending_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT * FROM range(1000000); diff --git a/parser/testdata/corpus/sql/storage/nan_min_statistics.test b/parser/testdata/corpus/sql/storage/nan_min_statistics.test index 5b486f29..f92216af 100644 --- a/parser/testdata/corpus/sql/storage/nan_min_statistics.test +++ b/parser/testdata/corpus/sql/storage/nan_min_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/storage/nan_min_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES ('nan'::{type}); diff --git a/parser/testdata/corpus/sql/storage/nested/struct_of_lists_unaligned.test b/parser/testdata/corpus/sql/storage/nested/struct_of_lists_unaligned.test index c2dfc683..af13cd4a 100644 --- a/parser/testdata/corpus/sql/storage/nested/struct_of_lists_unaligned.test +++ b/parser/testdata/corpus/sql/storage/nested/struct_of_lists_unaligned.test @@ -1,6 +1,6 @@ # source: test/sql/storage/nested/struct_of_lists_unaligned.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_list_2 (a integer, b STRUCT(c VARCHAR[], d VARCHAR[], e INTEGER[])); diff --git a/parser/testdata/corpus/sql/storage/null_byte_storage.test b/parser/testdata/corpus/sql/storage/null_byte_storage.test index 58ad0ca7..dcece3e0 100644 --- a/parser/testdata/corpus/sql/storage/null_byte_storage.test +++ b/parser/testdata/corpus/sql/storage/null_byte_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/null_byte_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_compression='{compr}' diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_alter_then_append.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_alter_then_append.test index a9237273..0956c5f1 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_alter_then_append.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_alter_then_append.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_alter_then_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET write_buffer_row_group_count = 1 diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_batch_insert_sub_rowgroup.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_batch_insert_sub_rowgroup.test index 6a42d9ce..c51911f3 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_batch_insert_sub_rowgroup.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_batch_insert_sub_rowgroup.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_batch_insert_sub_rowgroup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/batch_insert_sub_rowgroup.db' AS db (ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_commit_failure.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_commit_failure.test index 4b326c40..8a90c53c 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_commit_failure.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_commit_failure.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_commit_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET GLOBAL debug_verify_blocks = true; diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_cyclic_scan_single_thread.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_cyclic_scan_single_thread.test index 8dd8c646..01548f0f 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_cyclic_scan_single_thread.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_cyclic_scan_single_thread.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_cyclic_scan_single_thread.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET write_buffer_row_group_count=1; diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_delete.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_delete.test index 871d07d4..fc253ee5 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_delete.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_delete.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT * FROM range(1000000) diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_large_strings.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_large_strings.test index 4ffceda4..4dc80948 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_large_strings.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_large_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_large_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_skip_checkpoint_on_commit={skip_checkpoint} diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_not_trigger_checkpoint.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_not_trigger_checkpoint.test index 26045f97..45eaed4f 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_not_trigger_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_not_trigger_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_not_trigger_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold = '5 KB' diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_temp_table.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_temp_table.test index 0cea061a..ac50662b 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_temp_table.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_temp_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_temp_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT 42 i diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay.test index 0f485ef9..82da6964 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id BIGINT PRIMARY KEY, payload INTEGER); @@ -11,10 +11,6 @@ INSERT INTO t SELECT i, 0 FROM range(0, 260000) r(i); -- ok == -SET checkpoint_threshold = '1TB'; --- -ok -== SET write_buffer_row_group_count = 1; -- ok diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay_desync.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay_desync.test index ed8225c1..f9ad7f72 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay_desync.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay_desync.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_unique_index_wal_replay_desync.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_percentage = 0; diff --git a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_update.test b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_update.test index 67441751..04908245 100644 --- a/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_update.test +++ b/parser/testdata/corpus/sql/storage/optimistic_write/optimistic_write_update.test @@ -1,6 +1,6 @@ # source: test/sql/storage/optimistic_write/optimistic_write_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a=500000 WHERE a=0 diff --git a/parser/testdata/corpus/sql/storage/overflow_strings/blob_row_fetch.test b/parser/testdata/corpus/sql/storage/overflow_strings/blob_row_fetch.test index 4fbe1b84..8d828a6d 100644 --- a/parser/testdata/corpus/sql/storage/overflow_strings/blob_row_fetch.test +++ b/parser/testdata/corpus/sql/storage/overflow_strings/blob_row_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/storage/overflow_strings/blob_row_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/blob_row_fetch.db' AS db (BLOCK_SIZE 16384); diff --git a/parser/testdata/corpus/sql/storage/overflow_strings/null_overflow_string_memory.test b/parser/testdata/corpus/sql/storage/overflow_strings/null_overflow_string_memory.test index 913d2cb4..58e54e46 100644 --- a/parser/testdata/corpus/sql/storage/overflow_strings/null_overflow_string_memory.test +++ b/parser/testdata/corpus/sql/storage/overflow_strings/null_overflow_string_memory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/overflow_strings/null_overflow_string_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_drop_table.test b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_drop_table.test index 41def878..978c0e32 100644 --- a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_drop_table.test +++ b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_blocks/many_columns_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i0 INTEGER, i1 INTEGER, i2 INTEGER, i3 INTEGER, i4 INTEGER, i5 INTEGER, i6 INTEGER, i7 INTEGER, i8 INTEGER, i9 INTEGER, i10 INTEGER, i11 INTEGER, i12 INTEGER, i13 INTEGER, i14 INTEGER, i15 INTEGER, i16 INTEGER, i17 INTEGER, i18 INTEGER, i19 INTEGER, i20 INTEGER, i21 INTEGER, i22 INTEGER, i23 INTEGER, i24 INTEGER, i25 INTEGER, i26 INTEGER, i27 INTEGER, i28 INTEGER, i29 INTEGER, i30 INTEGER, i31 INTEGER, i32 INTEGER, i33 INTEGER, i34 INTEGER, i35 INTEGER, i36 INTEGER, i37 INTEGER, i38 INTEGER, i39 INTEGER, i40 INTEGER, i41 INTEGER, i42 INTEGER, i43 INTEGER, i44 INTEGER, i45 INTEGER, i46 INTEGER, i47 INTEGER, i48 INTEGER, i49 INTEGER, i50 INTEGER, i51 INTEGER, i52 INTEGER, i53 INTEGER, i54 INTEGER, i55 INTEGER, i56 INTEGER, i57 INTEGER, i58 INTEGER, i59 INTEGER, i60 INTEGER, i61 INTEGER, i62 INTEGER, i63 INTEGER, i64 INTEGER, i65 INTEGER, i66 INTEGER, i67 INTEGER, i68 INTEGER, i69 INTEGER, i70 INTEGER, i71 INTEGER, i72 INTEGER, i73 INTEGER, i74 INTEGER, i75 INTEGER, i76 INTEGER, i77 INTEGER, i78 INTEGER, i79 INTEGER, i80 INTEGER, i81 INTEGER, i82 INTEGER, i83 INTEGER, i84 INTEGER, i85 INTEGER, i86 INTEGER, i87 INTEGER, i88 INTEGER, i89 INTEGER, i90 INTEGER, i91 INTEGER, i92 INTEGER, i93 INTEGER, i94 INTEGER, i95 INTEGER, i96 INTEGER, i97 INTEGER, i98 INTEGER, i99 INTEGER); diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_rle.test b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_rle.test index b354e651..70dff926 100644 --- a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_rle.test +++ b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_rle.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_blocks/many_columns_rle.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT total_blocks * block_size < 10 * 262144 FROM pragma_database_size() diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_storage.test b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_storage.test index ce2617ee..c18129c3 100644 --- a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_storage.test +++ b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_blocks/many_columns_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*) from pragma_storage_info('integers') where block_id IS NULL; diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_strings.test b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_strings.test index a02fbdf0..9c468d40 100644 --- a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_strings.test +++ b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_blocks/many_columns_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(i0 VARCHAR, i1 VARCHAR, i2 VARCHAR, i3 VARCHAR, i4 VARCHAR, i5 VARCHAR, i6 VARCHAR, i7 VARCHAR, i8 VARCHAR, i9 VARCHAR, i10 VARCHAR, i11 VARCHAR, i12 VARCHAR, i13 VARCHAR, i14 VARCHAR, i15 VARCHAR, i16 VARCHAR, i17 VARCHAR, i18 VARCHAR, i19 VARCHAR, i20 VARCHAR, i21 VARCHAR, i22 VARCHAR, i23 VARCHAR, i24 VARCHAR, i25 VARCHAR, i26 VARCHAR, i27 VARCHAR, i28 VARCHAR, i29 VARCHAR, i30 VARCHAR, i31 VARCHAR, i32 VARCHAR, i33 VARCHAR, i34 VARCHAR, i35 VARCHAR, i36 VARCHAR, i37 VARCHAR, i38 VARCHAR, i39 VARCHAR, i40 VARCHAR, i41 VARCHAR, i42 VARCHAR, i43 VARCHAR, i44 VARCHAR, i45 VARCHAR, i46 VARCHAR, i47 VARCHAR, i48 VARCHAR, i49 VARCHAR, i50 VARCHAR, i51 VARCHAR, i52 VARCHAR, i53 VARCHAR, i54 VARCHAR, i55 VARCHAR, i56 VARCHAR, i57 VARCHAR, i58 VARCHAR, i59 VARCHAR, i60 VARCHAR, i61 VARCHAR, i62 VARCHAR, i63 VARCHAR, i64 VARCHAR, i65 VARCHAR, i66 VARCHAR, i67 VARCHAR, i68 VARCHAR, i69 VARCHAR, i70 VARCHAR, i71 VARCHAR, i72 VARCHAR, i73 VARCHAR, i74 VARCHAR, i75 VARCHAR, i76 VARCHAR, i77 VARCHAR, i78 VARCHAR, i79 VARCHAR, i80 VARCHAR, i81 VARCHAR, i82 VARCHAR, i83 VARCHAR, i84 VARCHAR, i85 VARCHAR, i86 VARCHAR, i87 VARCHAR, i88 VARCHAR, i89 VARCHAR, i90 VARCHAR, i91 VARCHAR, i92 VARCHAR, i93 VARCHAR, i94 VARCHAR, i95 VARCHAR, i96 VARCHAR, i97 VARCHAR, i98 VARCHAR, i99 VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_validity.test b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_validity.test index 8e82912a..5312c5e7 100644 --- a/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_validity.test +++ b/parser/testdata/corpus/sql/storage/partial_blocks/many_columns_validity.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_blocks/many_columns_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers (i1) VALUES (NULL); diff --git a/parser/testdata/corpus/sql/storage/partial_blocks/partial_block_tail_memory.test b/parser/testdata/corpus/sql/storage/partial_blocks/partial_block_tail_memory.test new file mode 100644 index 00000000..08a0ad74 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/partial_blocks/partial_block_tail_memory.test @@ -0,0 +1,25 @@ +# source: test/sql/storage/partial_blocks/partial_block_tail_memory.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET memory_limit='8MB' +-- +ok +== +SET temp_directory='' +-- +ok +== +CREATE TABLE t AS SELECT i, i::INTEGER AS j FROM range(5000000) t(i); +-- +ok +== +SELECT COUNT(*), SUM(i), SUM(j) FROM t +-- +ok +== +INSERT INTO t SELECT i, i::INTEGER FROM range(5000000) t(i) +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/partial_delete_checkpoint_mask.test b/parser/testdata/corpus/sql/storage/partial_delete_checkpoint_mask.test index 6f7c239b..50193762 100644 --- a/parser/testdata/corpus/sql/storage/partial_delete_checkpoint_mask.test +++ b/parser/testdata/corpus/sql/storage/partial_delete_checkpoint_mask.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_delete_checkpoint_mask.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i FROM range(1228800) t(i) diff --git a/parser/testdata/corpus/sql/storage/partial_delete_pending_compress.test b/parser/testdata/corpus/sql/storage/partial_delete_pending_compress.test index 93f7e3ac..64492618 100644 --- a/parser/testdata/corpus/sql/storage/partial_delete_pending_compress.test +++ b/parser/testdata/corpus/sql/storage/partial_delete_pending_compress.test @@ -1,6 +1,6 @@ # source: test/sql/storage/partial_delete_pending_compress.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA force_checkpoint diff --git a/parser/testdata/corpus/sql/storage/piecemeal_delete_checkpoint_compress.test b/parser/testdata/corpus/sql/storage/piecemeal_delete_checkpoint_compress.test index 43f8b293..c35f1909 100644 --- a/parser/testdata/corpus/sql/storage/piecemeal_delete_checkpoint_compress.test +++ b/parser/testdata/corpus/sql/storage/piecemeal_delete_checkpoint_compress.test @@ -1,6 +1,6 @@ # source: test/sql/storage/piecemeal_delete_checkpoint_compress.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM tbl WHERE i < 61440 AND i % 2 = 0 diff --git a/parser/testdata/corpus/sql/storage/pragma_storage_info_scan_type.test b/parser/testdata/corpus/sql/storage/pragma_storage_info_scan_type.test index 5d09faf4..ae783f4d 100644 --- a/parser/testdata/corpus/sql/storage/pragma_storage_info_scan_type.test +++ b/parser/testdata/corpus/sql/storage/pragma_storage_info_scan_type.test @@ -1,6 +1,6 @@ # source: test/sql/storage/pragma_storage_info_scan_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bp_tbl (a INTEGER) diff --git a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_pool.test b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_pool.test index 878b0256..9d28ddc2 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_pool.test +++ b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_pool.test @@ -1,13 +1,9 @@ # source: test/sql/storage/prefetch/async_native_scan_pool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT range AS i FROM range(1000000); -- ok == -SET storage_block_prefetch='debug_force_always' --- -ok -== diff --git a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_positional.test b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_positional.test index e38552e8..0c14ff22 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_positional.test +++ b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_positional.test @@ -1,6 +1,6 @@ # source: test/sql/storage/prefetch/async_native_scan_positional.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT range AS i FROM range(100000); diff --git a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead.test b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead.test index eadfaeda..da7c2d88 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead.test +++ b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead.test @@ -1,6 +1,6 @@ # source: test/sql/storage/prefetch/async_native_scan_read_ahead.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM integers WHERE i % 10 = 0; diff --git a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_concurrent.test b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_concurrent.test index 125cd120..c41f1d07 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_concurrent.test +++ b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_concurrent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/prefetch/async_native_scan_read_ahead_concurrent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT range AS i FROM range(500000); diff --git a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_pruning.test b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_pruning.test index 081d54cd..079ff1d5 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_pruning.test +++ b/parser/testdata/corpus/sql/storage/prefetch/async_native_scan_read_ahead_pruning.test @@ -1,12 +1,8 @@ # source: test/sql/storage/prefetch/async_native_scan_read_ahead_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET force_compression='bitpacking' --- -ok -== CREATE TABLE integers AS SELECT (range * 1000000 + (hash(range) % 1000000))::BIGINT AS i FROM range(1000000); -- ok diff --git a/parser/testdata/corpus/sql/storage/prefetch/prefetch_run_size_cap.test b/parser/testdata/corpus/sql/storage/prefetch/prefetch_run_size_cap.test index aa9b4cc5..402d35a9 100644 --- a/parser/testdata/corpus/sql/storage/prefetch/prefetch_run_size_cap.test +++ b/parser/testdata/corpus/sql/storage/prefetch/prefetch_run_size_cap.test @@ -1,16 +1,12 @@ # source: test/sql/storage/prefetch/prefetch_run_size_cap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/prefetch_run_cap.db' AS cap_db (ROW_GROUP_SIZE 8388608, STORAGE_VERSION 'v1.2.0') -- ok == -SET force_compression='uncompressed' --- -ok -== CREATE TABLE cap_db.t AS SELECT random() AS d FROM range(8388608) -- ok diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_basic.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_basic.test index 8672e556..a2240f87 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_basic.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_basic.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_test.db' diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_generated.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_generated.test index 8022ff33..37fe295f 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_generated.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_generated.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_generated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_generated.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_index.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_index.test index 8f220ef1..8bc6de3e 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_index.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_index.db' diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_schema.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_schema.test index 379a9e72..37469d41 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_schema.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_schema.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_schema.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_suggested.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_suggested.test index 8f185245..f18f3418 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_suggested.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_suggested.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_suggested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_suggested.db' AS suggested diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_top_n.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_top_n.test index 5ad247b3..adfce27f 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_top_n.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_top_n.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_top_n.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_top_n{i}.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_transaction.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_transaction.test index ab50071a..dec1408d 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_transaction.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_transaction.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_union_by_name.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_union_by_name.test index 848f6e4c..f7480e4d 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_union_by_name.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_unionbyname1.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_virtual_columns.test b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_virtual_columns.test index cb7aed2d..7b69270a 100644 --- a/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_virtual_columns.test +++ b/parser/testdata/corpus/sql/storage/read_duckdb/read_duckdb_virtual_columns.test @@ -1,6 +1,6 @@ # source: test/sql/storage/read_duckdb/read_duckdb_virtual_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/read_duckdb_virt{dbindex}.db' AS rd diff --git a/parser/testdata/corpus/sql/storage/reclaim_space/reclaim_space_drop_table_optimistic.test b/parser/testdata/corpus/sql/storage/reclaim_space/reclaim_space_drop_table_optimistic.test index d4b11b47..dc5f3739 100644 --- a/parser/testdata/corpus/sql/storage/reclaim_space/reclaim_space_drop_table_optimistic.test +++ b/parser/testdata/corpus/sql/storage/reclaim_space/reclaim_space_drop_table_optimistic.test @@ -1,12 +1,8 @@ # source: test/sql/storage/reclaim_space/reclaim_space_drop_table_optimistic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET preserve_insertion_order = false; --- -ok -== SET checkpoint_threshold = '999999GB'; -- ok diff --git a/parser/testdata/corpus/sql/storage/reclaim_space/test_reclaim_space_update_large_string.test b/parser/testdata/corpus/sql/storage/reclaim_space/test_reclaim_space_update_large_string.test index 687a39c8..6f2ec972 100644 --- a/parser/testdata/corpus/sql/storage/reclaim_space/test_reclaim_space_update_large_string.test +++ b/parser/testdata/corpus/sql/storage/reclaim_space/test_reclaim_space_update_large_string.test @@ -1,6 +1,6 @@ # source: test/sql/storage/reclaim_space/test_reclaim_space_update_large_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_compression = 'uncompressed'; diff --git a/parser/testdata/corpus/sql/storage/revert_append_after_checkpoint_new_row_group.test b/parser/testdata/corpus/sql/storage/revert_append_after_checkpoint_new_row_group.test new file mode 100644 index 00000000..37e97c08 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/revert_append_after_checkpoint_new_row_group.test @@ -0,0 +1,53 @@ +# source: test/sql/storage/revert_append_after_checkpoint_new_row_group.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE v (i INTEGER, x VARIANT) +-- +ok +== +INSERT INTO v SELECT i, i::VARIANT FROM range(100000) r(i) +-- +ok +== +CREATE TABLE g (i INTEGER, p GEOMETRY) +-- +ok +== +INSERT INTO g SELECT i, ('POINT(' || i || ' ' || i || ')')::GEOMETRY FROM range(100000) r(i) +-- +ok +== +INSERT INTO v VALUES (-1, 'a'::VARIANT) +-- +ok +== +INSERT INTO g VALUES (-1, 'POINT(-1 -1)'::GEOMETRY) +-- +ok +== +INSERT INTO v VALUES (-2, 'b'::VARIANT) +-- +ok +== +INSERT INTO g VALUES (-2, 'POINT(-2 -2)'::GEOMETRY) +-- +ok +== +SELECT count(*), sum(i), count(*) FILTER (WHERE x::VARCHAR = 'b') FROM v +-- +ok +== +SELECT count(*), sum(i), count(*) FILTER (WHERE p::VARCHAR = 'POINT (-2 -2)') FROM g +-- +ok +== +SELECT count(*), sum(i) FROM v +-- +ok +== +SELECT count(*), sum(i) FROM g +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/revert_append_nested_list.test b/parser/testdata/corpus/sql/storage/revert_append_nested_list.test new file mode 100644 index 00000000..0094fe1b --- /dev/null +++ b/parser/testdata/corpus/sql/storage/revert_append_nested_list.test @@ -0,0 +1,25 @@ +# source: test/sql/storage/revert_append_nested_list.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE n (i INTEGER, l INTEGER[][], l3 INTEGER[][][]) +-- +ok +== +INSERT INTO n VALUES (0, [], [[]]) +-- +ok +== +INSERT INTO n VALUES (1, [[1, 2, 3]], [[[1, 2], [3]]]) +-- +ok +== +INSERT INTO n VALUES (2, [[4]], [[[4]]]) +-- +ok +== +SELECT i, l, l3 FROM n ORDER BY i +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/revert_append_partial_vector.test b/parser/testdata/corpus/sql/storage/revert_append_partial_vector.test new file mode 100644 index 00000000..e182338a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/revert_append_partial_vector.test @@ -0,0 +1,89 @@ +# source: test/sql/storage/revert_append_partial_vector.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/revert_append_partial_vector.db' AS db (STORAGE_VERSION 'v1.0.0') +-- +ok +== +CREATE TABLE db.t (id INTEGER PRIMARY KEY, v VARCHAR) +-- +ok +== +INSERT INTO db.t SELECT i, 'a' FROM range(100) r(i) +-- +ok +== +DELETE FROM db.t WHERE id < 10 +-- +ok +== +CREATE TABLE db.u (id INTEGER PRIMARY KEY, v VARCHAR) +-- +ok +== +INSERT INTO db.u SELECT i, 'a' FROM range(100) r(i) +-- +ok +== +DELETE FROM db.u WHERE id < 10 +-- +ok +== +INSERT INTO db.t SELECT i, 'x' FROM range(100, 600) r(i) +-- +ok +== +COMMENT ON TABLE db.t IS 'x' +-- +ok +== +INSERT INTO db.u SELECT i, 'x' FROM range(100, 600) r(i) +-- +ok +== +ALTER TABLE db.u RENAME COLUMN v TO w +-- +ok +== +INSERT INTO db.t VALUES (1000, 'b') +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE id >= 1000) FROM db.t +-- +ok +== +ATTACH '{TEST_DIR}/revert_append_partial_vector.db' AS db +-- +ok +== +INSERT INTO db.u SELECT i, 'b' FROM range(1000, 1600) r(i) +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE id >= 1000) FROM db.u +-- +ok +== +CREATE TABLE db.w (id INTEGER PRIMARY KEY, v VARCHAR) +-- +ok +== +INSERT INTO db.w SELECT i, 'a' FROM range(2148) r(i) +-- +ok +== +DELETE FROM db.w WHERE id >= 2048 +-- +ok +== +INSERT INTO db.w SELECT i, 'b' FROM range(10000, 10005) r(i) +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE id >= 10000) FROM db.w +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/row_group_fetch_bulk.test b/parser/testdata/corpus/sql/storage/row_group_fetch_bulk.test index d2e9a4eb..38557e69 100644 --- a/parser/testdata/corpus/sql/storage/row_group_fetch_bulk.test +++ b/parser/testdata/corpus/sql/storage/row_group_fetch_bulk.test @@ -1,6 +1,6 @@ # source: test/sql/storage/row_group_fetch_bulk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE big ( diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/alter_preserves_rowid_gaps.test b/parser/testdata/corpus/sql/storage/rowid_gaps/alter_preserves_rowid_gaps.test index b02a2ee5..44d4922c 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/alter_preserves_rowid_gaps.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/alter_preserves_rowid_gaps.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/alter_preserves_rowid_gaps.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_alter.db' AS rowid_gap_alter (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/append_after_gap_checkpoint.test b/parser/testdata/corpus/sql/storage/rowid_gaps/append_after_gap_checkpoint.test index f45a711c..c6b438a2 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/append_after_gap_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/append_after_gap_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/append_after_gap_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_append_latest.db' AS rowid_gap_append_latest (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/bulk_append_after_gap_checkpoint.test b/parser/testdata/corpus/sql/storage/rowid_gaps/bulk_append_after_gap_checkpoint.test index 0c89e5d3..d34288e0 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/bulk_append_after_gap_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/bulk_append_after_gap_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/bulk_append_after_gap_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_bulk_append.db' AS rowid_gap_bulk_append (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_checkpoint_drop_row_group.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_checkpoint_drop_row_group.test index d3271c8b..187092ec 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_checkpoint_drop_row_group.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_checkpoint_drop_row_group.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_checkpoint_drop_row_group.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_vacuum_indexed.db' AS rowid_gap_vacuum_idx (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_dense_vacuum_merge.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_dense_vacuum_merge.test index 814c24d7..bb08ff88 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_dense_vacuum_merge.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_dense_vacuum_merge.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_dense_vacuum_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_dense_vacuum_indexed.db' AS rowid_gap_dense_vacuum (ROW_GROUP_SIZE 4096); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_legacy_no_remap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_legacy_no_remap.test index 4b576f1f..088919d2 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_legacy_no_remap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_legacy_no_remap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_geometry_legacy_no_remap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_geom_legacy.db' AS geom_legacy (STORAGE_VERSION 'v1.4.0', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_vacuum_remap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_vacuum_remap.test index 5dac27ce..aea989a2 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_vacuum_remap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_geometry_vacuum_remap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_geometry_vacuum_remap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_remap_geom.db' AS remap_geom (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_incremental_vacuum_remap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_incremental_vacuum_remap.test index 4a9a3360..df786ef1 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_incremental_vacuum_remap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_incremental_vacuum_remap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_incremental_vacuum_remap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_incremental_remap.db' AS rowid_gap_remap (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_live_vacuum_no_rebuild.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_live_vacuum_no_rebuild.test index 1557258e..d97846f2 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_live_vacuum_no_rebuild.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_live_vacuum_no_rebuild.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_live_vacuum_no_rebuild.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_live_vacuum_no_rebuild.db' AS rowid_gap_live_vacuum (STORAGE_VERSION 'v1.4.0'); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_old_storage_keeps_deleted_row_group.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_old_storage_keeps_deleted_row_group.test index 359a37a9..f7fe32c5 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_old_storage_keeps_deleted_row_group.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_old_storage_keeps_deleted_row_group.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_old_storage_keeps_deleted_row_group.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_indexed_old_storage.db' AS rowid_gap_old_storage_idx (STORAGE_VERSION 'v1.5.0', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_rebuild_fallback_then_remap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_rebuild_fallback_then_remap.test index 094ff0c0..02624b9a 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_rebuild_fallback_then_remap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_rebuild_fallback_then_remap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_rebuild_fallback_then_remap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_rebuild_then_remap.db' AS rebuild_then_remap (STORAGE_VERSION 'v1.5.0', ROW_GROUP_SIZE 2048, vacuum_rebuild_indexes 100000); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_duplicate_key_across_tasks.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_duplicate_key_across_tasks.test index 52d870be..8cda78df 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_duplicate_key_across_tasks.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_duplicate_key_across_tasks.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_remap_duplicate_key_across_tasks.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_remap_tasks.db' AS remap_tasks (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_merges_across_gap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_merges_across_gap.test index 579e2039..0793df01 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_merges_across_gap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_merges_across_gap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_remap_merges_across_gap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_remap_across_gap.db' AS remap_across_gap (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 4096); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_partial_chunk.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_partial_chunk.test index 67847d82..63644743 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_partial_chunk.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_partial_chunk.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_remap_partial_chunk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_remap_partial.db' AS remap_partial (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_same_key_rowid_collision.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_same_key_rowid_collision.test index e19f33d0..c6000094 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_same_key_rowid_collision.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexed_remap_same_key_rowid_collision.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexed_remap_same_key_rowid_collision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_remap_collision.db' AS remap_collision (STORAGE_VERSION 'latest', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/indexes_geometry_legacy_no_merge_across_gap.test b/parser/testdata/corpus/sql/storage/rowid_gaps/indexes_geometry_legacy_no_merge_across_gap.test index 9bfc9ce4..5dcff630 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/indexes_geometry_legacy_no_merge_across_gap.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/indexes_geometry_legacy_no_merge_across_gap.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/indexes_geometry_legacy_no_merge_across_gap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_geom_no_merge.db' AS geom_no_merge (STORAGE_VERSION 'v1.4.0', ROW_GROUP_SIZE 4096); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/leading_gap_lookup.test b/parser/testdata/corpus/sql/storage/rowid_gaps/leading_gap_lookup.test index a464b52b..e386a5a1 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/leading_gap_lookup.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/leading_gap_lookup.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/leading_gap_lookup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_lookup.db' AS rowid_gap_lookup_db (STORAGE_VERSION 'latest'); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/old_storage_dense_rewrite.test b/parser/testdata/corpus/sql/storage/rowid_gaps/old_storage_dense_rewrite.test index c8c1305c..78a6d4a1 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/old_storage_dense_rewrite.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/old_storage_dense_rewrite.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/old_storage_dense_rewrite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/rowid_gap_old_storage_dense.db' AS rowid_gap_old_storage_dense (STORAGE_VERSION 'v1.5.0', ROW_GROUP_SIZE 2048); diff --git a/parser/testdata/corpus/sql/storage/rowid_gaps/wal_replay_after_gap_checkpoint.test b/parser/testdata/corpus/sql/storage/rowid_gaps/wal_replay_after_gap_checkpoint.test index 4b6f6f88..216527e9 100644 --- a/parser/testdata/corpus/sql/storage/rowid_gaps/wal_replay_after_gap_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/rowid_gaps/wal_replay_after_gap_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/rowid_gaps/wal_replay_after_gap_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i FROM range(368640) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/shutdown_create_index.test b/parser/testdata/corpus/sql/storage/shutdown_create_index.test index b64f49b9..bc49d760 100644 --- a/parser/testdata/corpus/sql/storage/shutdown_create_index.test +++ b/parser/testdata/corpus/sql/storage/shutdown_create_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/shutdown_create_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (13, 22); diff --git a/parser/testdata/corpus/sql/storage/shutdown_running_transaction.test b/parser/testdata/corpus/sql/storage/shutdown_running_transaction.test index 8952ba64..a642f153 100644 --- a/parser/testdata/corpus/sql/storage/shutdown_running_transaction.test +++ b/parser/testdata/corpus/sql/storage/shutdown_running_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/storage/shutdown_running_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (22, 23); diff --git a/parser/testdata/corpus/sql/storage/shutdown_unique_index.test b/parser/testdata/corpus/sql/storage/shutdown_unique_index.test index 6fbf091d..3c3bdde1 100644 --- a/parser/testdata/corpus/sql/storage/shutdown_unique_index.test +++ b/parser/testdata/corpus/sql/storage/shutdown_unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/shutdown_unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (12, 24) diff --git a/parser/testdata/corpus/sql/storage/storage_exceeds_block_large_string.test b/parser/testdata/corpus/sql/storage/storage_exceeds_block_large_string.test index 3ae84518..a4786a9b 100644 --- a/parser/testdata/corpus/sql/storage/storage_exceeds_block_large_string.test +++ b/parser/testdata/corpus/sql/storage/storage_exceeds_block_large_string.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_exceeds_block_large_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a VARCHAR, j BIGINT); diff --git a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block.test b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block.test index 9504acd2..de4f874e 100644 --- a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block.test +++ b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_exceeds_single_block.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (13, 22), (12, 21), (NULL, NULL) diff --git a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_strings.test b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_strings.test index 91791458..a725be14 100644 --- a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_strings.test +++ b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_exceeds_single_block_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('a'), ('bb'), ('ccc'), ('dddd'), ('eeeee') diff --git a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_types.test b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_types.test index 19cfa789..2d60b6cd 100644 --- a/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_types.test +++ b/parser/testdata/corpus/sql/storage/storage_exceeds_single_block_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_exceeds_single_block_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b BIGINT); diff --git a/parser/testdata/corpus/sql/storage/storage_option_coverage.test b/parser/testdata/corpus/sql/storage/storage_option_coverage.test index 03f4c605..75fa670a 100644 --- a/parser/testdata/corpus/sql/storage/storage_option_coverage.test +++ b/parser/testdata/corpus/sql/storage/storage_option_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_option_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/compressed_disk.db' AS compressed_disk (COMPRESS false) @@ -43,7 +43,3 @@ SELECT * FROM encrypted_mmap.t -- ok == -SET force_mbedtls_unsafe = false --- -ok -== diff --git a/parser/testdata/corpus/sql/storage/storage_types.test b/parser/testdata/corpus/sql/storage/storage_types.test index 8f2d56ac..fe034afb 100644 --- a/parser/testdata/corpus/sql/storage/storage_types.test +++ b/parser/testdata/corpus/sql/storage/storage_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a_{type} AS SELECT range::{type} i FROM range(100) diff --git a/parser/testdata/corpus/sql/storage/storage_version_65.test b/parser/testdata/corpus/sql/storage/storage_version_65.test index 7da47248..ec28e4e5 100644 --- a/parser/testdata/corpus/sql/storage/storage_version_65.test +++ b/parser/testdata/corpus/sql/storage/storage_version_65.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_version_65.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/storage_versions65.db' diff --git a/parser/testdata/corpus/sql/storage/storage_versions.test b/parser/testdata/corpus/sql/storage/storage_versions.test index 4ded55c7..f662b6b4 100644 --- a/parser/testdata/corpus/sql/storage/storage_versions.test +++ b/parser/testdata/corpus/sql/storage/storage_versions.test @@ -1,6 +1,6 @@ # source: test/sql/storage/storage_versions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{DATA_DIR}/storage/empty64.db' (READ_ONLY); diff --git a/parser/testdata/corpus/sql/storage/store_group_order_all.test b/parser/testdata/corpus/sql/storage/store_group_order_all.test index b1536bd0..6727c640 100644 --- a/parser/testdata/corpus/sql/storage/store_group_order_all.test +++ b/parser/testdata/corpus/sql/storage/store_group_order_all.test @@ -1,6 +1,6 @@ # source: test/sql/storage/store_group_order_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers( diff --git a/parser/testdata/corpus/sql/storage/temp_directory/failed_spill_keeps_block_evictable.test b/parser/testdata/corpus/sql/storage/temp_directory/failed_spill_keeps_block_evictable.test index e10941eb..73fdd9c7 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/failed_spill_keeps_block_evictable.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/failed_spill_keeps_block_evictable.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/failed_spill_keeps_block_evictable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE t AS SELECT range AS i, repeat('x', 200)::VARCHAR AS s FROM range(400000); diff --git a/parser/testdata/corpus/sql/storage/temp_directory/initialization_retry.test b/parser/testdata/corpus/sql/storage/temp_directory/initialization_retry.test index 0730b98f..60c84593 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/initialization_retry.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/initialization_retry.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/initialization_retry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT 42) TO '{TEST_DIR}/temporary_directory_regular_file.csv'; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_error.test b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_error.test index c9a95062..88a17ae9 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_error.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_error.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/max_swap_space_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set temp_directory='{TEST_DIR}/max_swap_space_reached' @@ -43,10 +43,6 @@ CREATE OR REPLACE TABLE t2 AS SELECT random() FROM range(200000); -- ok == -SELECT count(*) FROM t2; --- -ok -== SET max_temp_directory_size='16MiB'; -- ok diff --git a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_explicit.test b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_explicit.test index 6899f958..0df2c25e 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_explicit.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_explicit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/max_swap_space_explicit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set max_temp_directory_size='15gb' diff --git a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_inmemory.test b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_inmemory.test index 7c973cb0..5086a86c 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_inmemory.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_inmemory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/max_swap_space_inmemory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set temp_directory=''; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_persistent.test b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_persistent.test index 76cd9228..2e33cecc 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_persistent.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/max_swap_space_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('temp_directory').split('/')[-1]; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_unlimited.test b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_unlimited.test index 57608e1f..b64bead4 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_unlimited.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/max_swap_space_unlimited.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/max_swap_space_unlimited.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA max_temp_directory_size='-1'; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/offload_failure_accounting.test b/parser/testdata/corpus/sql/storage/temp_directory/offload_failure_accounting.test index 24e6405f..438f0a64 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/offload_failure_accounting.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/offload_failure_accounting.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/offload_failure_accounting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA memory_limit='8MB'; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments.test b/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments.test new file mode 100644 index 00000000..da2658f0 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments.test @@ -0,0 +1,63 @@ +# source: test/sql/storage/temp_directory/offload_small_transient_segments.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET temp_directory='{TEST_DIR}/offload_small_transient_segments' +-- +ok +== +SET memory_limit='32MB' +-- +ok +== +CREATE TABLE t AS +SELECT i, + CASE WHEN i % 7 = 0 THEN NULL ELSE i::INTEGER END AS j, + {'a': i, 'b': CASE WHEN i % 3 = 0 THEN NULL ELSE i * 2 END} AS s, + [i, CASE WHEN i % 5 = 0 THEN NULL ELSE i + 1 END] AS l +FROM range(8000000) t(i); +-- +ok +== +SELECT COUNT(*), SUM(i), COUNT(j), SUM(j), COUNT(s.b), SUM(s.b), SUM(list_sum(l)) FROM t +-- +ok +== +SELECT COUNT(*) FROM t WHERE (j IS NULL) != (i % 7 = 0) OR (s.b IS NULL) != (i % 3 = 0) OR (l[2] IS NULL) != (i % 5 = 0) +-- +ok +== +CREATE TABLE wide AS +SELECT ((i + 0) % 100)::TINYINT AS c0, + ((i + 1) % 100)::TINYINT AS c1, + ((i + 2) % 100)::TINYINT AS c2, + ((i + 3) % 100)::TINYINT AS c3, + ((i + 4) % 100)::TINYINT AS c4, + ((i + 5) % 100)::TINYINT AS c5, + ((i + 6) % 100)::TINYINT AS c6, + ((i + 7) % 100)::TINYINT AS c7, + ((i + 8) % 100)::TINYINT AS c8, + ((i + 9) % 100)::TINYINT AS c9, + ((i + 10) % 100)::TINYINT AS c10, + ((i + 11) % 100)::TINYINT AS c11, + ((i + 12) % 100)::TINYINT AS c12, + ((i + 13) % 100)::TINYINT AS c13, + ((i + 14) % 100)::TINYINT AS c14, + ((i + 15) % 100)::TINYINT AS c15, + ((i + 16) % 100)::TINYINT AS c16, + ((i + 17) % 100)::TINYINT AS c17, + ((i + 18) % 100)::TINYINT AS c18, + ((i + 19) % 100)::TINYINT AS c19 +FROM range(8000000) t(i); +-- +ok +== +SET memory_limit='2MB' +-- +ok +== +SELECT COUNT(*), SUM(c0), SUM(c19) FROM wide +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments_no_optimistic_write.test b/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments_no_optimistic_write.test new file mode 100644 index 00000000..65e776e8 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/temp_directory/offload_small_transient_segments_no_optimistic_write.test @@ -0,0 +1,9 @@ +# source: test/sql/storage/temp_directory/offload_small_transient_segments_no_optimistic_write.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET enable_optimistic_write=false +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/temp_directory/temp_directory_null.test b/parser/testdata/corpus/sql/storage/temp_directory/temp_directory_null.test index d8e920c8..c1fa68d3 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/temp_directory_null.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/temp_directory_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/temp_directory_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set temp_directory='' diff --git a/parser/testdata/corpus/sql/storage/temp_directory/temp_file_truncation.test b/parser/testdata/corpus/sql/storage/temp_directory/temp_file_truncation.test index 353be9ed..b6a7dec0 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/temp_file_truncation.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/temp_file_truncation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/temp_file_truncation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_force_external = false; diff --git a/parser/testdata/corpus/sql/storage/temp_directory/test_default_temp_directory.test b/parser/testdata/corpus/sql/storage/temp_directory/test_default_temp_directory.test index 69daa942..96f8ea31 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/test_default_temp_directory.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/test_default_temp_directory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/test_default_temp_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMPORARY TABLE t AS FROM range(1_000_000); diff --git a/parser/testdata/corpus/sql/storage/temp_directory/test_runner_temp_directory.test b/parser/testdata/corpus/sql/storage/temp_directory/test_runner_temp_directory.test index eec61927..427c8225 100644 --- a/parser/testdata/corpus/sql/storage/temp_directory/test_runner_temp_directory.test +++ b/parser/testdata/corpus/sql/storage/temp_directory/test_runner_temp_directory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/temp_directory/test_runner_temp_directory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT contains(current_setting('temp_directory'), 'sqllogic_temp_'); diff --git a/parser/testdata/corpus/sql/storage/test_empty_table.test b/parser/testdata/corpus/sql/storage/test_empty_table.test index d074a1ea..19279903 100644 --- a/parser/testdata/corpus/sql/storage/test_empty_table.test +++ b/parser/testdata/corpus/sql/storage/test_empty_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_empty_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (a INTEGER, b VARCHAR) diff --git a/parser/testdata/corpus/sql/storage/test_eviction_queue_dead_nodes_underflow.test b/parser/testdata/corpus/sql/storage/test_eviction_queue_dead_nodes_underflow.test index 1f94acb5..6a0b8c09 100644 --- a/parser/testdata/corpus/sql/storage/test_eviction_queue_dead_nodes_underflow.test +++ b/parser/testdata/corpus/sql/storage/test_eviction_queue_dead_nodes_underflow.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_eviction_queue_dead_nodes_underflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) = 0 diff --git a/parser/testdata/corpus/sql/storage/test_ignore_duplicate_deletes_unique_index.test b/parser/testdata/corpus/sql/storage/test_ignore_duplicate_deletes_unique_index.test index 7b6e60f8..08af7601 100644 --- a/parser/testdata/corpus/sql/storage/test_ignore_duplicate_deletes_unique_index.test +++ b/parser/testdata/corpus/sql/storage/test_ignore_duplicate_deletes_unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_ignore_duplicate_deletes_unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE TBL (id INT NOT NULL, age INT NOT NULL, PRIMARY KEY ( id )) diff --git a/parser/testdata/corpus/sql/storage/test_index_checkpoint.test b/parser/testdata/corpus/sql/storage/test_index_checkpoint.test index 501e8873..dd12c028 100644 --- a/parser/testdata/corpus/sql/storage/test_index_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/test_index_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_index_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2 (i INTEGER, uid VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/test_large_commits.test b/parser/testdata/corpus/sql/storage/test_large_commits.test index 61aede0c..73b4e9da 100644 --- a/parser/testdata/corpus/sql/storage/test_large_commits.test +++ b/parser/testdata/corpus/sql/storage/test_large_commits.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_large_commits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA wal_autocheckpoint='10KB' diff --git a/parser/testdata/corpus/sql/storage/test_read_only_wal_replay.test b/parser/testdata/corpus/sql/storage/test_read_only_wal_replay.test index 486a726f..7f355d06 100644 --- a/parser/testdata/corpus/sql/storage/test_read_only_wal_replay.test +++ b/parser/testdata/corpus/sql/storage/test_read_only_wal_replay.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_read_only_wal_replay.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold='1TB'; diff --git a/parser/testdata/corpus/sql/storage/test_restart_extension.test b/parser/testdata/corpus/sql/storage/test_restart_extension.test index 5ff45d0e..21f5f2c1 100644 --- a/parser/testdata/corpus/sql/storage/test_restart_extension.test +++ b/parser/testdata/corpus/sql/storage/test_restart_extension.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_restart_extension.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 AS SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/arrow/alltypes_plain.parquet') diff --git a/parser/testdata/corpus/sql/storage/test_show_tables_persistent.test b/parser/testdata/corpus/sql/storage/test_show_tables_persistent.test index 2a62619d..765e2faf 100644 --- a/parser/testdata/corpus/sql/storage/test_show_tables_persistent.test +++ b/parser/testdata/corpus/sql/storage/test_show_tables_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_show_tables_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit show tables diff --git a/parser/testdata/corpus/sql/storage/test_storage_scan.test b/parser/testdata/corpus/sql/storage/test_storage_scan.test index e8f557ee..5cd72867 100644 --- a/parser/testdata/corpus/sql/storage/test_storage_scan.test +++ b/parser/testdata/corpus/sql/storage/test_storage_scan.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_storage_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11), (12), (13), (14), (15), (NULL) diff --git a/parser/testdata/corpus/sql/storage/test_store_integers.test b/parser/testdata/corpus/sql/storage/test_store_integers.test index f06f0000..d13d05dd 100644 --- a/parser/testdata/corpus/sql/storage/test_store_integers.test +++ b/parser/testdata/corpus/sql/storage/test_store_integers.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_store_integers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test2 (a INTEGER); diff --git a/parser/testdata/corpus/sql/storage/test_store_nulls_strings.test b/parser/testdata/corpus/sql/storage/test_store_nulls_strings.test index 573fd726..3298cb8f 100644 --- a/parser/testdata/corpus/sql/storage/test_store_nulls_strings.test +++ b/parser/testdata/corpus/sql/storage/test_store_nulls_strings.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_store_nulls_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS test (a INTEGER, b STRING); diff --git a/parser/testdata/corpus/sql/storage/test_truncate_persistent.test b/parser/testdata/corpus/sql/storage/test_truncate_persistent.test index 4b2af797..5a50de54 100644 --- a/parser/testdata/corpus/sql/storage/test_truncate_persistent.test +++ b/parser/testdata/corpus/sql/storage/test_truncate_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_truncate_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS FROM range(250000) t(i); diff --git a/parser/testdata/corpus/sql/storage/test_unaligned_scan.test b/parser/testdata/corpus/sql/storage/test_unaligned_scan.test index 51dd3fa6..a70474a4 100644 --- a/parser/testdata/corpus/sql/storage/test_unaligned_scan.test +++ b/parser/testdata/corpus/sql/storage/test_unaligned_scan.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_unaligned_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test SELECT CASE WHEN i%2=0 THEN i ELSE NULL END, CASE WHEN i%2=0 THEN 'hello'||i::VARCHAR ELSE NULL END FROM range(10000) tbl(i) diff --git a/parser/testdata/corpus/sql/storage/test_unique_index_checkpoint.test b/parser/testdata/corpus/sql/storage/test_unique_index_checkpoint.test index b1f66d9e..b27d7deb 100644 --- a/parser/testdata/corpus/sql/storage/test_unique_index_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/test_unique_index_checkpoint.test @@ -1,6 +1,6 @@ # source: test/sql/storage/test_unique_index_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/storage/total_string_length_nested_types.test b/parser/testdata/corpus/sql/storage/total_string_length_nested_types.test index 150dfe3f..d711e22f 100644 --- a/parser/testdata/corpus/sql/storage/total_string_length_nested_types.test +++ b/parser/testdata/corpus/sql/storage/total_string_length_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/total_string_length_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(a VARCHAR[], b STRUCT(s VARCHAR), c VARCHAR[3]); diff --git a/parser/testdata/corpus/sql/storage/total_string_length_repeated_insert.test b/parser/testdata/corpus/sql/storage/total_string_length_repeated_insert.test index b3730667..c25fd565 100644 --- a/parser/testdata/corpus/sql/storage/total_string_length_repeated_insert.test +++ b/parser/testdata/corpus/sql/storage/total_string_length_repeated_insert.test @@ -1,6 +1,6 @@ # source: test/sql/storage/total_string_length_repeated_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test(s VARCHAR); diff --git a/parser/testdata/corpus/sql/storage/types/list/default_list.test b/parser/testdata/corpus/sql/storage/types/list/default_list.test index 215c5a0b..8c1896a4 100644 --- a/parser/testdata/corpus/sql/storage/types/list/default_list.test +++ b/parser/testdata/corpus/sql/storage/types/list/default_list.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/default_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(i INT[] DEFAULT ([1, 2, 3])) diff --git a/parser/testdata/corpus/sql/storage/types/list/empty_float_arrays.test b/parser/testdata/corpus/sql/storage/types/list/empty_float_arrays.test index 75071f82..3be1d8ec 100644 --- a/parser/testdata/corpus/sql/storage/types/list/empty_float_arrays.test +++ b/parser/testdata/corpus/sql/storage/types/list/empty_float_arrays.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/empty_float_arrays.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table ( diff --git a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_order.test b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_order.test index dc1bf49f..15b0157f 100644 --- a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_order.test +++ b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_order.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/list_corrupt_offset_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE list_corrupt_offset_order diff --git a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_range.test b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_range.test index e9e7ea8f..1b21cdf5 100644 --- a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_range.test +++ b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_range.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/list_corrupt_offset_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE list_corrupt_offset_range diff --git a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_skip.test b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_skip.test index 9ab5f710..ac94d74e 100644 --- a/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_skip.test +++ b/parser/testdata/corpus/sql/storage/types/list/list_corrupt_offset_skip.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/list_corrupt_offset_skip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit USE list_corrupt_offset_skip diff --git a/parser/testdata/corpus/sql/storage/types/list/list_index_compression.test b/parser/testdata/corpus/sql/storage/types/list/list_index_compression.test index 17be1a4c..7dece870 100644 --- a/parser/testdata/corpus/sql/storage/types/list/list_index_compression.test +++ b/parser/testdata/corpus/sql/storage/types/list/list_index_compression.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/list_index_compression.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER PRIMARY KEY, c INT[]); diff --git a/parser/testdata/corpus/sql/storage/types/list/persistent_list_storage.test b/parser/testdata/corpus/sql/storage/types/list/persistent_list_storage.test index b72f1067..6d88ab3d 100644 --- a/parser/testdata/corpus/sql/storage/types/list/persistent_list_storage.test +++ b/parser/testdata/corpus/sql/storage/types/list/persistent_list_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/persistent_list_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(b INTEGER[]); diff --git a/parser/testdata/corpus/sql/storage/types/list/store_list_of_array.test b/parser/testdata/corpus/sql/storage/types/list/store_list_of_array.test index 817ba9a8..1f67a012 100644 --- a/parser/testdata/corpus/sql/storage/types/list/store_list_of_array.test +++ b/parser/testdata/corpus/sql/storage/types/list/store_list_of_array.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/store_list_of_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE arrays(id INTEGER PRIMARY KEY, values INTEGER[3][]); diff --git a/parser/testdata/corpus/sql/storage/types/list/store_list_of_struct.test b/parser/testdata/corpus/sql/storage/types/list/store_list_of_struct.test index c0da6d2b..1c156b74 100644 --- a/parser/testdata/corpus/sql/storage/types/list/store_list_of_struct.test +++ b/parser/testdata/corpus/sql/storage/types/list/store_list_of_struct.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/list/store_list_of_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER, b ROW(a INTEGER, b INTEGER)[]); diff --git a/parser/testdata/corpus/sql/storage/types/map/map_storage.test b/parser/testdata/corpus/sql/storage/types/map/map_storage.test index 747dd873..dd939dbb 100644 --- a/parser/testdata/corpus/sql/storage/types/map/map_storage.test +++ b/parser/testdata/corpus/sql/storage/types/map/map_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/map/map_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(b MAP(INTEGER,INTEGER)); diff --git a/parser/testdata/corpus/sql/storage/types/struct/default_struct.test b/parser/testdata/corpus/sql/storage/types/struct/default_struct.test index adfae8c6..acafdf92 100644 --- a/parser/testdata/corpus/sql/storage/types/struct/default_struct.test +++ b/parser/testdata/corpus/sql/storage/types/struct/default_struct.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/struct/default_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a( diff --git a/parser/testdata/corpus/sql/storage/types/struct/nested_struct_storage.test b/parser/testdata/corpus/sql/storage/types/struct/nested_struct_storage.test index b73caaac..7295a149 100644 --- a/parser/testdata/corpus/sql/storage/types/struct/nested_struct_storage.test +++ b/parser/testdata/corpus/sql/storage/types/struct/nested_struct_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/struct/nested_struct_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT { diff --git a/parser/testdata/corpus/sql/storage/types/struct/pushdown_extract_validity.test b/parser/testdata/corpus/sql/storage/types/struct/pushdown_extract_validity.test index 225bf951..e47742e8 100644 --- a/parser/testdata/corpus/sql/storage/types/struct/pushdown_extract_validity.test +++ b/parser/testdata/corpus/sql/storage/types/struct/pushdown_extract_validity.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/struct/pushdown_extract_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE structs(s STRUCT(id INT)); diff --git a/parser/testdata/corpus/sql/storage/types/struct/struct_of_empty_list.test b/parser/testdata/corpus/sql/storage/types/struct/struct_of_empty_list.test index c60741fc..fd6b3f94 100644 --- a/parser/testdata/corpus/sql/storage/types/struct/struct_of_empty_list.test +++ b/parser/testdata/corpus/sql/storage/types/struct/struct_of_empty_list.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/struct/struct_of_empty_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (col STRUCT(a VARCHAR[])) diff --git a/parser/testdata/corpus/sql/storage/types/struct/struct_storage.test b/parser/testdata/corpus/sql/storage/types/struct/struct_storage.test index 033cd624..e1d7eba2 100644 --- a/parser/testdata/corpus/sql/storage/types/struct/struct_storage.test +++ b/parser/testdata/corpus/sql/storage/types/struct/struct_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/struct/struct_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES ({'i': 1, 'j': 2}), (NULL), ({'i': NULL, 'j': 2}), (ROW(1, NULL)); diff --git a/parser/testdata/corpus/sql/storage/types/test_bit_storage.test b/parser/testdata/corpus/sql/storage/types/test_bit_storage.test index 57253e0e..b81e2fef 100644 --- a/parser/testdata/corpus/sql/storage/types/test_bit_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_bit_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_bit_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bits (b BIT); diff --git a/parser/testdata/corpus/sql/storage/types/test_blob_storage.test b/parser/testdata/corpus/sql/storage/types/test_blob_storage.test index bbe87d87..142926c2 100644 --- a/parser/testdata/corpus/sql/storage/types/test_blob_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_blob_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_blob_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE blobs (b BLOB); diff --git a/parser/testdata/corpus/sql/storage/types/test_hugeint_storage.test b/parser/testdata/corpus/sql/storage/types/test_hugeint_storage.test index cc84b2e3..b1f0e265 100644 --- a/parser/testdata/corpus/sql/storage/types/test_hugeint_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_hugeint_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_hugeint_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints (h HUGEINT); diff --git a/parser/testdata/corpus/sql/storage/types/test_interval_storage.test b/parser/testdata/corpus/sql/storage/types/test_interval_storage.test index 5be89c07..b8932df4 100644 --- a/parser/testdata/corpus/sql/storage/types/test_interval_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_interval_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_interval_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE interval (t INTERVAL); diff --git a/parser/testdata/corpus/sql/storage/types/test_timestamp_storage.test b/parser/testdata/corpus/sql/storage/types/test_timestamp_storage.test index 8533c94f..0eb06f8c 100644 --- a/parser/testdata/corpus/sql/storage/types/test_timestamp_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_timestamp_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_timestamp_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamp (sec TIMESTAMP_S, milli TIMESTAMP_MS,micro TIMESTAMP_US, nano TIMESTAMP_NS ); diff --git a/parser/testdata/corpus/sql/storage/types/test_uhugeint_storage.test b/parser/testdata/corpus/sql/storage/types/test_uhugeint_storage.test index 59f87274..bfe65a1a 100644 --- a/parser/testdata/corpus/sql/storage/types/test_uhugeint_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_uhugeint_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_uhugeint_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uhugeints (h UHUGEINT); diff --git a/parser/testdata/corpus/sql/storage/types/test_unsigned_storage.test b/parser/testdata/corpus/sql/storage/types/test_unsigned_storage.test index 8acec01b..ae58006d 100644 --- a/parser/testdata/corpus/sql/storage/types/test_unsigned_storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_unsigned_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_unsigned_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unsigned (a utinyint, b usmallint, c uinteger, d ubigint); diff --git a/parser/testdata/corpus/sql/storage/types/test_uuid.storage.test b/parser/testdata/corpus/sql/storage/types/test_uuid.storage.test index 1b377df5..f8ac4d80 100644 --- a/parser/testdata/corpus/sql/storage/types/test_uuid.storage.test +++ b/parser/testdata/corpus/sql/storage/types/test_uuid.storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/test_uuid.storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uuids (u uuid); diff --git a/parser/testdata/corpus/sql/storage/types/variant/append_shredded.test b/parser/testdata/corpus/sql/storage/types/variant/append_shredded.test index 64a758d0..14943e99 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/append_shredded.test +++ b/parser/testdata/corpus/sql/storage/types/variant/append_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/append_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (col VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/extension_types.test b/parser/testdata/corpus/sql/storage/types/variant/extension_types.test index 01053e83..ac59c61c 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/extension_types.test +++ b/parser/testdata/corpus/sql/storage/types/variant/extension_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/extension_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (col VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/index_fetch.test b/parser/testdata/corpus/sql/storage/types/variant/index_fetch.test index 11c01509..253061a8 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/index_fetch.test +++ b/parser/testdata/corpus/sql/storage/types/variant/index_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/index_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INT PRIMARY KEY, v VARIANT); diff --git a/parser/testdata/corpus/sql/storage/types/variant/struct_of_variant.test b/parser/testdata/corpus/sql/storage/types/variant/struct_of_variant.test index 06150f9d..19945e34 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/struct_of_variant.test +++ b/parser/testdata/corpus/sql/storage/types/variant/struct_of_variant.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/struct_of_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE variant_list( diff --git a/parser/testdata/corpus/sql/storage/types/variant/test_all_types.test b/parser/testdata/corpus/sql/storage/types/variant/test_all_types.test index 2828f947..70d551e1 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/test_all_types.test +++ b/parser/testdata/corpus/sql/storage/types/variant/test_all_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/test_all_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table table_{col} as select "{col}"::VARIANT col from test_all_types() diff --git a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_object.test b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_object.test index c1c2ddda..71693b37 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_object.test +++ b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_object.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/test_all_types_single_object.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( @@ -27,14 +27,14 @@ ok == from query($$select col."$$ || getvariable('col_name') || $$"::$$ || getvariable('col_type') || ' from tbl'); -- -error: Parser Error: syntax error at or near "NULL" +ok == create or replace table intermediate as from query($$select col."$$ || getvariable('col_name') || $$" extracted from tbl$$); -- -error: Parser Error: syntax error at or near "NULL" +ok == from query('select extracted::' || getvariable('col_type') || ' from intermediate'); -- -error: Parser Error: syntax error at or near "NULL" +ok == diff --git a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_table.test b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_table.test index 7a7ef7e7..a51f2cea 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_table.test +++ b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_single_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/test_all_types_single_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into tbl select "{col}"::VARIANT from test_all_types() diff --git a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_variant.test b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_variant.test index 4f7c040f..92ef3b2e 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/test_all_types_variant.test +++ b/parser/testdata/corpus/sql/storage/types/variant/test_all_types_variant.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/test_all_types_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl as select COLUMNS(*)::VARIANT from test_all_types() diff --git a/parser/testdata/corpus/sql/storage/types/variant/update.test b/parser/testdata/corpus/sql/storage/types/variant/update.test index 1670f02b..87efef8d 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/update.test +++ b/parser/testdata/corpus/sql/storage/types/variant/update.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (a VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_case_sensitive_fields_shredded.test b/parser/testdata/corpus/sql/storage/types/variant/variant_case_sensitive_fields_shredded.test index 9ab8f1a4..8f31e798 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_case_sensitive_fields_shredded.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_case_sensitive_fields_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_case_sensitive_fields_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set variant_minimum_shredding_size = 0; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_shredded.test b/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_shredded.test index bd39b5be..7c144b95 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_shredded.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_comparator_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'STRUCT(a INTEGER, b VARCHAR)'; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_stats.test b/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_stats.test index 5c9bca78..1e241d98 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_stats.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_comparator_stats.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_comparator_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ints(col VARIANT); diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_duplicate_keys_shredding.test b/parser/testdata/corpus/sql/storage/types/variant/variant_duplicate_keys_shredding.test index 081fc1a4..1333f23e 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_duplicate_keys_shredding.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_duplicate_keys_shredding.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_duplicate_keys_shredding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE variants AS diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_extract_filter_pushdown.test b/parser/testdata/corpus/sql/storage/types/variant/variant_extract_filter_pushdown.test index 21b864f8..f6a3559e 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_extract_filter_pushdown.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_extract_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_extract_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE variant_extract_pushdown(v VARIANT); diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_extract_stats.test b/parser/testdata/corpus/sql/storage/types/variant/variant_extract_stats.test index d26f630d..50dec3c8 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_extract_stats.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_extract_stats.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_extract_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'VARCHAR[]'; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_index.test b/parser/testdata/corpus/sql/storage/types/variant/variant_index.test index 2da13ce5..21079645 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_index.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(col VARIANT UNIQUE, b INTEGER) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_null_missing.test b/parser/testdata/corpus/sql/storage/types/variant/variant_null_missing.test index 53cf064f..f44bc0e2 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_null_missing.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_null_missing.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_null_missing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET force_variant_shredding = 'STRUCT(a INT, b INT)'; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_null_shredding_inconsistency_issue.test b/parser/testdata/corpus/sql/storage/types/variant/variant_null_shredding_inconsistency_issue.test index 0d3f2570..ed15e3b9 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_null_shredding_inconsistency_issue.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_null_shredding_inconsistency_issue.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_null_shredding_inconsistency_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE messages AS diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded.test b/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded.test index beceadf1..d3625f58 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_object_key_order_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET variant_minimum_shredding_size = 1000; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded_json.test b/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded_json.test index 6ad6def0..ee499d8e 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded_json.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_object_key_order_shredded_json.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_object_key_order_shredded_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(DISTINCT CAST(v AS JSON)), count(*) FROM t; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_non_object.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_non_object.test index d045a30d..8d87fd16 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_non_object.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_non_object.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredded_extract_non_object.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t( diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_wrong_type.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_wrong_type.test index 14ecb9ed..4b03326e 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_wrong_type.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_extract_wrong_type.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredded_extract_wrong_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE shredded_booleans AS diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_slice.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_slice.test index 45881f83..4ba07000 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_slice.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_slice.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredded_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table bluesky (j VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_top_level_array_cast.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_top_level_array_cast.test index 36eab706..c280d0e5 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_top_level_array_cast.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredded_top_level_array_cast.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredded_top_level_array_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE top_level AS SELECT i AS id, CAST([i] AS VARIANT) AS v FROM range(0, 5) tt(i); diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_empty_keys.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_empty_keys.test index 7549a3b1..6d81a079 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_empty_keys.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_empty_keys.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredding_empty_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET variant_minimum_shredding_size=0; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_inconsistent.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_inconsistent.test index b61b8680..bb15681f 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_inconsistent.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_inconsistent.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredding_inconsistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table bluesky (col VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_omit_untyped.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_omit_untyped.test index 3a1f346b..4704242a 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_omit_untyped.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_omit_untyped.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredding_omit_untyped.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table shredded_integer (col VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_small.test b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_small.test index 86721616..ae9af699 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_small.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_shredding_small.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_shredding_small.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (id INT PRIMARY KEY, col VARIANT) diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_stats_case_sensitive_merge.test b/parser/testdata/corpus/sql/storage/types/variant/variant_stats_case_sensitive_merge.test index a2e09088..ef45990d 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_stats_case_sensitive_merge.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_stats_case_sensitive_merge.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_stats_case_sensitive_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/variant_stats_case_sensitive_merge.db' AS db ( diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_stats_merge_fast.test b/parser/testdata/corpus/sql/storage/types/variant/variant_stats_merge_fast.test index 637c8ffb..93ab9822 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_stats_merge_fast.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_stats_merge_fast.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_stats_merge_fast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET variant_minimum_shredding_size = 0 diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_storage_version.test b/parser/testdata/corpus/sql/storage/types/variant/variant_storage_version.test index 46094838..3afee060 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_storage_version.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/variant.db' (STORAGE_VERSION 'v1.4.4'); diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_struct_field_subquery.test b/parser/testdata/corpus/sql/storage/types/variant/variant_struct_field_subquery.test index 7f962563..ecd1645a 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_struct_field_subquery.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_struct_field_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_struct_field_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET variant_minimum_shredding_size = {minimum_shredding_size}; diff --git a/parser/testdata/corpus/sql/storage/types/variant/variant_validity_stats.test b/parser/testdata/corpus/sql/storage/types/variant/variant_validity_stats.test index 2bde3cbd..58638094 100644 --- a/parser/testdata/corpus/sql/storage/types/variant/variant_validity_stats.test +++ b/parser/testdata/corpus/sql/storage/types/variant/variant_validity_stats.test @@ -1,6 +1,6 @@ # source: test/sql/storage/types/variant/variant_validity_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v AS diff --git a/parser/testdata/corpus/sql/storage/unzip.test b/parser/testdata/corpus/sql/storage/unzip.test index 44eb00de..7dcb9f44 100644 --- a/parser/testdata/corpus/sql/storage/unzip.test +++ b/parser/testdata/corpus/sql/storage/unzip.test @@ -1,6 +1,6 @@ # source: test/sql/storage/unzip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a+1 FROM tbl; diff --git a/parser/testdata/corpus/sql/storage/update/dictionary_update_null.test b/parser/testdata/corpus/sql/storage/update/dictionary_update_null.test index e0f4cdc6..d288d343 100644 --- a/parser/testdata/corpus/sql/storage/update/dictionary_update_null.test +++ b/parser/testdata/corpus/sql/storage/update/dictionary_update_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/update/dictionary_update_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE 'everflow_daily' AS SELECT case when i%10=0 THEN uuid()::VARCHAR ELSE 'N/A' END sub4 FROM range(10000) t(i) diff --git a/parser/testdata/corpus/sql/storage/update/noop_string_update_memory.test b/parser/testdata/corpus/sql/storage/update/noop_string_update_memory.test index d6da41b0..d08e1ae0 100644 --- a/parser/testdata/corpus/sql/storage/update/noop_string_update_memory.test +++ b/parser/testdata/corpus/sql/storage/update/noop_string_update_memory.test @@ -1,6 +1,6 @@ # source: test/sql/storage/update/noop_string_update_memory.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT repeat('x', 65536) AS payload; diff --git a/parser/testdata/corpus/sql/storage/update/test_store_null_updates.test b/parser/testdata/corpus/sql/storage/update/test_store_null_updates.test index 33723618..c3787004 100644 --- a/parser/testdata/corpus/sql/storage/update/test_store_null_updates.test +++ b/parser/testdata/corpus/sql/storage/update/test_store_null_updates.test @@ -1,6 +1,6 @@ # source: test/sql/storage/update/test_store_null_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 22), (NULL, 22), (12, 21) diff --git a/parser/testdata/corpus/sql/storage/update/update_out_of_memory_statistics.test b/parser/testdata/corpus/sql/storage/update/update_out_of_memory_statistics.test new file mode 100644 index 00000000..b177bce4 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/update/update_out_of_memory_statistics.test @@ -0,0 +1,53 @@ +# source: test/sql/storage/update/update_out_of_memory_statistics.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET checkpoint_threshold='1TB' +-- +ok +== +CREATE TABLE t1 AS SELECT CASE WHEN range%2=0 THEN NULL ELSE range END i FROM range(512) +-- +ok +== +SET memory_limit='400KB' +-- +ok +== +UPDATE t1 SET i=1000000 +-- +ok +== +UPDATE t1 SET i=i WHERE i IS NULL +-- +ok +== +SELECT count(i), sum(i) FROM t1 +-- +ok +== +SELECT min(i), max(i), count(*) FROM t1 +-- +ok +== +SELECT count(*) FROM t1 WHERE i > 511 +-- +ok +== +CREATE TABLE t2 AS SELECT range i FROM range(512) +-- +ok +== +UPDATE t2 SET i=-5 +-- +ok +== +UPDATE t2 SET i=i WHERE i=3 +-- +ok +== +SELECT min(i), max(i), count(*) FROM t2 +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/update/wal_restart_update_insert.test b/parser/testdata/corpus/sql/storage/update/wal_restart_update_insert.test index 98ec1dbb..962392d9 100644 --- a/parser/testdata/corpus/sql/storage/update/wal_restart_update_insert.test +++ b/parser/testdata/corpus/sql/storage/update/wal_restart_update_insert.test @@ -1,6 +1,6 @@ # source: test/sql/storage/update/wal_restart_update_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(i INTEGER PRIMARY KEY, j INTEGER); @@ -11,10 +11,6 @@ INSERT INTO test SELECT r, r FROM range(2000) t(r); -- ok == -SET checkpoint_threshold='1TB' --- -ok -== INSERT INTO test SELECT r, r FROM range(2000,200000) t(r) -- ok diff --git a/parser/testdata/corpus/sql/storage/vacuum/temp_table_vacuum_on_commit.test b/parser/testdata/corpus/sql/storage/vacuum/temp_table_vacuum_on_commit.test index afb20d8b..2adbe07f 100644 --- a/parser/testdata/corpus/sql/storage/vacuum/temp_table_vacuum_on_commit.test +++ b/parser/testdata/corpus/sql/storage/vacuum/temp_table_vacuum_on_commit.test @@ -1,6 +1,6 @@ # source: test/sql/storage/vacuum/temp_table_vacuum_on_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold = '1KB' diff --git a/parser/testdata/corpus/sql/storage/wal/wal_autocheckpoint_entries.test b/parser/testdata/corpus/sql/storage/wal/wal_autocheckpoint_entries.test index d7143644..5623bef3 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_autocheckpoint_entries.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_autocheckpoint_entries.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_autocheckpoint_entries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_autocheckpoint.db' AS autocheckpoint_db; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_create_index.test b/parser/testdata/corpus/sql/storage/wal/wal_create_index.test index 7f647fa5..a6ea5a32 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_create_index.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_create_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_create_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1), (2, 2), (3, 3); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_create_insert_drop.test b/parser/testdata/corpus/sql/storage/wal/wal_create_insert_drop.test index 1b1eb8d2..9b4a4104 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_create_insert_drop.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_create_insert_drop.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_create_insert_drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold='999999GB'; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_index_delete.test b/parser/testdata/corpus/sql/storage/wal/wal_index_delete.test index 1be0e69a..32a72e13 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_index_delete.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_index_delete.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_index_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a INTEGER, b VARCHAR, c DOUBLE, d TIMESTAMP); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_index_delete_gen.test b/parser/testdata/corpus/sql/storage/wal/wal_index_delete_gen.test index f27ca0d8..03e3e7d3 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_index_delete_gen.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_index_delete_gen.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_index_delete_gen.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a BIGINT, b INT AS (2*a), c VARCHAR, d DOUBLE, e as (d + 2), f TIMESTAMP); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_index_interleaved.test b/parser/testdata/corpus/sql/storage/wal/wal_index_interleaved.test index 4fa17817..b635aa48 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_index_interleaved.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_index_interleaved.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_index_interleaved.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl VALUES ({i} * 10); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_index_large_batch_interleaved.test b/parser/testdata/corpus/sql/storage/wal/wal_index_large_batch_interleaved.test index 31ea38fd..c883858d 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_index_large_batch_interleaved.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_index_large_batch_interleaved.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_index_large_batch_interleaved.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl SELECT r FROM range({i}*10000, {i}*10000 + 5120) t(r); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_index_replay.test b/parser/testdata/corpus/sql/storage/wal/wal_index_replay.test index 2d4a7da7..b7a80e35 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_index_replay.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_index_replay.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_index_replay.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl SELECT range FROM range(100); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_lazy_creation.test b/parser/testdata/corpus/sql/storage/wal/wal_lazy_creation.test index 9c85b943..d55f22ca 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_lazy_creation.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_lazy_creation.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_lazy_creation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/attach_no_wal.db'; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_null_update_row_group_pruning.test b/parser/testdata/corpus/sql/storage/wal/wal_null_update_row_group_pruning.test index 1248fbc5..59218f12 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_null_update_row_group_pruning.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_null_update_row_group_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_null_update_row_group_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT i::BIGINT AS a FROM range(2048) tbl(i); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_promote_version.test b/parser/testdata/corpus/sql/storage/wal/wal_promote_version.test index ce82bffa..81ef2f5f 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_promote_version.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_promote_version.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_promote_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_promote.db'; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_current_timestamp.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_current_timestamp.test index 81982a80..2dedae0e 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_current_timestamp.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_current_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_consistency_add_column_current_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_replay.db'; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_random.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_random.test index 8010a662..a2d3ef28 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_random.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_consistency_add_column_random.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_consistency_add_column_random.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t ADD COLUMN r DOUBLE DEFAULT RANDOM(); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_default_database.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_default_database.test index 1233d641..88bd10bc 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_default_database.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_default_database.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_default_database.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (42); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_pending_index_dropped_table.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_pending_index_dropped_table.test index f9da5e2f..441f13e9 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_pending_index_dropped_table.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_pending_index_dropped_table.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_pending_index_dropped_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INT) @@ -19,10 +19,6 @@ DROP TABLE s -- ok == -CREATE TABLE other(x INT) --- -ok -== INSERT INTO other VALUES (42) -- ok diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_attach_autocheckpoint.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_attach_autocheckpoint.test new file mode 100644 index 00000000..d8b23e1a --- /dev/null +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_attach_autocheckpoint.test @@ -0,0 +1,57 @@ +# source: test/sql/storage/wal/wal_replay_unbound_index_attach_autocheckpoint.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/wal_replay_unbound_index_attach_autocheckpoint.db' AS db +-- +ok +== +CREATE TABLE db.t(a INT, b INT); +-- +ok +== +CREATE UNIQUE INDEX idx ON db.t(a); +-- +ok +== +CREATE TABLE db.other(x INT); +-- +ok +== +INSERT INTO db.t SELECT i, i FROM range(100) t(i) +-- +ok +== +SET debug_checkpoint_abort='BEFORE_HEADER_NON_FATAL' +-- +ok +== +SET checkpoint_threshold='999999GB' +-- +ok +== +INSERT INTO db.t VALUES (1000, 1000) +-- +ok +== +RESET debug_checkpoint_abort +-- +ok +== +SET checkpoint_threshold='1KB' +-- +ok +== +INSERT INTO db.other SELECT range FROM range(10000) +-- +ok +== +SELECT * FROM db.t WHERE a = 1000 +-- +ok +== +INSERT INTO db.t VALUES (1000, 0) +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_autocheckpoint.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_autocheckpoint.test new file mode 100644 index 00000000..fa526dda --- /dev/null +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_autocheckpoint.test @@ -0,0 +1,53 @@ +# source: test/sql/storage/wal/wal_replay_unbound_index_autocheckpoint.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(id INTEGER, k VARCHAR) +-- +ok +== +CREATE INDEX idx_k ON t(k) +-- +ok +== +INSERT INTO t SELECT i, 'k' || i FROM range(500) r(i) +-- +ok +== +SET debug_skip_checkpoint_on_commit=false +-- +ok +== +SET wal_autocheckpoint='1KB' +-- +ok +== +CREATE TABLE other AS SELECT * FROM range(20000) r(x) +-- +ok +== +SELECT wal_size FROM pragma_database_size() +-- +ok +== +SET index_scan_percentage=1 +-- +ok +== +SET index_scan_max_count=999999999 +-- +ok +== +SELECT count(*) FROM t WHERE id=7 +-- +ok +== +SELECT count(*) FROM t WHERE k='k7' +-- +ok +== +DELETE FROM t +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_no_replays.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_no_replays.test new file mode 100644 index 00000000..4faefb89 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_no_replays.test @@ -0,0 +1,25 @@ +# source: test/sql/storage/wal/wal_replay_unbound_index_bind_failure_no_replays.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(k INTEGER); +-- +ok +== +CREATE INDEX x ON t(k); +-- +ok +== +INSERT INTO t VALUES (4), (5); +-- +ok +== +CREATE TEMP MACRO m(v) AS v; +-- +ok +== +CREATE INDEX y ON t((m(k))); +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_retryable.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_retryable.test new file mode 100644 index 00000000..6a892d58 --- /dev/null +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_bind_failure_retryable.test @@ -0,0 +1,49 @@ +# source: test/sql/storage/wal/wal_replay_unbound_index_bind_failure_retryable.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TEMP MACRO tnorm(s) AS lower(s); +-- +ok +== +CREATE TABLE t(k VARCHAR); +-- +ok +== +CREATE INDEX idx ON t((tnorm(k))); +-- +ok +== +INSERT INTO t VALUES ('a'), ('b'); +-- +ok +== +INSERT INTO t VALUES ('z'); +-- +ok +== +SET wal_autocheckpoint = '0B'; +-- +ok +== +CREATE TABLE other AS SELECT 1 AS i; +-- +ok +== +INSERT INTO t VALUES ('c'); +-- +ok +== +DELETE FROM t WHERE k = 'a'; +-- +ok +== +SELECT k FROM t ORDER BY k; +-- +ok +== +SELECT count(*), (SELECT count(*) FROM other) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_create_index_during_wal.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_create_index_during_wal.test index 803ba5c6..bc27d486 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_create_index_during_wal.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_create_index_during_wal.test @@ -1,12 +1,8 @@ # source: test/sql/storage/wal/wal_replay_unbound_index_create_index_during_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SET checkpoint_threshold='999999GB' --- -ok -== CREATE TABLE t(a BIGINT, b VARCHAR) -- ok @@ -27,14 +23,6 @@ INSERT INTO t VALUES (2, 'two') -- ok == -SET index_scan_percentage=1 --- -ok -== -SET index_scan_max_count=999999999 --- -ok -== SELECT count(*) FROM t WHERE b='one' -- ok diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_generated_column.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_generated_column.test index 44e3fdc9..701e1edf 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_generated_column.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_unbound_index_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER, g AS (a + 1), b VARCHAR) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_mixed_inserts.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_mixed_inserts.test index 33c961d6..d98d7d4e 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_mixed_inserts.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_mixed_inserts.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_unbound_index_mixed_inserts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(b TIMESTAMP, a VARCHAR) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_multi_index.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_multi_index.test index f5da2908..c4b4716b 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_multi_index.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_multi_index.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_unbound_index_multi_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(a INTEGER, b VARCHAR, c INTEGER) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_shutdown_checkpoint.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_shutdown_checkpoint.test index fb712755..028b82a6 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_shutdown_checkpoint.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_unbound_index_shutdown_checkpoint.test @@ -1,16 +1,12 @@ # source: test/sql/storage/wal/wal_replay_unbound_index_shutdown_checkpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/wal_detach_unbound_idx.db' AS db; -- ok == -CREATE TABLE db.t(a INT, b INT); --- -ok -== CREATE INDEX idx ON db.t(a); -- ok diff --git a/parser/testdata/corpus/sql/storage/wal/wal_replay_with_function.test b/parser/testdata/corpus/sql/storage/wal/wal_replay_with_function.test index e9613b40..1556bdf1 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_replay_with_function.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_replay_with_function.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_replay_with_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id INTEGER); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_storage_types.test b/parser/testdata/corpus/sql/storage/wal/wal_storage_types.test index 93a53ae5..555c0699 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_storage_types.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_storage_types.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_storage_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MIN(i), MAX(i), COUNT(*), COUNT(i) FROM a_{type} WHERE i=1 diff --git a/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big.test b/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big.test index 2acd688f..446af156 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_store_mixed_updates_big.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT -i a, -i b FROM range(100000) tbl(i) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big_null.test b/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big_null.test index c9989c32..ee65406b 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big_null.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_store_mixed_updates_big_null.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_store_mixed_updates_big_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET b=NULL WHERE a>0 AND a%2=0 diff --git a/parser/testdata/corpus/sql/storage/wal/wal_store_sequences.test b/parser/testdata/corpus/sql/storage/wal/wal_store_sequences.test index 6116f913..fb94b24f 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_store_sequences.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_store_sequences.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_store_sequences.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT nextval('seq2') diff --git a/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big.test b/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big.test index fc8a8f16..0cc8446a 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_store_updates_big.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a, b FROM test WHERE a>0 OR a IS NULL ORDER BY a diff --git a/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big_varchar.test b/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big_varchar.test index 604d158e..085325b9 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big_varchar.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_store_updates_big_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_store_updates_big_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT (-i)::VARCHAR a, (-i)::VARCHAR b FROM range(100000) tbl(i) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_timestamp_storage.test b/parser/testdata/corpus/sql/storage/wal/wal_timestamp_storage.test index 2ac94881..7a916d37 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_timestamp_storage.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_timestamp_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_timestamp_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamp (t TIMESTAMP) diff --git a/parser/testdata/corpus/sql/storage/wal/wal_torn_uncommitted_row_group.test b/parser/testdata/corpus/sql/storage/wal/wal_torn_uncommitted_row_group.test index 44e6e04a..3f07c0e5 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_torn_uncommitted_row_group.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_torn_uncommitted_row_group.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_torn_uncommitted_row_group.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_abort_on_wal_failure=false; diff --git a/parser/testdata/corpus/sql/storage/wal/wal_uhugeint_storage.test b/parser/testdata/corpus/sql/storage/wal/wal_uhugeint_storage.test index 2c883d39..5d07c156 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_uhugeint_storage.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_uhugeint_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_uhugeint_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO uhugeints VALUES (1043178439874412422424), (42), (NULL), (47289478944894789472897441242); diff --git a/parser/testdata/corpus/sql/storage/wal/wal_view_storage.test b/parser/testdata/corpus/sql/storage/wal/wal_view_storage.test index 5e977300..ca4f0125 100644 --- a/parser/testdata/corpus/sql/storage/wal/wal_view_storage.test +++ b/parser/testdata/corpus/sql/storage/wal/wal_view_storage.test @@ -1,6 +1,6 @@ # source: test/sql/storage/wal/wal_view_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA test; diff --git a/parser/testdata/corpus/sql/storage_version/storage_hyperloglog.test b/parser/testdata/corpus/sql/storage_version/storage_hyperloglog.test index f47b5fc6..537fe312 100644 --- a/parser/testdata/corpus/sql/storage_version/storage_hyperloglog.test +++ b/parser/testdata/corpus/sql/storage_version/storage_hyperloglog.test @@ -1,6 +1,6 @@ # source: test/sql/storage_version/storage_hyperloglog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/hll_v110.db' AS db_v110 (STORAGE_VERSION 'v1.1.0'); diff --git a/parser/testdata/corpus/sql/storage_version/storage_version_bump.test b/parser/testdata/corpus/sql/storage_version/storage_version_bump.test index d79e256e..a4f727d4 100644 --- a/parser/testdata/corpus/sql/storage_version/storage_version_bump.test +++ b/parser/testdata/corpus/sql/storage_version/storage_version_bump.test @@ -1,6 +1,6 @@ # source: test/sql/storage_version/storage_version_bump.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/v1_5_2_0.db' as db (STORAGE_VERSION 'v1.5.0'); diff --git a/parser/testdata/corpus/sql/subquery/any_all/issue_2999.test b/parser/testdata/corpus/sql/subquery/any_all/issue_2999.test index bd0694e7..7d0ad684 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/issue_2999.test +++ b/parser/testdata/corpus/sql/subquery/any_all/issue_2999.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/issue_2999.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 = ANY(SELECT 1 FROM t1 JOIN (SELECT count(*) GROUP BY t0.c0) AS x(x) ON TRUE) FROM t0; diff --git a/parser/testdata/corpus/sql/subquery/any_all/subquery_in.test b/parser/testdata/corpus/sql/subquery/any_all/subquery_in.test index c0e7e6db..70c3cc5c 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/subquery_in.test +++ b/parser/testdata/corpus/sql/subquery/any_all/subquery_in.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/subquery_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0 (c0 TIME,c1 DOUBLE PRECISION); diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test b/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test index a6a905c6..3c538b67 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_any_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 2 > ANY(SELECT * FROM integers) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_any_array_subquery.test b/parser/testdata/corpus/sql/subquery/any_all/test_any_array_subquery.test new file mode 100644 index 00000000..77ef1357 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/any_all/test_any_array_subquery.test @@ -0,0 +1,57 @@ +# source: test/sql/subquery/any_all/test_any_array_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE s AS SELECT * FROM (VALUES ('a'), ('c'), (NULL)) t(x); +-- +ok +== +CREATE TABLE allowed AS SELECT * FROM (VALUES ('a'), ('b')) t(y); +-- +ok +== +SELECT 'a' = ANY(ARRAY(SELECT y FROM allowed)); +-- +ok +== +SELECT x, x = ANY(ARRAY(SELECT y FROM allowed)) FROM s ORDER BY x NULLS LAST; +-- +ok +== +SELECT x FROM s WHERE x = ANY(ARRAY(SELECT y FROM allowed ORDER BY y)); +-- +ok +== +SELECT 'a' <> ALL(ARRAY(SELECT y FROM allowed)); +-- +ok +== +SELECT 3 > ALL(ARRAY(SELECT * FROM range(3))); +-- +ok +== +SELECT 1 = ANY(ARRAY(SELECT * FROM range(0))); +-- +ok +== +SELECT 'a' = ANY(SELECT y FROM allowed); +-- +ok +== +SELECT 'a' = ANY((SELECT y FROM allowed)); +-- +ok +== +SELECT 'b' <> ALL(SELECT y FROM allowed); +-- +ok +== +SELECT 'c' = ANY(SELECT y FROM allowed UNION ALL SELECT 'c'); +-- +ok +== +SELECT 'b' = ANY(['a', 'b']); +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_any_left_join_in_on_clause.test b/parser/testdata/corpus/sql/subquery/any_all/test_any_left_join_in_on_clause.test index b62f47e6..1d0c5cb8 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_any_left_join_in_on_clause.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_any_left_join_in_on_clause.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_any_left_join_in_on_clause.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(i INT, b BOOL); diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_any_all.test b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_any_all.test index 4059f2a7..b6b46613 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_any_all.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_any_all.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_correlated_any_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i=ANY(SELECT i FROM integers WHERE i=i1.i) FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_cte_in.test b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_cte_in.test index 8a5856f4..5894616a 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_cte_in.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_cte_in.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_correlated_cte_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE inputs(id INTEGER, xs INTEGER[], ys INTEGER[]); diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_in_left_join_mark.test b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_in_left_join_mark.test new file mode 100644 index 00000000..602d6a57 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_in_left_join_mark.test @@ -0,0 +1,56 @@ +# source: test/sql/subquery/any_all/test_correlated_in_left_join_mark.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +INSERT INTO t VALUES (1), (2), (NULL); +-- +ok +== +CREATE TABLE s(i INTEGER); +-- +ok +== +INSERT INTO s VALUES (1), (3); +-- +ok +== +CREATE VIEW v AS SELECT 42 AS x; +-- +ok +== +SELECT * +FROM v +WHERE ( + SELECT COUNT(*) + FROM ( + SELECT a.i, + b.i <> ANY (SELECT i FROM s) + FROM t AS a + LEFT JOIN t AS b ON b.i IN ( + SELECT CASE + WHEN v.x IS NULL OR NOT v.x IS NULL + THEN i ELSE i + END AS i + FROM s + ) + ) AS q +) = 3; +-- +ok +== +SELECT x, ( + SELECT COUNT(*) + FROM t a LEFT JOIN t b ON b.i IN (SELECT v.x FROM s) + WHERE b.i IN (SELECT i FROM s) +) FROM t v(x) ORDER BY x NULLS LAST; +-- +ok +== +SELECT x, ( + SELECT SUM((b.i IN (SELECT v.x - 1 + i FROM s))::INTEGER) + FROM t a LEFT JOIN t b ON b.i IN (SELECT v.x FROM s) +) FROM t v(x) ORDER BY x NULLS LAST; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_mark_row_identity.test b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_mark_row_identity.test new file mode 100644 index 00000000..f851410a --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_mark_row_identity.test @@ -0,0 +1,53 @@ +# source: test/sql/subquery/any_all/test_correlated_mark_row_identity.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE probes(id INTEGER,g INTEGER,v INTEGER); +-- +ok +== +CREATE TABLE candidates(g INTEGER,v INTEGER); +-- +ok +== +CREATE TABLE lookup(k INTEGER); +-- +ok +== +INSERT INTO probes VALUES(0,0,NULL),(1,1,1),(2,1,7),(3,1,NULL),(4,2,1),(5,2,2),(6,2,NULL),(7,3,1),(8,3,NULL),(9,NULL,1),(10,2,2); +-- +ok +== +INSERT INTO candidates VALUES(1,1),(1,1),(1,NULL),(2,2),(2,2),(NULL,1); +-- +ok +== +INSERT INTO lookup VALUES(1); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v IN(SELECT c.v FROM candidates c WHERE c.g=p.g AND (SELECT k FROM lookup)=1) marker FROM probes p); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v NOT IN(SELECT c.v FROM candidates c WHERE c.g=p.g AND (SELECT k FROM lookup)=1) marker FROM probes p); +-- +ok +== +SELECT list(marker ORDER BY id) FROM (SELECT id,v IN(SELECT c.v FROM candidates c WHERE c.g IS NOT DISTINCT FROM p.g AND (SELECT k FROM lookup)=1) marker FROM probes p); +-- +ok +== +SELECT p.id,q.v FROM probes p LEFT JOIN (VALUES(1),(2),(NULL::INTEGER)) q(v) ON q.v IN(SELECT c.v FROM candidates c WHERE c.g=p.g AND (SELECT k FROM lookup)=1) ORDER BY ALL; +-- +ok +== +WITH actual AS (SELECT id,v {comparison} ANY(SELECT c.v FROM candidates c WHERE c.g=p.g AND (SELECT k FROM lookup)=1) m FROM probes p), expected AS (SELECT id,(SELECT CASE WHEN bool_or(p.v {comparison} c.v) THEN true WHEN bool_or((p.v {comparison} c.v) IS NULL) THEN NULL ELSE false END FROM candidates c WHERE c.g=p.g) m FROM probes p) SELECT count(*) FROM actual a JOIN expected e USING(id) WHERE a.m IS DISTINCT FROM e.m; +-- +error: Parser Error: syntax error at or near "{" +== +INSERT INTO candidates SELECT 2,2 FROM range(4096); +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_correlated_tuple_in.test b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_tuple_in.test new file mode 100644 index 00000000..a43cbf60 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/any_all/test_correlated_tuple_in.test @@ -0,0 +1,37 @@ +# source: test/sql/subquery/any_all/test_correlated_tuple_in.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER); +-- +ok +== +CREATE TABLE t2(a INTEGER, b INTEGER, c INTEGER); +-- +ok +== +INSERT INTO t1 VALUES (1, 1, 1), (1, 2, 1), (2, 2, 2), (3, NULL, 3), (4, 4, 5); +-- +ok +== +INSERT INTO t2 VALUES (1, 1, 1), (2, 2, 3), (3, NULL, 3), (4, 4, 5); +-- +ok +== +SELECT t1.a FROM t1 WHERE (a, b) IN (SELECT (t2.a, t2.b) FROM t2 WHERE t2.c = t1.c) ORDER BY ALL +-- +ok +== +SELECT a, b, (a, b) IN (SELECT (t2.a, t2.b) FROM t2 WHERE t2.c = t1.c) FROM t1 ORDER BY ALL +-- +ok +== +SELECT t1.a FROM t1 WHERE (a, b) NOT IN (SELECT (t2.a, t2.b) FROM t2 WHERE t2.c = t1.c) ORDER BY ALL +-- +ok +== +SELECT t1.a FROM t1 WHERE (a, b) IN (SELECT t2.a, t2.b FROM t2 WHERE t2.c = t1.c) +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_multi_column_mark_join_nulls.test b/parser/testdata/corpus/sql/subquery/any_all/test_multi_column_mark_join_nulls.test index b76840c0..e16072b6 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_multi_column_mark_join_nulls.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_multi_column_mark_join_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_multi_column_mark_join_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a, b, diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_row_comparison_any_all.test b/parser/testdata/corpus/sql/subquery/any_all/test_row_comparison_any_all.test index 7e641c59..a5781997 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_row_comparison_any_all.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_row_comparison_any_all.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_row_comparison_any_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_data(a INTEGER, b INTEGER); diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_row_not_equal_any_null_semantics.test b/parser/testdata/corpus/sql/subquery/any_all/test_row_not_equal_any_null_semantics.test index ba11e28b..2760c694 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_row_not_equal_any_null_semantics.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_row_not_equal_any_null_semantics.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_row_not_equal_any_null_semantics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (1, 2) <> ANY (SELECT * FROM (VALUES (1, NULL::INT)) t(x, y)) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_scalar_any_all.test b/parser/testdata/corpus/sql/subquery/any_all/test_scalar_any_all.test index 55cd6cf8..cdda956c 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_scalar_any_all.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_scalar_any_all.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_scalar_any_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 = ANY(SELECT 1) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_scalar_in.test b/parser/testdata/corpus/sql/subquery/any_all/test_scalar_in.test index 5d61bfd2..8645818c 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_scalar_in.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_scalar_in.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_scalar_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 IN (SELECT 1) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_simple_not_in.test b/parser/testdata/corpus/sql/subquery/any_all/test_simple_not_in.test index 091d8529..d56527af 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_simple_not_in.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_simple_not_in.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_simple_not_in.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 AS one WHERE 1 IN (SELECT 1); diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_some_subquery.test b/parser/testdata/corpus/sql/subquery/any_all/test_some_subquery.test index 0bec7eb3..3ce33ecd 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_some_subquery.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_some_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_some_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 5 = SOME(SELECT 5) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_all_subquery.test b/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_all_subquery.test index cd6c3927..d1c67f48 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_all_subquery.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_all_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_uncorrelated_all_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM integers WHERE i >= ALL(SELECT i FROM integers) diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_any_subquery.test b/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_any_subquery.test index 56b115a5..f7f71b3e 100644 --- a/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_any_subquery.test +++ b/parser/testdata/corpus/sql/subquery/any_all/test_uncorrelated_any_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all/test_uncorrelated_any_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM integers WHERE i <= ANY(SELECT i FROM integers) diff --git a/parser/testdata/corpus/sql/subquery/any_all_variant_extremum.test b/parser/testdata/corpus/sql/subquery/any_all_variant_extremum.test index ff2f07e2..45eb4ee7 100644 --- a/parser/testdata/corpus/sql/subquery/any_all_variant_extremum.test +++ b/parser/testdata/corpus/sql/subquery/any_all_variant_extremum.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/any_all_variant_extremum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v AS SELECT x::INTEGER::VARIANT AS v FROM (VALUES (7),(15)) s(x); diff --git a/parser/testdata/corpus/sql/subquery/complex/complex_correlated_subquery_issue.test b/parser/testdata/corpus/sql/subquery/complex/complex_correlated_subquery_issue.test index 69f16d04..24d5c429 100644 --- a/parser/testdata/corpus/sql/subquery/complex/complex_correlated_subquery_issue.test +++ b/parser/testdata/corpus/sql/subquery/complex/complex_correlated_subquery_issue.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/complex/complex_correlated_subquery_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t2(c0 INT); diff --git a/parser/testdata/corpus/sql/subquery/complex/correlated_internal_issue_5975.test b/parser/testdata/corpus/sql/subquery/complex/correlated_internal_issue_5975.test index 5b11e9d8..33a7eda1 100644 --- a/parser/testdata/corpus/sql/subquery/complex/correlated_internal_issue_5975.test +++ b/parser/testdata/corpus/sql/subquery/complex/correlated_internal_issue_5975.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/complex/correlated_internal_issue_5975.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE my_logs ( diff --git a/parser/testdata/corpus/sql/subquery/complex/correlated_list_any_join.test b/parser/testdata/corpus/sql/subquery/complex/correlated_list_any_join.test index 35f20bf9..bc9f3a40 100644 --- a/parser/testdata/corpus/sql/subquery/complex/correlated_list_any_join.test +++ b/parser/testdata/corpus/sql/subquery/complex/correlated_list_any_join.test @@ -1,12 +1,8 @@ # source: test/sql/subquery/complex/correlated_list_any_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE TABLE lists(l INTEGER[]); --- -ok -== INSERT INTO lists VALUES (ARRAY[1]), (ARRAY[2]), (ARRAY[3]), (NULL); -- ok diff --git a/parser/testdata/corpus/sql/subquery/complex/nested_unnest_subquery.test b/parser/testdata/corpus/sql/subquery/complex/nested_unnest_subquery.test index d0d9ace2..605a0a7f 100644 --- a/parser/testdata/corpus/sql/subquery/complex/nested_unnest_subquery.test +++ b/parser/testdata/corpus/sql/subquery/complex/nested_unnest_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/complex/nested_unnest_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_lists(l INTEGER[][]); diff --git a/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists.test b/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists.test index 2e45f29c..b117d38e 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_correlated_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, EXISTS(SELECT i FROM integers WHERE i1.i>2) FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists_with_derived_table.test b/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists_with_derived_table.test index e17c6fd4..aaefd5b0 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists_with_derived_table.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_correlated_exists_with_derived_table.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_correlated_exists_with_derived_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t0(c2 INT); diff --git a/parser/testdata/corpus/sql/subquery/exists/test_exists_union_by_name.test b/parser/testdata/corpus/sql/subquery/exists/test_exists_union_by_name.test index f0e220bc..b9b59bd3 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_exists_union_by_name.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_exists_union_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_exists_union_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ( diff --git a/parser/testdata/corpus/sql/subquery/exists/test_issue_22267.test b/parser/testdata/corpus/sql/subquery/exists/test_issue_22267.test index b695725f..89141eee 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_issue_22267.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_issue_22267.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_issue_22267.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE posts ( diff --git a/parser/testdata/corpus/sql/subquery/exists/test_issue_23979.test b/parser/testdata/corpus/sql/subquery/exists/test_issue_23979.test index fb48c829..33cc6d17 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_issue_23979.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_issue_23979.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_issue_23979.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE issue23979_l(o INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/subquery/exists/test_issue_26401.test b/parser/testdata/corpus/sql/subquery/exists/test_issue_26401.test index 1835c631..a529c414 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_issue_26401.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_issue_26401.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_issue_26401.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INT); diff --git a/parser/testdata/corpus/sql/subquery/exists/test_issue_9308.test b/parser/testdata/corpus/sql/subquery/exists/test_issue_9308.test index baf0f2c2..e1c862f7 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_issue_9308.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_issue_9308.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_issue_9308.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table t1(c1 int64); diff --git a/parser/testdata/corpus/sql/subquery/exists/test_scalar_exists.test b/parser/testdata/corpus/sql/subquery/exists/test_scalar_exists.test index 64a5b523..38e5bf50 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_scalar_exists.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_scalar_exists.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_scalar_exists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT EXISTS(SELECT 1) diff --git a/parser/testdata/corpus/sql/subquery/exists/test_uncorrelated_exists_subquery.test b/parser/testdata/corpus/sql/subquery/exists/test_uncorrelated_exists_subquery.test index 58f36f70..01a722ab 100644 --- a/parser/testdata/corpus/sql/subquery/exists/test_uncorrelated_exists_subquery.test +++ b/parser/testdata/corpus/sql/subquery/exists/test_uncorrelated_exists_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/exists/test_uncorrelated_exists_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE EXISTS(SELECT 1) ORDER BY i diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_arrays.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_arrays.test index 972515e1..7a40f723 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_arrays.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_arrays.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_arrays.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(i INTEGER, arr INT[]); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_asof_join.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_asof_join.test new file mode 100644 index 00000000..71650eb4 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_asof_join.test @@ -0,0 +1,200 @@ +# source: test/sql/subquery/lateral/lateral_asof_join.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE prices(ts INTEGER, price INTEGER); +-- +ok +== +INSERT INTO prices VALUES (1, 10), (5, 50), (9, 90); +-- +ok +== +CREATE TABLE probes(x INTEGER); +-- +ok +== +INSERT INTO probes VALUES (4), (10); +-- +ok +== +CREATE TABLE big_prices AS SELECT r AS ts, r * 10 AS price FROM range(0, 1000, 5) t(r); +-- +ok +== +CREATE TABLE big_probes AS SELECT r AS x FROM range(1000) t(r); +-- +ok +== +SELECT o.k, q.n FROM (VALUES (1), (2)) o(k), LATERAL ( + WITH RECURSIVE t(i, n) AS ( + SELECT 0, o.k + UNION ALL + SELECT 1, v.x + FROM (VALUES (2)) v(x) + ASOF JOIN (SELECT n FROM t WHERE i = 0) tt ON v.x >= tt.n + ) + SELECT n FROM t WHERE i = 1 +) q ORDER BY ALL; +-- +ok +== +SET asof_loop_join_threshold = {threshold}; +-- +error: Parser Error: syntax error at or near "}" +== +SELECT o.k, q.x, q.n +FROM (VALUES (1), (2)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (VALUES (2)) v(x) + ASOF JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.cutoff, q.x, q.ts, q.price +FROM (VALUES (1), (5), (9)) o(cutoff), LATERAL ( + SELECT p.x, r.ts, r.price + FROM probes p + ASOF JOIN (SELECT ts, price FROM prices WHERE ts <= o.cutoff) r ON p.x >= r.ts +) q ORDER BY ALL; +-- +ok +== +SELECT o.cutoff, q.x, q.price FROM (VALUES (5), (5), (9)) o(cutoff), LATERAL ( + SELECT p.x, r.price + FROM probes p + ASOF JOIN (SELECT ts, price FROM prices WHERE ts <= o.cutoff) r ON p.x >= r.ts + WHERE p.x = 10 +) q ORDER BY ALL; +-- +ok +== +SELECT o.cutoff, q.x, q.price FROM (VALUES (5), (NULL)) o(cutoff), LATERAL ( + SELECT p.x, r.price + FROM probes p + ASOF JOIN (SELECT ts, price FROM prices WHERE ts <= o.cutoff) r ON p.x >= r.ts +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.n FROM (VALUES (NULL), (2)) o(k), LATERAL ( + SELECT t.n + FROM (VALUES (2)) v(x) + ASOF JOIN (SELECT coalesce(o.k, 0) AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.ts FROM (VALUES (4), (10)) o(k), LATERAL ( + SELECT t.ts FROM (SELECT o.k AS x) v ASOF JOIN prices t ON v.x >= t.ts +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x, q.n FROM (VALUES (1), (2)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (SELECT o.k + 1 AS x) v + ASOF JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.cutoff, q.x, q.ts FROM (VALUES (5), (9)) o(cutoff), LATERAL ( + SELECT p.x, r.ts + FROM probes p + ASOF JOIN (SELECT ts FROM prices WHERE ts <= o.cutoff) r ON p.x <= r.ts +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x, q.n FROM (VALUES (1), (2)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (VALUES (0), (2)) v(x) + ASOF LEFT JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x, q.n FROM (VALUES (1), (3)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (VALUES (2)) v(x) + ASOF RIGHT JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x FROM (VALUES (1), (3)) o(k), LATERAL ( + SELECT v.x FROM (VALUES (2)) v(x) ASOF SEMI JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x FROM (VALUES (1), (3)) o(k), LATERAL ( + SELECT v.x FROM (VALUES (2)) v(x) ASOF ANTI JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x, q.n FROM (VALUES (1), (3)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (VALUES (2)) v(x) + ASOF FULL JOIN (SELECT o.k AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT o.k, q.x, q.tag FROM (VALUES (1), (2)) o(k), LATERAL ( + SELECT v.x, t.tag + FROM (VALUES (2)) v(x) + ASOF JOIN (SELECT o.k AS n, 'd' || o.k AS tag) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SELECT count(*) FROM ( + SELECT o.cutoff, q.x, q.price + FROM (VALUES (300), (600), (995)) o(cutoff), LATERAL ( + SELECT p.x, r.price + FROM big_probes p + ASOF JOIN (SELECT ts, price FROM big_prices WHERE ts <= o.cutoff) r ON p.x >= r.ts + ) q + EXCEPT ALL + SELECT o.cutoff, p.x, 10 * (least(p.x, o.cutoff) - least(p.x, o.cutoff) % 5) + FROM (VALUES (300), (600), (995)) o(cutoff), big_probes p +); +-- +ok +== +SELECT count(*) FROM ( + SELECT o.cutoff, p.x, 10 * (least(p.x, o.cutoff) - least(p.x, o.cutoff) % 5) + FROM (VALUES (300), (600), (995)) o(cutoff), big_probes p + EXCEPT ALL + SELECT o.cutoff, q.x, q.price + FROM (VALUES (300), (600), (995)) o(cutoff), LATERAL ( + SELECT p.x, r.price + FROM big_probes p + ASOF JOIN (SELECT ts, price FROM big_prices WHERE ts <= o.cutoff) r ON p.x >= r.ts + ) q +); +-- +ok +== +SET debug_asof_iejoin=True; +-- +ok +== +SELECT o.k, q.x::VARCHAR, q.n::VARCHAR +FROM (VALUES (1), (2)) o(k), LATERAL ( + SELECT v.x, t.n + FROM (VALUES (TIMESTAMP '2024-01-02')) v(x) + ASOF JOIN (SELECT TIMESTAMP '2024-01-01' + INTERVAL (o.k) DAY AS n) t ON v.x >= t.n +) q ORDER BY ALL; +-- +ok +== +SET debug_asof_iejoin=False; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_binding_views.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_binding_views.test index a006e080..2e871301 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_binding_views.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_binding_views.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_binding_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select date '2000-01-01' as dt) to '{TEST_DIR}/datetest.csv'; diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_cte_list_correlation.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_cte_list_correlation.test new file mode 100644 index 00000000..d0776ec4 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_cte_list_correlation.test @@ -0,0 +1,49 @@ +# source: test/sql/subquery/lateral/lateral_cte_list_correlation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE q AS SELECT i % 3 AS s, i % 4 AS k FROM range(200) t(i); +-- +ok +== +SELECT count(*) +FROM (VALUES ([0, 1]), ([2])) o(ss), + LATERAL (WITH st(k) AS (VALUES (1), (2)) + SELECT q.k FROM q WHERE q.k IN (SELECT k FROM st) AND list_contains(o.ss, q.s)) n; +-- +ok +== +SELECT o.ss, count(*) +FROM (VALUES ([0, 1]), ([2]), ([0, 1])) o(ss), + LATERAL (WITH st(k) AS (VALUES (1), (2)) + SELECT q.k FROM q WHERE q.k = ANY (SELECT k FROM st) AND list_contains(o.ss, q.s)) n +GROUP BY ALL +ORDER BY ALL; +-- +ok +== +SELECT o.ss, EXISTS (WITH st(k) AS (VALUES (1), (2)) + SELECT 1 FROM q WHERE q.k IN (SELECT k FROM st) AND list_contains(o.ss, q.s)) +FROM (VALUES ([0, 1]), ([2]), ([5]), ([0, 1])) o(ss) +ORDER BY ALL; +-- +ok +== +CREATE TABLE o AS SELECT i AS x, i % 3 AS g FROM range(10) t(i); +-- +ok +== +SELECT count(*), sum(n.k) +FROM o, LATERAL (SELECT * FROM (SELECT o.x) p, + LATERAL (WITH st(k) AS (VALUES (1), (2)) + SELECT q.k FROM q WHERE q.k IN (SELECT k FROM st) AND q.s = o.g AND q.k < p.x)) n; +-- +ok +== +SELECT count(*), sum(n.k) +FROM o, LATERAL (WITH a(k) AS (VALUES (1), (2), (3)), b(k) AS (SELECT k FROM a WHERE k > 1) + SELECT q.k FROM q WHERE q.k IN (SELECT k FROM a) AND q.k IN (SELECT k FROM b) AND q.s = o.g) n; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter.test index 3df77891..439f9554 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_domain_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vertices AS SELECT i::INTEGER AS id FROM range(100) t(i); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter_shapes.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter_shapes.test index db46522e..3a1065fe 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter_shapes.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_filter_shapes.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_domain_filter_shapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vertices AS SELECT i::INTEGER id FROM range(100) t(i); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_join_filter_semantics.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_join_filter_semantics.test index 33b8fb20..7d8665d2 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_join_filter_semantics.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_domain_join_filter_semantics.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_domain_join_filter_semantics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE person(id BIGINT, tag VARCHAR, selected BOOLEAN, grp BIGINT); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_empty_grouping_sets.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_empty_grouping_sets.test new file mode 100644 index 00000000..78918d47 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_empty_grouping_sets.test @@ -0,0 +1,390 @@ +# source: test/sql/subquery/lateral/lateral_empty_grouping_sets.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT o.k, a.c +FROM (VALUES (7), (8)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1), (1), (2)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), (), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (7), (8)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS (()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, g + FROM (VALUES (1, 10), (1, 20)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), (g), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, g + FROM (VALUES (1, 10), (1, 20)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), (g)) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (7), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (NULL), (1)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.s, a.f +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, sum(v) AS s, first(v) AS f + FROM (VALUES (1, 42)) AS i(k, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.gm, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, GROUPING(g) AS gm, g + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.gm, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, GROUPING(g, h) AS gm, g + FROM (VALUES (1, 10, 100)) AS i(k, g, h) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g, h), (), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, g + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY CUBE (g) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.g, a.h +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, g, h + FROM (VALUES (1, 10, 100)) AS i(k, g, h) + WHERE i.k = o.k + GROUP BY ROLLUP (g, h) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) + HAVING count(*) > 0 +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) + HAVING count(*) = 0 +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.s +FROM (VALUES (7)) AS o(k) LEFT JOIN LATERAL ( + SELECT sum(v) AS s + FROM (VALUES (1, 42)) AS i(k, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a ON true +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.s +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT sum(v) AS s + FROM (VALUES (1, 42)) AS i(k, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, ( + SELECT sum(v) + FROM (VALUES (1, 42)) AS i(k, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS s +FROM (VALUES (7)) AS o(k); +-- +ok +== +SELECT o.k, ( + SELECT sum(v) + FROM (VALUES (1, 42)) AS i(k, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS s +FROM (VALUES (1)) AS o(k); +-- +ok +== +SELECT o.k, ( + SELECT sum(i.v) + FROM (VALUES (1, 10, 42)) AS i(k, g, v) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((i.g), (i.g)) +) AS s +FROM (VALUES (1)) AS o(k); +-- +ok +== +SELECT o.k, ( + SELECT GROUPING(g) + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), ()) +) AS gm +FROM (VALUES (7)) AS o(k) +ORDER BY ALL; +-- +ok +== +SELECT o.k, ( + SELECT GROUPING(g) + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), ()) +) AS gm +FROM (VALUES (1)) AS o(k); +-- +ok +== +SELECT o.k +FROM (VALUES (7), (8)) AS o(k) +WHERE ( + SELECT GROUPING(g) + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), ()) +) = 1 +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), (), ()) + HAVING GROUPING(g) = 1 +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS (ROLLUP (g), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, EXISTS ( + SELECT count(*) + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS e +FROM (VALUES (1), (7)) AS o(k) +ORDER BY ALL; +-- +ok +== +SELECT o.k, ( + SELECT count(*) + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS c +FROM (VALUES (1), (7)) AS o(k) +ORDER BY ALL; +-- +ok +== +SELECT o.k, ( + SELECT count(*) + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS (()) +) AS c +FROM (VALUES (1), (7)) AS o(k) +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.g +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, g + FROM (VALUES (1, 10), (1, 10), (1, 20)) AS i(k, g) + WHERE i.k = o.k + GROUP BY g +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES (1)) AS i(k) + WHERE i.k = o.k +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c +FROM (VALUES ([7]), ([8]), ([1])) AS o(k), +LATERAL ( + SELECT count(*) AS c + FROM (VALUES ([1])) AS i(k) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.gm +FROM (VALUES ([1]), ([7])) AS o(k), +LATERAL ( + SELECT count(*) AS c, GROUPING(g) AS gm + FROM (VALUES ([1], 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), (), ()) +) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.c, a.gm +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT count(*) AS c, GROUPING(g) AS gm + FROM (VALUES (1, 10)) AS i(k, g) + WHERE i.k = o.k + GROUP BY GROUPING SETS ((g), (), ()) +) AS a +ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_1463.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_1463.test index 96630a1a..2bd10e58 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_1463.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_1463.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_fuzzer_1463.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_5984_23.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_5984_23.test index 052d4188..91148a1c 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_5984_23.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_fuzzer_5984_23.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_fuzzer_5984_23.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (SELECT 1) t1(c1), (SELECT TRUE IN (TRUE, t1.c1::VARCHAR LIKE 'a' ESCAPE NULL)); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_grouping_sets.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_grouping_sets.test index e26dcfbb..aaad1cee 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_grouping_sets.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_grouping_sets.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_grouping_sets.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select x, a, b diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_aggregate.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_aggregate.test index a2bc2fa7..ad6d741c 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_aggregate.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_join_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers, (SELECT SUM(i)) t(sum); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_chain.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_chain.test index 20666d82..072acd6f 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_chain.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_chain.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_join_chain.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers, (SELECT [i + 1]) t(k), (SELECT UNNEST(k)) t2(l) ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_generated_columns.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_generated_columns.test index e91d8f9d..cec436a1 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_generated_columns.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_generated_columns.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_join_generated_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_macro.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_macro.test index bde8e37c..3ea9057c 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_macro.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_macro.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_join_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE FUNCTION my_func(x) AS (x + x) diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_join_typed_macro.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_typed_macro.test new file mode 100644 index 00000000..ea6f081a --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_join_typed_macro.test @@ -0,0 +1,178 @@ +# source: test/sql/subquery/lateral/lateral_join_typed_macro.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO m1(a INTEGER) AS a + 1; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, LATERAL (SELECT m1(t.v) AS f) _; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, LATERAL (SELECT m1(v) AS f) _; +-- +ok +== +CREATE MACRO m1_untyped(a) AS a + 1; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, LATERAL (SELECT m1_untyped(t.v) AS f) _; +-- +ok +== +CREATE TABLE tbl (v INTEGER); +-- +ok +== +INSERT INTO tbl VALUES (1), (2), (2), (NULL); +-- +ok +== +SELECT v, f FROM tbl t, LATERAL (SELECT m1(t.v) AS f) _ ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, f FROM tbl t LEFT JOIN LATERAL (SELECT m1(t.v) AS f) _ ON true ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, f FROM tbl t LEFT JOIN LATERAL (SELECT m1(t.v) AS f WHERE t.v = 2) _ ON true ORDER BY v NULLS LAST, f; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, + LATERAL (SELECT * FROM (SELECT 2 AS w) u, LATERAL (SELECT m1(t.v) AS f) __) _; +-- +ok +== +CREATE MACRO m2(a INTEGER, b INTEGER) AS a + b; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, + LATERAL (SELECT * FROM (SELECT 2 AS w) u, LATERAL (SELECT m2(t.v, u.w) AS f) __) _; +-- +ok +== +SELECT f FROM (SELECT 1 AS v, 2 AS w) t, LATERAL (SELECT m2(t.v, t.w) AS f) _; +-- +ok +== +CREATE MACRO m_unused(a INTEGER, b INTEGER) AS a + 1; +-- +ok +== +SELECT f FROM (SELECT 1 AS v, 2 AS w) t, LATERAL (SELECT m_unused(t.v, t.w) AS f) _; +-- +ok +== +CREATE MACRO m_overload(a INTEGER) AS a + 1, (a VARCHAR) AS a || 'x'; +-- +ok +== +SELECT f, g FROM (SELECT 1 AS v, 'a' AS s) t, LATERAL (SELECT m_overload(t.v) AS f, m_overload(t.s) AS g) _; +-- +ok +== +CREATE MACRO tm(a INTEGER) AS TABLE SELECT a + 1 AS f; +-- +ok +== +SELECT v, f FROM tbl t, LATERAL tm(t.v) _ ORDER BY v NULLS LAST; +-- +ok +== +SELECT (SELECT m1(t.v)) FROM (SELECT 1 AS v) t; +-- +ok +== +SELECT v FROM tbl t WHERE EXISTS (SELECT 1 WHERE m1(t.v) = 3) ORDER BY v; +-- +ok +== +SELECT v FROM tbl t WHERE v IN (SELECT m1(t.v) - 1) ORDER BY v; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, LATERAL (SELECT m1(41) AS f) _; +-- +ok +== +CREATE MACRO discard_int(a INTEGER) AS 42; +-- +ok +== +SELECT t.v, q.f FROM (VALUES (1), (2)) t(v) RIGHT JOIN LATERAL (SELECT discard_int(t.v) AS f) q ON true ORDER BY t.v; +-- +ok +== +SELECT t.v, q.f FROM (VALUES (1), (2)) t(v) FULL JOIN LATERAL (SELECT discard_int(t.v) AS f) q ON true ORDER BY t.v; +-- +ok +== +SELECT t.v, q.f FROM (VALUES (1), (2)) t(v) LEFT JOIN LATERAL (SELECT discard_int(t.v) AS f) q ON (SELECT true) ORDER BY t.v; +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT (SELECT m1(t.v)) AS f) q; +-- +ok +== +SELECT f FROM (SELECT 1 AS v) t, LATERAL (SELECT m1(m1(t.v)) AS f) _; +-- +ok +== +SELECT v2, f FROM (VALUES (1), (2)) t(v), LATERAL (SELECT t.v AS v2, discard_int(t.v) AS f) q ORDER BY v2; +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT m1((SELECT t.v)) AS f) q; +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v) RIGHT JOIN LATERAL (SELECT discard_int((SELECT t.v)) AS f) q ON true; +-- +ok +== +CREATE MACRO wm(a INTEGER) AS sum(a); +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT wm(t.v) OVER () AS f) q; +-- +ok +== +CREATE MACRO md(a INTEGER, b INTEGER := 10) AS a + b; +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT md(a := t.v) AS f) q; +-- +ok +== +SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT md(b := t.v, a := 10) AS f) q; +-- +ok +== +CREATE MACRO tmd(a INTEGER) AS TABLE SELECT 42 AS f; +-- +ok +== +SELECT t.v, q.f FROM (VALUES (1), (2)) t(v) RIGHT JOIN LATERAL tmd(t.v) q ON true ORDER BY t.v; +-- +ok +== +SELECT q.x FROM (VALUES (1)) t(v), LATERAL ( + WITH RECURSIVE r(x) AS ( + SELECT m1(t.v) + UNION ALL + SELECT x + 1 FROM r WHERE x < 3 + ) + SELECT x FROM r +) q ORDER BY q.x; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_large_lists.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_large_lists.test index c2304f39..ef8c9cd6 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_large_lists.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_large_lists.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_large_lists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT total_seats diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_left_join.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_left_join.test index 3b5cacbc..4be508ce 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_left_join.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_left_join.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_left_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers LEFT JOIN LATERAL (SELECT integers.i + 1) t(b) ON (i=b) ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_nested_domain_filter.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_nested_domain_filter.test index c2276dd8..4c175758 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_nested_domain_filter.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_nested_domain_filter.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_nested_domain_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE person(id BIGINT PRIMARY KEY, selected BOOLEAN); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_null_propagation_shortcut.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_null_propagation_shortcut.test new file mode 100644 index 00000000..bd4446a4 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_null_propagation_shortcut.test @@ -0,0 +1,80 @@ +# source: test/sql/subquery/lateral/lateral_null_propagation_shortcut.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT o.k, ( + SELECT GROUPING(a.s) + FROM (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a + GROUP BY GROUPING SETS ((a.s), ()) +) FROM (VALUES (7)) AS o(k); +-- +ok +== +SELECT o.k, a2.gm, a2.c +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT GROUPING(a.s) AS gm, count(*) AS c + FROM (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a + GROUP BY GROUPING SETS ((a.s), ()) +) AS a2 +ORDER BY ALL; +-- +ok +== +SELECT o.k, ( + SELECT row_number() OVER () + FROM (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a +) FROM (VALUES (1), (7)) AS o(k) +ORDER BY ALL; +-- +ok +== +SELECT ( + SELECT b.x + a.s + FROM (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a, + (VALUES (1), (2)) AS b(x) +) FROM (VALUES (7)) AS o(k); +-- +ok +== +SELECT o.k, a2.r +FROM (VALUES (1), (7)) AS o(k), +LATERAL ( + SELECT b.x + a.s AS r + FROM (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a, + (VALUES (1), (2)) AS b(x) +) AS a2 +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.s +FROM (VALUES (1), (7)) AS o(k), +LATERAL (SELECT DISTINCT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k) AS a +ORDER BY ALL; +-- +ok +== +SELECT o.k, a.s +FROM (VALUES (1), (7)) AS o(k), +LATERAL (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k ORDER BY 1) AS a +ORDER BY ALL; +-- +ok +== +SELECT ( + SELECT sum(i.v) FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k + UNION ALL + SELECT 1 +) FROM (VALUES (7)) AS o(k); +-- +ok +== +SELECT o.k, ( + SELECT sum(i.v) FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k +) FROM (VALUES (1), (7)) AS o(k) +ORDER BY ALL; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_qualify.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_qualify.test index 8a98b6c4..4de4aea1 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_qualify.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_qualify.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_qualify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM (SELECT 42) t(x), (SELECT x, row_number() OVER () QUALIFY NULL); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_recursive_filter_pushdown.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_recursive_filter_pushdown.test index 3acecf17..e11a00fc 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_recursive_filter_pushdown.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_recursive_filter_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_recursive_filter_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE vertices AS SELECT i::INTEGER AS id FROM range(1, 101) t(i); diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_unnest_intermediate_projection.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_unnest_intermediate_projection.test new file mode 100644 index 00000000..34502521 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_unnest_intermediate_projection.test @@ -0,0 +1,132 @@ +# source: test/sql/subquery/lateral/lateral_unnest_intermediate_projection.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT * FROM (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r)) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[1] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [10,20,30]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[k] AS a FROM (SELECT j AS k FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r1) r2) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3,4]::INTEGER[] AS xs, r AS i FROM range(1, 3) t(r)) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i, 5)) AS elem) b) r) e +ORDER BY i, a; +-- +ok +== +WITH expected AS ( + SELECT s.i AS i, xs[j] AS a + FROM (SELECT [1,2,3,4]::INTEGER[] AS xs, r AS i FROM range(1, 3) t(r)) s, + (SELECT unnest(range(1, 5)) AS j) u + WHERE j >= s.i +), actual AS ( + SELECT i, a FROM (SELECT [1,2,3,4]::INTEGER[] AS xs, r AS i FROM range(1, 3) t(r)) s + CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i, 5)) AS elem) b) r) e +) +SELECT count(*) FROM ( + (SELECT * FROM expected EXCEPT ALL SELECT * FROM actual) + UNION ALL + (SELECT * FROM actual EXCEPT ALL SELECT * FROM expected) +); +-- +ok +== +SELECT * FROM (SELECT [5,7]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT v + i AS a FROM (SELECT elem AS v FROM (SELECT unnest(xs) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT 'abc' AS w, 1 AS i) s +CROSS JOIN (SELECT w || CAST(j AS VARCHAR) AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +LEFT JOIN LATERAL (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e ON true +ORDER BY a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 5 AS i) s +LEFT JOIN LATERAL (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e ON true; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 5 AS i) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e; +-- +ok +== +SELECT * FROM (SELECT NULL::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT i, a FROM (SELECT CASE WHEN r = 1 THEN [1,2,3]::INTEGER[] ELSE NULL END AS xs, r AS i FROM range(1, 3) t(r)) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY i, a; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT unnest(range(i+1, 4)) AS j) b) e +ORDER BY a; +-- +ok +== +SELECT xs, i, (SELECT max(xs[j]) FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) AS a +FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s; +-- +ok +== +SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[r] AS a FROM range(i, i + 2) t(r)) e +ORDER BY a; +-- +ok +== +SELECT i, a FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[j] + twice AS a FROM (SELECT elem AS j, elem * 2 AS twice FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +SELECT i, a FROM (VALUES ([1,2,3]::INTEGER[], 1), ([1,2,3]::INTEGER[], 1)) s(xs, i) +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e +ORDER BY a; +-- +ok +== +EXPLAIN SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 1 AS i) s +CROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e; +-- +ok +== +SELECT i, (SELECT sum(xs[j]) FROM (SELECT elem AS j FROM (SELECT unnest(range(i, 4)) AS elem) b) r) AS total +FROM (SELECT [1,2,3]::INTEGER[] AS xs, r AS i FROM range(1, 3) t(r)) s +ORDER BY i; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/lateral/lateral_values.test b/parser/testdata/corpus/sql/subquery/lateral/lateral_values.test index dded9401..874d6ee1 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/lateral_values.test +++ b/parser/testdata/corpus/sql/subquery/lateral/lateral_values.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/lateral_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers, LATERAL (VALUES (integers.i + 1)) t(k) ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/lateral/pg_lateral.test b/parser/testdata/corpus/sql/subquery/lateral/pg_lateral.test index 9f509a56..ebd36095 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/pg_lateral.test +++ b/parser/testdata/corpus/sql/subquery/lateral/pg_lateral.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/pg_lateral.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select s1, s2, sm diff --git a/parser/testdata/corpus/sql/subquery/lateral/qualified_star.test b/parser/testdata/corpus/sql/subquery/lateral/qualified_star.test index 2414ba96..54594898 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/qualified_star.test +++ b/parser/testdata/corpus/sql/subquery/lateral/qualified_star.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/qualified_star.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE outer_rows(i INTEGER, j VARCHAR); diff --git a/parser/testdata/corpus/sql/subquery/lateral/test_lateral_join.test b/parser/testdata/corpus/sql/subquery/lateral/test_lateral_join.test index f061d663..c1100038 100644 --- a/parser/testdata/corpus/sql/subquery/lateral/test_lateral_join.test +++ b/parser/testdata/corpus/sql/subquery/lateral/test_lateral_join.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/lateral/test_lateral_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select (select MIN(val) from unnest((select a)) t(val)) from (select ARRAY[1, 2, 3, NULL]) t(a); diff --git a/parser/testdata/corpus/sql/subquery/scalar/array_order_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/array_order_subquery.test index c3908530..8a9c8fbc 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/array_order_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/array_order_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/array_order_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select diff --git a/parser/testdata/corpus/sql/subquery/scalar/array_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/array_subquery.test index 8613581b..6fb2a63d 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/array_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/array_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/array_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, ARRAY( diff --git a/parser/testdata/corpus/sql/subquery/scalar/coalesce_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/coalesce_subquery.test index 812661cc..f7e93c8e 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/coalesce_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/coalesce_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/coalesce_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1 FROM (select 4) v1(vc0) WHERE (3) NOT IN (COALESCE((SELECT 1 WHERE FALSE), v1.vc0)); diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_cte_definition_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_cte_definition_subquery.test new file mode 100644 index 00000000..f7e0f6a5 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_cte_definition_subquery.test @@ -0,0 +1,81 @@ +# source: test/sql/subquery/scalar/correlated_cte_definition_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r FROM c WHERE i1.i IS NOT NULL) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, x FROM integers i1, LATERAL (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + 0 * i1.i AS x FROM c) _ ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i FROM integers i1 WHERE EXISTS (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r FROM c WHERE i1.i = 2) ORDER BY i; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT EXISTS (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r::INT + 0 * i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (WITH d AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r FROM d) SELECT r + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (VALUES (1), (2)) s(v)) SELECT sum(r) + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + i1.i FROM c) FROM (VALUES (2), (2), (NULL)) i1(i) ORDER BY ALL NULLS FIRST; +-- +ok +== +SELECT i FROM integers i1 WHERE (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + 0 * i1.i FROM c) = 1 ORDER BY i; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 'x' AS v) s) SELECT r || i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT (SELECT r FROM c) + (SELECT max(r) FROM c) + i1.i) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT w FROM (SELECT 1 AS v) s, LATERAL (SELECT s.v + 1) t(w)) SELECT w + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS a, 'x' AS b FROM (VALUES (7)) s(v)) SELECT c1.b || (c2.a + i1.i)::VARCHAR FROM c c1 CROSS JOIN c c2) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (WITH RECURSIVE r(n) AS (SELECT (SELECT v) FROM (VALUES (1)) s(v) UNION ALL SELECT (SELECT n + 1) FROM r WHERE n < 3) SELECT n FROM r) SELECT sum(n) + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (VALUES (1)) s(v) WHERE v < 0) SELECT count(*) + i1.i FROM c) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r FROM c); +-- +ok +== +SELECT i, (SELECT x FROM (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r AS x FROM c) q WHERE x = i1.i OR true) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== +SELECT i, (SELECT x FROM (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT r + i1.i AS x FROM c) q WHERE x > 0) FROM integers i1 ORDER BY i NULLS FIRST; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_grouped_expression.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_grouped_expression.test new file mode 100644 index 00000000..c4e9e979 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_grouped_expression.test @@ -0,0 +1,229 @@ +# source: test/sql/subquery/scalar/correlated_grouped_expression.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE orders(order_id INT, created_at TIMESTAMP); +-- +ok +== +INSERT INTO orders VALUES (1, '2024-01-01 10:00'), (2, '2024-01-01 12:00'), (3, '2024-01-02 09:00'), (4, NULL); +-- +ok +== +CREATE TABLE stores(day DATE, is_open INT); +-- +ok +== +INSERT INTO stores VALUES ('2024-01-01', 1), ('2024-01-01', 1), ('2024-01-02', 0); +-- +ok +== +SELECT o.created_at::date AS day, count(*) AS orders, + (SELECT sum(s.is_open) FROM stores s WHERE s.day = o.created_at::date) AS open_stores +FROM orders o +GROUP BY 1 +ORDER BY 1 NULLS LAST; +-- +ok +== +INSERT INTO t VALUES (-1), (1), (1), (2), (NULL); +-- +ok +== +SELECT x::BIGINT, (SELECT x::BIGINT) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT abs(x), (SELECT abs(x)) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x + 1, (SELECT x + 1) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT 1 WHERE x::BIGINT > 0) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT x::BIGINT * 10 + 1) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT x::BIGINT) FROM t GROUP BY x::BIGINT ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT AS g, (SELECT x::BIGINT) FROM t GROUP BY g ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT t.x::BIGINT, (SELECT t.x::BIGINT) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT (SELECT x::BIGINT)) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT FROM t GROUP BY 1 HAVING (SELECT x::BIGINT > 0) ORDER BY 1; +-- +ok +== +CREATE TABLE u(x INT); +-- +ok +== +INSERT INTO u VALUES (5); +-- +ok +== +SELECT x::BIGINT, (SELECT x::BIGINT FROM u) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT max(t.x::BIGINT + u.x) FROM u) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, (SELECT x::INTEGER) FROM t GROUP BY 1; +-- +ok +== +SELECT x::BIGINT, (SELECT abs(x)) FROM t GROUP BY 1; +-- +ok +== +SELECT x::BIGINT, (SELECT list_transform([1, 2], lambda x: x::BIGINT)) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT x::BIGINT, count(*), (SELECT x::BIGINT) FROM t GROUP BY ROLLUP(1) ORDER BY 1 NULLS LAST, 2; +-- +ok +== +SELECT x::BIGINT, abs(x), (SELECT x::BIGINT), (SELECT abs(x)) FROM t GROUP BY GROUPING SETS ((1), (2)) ORDER BY 1 NULLS LAST, 2 NULLS LAST; +-- +ok +== +CREATE TABLE strs(s VARCHAR); +-- +ok +== +INSERT INTO strs VALUES ('a'), ('B'), ('b'), (NULL); +-- +ok +== +SELECT lower(s) COLLATE NOCASE AS g, count(*), (SELECT lower(s) COLLATE NOCASE) FROM strs GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +CREATE TABLE sales(id INT, ts TIMESTAMP, region VARCHAR, amount INT); +-- +ok +== +INSERT INTO sales VALUES + (1, '2024-01-01 08:00', 'east', 10), (2, '2024-01-01 17:00', 'east', 20), (3, '2024-01-01 12:00', 'west', 30), + (4, '2024-01-02 09:00', 'east', 40), (5, '2024-01-02 20:00', 'west', 50), (6, '2024-01-02 21:00', 'west', 60), + (7, '2024-01-03 10:00', 'east', 70), (8, NULL, 'east', 80), (9, '2024-01-03 11:00', NULL, 90); +-- +ok +== +CREATE TABLE targets(day DATE, region VARCHAR, target INT); +-- +ok +== +INSERT INTO targets VALUES + ('2024-01-01', 'east', 25), ('2024-01-01', 'west', 35), ('2024-01-02', 'east', 45), ('2024-01-02', 'west', 100), + ('2024-01-03', 'east', 60), ('2024-01-03', 'west', 10), (NULL, 'east', 1); +-- +ok +== +SELECT s.ts::DATE AS day, upper(s.region) AS r, sum(s.amount) AS total, + (SELECT t.target FROM targets t WHERE t.day = s.ts::DATE AND upper(t.region) = upper(s.region)) AS target +FROM sales s GROUP BY 1, 2 ORDER BY 1 NULLS LAST, 2 NULLS LAST; +-- +ok +== +SELECT ts::DATE AS day, count(*) AS n, + (SELECT sum(t.target) FROM targets t WHERE t.day = ts::DATE) AS day_target, + (SELECT count(*) FROM targets t WHERE t.day < ts::DATE) AS earlier_days +FROM sales GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT ts::DATE AS day, sum(amount) AS total +FROM sales GROUP BY 1 +HAVING sum(amount) > (SELECT sum(t.target) FROM targets t WHERE t.day = ts::DATE) +ORDER BY 1; +-- +ok +== +SELECT s.amount // 25 AS bucket, count(*) AS n, list(s.id ORDER BY s.id) AS ids, + (SELECT s.amount // 25 * 25) AS lower_bound, + (SELECT count(*) FROM sales s2 WHERE s2.amount // 25 = s.amount // 25) AS same_bucket +FROM sales s GROUP BY 1 ORDER BY 1; +-- +ok +== +SELECT i % 5 AS k, count(*) AS n, sum(i) AS s, + (SELECT sum(j) FROM range(10) r(j) WHERE j % 5 = i % 5) AS other_sum, + (SELECT list(j ORDER BY j) FROM range(10) r(j) WHERE j % 5 = i % 5) AS other_list +FROM range(100) t(i) GROUP BY 1 ORDER BY 1; +-- +ok +== +SELECT s.ts::DATE AS day, upper(s.region) AS r, + EXISTS (SELECT 1 FROM targets t WHERE t.day = s.ts::DATE AND t.target > 40) AS big_target, + s.ts::DATE IN (SELECT t.day FROM targets t WHERE upper(t.region) = upper(s.region)) AS has_target, + upper(s.region) = ANY (SELECT upper(t.region) FROM targets t WHERE t.day = s.ts::DATE) AS region_target +FROM sales s GROUP BY 1, 2 ORDER BY 1 NULLS LAST, 2 NULLS LAST; +-- +ok +== +SELECT s.ts::DATE AS day, t.region, sum(s.amount) AS total, max(t.target) AS target, + (SELECT count(*) FROM targets t2 WHERE t2.day = s.ts::DATE) AS targets_that_day +FROM sales s JOIN targets t ON t.day = s.ts::DATE AND t.region = s.region +GROUP BY 1, 2 ORDER BY 1, 2; +-- +ok +== +SELECT s.ts::DATE AS day, upper(s.region) AS r, sum(s.amount) AS total, + (SELECT sum(t.target) FROM targets t WHERE t.day IS NOT DISTINCT FROM s.ts::DATE AND upper(t.region) IS NOT DISTINCT FROM upper(s.region)) AS target +FROM sales s WHERE s.ts IS NOT NULL AND s.region IS NOT NULL +GROUP BY ROLLUP(1, 2) ORDER BY 1 NULLS LAST, 2 NULLS LAST; +-- +ok +== +SELECT ts::DATE AS day, (SELECT t.target FROM targets t WHERE t.day = ts::DATE AND t.region = 'east') AS east_target +FROM sales GROUP BY day ORDER BY east_target NULLS LAST; +-- +ok +== +SELECT ts::DATE AS day, + (SELECT list(t.target ORDER BY t.target) FROM targets t WHERE t.day = ts::DATE GROUP BY t.day) AS targets +FROM sales GROUP BY 1 ORDER BY 1 NULLS LAST; +-- +ok +== +SELECT (SELECT x + (SELECT y) FROM (SELECT 100 AS y) u) +FROM (SELECT 1 AS x, 2 AS y) t +GROUP BY x, x + (SELECT y); +-- +ok +== +CREATE TABLE lookup AS SELECT 2 AS v; +-- +ok +== +CREATE MACRO lookup_v() AS (SELECT v FROM lookup); +-- +ok +== +SELECT (WITH lookup AS (SELECT 100 AS v) SELECT x + lookup_v()) +FROM (VALUES (1)) t(x) +GROUP BY x, x + lookup_v(); +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_missing_columns.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_missing_columns.test index 57c05732..3cb79cec 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/correlated_missing_columns.test +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_missing_columns.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/correlated_missing_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT l_linestat FROM orders) FROM lineitem diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot.test index 222f0301..b2a24beb 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot.test +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/correlated_pivot.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DaysToManufacture, StandardCost, (SELECT ["0", "1", "2", "3", "4"] FROM diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot_error.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot_error.test index d671424a..1647c561 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot_error.test +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_pivot_error.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/correlated_pivot_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DaysToManufacture, StandardCost, (SELECT ["0", "1", "2", "3", "4"] FROM diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_scope_resolution.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_scope_resolution.test index 699b4702..438e1f9b 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/correlated_scope_resolution.test +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_scope_resolution.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/correlated_scope_resolution.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE another_T(col1 INTEGER, col2 INTEGER); diff --git a/parser/testdata/corpus/sql/subquery/scalar/correlated_unnest_join_null.test b/parser/testdata/corpus/sql/subquery/scalar/correlated_unnest_join_null.test new file mode 100644 index 00000000..510733bc --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/correlated_unnest_join_null.test @@ -0,0 +1,86 @@ +# source: test/sql/subquery/scalar/correlated_unnest_join_null.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT [1, NULL, 1] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT [NULL, 1, 1] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT [1, 1, NULL] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT [1, 1] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT [NULL, NULL]::INTEGER[] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT []::INTEGER[] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT NULL::INTEGER[] AS l) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT list(CASE WHEN i % 10 = 0 THEN NULL ELSE i END ORDER BY i) AS l FROM range(100) r(i)) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (SELECT list(CASE WHEN i % 10 = 0 THEN NULL ELSE i // 3 END ORDER BY i) AS l FROM range(3000) r(i)) +-- +ok +== +SELECT c +FROM (SELECT [1, NULL, 1] AS l) s, + LATERAL (SELECT count(*) AS c FROM (SELECT unnest(s.l) AS x) a JOIN (SELECT unnest(s.l) AS x) b ON a.x = b.x) +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l1) AS x) a JOIN (SELECT unnest(l2) AS x) b ON a.x = b.x) +FROM (SELECT [NULL, 1, 2, 2] AS l1, [2, NULL, 1, 2] AS l2) +-- +ok +== +SELECT id, (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (VALUES (1, [1, NULL, 1]), (2, [NULL, 2, 2, 2]), (3, [3]), (4, [NULL]), (5, NULL)) t(id, l) +ORDER BY id +-- +ok +== +SELECT id, (SELECT count(*) FROM (SELECT unnest(l) AS x) a LEFT JOIN (SELECT unnest(l) AS x) b ON a.x = b.x) +FROM (VALUES (1, [1, NULL, 1]), (2, [NULL, 2, 2, 2]), (3, [3]), (4, [NULL]), (5, NULL)) t(id, l) +ORDER BY id +-- +ok +== +SELECT id, (SELECT count(*) FROM (SELECT unnest(l) AS x) a LEFT JOIN (SELECT unnest(l) AS x) b ON a.x = b.x + WHERE a.x IS NOT NULL) +FROM (VALUES (1, [1, NULL, 1]), (2, [NULL, 2, 2, 2]), (3, [3]), (4, [NULL]), (5, NULL)) t(id, l) +ORDER BY id +-- +ok +== +SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a LEFT JOIN (SELECT unnest(l) AS x) b ON a.x = b.x + WHERE a.x IS NOT NULL) +FROM (SELECT [NULL, 1, 1] AS l) +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/in_multiple_columns.test b/parser/testdata/corpus/sql/subquery/scalar/in_multiple_columns.test index a7e0cc43..2ec212e7 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/in_multiple_columns.test +++ b/parser/testdata/corpus/sql/subquery/scalar/in_multiple_columns.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/in_multiple_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE table1(x INTEGER, y INTEGER); diff --git a/parser/testdata/corpus/sql/subquery/scalar/nested_subquery_window.test b/parser/testdata/corpus/sql/subquery/scalar/nested_subquery_window.test index 0bfa41bd..d7146768 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/nested_subquery_window.test +++ b/parser/testdata/corpus/sql/subquery/scalar/nested_subquery_window.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/nested_subquery_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT max((SELECT subq_0.c0 AS c1))) FROM (SELECT NULL AS c0) AS subq_0; diff --git a/parser/testdata/corpus/sql/subquery/scalar/order_by_correlated.test b/parser/testdata/corpus/sql/subquery/scalar/order_by_correlated.test index 5059bca1..3b2be3d0 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/order_by_correlated.test +++ b/parser/testdata/corpus/sql/subquery/scalar/order_by_correlated.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/order_by_correlated.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, ( diff --git a/parser/testdata/corpus/sql/subquery/scalar/pg_grouping_expression_references.test b/parser/testdata/corpus/sql/subquery/scalar/pg_grouping_expression_references.test new file mode 100644 index 00000000..ffa71695 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/pg_grouping_expression_references.test @@ -0,0 +1,86 @@ +# source: test/sql/subquery/scalar/pg_grouping_expression_references.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE int4_tbl(f1 INTEGER); +-- +ok +== +INSERT INTO int4_tbl VALUES (0), (123456), (-123456), (2147483647), (-2147483647); +-- +ok +== +CREATE TABLE int8_tbl(q1 BIGINT, q2 BIGINT); +-- +ok +== +INSERT INTO int8_tbl VALUES + (123, 456), + (123, 4567890123456789), + (4567890123456789, 123), + (4567890123456789, 4567890123456789), + (4567890123456789, -4567890123456789); +-- +ok +== +CREATE TABLE tenk1 AS SELECT i AS unique1, i % 2 AS two, i % 4 AS four FROM range(10000) t(i); +-- +ok +== +select two + four as g, (select f1 from int4_tbl where f1 = (two + four)) +from tenk1 t1 +group by two + four order by 1; +-- +ok +== +select q1, (select q1) as ss +from int8_tbl i81 full outer join int8_tbl i82 using (q1) +group by q1 order by q1; +-- +ok +== +create view gstest1(a,b,v) + as values (1,1,10),(1,1,11),(1,2,12),(1,2,13),(1,3,14), + (2,3,15), + (3,3,16),(3,4,17), + (4,1,18),(4,1,19); +-- +ok +== +create table gstest2 (a integer, b integer, c integer, d integer, + e integer, f integer, g integer, h integer); +-- +ok +== +insert into gstest2 values + (1, 1, 1, 1, 1, 1, 1, 1), + (1, 1, 1, 1, 1, 1, 1, 2), + (1, 1, 1, 1, 1, 1, 2, 2), + (1, 1, 1, 1, 1, 2, 2, 2), + (1, 1, 1, 1, 2, 2, 2, 2), + (1, 1, 1, 2, 2, 2, 2, 2), + (1, 1, 2, 2, 2, 2, 2, 2), + (1, 2, 2, 2, 2, 2, 2, 2), + (2, 2, 2, 2, 2, 2, 2, 2); +-- +ok +== +select a, b, grouping(a, b), sum(t1.v), max(t2.c) + from gstest1 t1 full join gstest2 t2 using (a,b) + group by grouping sets ((a, b), ()) + order by 1 nulls last, 2 nulls last; +-- +ok +== +select (select a), + (select b), + (select grouping(a, b)), + (select sum(t1.v)), + (select max(t2.c)) + from gstest1 t1 full join gstest2 t2 using (a,b) + group by grouping sets ((a, b), ()) + order by 1 nulls last, 2 nulls last; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/subquery_row_in_any.test b/parser/testdata/corpus/sql/subquery/scalar/subquery_row_in_any.test index 455c508c..aa7ccb21 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/subquery_row_in_any.test +++ b/parser/testdata/corpus/sql/subquery/scalar/subquery_row_in_any.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/subquery_row_in_any.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (1, 2) IN (SELECT i, i + 1 FROM integers) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_complex_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_complex_correlated_subquery.test index 2c4a3af4..fbdcb852 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_complex_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_complex_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_complex_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT s1.i FROM (SELECT * FROM integers WHERE i=i1.i) s1) AS j FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_complex_nested_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_complex_nested_correlated_subquery.test index 08785e7b..729a274b 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_complex_nested_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_complex_nested_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_complex_nested_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a TINYINT, b SMALLINT, c INTEGER, d BIGINT, e VARCHAR, f DATE, g TIMESTAMP) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key.test new file mode 100644 index 00000000..dbf1d1d0 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key.test @@ -0,0 +1,135 @@ +# source: test/sql/subquery/scalar/test_correlated_aggregate_correlation_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t(v BIGINT); +-- +ok +== +CREATE TABLE s(w BIGINT); +-- +ok +== +INSERT INTO s VALUES (1); +-- +ok +== +SELECT ( + SELECT r.ret FROM ( + SELECT CAST((SELECT count(p)) AS BIGINT) AS ret + FROM (SELECT caller.v AS p) AS sc0 + ) AS r +) +FROM (SELECT 7 AS v) AS caller(v); +-- +ok +== +SELECT (SELECT (SELECT count(p)) FROM (SELECT caller.v AS p) sc0) FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT (SELECT (SELECT count(p)) FROM (SELECT caller.v AS p) sc0) FROM (SELECT NULL::BIGINT AS v) caller(v); +-- +ok +== +SELECT v, (SELECT (SELECT count(p)) FROM (SELECT t.v AS p) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT (SELECT count(p)) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, ( + SELECT r.ret FROM ( + SELECT CAST((SELECT count(p)) AS BIGINT) AS ret + FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) AS sc0 + ) AS r +) +FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT (SELECT (SELECT count(p) FILTER (p > 5)) FROM (SELECT caller.v AS p) sc0) FROM (VALUES (3), (7)) caller(v) ORDER BY v; +-- +ok +== +SELECT (SELECT (SELECT count(*)) FROM (SELECT caller.v AS p) sc0) FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT v, (SELECT (SELECT count(p) + count(p + 1)) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT (SELECT (SELECT sum(p)) FROM (SELECT caller.v AS p) sc0), + (SELECT (SELECT min(p)) FROM (SELECT caller.v AS p) sc0) +FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT (SELECT (SELECT count(p)) FROM (SELECT caller.v AS p) sc0 GROUP BY p) FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT (SELECT count(p) FROM (SELECT caller.v AS p) sc0) FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT * FROM (SELECT 7 AS v) caller(v), LATERAL (SELECT (SELECT count(p)) FROM (SELECT caller.v AS p) sc0) l(c); +-- +ok +== +SELECT (SELECT (SELECT (SELECT count(p)) FROM (SELECT m.w AS p) sc1) FROM (SELECT caller.v AS w) m(w)) FROM (SELECT 7 AS v) caller(v); +-- +ok +== +SELECT v, (SELECT (SELECT (SELECT count(p))) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT v IN (SELECT count(p)) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT EXISTS(SELECT 1 WHERE (SELECT count(p)) > 0) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT count(p) + (SELECT count(p)) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT (SELECT count(p)) = 0 FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (WITH sc0 AS MATERIALIZED (SELECT s.w AS p FROM s WHERE s.w = t.v) SELECT (SELECT count(p)) FROM sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +SELECT v, (SELECT (SELECT count(p) + CASE WHEN random() >= 0 THEN 0 ELSE 0 END) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t ORDER BY v NULLS LAST; +-- +ok +== +CREATE TABLE t2(v BIGINT); +-- +ok +== +INSERT INTO t2 VALUES (1), (1), (2), (NULL); +-- +ok +== +CREATE TABLE s2(w BIGINT); +-- +ok +== +INSERT INTO s2 VALUES (1), (1); +-- +ok +== +SELECT v, (SELECT (SELECT count(p)) FROM (SELECT s2.w AS p FROM s2 WHERE s2.w = t2.v) sc0) FROM t2 ORDER BY v NULLS LAST; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key_plan.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key_plan.test new file mode 100644 index 00000000..5a33facd --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_aggregate_correlation_key_plan.test @@ -0,0 +1,13 @@ +# source: test/sql/subquery/scalar/test_correlated_aggregate_correlation_key_plan.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +EXPLAIN SELECT v, (SELECT (SELECT count(p)) FROM (SELECT s.w AS p FROM s WHERE s.w = t.v) sc0) FROM t; +-- +ok +== +EXPLAIN SELECT v, (SELECT count(w) FROM s WHERE s.w = t.v) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_count_nested_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_count_nested_subquery.test new file mode 100644 index 00000000..e759e227 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_count_nested_subquery.test @@ -0,0 +1,41 @@ +# source: test/sql/subquery/scalar/test_correlated_count_nested_subquery.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE w(x INT); +-- +ok +== +CREATE TABLE a(x INT); +-- +ok +== +CREATE TABLE b(x INT); +-- +ok +== +INSERT INTO w VALUES (1), (5); +-- +ok +== +INSERT INTO b VALUES (1), (2), (3); +-- +ok +== +SELECT (SELECT count(*) + (SELECT w.x) FROM a WHERE a.x = w.x) FROM w ORDER BY w.x +-- +ok +== +SELECT (SELECT count(*) + (SELECT count(*) FROM b WHERE b.x = w.x) FROM a WHERE a.x = w.x) FROM w ORDER BY w.x +-- +ok +== +SELECT (SELECT count(*) + (SELECT count(*) FROM b WHERE b.x >= w.x) FROM a WHERE a.x >= w.x) FROM w ORDER BY w.x +-- +ok +== +SELECT (SELECT count(*) + (SELECT w.x) FROM a HAVING count(*) > 0) FROM w ORDER BY w.x +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_grouping_set.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_grouping_set.test index 2cb62493..0321e15c 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_grouping_set.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_grouping_set.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_grouping_set.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT COUNT(*) FROM (SELECT i1.i FROM integers GROUP BY GROUPING SETS(i1.i)) tbl) AS j FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_having.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_having.test index 21cd0da0..c21d8ab7 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_having.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_having.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_having.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE outer_values(i INTEGER); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_set_op.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_set_op.test index a7ed780e..a2aa0e7d 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_set_op.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_set_op.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_set_op.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT SUM(x) FROM (SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT i1.i) t(x)) FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_side_effects.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_side_effects.test index 35302b73..09b4e5d4 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_side_effects.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_side_effects.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_side_effects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(DISTINCT diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery.test index dc234e10..6ce94df0 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT 42+i1.i) AS j FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_cte.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_cte.test index bddbadea..67187e75 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_cte.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_cte.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_subquery_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (WITH i2 AS (SELECT 42+i1.i AS j) SELECT j FROM i2) AS j FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_where.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_where.test index 041d70c1..ec00352c 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_where.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_subquery_where.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_subquery_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS FROM VALUES (1, 22), (1, 21), (2, 22) v(id, b); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_window.test b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_window.test index e8820569..e4b9382e 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_correlated_window.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_correlated_window.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_correlated_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT SUM((SELECT i + 1)) OVER () WHERE i>=2) FROM integers ORDER BY i diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_count_star_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_count_star_subquery.test index 0d891785..f61a85da 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_count_star_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_count_star_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_count_star_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT i FROM integers i2 WHERE i=(SELECT SUM(i) FROM integers i2 WHERE i2.i>i1.i)) FROM integers i1 ORDER BY 1; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_delete_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_delete_subquery.test index 70a0511c..1527e63d 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_delete_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_delete_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_delete_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(id INTEGER, i INTEGER) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_grouped_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_grouped_correlated_subquery.test index a316928a..45d7dfc8 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_grouped_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_grouped_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_grouped_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_ProductSales (ColID int, Product_Category varchar(64), Product_Name varchar(64), TotalSales int); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_issue_4216.test b/parser/testdata/corpus/sql/subquery/scalar/test_issue_4216.test index 6a0b186b..92707715 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_issue_4216.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_issue_4216.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_issue_4216.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INT, y INT) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_issue_6136.test b/parser/testdata/corpus/sql/subquery/scalar/test_issue_6136.test index 7beb5ec0..94ed6f2a 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_issue_6136.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_issue_6136.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_issue_6136.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table r as select * from values (1, 1, 'a', 'A'), (1, null, 'b', 'B'), (1, 2, 'c', 'C'), (2, null, 'd', 'D') t(ra, rb, x, y); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_issue_6184.test b/parser/testdata/corpus/sql/subquery/scalar/test_issue_6184.test index fc44d783..91833a18 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_issue_6184.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_issue_6184.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_issue_6184.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(fuel_type VARCHAR, location_country VARCHAR); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_issue_7079.test b/parser/testdata/corpus/sql/subquery/scalar/test_issue_7079.test index 423e8f42..c2d163a9 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_issue_7079.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_issue_7079.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_issue_7079.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO array_rv(arr) AS ( diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_join_in_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_join_in_subquery.test index 67f471cc..79b694c7 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_join_in_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_join_in_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_join_in_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS FROM VALUES (1, 22), (1, 21), (2, 22) v(id, test_value); diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_many_correlated_columns.test b/parser/testdata/corpus/sql/subquery/scalar/test_many_correlated_columns.test index c4b18b47..62955ba0 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_many_correlated_columns.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_many_correlated_columns.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_many_correlated_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test2 VALUES (11, 1, 'a'), (12, 1, 'b'), (13, 4, 'b') diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery.test index a35c64e2..7d16486b 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_scalar_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1+(SELECT 1) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery_cte.test b/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery_cte.test index 960b6b8d..3577a3a1 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery_cte.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_scalar_subquery_cte.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_scalar_subquery_cte.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1+(WITH cte AS (SELECT 1) SELECT * FROM cte) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_subquery_any_join.test b/parser/testdata/corpus/sql/subquery/scalar/test_subquery_any_join.test index 9051e569..59702944 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_subquery_any_join.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_subquery_any_join.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_subquery_any_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i IN (SELECT i1.i FROM (SELECT * FROM integers i1 WHERE i1.i=integers.i) i1 JOIN generate_series(1, 2, 1) tbl(i) ON i1.i=tbl.i) FROM integers ORDER BY i NULLS LAST; diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_tpcds_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_tpcds_correlated_subquery.test index 116ee0db..5a5a71e2 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_tpcds_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_tpcds_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_tpcds_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE item(i_manufact INTEGER) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_scalar_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_scalar_subquery.test index bb8ea2bf..98111d7f 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_scalar_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_scalar_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_uncorrelated_scalar_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers WHERE i=(SELECT 1) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_varchar_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_varchar_subquery.test index 3889427c..d93ebbdc 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_varchar_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_uncorrelated_varchar_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_uncorrelated_varchar_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings(v VARCHAR) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_unnest_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_unnest_subquery.test index 098a2631..3e68fc11 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_unnest_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_unnest_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_unnest_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT UNNEST([1])) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_update_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_update_subquery.test index 89554075..d963ff48 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_update_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_update_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_update_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers i1 SET i=(SELECT MAX(i) FROM integers WHERE i1.i<>i) diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_varchar_correlated_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_varchar_correlated_subquery.test index 530163aa..f145c268 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_varchar_correlated_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_varchar_correlated_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_varchar_correlated_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL IN (SELECT * FROM strings WHERE v=s1.v) FROM strings s1 ORDER BY v diff --git a/parser/testdata/corpus/sql/subquery/scalar/test_window_function_subquery.test b/parser/testdata/corpus/sql/subquery/scalar/test_window_function_subquery.test index 33bf1736..1caa58c1 100644 --- a/parser/testdata/corpus/sql/subquery/scalar/test_window_function_subquery.test +++ b/parser/testdata/corpus/sql/subquery/scalar/test_window_function_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/scalar/test_window_function_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, (SELECT row_number() OVER (ORDER BY i) FROM integers WHERE i1.i=i) FROM integers i1 ORDER BY i; diff --git a/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test b/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test new file mode 100644 index 00000000..e6fd9a5b --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test @@ -0,0 +1,81 @@ +# source: test/sql/subquery/scalar/view_filter_below_delim_join.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE facts AS SELECT i AS id, (i % 25) AS customer_id, [ (i % 50), ((i + 1) % 50) ] AS dim_ids FROM range(10000) r(i); +-- +ok +== +CREATE TABLE dims AS SELECT i AS dim_id, 'name ' || i AS name FROM range(50) r(i); +-- +ok +== +CREATE VIEW v_single AS SELECT f.id, f.customer_id, (SELECT list(d.name ORDER BY d.name) FROM UNNEST(f.dim_ids) AS u(dim_id) JOIN dims d ON d.dim_id = u.dim_id) AS dim_names FROM facts f; +-- +ok +== +CREATE VIEW v_mark AS SELECT f.id, f.customer_id, EXISTS (SELECT 1 FROM UNNEST(f.dim_ids) AS u(dim_id) WHERE u.dim_id = 8) AS has8 FROM facts f; +-- +ok +== +PRAGMA profiling_output = '{TEMP_DIR}/view_filter_single.json'; +-- +error: Parser Error: Profiler file type ({TEMP_DIR}/view_filter_single.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT id, dim_names FROM v_single WHERE customer_id = 7 AND id = 1007; +-- +ok +== +PRAGMA profiling_output = '{TEMP_DIR}/view_filter_mark.json'; +-- +error: Parser Error: Profiler file type ({TEMP_DIR}/view_filter_mark.json) must either have the same file extension as the profiling output type (query_tree), or be a '.txt' file. Set "enable_profiling = 'json'" first. +== +SELECT id, has8 FROM v_mark WHERE customer_id = 7 AND id = 1007; +-- +ok +== +SELECT sum((value->>'intermediate_rows')::BIGINT) FROM read_text('{TEMP_DIR}/view_filter_{kind}.json'), json_tree(content) WHERE value->>'type' IN ('INOUT_FUNCTION', 'UNNEST') +-- +ok +== +SELECT id, dim_names FROM v_single WHERE customer_id = 7 AND id >= 9900 ORDER BY id LIMIT 2; +-- +ok +== +SELECT id, has8 FROM v_mark WHERE customer_id = 7 AND id >= 9900 ORDER BY id LIMIT 2; +-- +ok +== +CREATE TABLE edge AS SELECT * FROM (VALUES (1, 7, [8, NULL]), (2, 7, [1, NULL]), (3, 7, []), (4, 7, NULL), (5, 8, [8])) t(id, customer_id, dim_ids); +-- +ok +== +CREATE VIEW v_edge AS SELECT e.id, e.customer_id, 8 IN (SELECT u.dim_id FROM UNNEST(e.dim_ids) AS u(dim_id)) AS in8, 8 NOT IN (SELECT u.dim_id FROM UNNEST(e.dim_ids) AS u(dim_id)) AS not_in8, (SELECT max(u.dim_id) FROM UNNEST(e.dim_ids) AS u(dim_id)) AS max_dim FROM edge e; +-- +ok +== +SELECT id, in8, not_in8, max_dim FROM v_edge WHERE customer_id = 7 ORDER BY id; +-- +ok +== +SELECT id FROM v_edge WHERE customer_id = 7 AND (in8 OR max_dim = 1) ORDER BY id; +-- +ok +== +SELECT id FROM v_edge WHERE customer_id = 7 AND in8 IS NULL; +-- +ok +== +SELECT id FROM v_edge WHERE id + coalesce(max_dim, 0) = 9 AND customer_id = 7; +-- +ok +== +SELECT id FROM v_edge WHERE customer_id = 8 AND not_in8; +-- +ok +== +SELECT id FROM v_edge WHERE customer_id = 7 AND not_in8 ORDER BY id; +-- +ok +== diff --git a/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test.metadata.json b/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test.metadata.json new file mode 100644 index 00000000..4b3057e5 --- /dev/null +++ b/parser/testdata/corpus/sql/subquery/scalar/view_filter_below_delim_join.test.metadata.json @@ -0,0 +1,6 @@ +{ + "todo": { + "dd3f19dfbd5a8d6b": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work", + "e01ba5eed9720f69": "oracle's Parser Error comes from outside the parse pipeline (bind-time setting/function/constraint validation or nested SQL parsing); darkwing accepts by design - revisit with milestone 6 error-fidelity work" + } +} diff --git a/parser/testdata/corpus/sql/subquery/table/test_aliasing.test b/parser/testdata/corpus/sql/subquery/table/test_aliasing.test index 338177df..fc2093f9 100644 --- a/parser/testdata/corpus/sql/subquery/table/test_aliasing.test +++ b/parser/testdata/corpus/sql/subquery/table/test_aliasing.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/table/test_aliasing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a(i integer) diff --git a/parser/testdata/corpus/sql/subquery/table/test_subquery_union.test b/parser/testdata/corpus/sql/subquery/table/test_subquery_union.test index 9e01d043..f2e03426 100644 --- a/parser/testdata/corpus/sql/subquery/table/test_subquery_union.test +++ b/parser/testdata/corpus/sql/subquery/table/test_subquery_union.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/table/test_subquery_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from (select 42) sq1 union all select * from (select 43) sq2; diff --git a/parser/testdata/corpus/sql/subquery/table/test_table_subquery.test b/parser/testdata/corpus/sql/subquery/table/test_table_subquery.test index c84c9b54..9049878d 100644 --- a/parser/testdata/corpus/sql/subquery/table/test_table_subquery.test +++ b/parser/testdata/corpus/sql/subquery/table/test_table_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/table/test_table_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (3, 4), (4, 5), (5, 6); diff --git a/parser/testdata/corpus/sql/subquery/table/test_unnamed_subquery.test b/parser/testdata/corpus/sql/subquery/table/test_unnamed_subquery.test index db548942..e9cac210 100644 --- a/parser/testdata/corpus/sql/subquery/table/test_unnamed_subquery.test +++ b/parser/testdata/corpus/sql/subquery/table/test_unnamed_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/table/test_unnamed_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a FROM (SELECT 42 a) diff --git a/parser/testdata/corpus/sql/subquery/test_neumann.test b/parser/testdata/corpus/sql/subquery/test_neumann.test index 2f457d6f..97fb4e12 100644 --- a/parser/testdata/corpus/sql/subquery/test_neumann.test +++ b/parser/testdata/corpus/sql/subquery/test_neumann.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/test_neumann.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s.name, e.course, e.grade FROM students s, exams e WHERE s.id=e.sid AND e.grade=(SELECT MAX(e2.grade) FROM exams e2 WHERE s.id=e2.sid) ORDER BY name, course; diff --git a/parser/testdata/corpus/sql/subquery/test_offset.test b/parser/testdata/corpus/sql/subquery/test_offset.test index cf987fef..36fcc4ba 100644 --- a/parser/testdata/corpus/sql/subquery/test_offset.test +++ b/parser/testdata/corpus/sql/subquery/test_offset.test @@ -1,6 +1,6 @@ # source: test/sql/subquery/test_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT c0 OFFSET 1) FROM (VALUES(1)) c0; diff --git a/parser/testdata/corpus/sql/table_function/create_external_resource.test b/parser/testdata/corpus/sql/table_function/create_external_resource.test index ab74ca23..ed2f7693 100644 --- a/parser/testdata/corpus/sql/table_function/create_external_resource.test +++ b/parser/testdata/corpus/sql/table_function/create_external_resource.test @@ -1,26 +1,12 @@ # source: test/sql/table_function/create_external_resource.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO mock_create(p) AS TABLE SELECT MAP {'id': 'r1'} AS handle; -- ok == -CREATE MACRO mock_status(h) AS TABLE - SELECT 'ready' AS state, MAP {'uri': 'quack:localhost:9494', 'attached_db_type': 'quack', 'token': 't1'} AS result; --- -ok -== -CREATE MACRO mock_destroy(h) AS TABLE SELECT 'ok' AS status; --- -ok -== -CALL register_external_resource_type('mock@local', kind := 'catalog', create_function := 'mock_create', - status_function := 'mock_status', destroy_function := 'mock_destroy'); --- -ok -== SELECT uri, attached_db_type, deleter_function LIKE '%mock_destroy', handle FROM create_external_resource('mock@local', params := MAP {'region': 'x'}); -- @@ -194,10 +180,6 @@ SELECT uri FROM create_external_resource('sp@local'); -- ok == -CREATE SCHEMA q; --- -ok -== CREATE SEQUENCE q.qd_calls; -- ok diff --git a/parser/testdata/corpus/sql/table_function/database_oid.test b/parser/testdata/corpus/sql/table_function/database_oid.test index ce65c738..92619266 100644 --- a/parser/testdata/corpus/sql/table_function/database_oid.test +++ b/parser/testdata/corpus/sql/table_function/database_oid.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/database_oid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE x (x INT); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_available_metrics.test b/parser/testdata/corpus/sql/table_function/duckdb_available_metrics.test index 506e21df..f6558526 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_available_metrics.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_available_metrics.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_available_metrics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT metric_name, metric_type, description, unit diff --git a/parser/testdata/corpus/sql/table_function/duckdb_columns.test b/parser/testdata/corpus/sql/table_function/duckdb_columns.test index 6a36ac99..5280f11a 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_columns.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_columns.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_columns(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_constraints.test b/parser/testdata/corpus/sql/table_function/duckdb_constraints.test index b6e39a68..08ccb94e 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_constraints.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers(i int primary key, check (i < 10)); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_constraints_fk.test b/parser/testdata/corpus/sql/table_function/duckdb_constraints_fk.test index 098deb7c..e76c6bba 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_constraints_fk.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_constraints_fk.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_constraints_fk.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tf_1 ( diff --git a/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue11284.test b/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue11284.test index daa68764..b632e796 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue11284.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue11284.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_constraints_issue11284.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (i int primary key); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue12863.test b/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue12863.test index 11e9dc15..81b63603 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue12863.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_constraints_issue12863.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_constraints_issue12863.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a (ID int PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_constraints_struct_check.test b/parser/testdata/corpus/sql/table_function/duckdb_constraints_struct_check.test new file mode 100644 index 00000000..aa2b7a70 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/duckdb_constraints_struct_check.test @@ -0,0 +1,61 @@ +# source: test/sql/table_function/duckdb_constraints_struct_check.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (b STRUCT(x INTEGER), CHECK (b.x > 0)); +-- +ok +== +SELECT constraint_type, constraint_column_indexes, constraint_column_names, constraint_name FROM duckdb_constraints() WHERE table_name = 't'; +-- +ok +== +INSERT INTO t VALUES ({'x': -1}); +-- +ok +== +CREATE TABLE t5 (a INTEGER, b STRUCT(a INTEGER), CHECK (b.a > 0)); +-- +ok +== +SELECT constraint_column_indexes, constraint_column_names, constraint_name FROM duckdb_constraints() WHERE table_name = 't5' AND constraint_type = 'CHECK'; +-- +ok +== +SELECT column_name, constraint_name FROM information_schema.constraint_column_usage WHERE table_name = 't5'; +-- +ok +== +CREATE TABLE t6 (a INTEGER, b STRUCT(a INTEGER), CHECK (t6.b.a > 0 AND t6.a > 0)); +-- +ok +== +SELECT constraint_column_indexes, constraint_column_names, constraint_name FROM duckdb_constraints() WHERE table_name = 't6' AND constraint_type = 'CHECK'; +-- +ok +== +CREATE TABLE t7 (a INTEGER[], x INTEGER, CHECK (list_transform(a, lambda x: 1) = [1])); +-- +ok +== +SELECT constraint_column_indexes, constraint_column_names, constraint_name FROM duckdb_constraints() WHERE table_name = 't7' AND constraint_type = 'CHECK'; +-- +ok +== +CREATE TABLE t8 (a INTEGER[], x INTEGER, CHECK (list_transform(a, lambda y: x) = [1])); +-- +ok +== +SELECT DISTINCT constraint_name, check_clause FROM information_schema.check_constraints WHERE constraint_name IN ('t_b_check', 't5_b_check', 't6_b_a_check') ORDER BY ALL; +-- +ok +== +CREATE TABLE tj (j JSON, CHECK ((j -> 'x') = '1'::JSON)); +-- +ok +== +SELECT constraint_column_indexes, constraint_column_names, constraint_name FROM duckdb_constraints() WHERE table_name = 'tj' AND constraint_type = 'CHECK'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/duckdb_databases.test b/parser/testdata/corpus/sql/table_function/duckdb_databases.test index 2021fd50..e298a775 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_databases.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_databases.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_databases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_databases(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_dependencies.test b/parser/testdata/corpus/sql/table_function/duckdb_dependencies.test index 60c982c2..3c6bdfc2 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_dependencies.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_dependencies.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_dependencies.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_dependencies(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_dialects.test b/parser/testdata/corpus/sql/table_function/duckdb_dialects.test index 29443350..f049e7f6 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_dialects.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_dialects.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_dialects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT dialect_name FROM duckdb_dialects() ORDER BY dialect_name; diff --git a/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues.test b/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues.test index d5c45490..bdcce389 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_eviction_queues.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO fudge() AS (20); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues_transactions.test b/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues_transactions.test index 2f4da62f..bea1d12c 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues_transactions.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_eviction_queues_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_eviction_queues_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i BIGINT, s VARCHAR); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_extensions.test b/parser/testdata/corpus/sql/table_function/duckdb_extensions.test index f50da2c9..4ea3a673 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_extensions.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_extensions.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_extensions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT aliases FROM duckdb_extensions() WHERE extension_name='postgres_scanner'; diff --git a/parser/testdata/corpus/sql/table_function/duckdb_functions_window.test b/parser/testdata/corpus/sql/table_function/duckdb_functions_window.test index 3d0d3fbf..09d620fb 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_functions_window.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_functions_window.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_functions_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select function_name, parameters, parameter_types, function_type diff --git a/parser/testdata/corpus/sql/table_function/duckdb_indexes.test b/parser/testdata/corpus/sql/table_function/duckdb_indexes.test index 11d6c389..ac0600b5 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_indexes.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_indexes.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_indexes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_indexes(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_keywords.test b/parser/testdata/corpus/sql/table_function/duckdb_keywords.test index ba3eaebf..d350eacd 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_keywords.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_keywords.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_keywords.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_keywords(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_live_query_metrics.test b/parser/testdata/corpus/sql/table_function/duckdb_live_query_metrics.test new file mode 100644 index 00000000..96159c86 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/duckdb_live_query_metrics.test @@ -0,0 +1,65 @@ +# source: test/sql/table_function/duckdb_live_query_metrics.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT column_name, column_type FROM (DESCRIBE SELECT * FROM duckdb_live_query_metrics()); +-- +ok +== +SELECT metric_name, variant_typeof(metric_value) FROM duckdb_live_query_metrics() +WHERE connection_id = current_connection_id() ORDER BY metric_name; +-- +ok +== +SELECT count(*) FROM (SELECT DISTINCT range FROM range(3000000)); +-- +ok +== +SELECT metric_value::UBIGINT < 10000000 FROM duckdb_live_query_metrics() +WHERE connection_id = current_connection_id() AND metric_name = 'system.total_memory_allocated'; +-- +ok +== +CREATE TABLE monitored AS SELECT current_connection_id() AS id; +-- +ok +== +COPY (SELECT range AS i FROM range(1000000)) TO '{TEST_DIR}/live_query_metrics_1.csv'; +-- +ok +== +SELECT metric_name, metric_value::DOUBLE > 0 FROM duckdb_live_query_metrics() +WHERE connection_id = (SELECT id FROM monitored) +AND metric_name IN ('io.total_bytes_written', 'io.total_write_operations') ORDER BY metric_name; +-- +ok +== +COPY (SELECT range AS i FROM range(1000000)) TO '{TEST_DIR}/live_query_metrics_2.csv'; +-- +ok +== +SELECT sum(i) FROM read_csv('{TEST_DIR}/live_query_metrics_1.csv'); +-- +ok +== +SELECT metric_name, metric_value::DOUBLE > 0 FROM duckdb_live_query_metrics() +WHERE connection_id = (SELECT id FROM monitored) +AND metric_name IN ('io.total_bytes_read', 'io.total_read_operations') ORDER BY metric_name; +-- +ok +== +SELECT bool_and(metric_value::DOUBLE = 0) FROM duckdb_live_query_metrics() +WHERE connection_id = (SELECT id FROM monitored) AND metric_name LIKE 'io.%'; +-- +ok +== +SELECT sum(CASE WHEN i = 900000 THEN error('boom') ELSE i END) FROM read_csv('{TEST_DIR}/live_query_metrics_2.csv'); +-- +ok +== +SELECT metric_value::UBIGINT > 0 FROM duckdb_live_query_metrics() +WHERE connection_id = (SELECT id FROM monitored) AND metric_name = 'io.total_bytes_read'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/duckdb_memory_convert_to_persistent.test b/parser/testdata/corpus/sql/table_function/duckdb_memory_convert_to_persistent.test index cd1679a9..0f6e5278 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_memory_convert_to_persistent.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_memory_convert_to_persistent.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_memory_convert_to_persistent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test as select range i from range(1_000_000); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_optimizers.test b/parser/testdata/corpus/sql/table_function/duckdb_optimizers.test index 9f78ed68..9d52ce87 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_optimizers.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_optimizers.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_optimizers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_optimizers(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_prepared_statements.test b/parser/testdata/corpus/sql/table_function/duckdb_prepared_statements.test index bbda4cc9..9d19cdcb 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_prepared_statements.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_prepared_statements.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_prepared_statements.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from duckdb_prepared_statements() order by name; diff --git a/parser/testdata/corpus/sql/table_function/duckdb_schemas.test b/parser/testdata/corpus/sql/table_function/duckdb_schemas.test index 590c32aa..b8a6b178 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_schemas.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_schemas.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_schemas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM duckdb_schemas; diff --git a/parser/testdata/corpus/sql/table_function/duckdb_sequences.test b/parser/testdata/corpus/sql/table_function/duckdb_sequences.test index 05dca74e..2a2ad426 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_sequences.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_sequences.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_sequences.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM duckdb_sequences(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_settings.test b/parser/testdata/corpus/sql/table_function/duckdb_settings.test index cf37354e..a7bc74d2 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_settings.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_settings.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_settings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT name, value FROM duckdb_settings() WHERE name='default_null_order'; diff --git a/parser/testdata/corpus/sql/table_function/duckdb_tables.test b/parser/testdata/corpus/sql/table_function/duckdb_tables.test index 27fb0796..b7f4d67d 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_tables.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_tables.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM duckdb_tables(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_types.test b/parser/testdata/corpus/sql/table_function/duckdb_types.test index 21f71324..2049e7cb 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_types.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_types.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM duckdb_types(); diff --git a/parser/testdata/corpus/sql/table_function/duckdb_views.test b/parser/testdata/corpus/sql/table_function/duckdb_views.test index 2040ba3b..26b8b577 100644 --- a/parser/testdata/corpus/sql/table_function/duckdb_views.test +++ b/parser/testdata/corpus/sql/table_function/duckdb_views.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/duckdb_views.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM duckdb_views; diff --git a/parser/testdata/corpus/sql/table_function/external_resource_callback_recursion.test b/parser/testdata/corpus/sql/table_function/external_resource_callback_recursion.test new file mode 100644 index 00000000..09c11d31 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/external_resource_callback_recursion.test @@ -0,0 +1,49 @@ +# source: test/sql/table_function/external_resource_callback_recursion.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO d(h) AS TABLE FROM destroy_external_resource('d', 1); +-- +ok +== +FROM destroy_external_resource('d', 1); +-- +ok +== +CREATE MACRO rk(p) AS TABLE SELECT handle FROM create_external_resource('t2'); +-- +ok +== +CREATE MACRO st(h) AS TABLE SELECT 'ready' AS state, MAP {'uri': ':memory:'} AS result; +-- +ok +== +FROM register_external_resource_type('t2', kind := 'x', create_function := 'rk', status_function := 'st'); +-- +ok +== +FROM create_external_resource('t2'); +-- +ok +== +CREATE MACRO ok_deleter(h) AS TABLE SELECT true AS success; +-- +ok +== +FROM destroy_external_resource('ok_deleter', 1); +-- +ok +== +CREATE MACRO slow_deleter(h) AS TABLE SELECT sum(i) AS s FROM range(100000000000) t(i); +-- +ok +== +SET max_execution_time=500; +-- +ok +== +FROM destroy_external_resource('slow_deleter', 1); +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/external_resource_discovery.test b/parser/testdata/corpus/sql/table_function/external_resource_discovery.test index d7d9db47..7b8717ff 100644 --- a/parser/testdata/corpus/sql/table_function/external_resource_discovery.test +++ b/parser/testdata/corpus/sql/table_function/external_resource_discovery.test @@ -1,13 +1,13 @@ # source: test/sql/table_function/external_resource_discovery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO mock_list(opts) AS TABLE SELECT * FROM (VALUES - (MAP {'id': 'd1'}, 'ext-1', 'running'), - (MAP {'id': 'd2'}, 'ext-2', 'stopped') - ) t(handle, reference, state); + (MAP {'id': 'd1'}, 'dee-one', 'ext-1', 'running'), + (MAP {'id': 'd2'}, 'dee-two', 'ext-2', 'stopped') + ) t(handle, name, reference, state); -- ok == @@ -19,10 +19,6 @@ SELECT list_function FROM duckdb_external_resource_types() WHERE name = 'mock@di -- ok == -SELECT count(*) FROM duckdb_external_resources(); --- -ok -== SELECT name, type, managed, state, reference FROM duckdb_external_resources(discover := true) ORDER BY reference; -- ok @@ -48,7 +44,7 @@ SELECT count(*) FROM duckdb_external_resources(discover := true); ok == CREATE MACRO other_list(opts) AS TABLE - SELECT * FROM (VALUES (MAP {'id': 'd1'}, 'other-1', 'running')) t(handle, reference, state); + SELECT * FROM (VALUES (MAP {'id': 'd1'}, 'other-one', 'other-1', 'running')) t(handle, name, reference, state); -- ok == diff --git a/parser/testdata/corpus/sql/table_function/external_resource_discovery_error.test b/parser/testdata/corpus/sql/table_function/external_resource_discovery_error.test index 5acaa20f..b552b361 100644 --- a/parser/testdata/corpus/sql/table_function/external_resource_discovery_error.test +++ b/parser/testdata/corpus/sql/table_function/external_resource_discovery_error.test @@ -1,9 +1,9 @@ # source: test/sql/table_function/external_resource_discovery_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE MACRO nohandle_list(opts) AS TABLE SELECT 'ext-1' AS reference, 'running' AS state; +CREATE MACRO nohandle_list(opts) AS TABLE SELECT 'one' AS name, 'ext-1' AS reference, 'running' AS state; -- ok == @@ -19,7 +19,19 @@ CREATE OR REPLACE MACRO nohandle_list(opts) AS TABLE SELECT MAP {'id': 'a'} AS h -- ok == -CREATE MACRO badtype_list(opts) AS TABLE SELECT 42 AS handle; +CREATE OR REPLACE MACRO nohandle_list(opts) AS TABLE SELECT MAP {'id': 'a'} AS handle, 'ext-1' AS reference, 'running' AS state; +-- +ok +== +CREATE OR REPLACE MACRO nohandle_list(opts) AS TABLE SELECT MAP {'id': 'a'} AS handle, NULL AS name, NULL AS reference, NULL AS state; +-- +ok +== +SELECT name, type, reference, state FROM duckdb_external_resources(discover := true); +-- +ok +== +CREATE MACRO badtype_list(opts) AS TABLE SELECT 42 AS handle, 'two' AS name, 'ext-2' AS reference, 'running' AS state; -- ok == @@ -27,7 +39,7 @@ CALL register_external_resource_type('badtype@disc', kind := 'catalog', create_f -- ok == -CREATE OR REPLACE MACRO badtype_list(opts) AS TABLE SELECT MAP {'id': 'b'} AS handle; +CREATE OR REPLACE MACRO badtype_list(opts) AS TABLE SELECT MAP {'id': 'b'} AS handle, 'two' AS name, 'ext-2' AS reference, 'running' AS state; -- ok == @@ -35,7 +47,19 @@ CALL register_external_resource_type('broken@disc', kind := 'catalog', create_fu -- ok == -CREATE MACRO no_such_list_fn(opts) AS TABLE SELECT MAP {'id': 'c'} AS handle; +SELECT count(*) FROM duckdb_external_resources(discover := true, type := 'badtype@disc'); +-- +ok +== +CREATE MACRO no_such_list_fn(opts) AS TABLE SELECT MAP {'id': 'c'} AS handle, 'three' AS name, 'ext-3' AS reference, 'running' AS state; +-- +ok +== +CREATE MACRO rec_list(opts) AS TABLE SELECT handle, name, reference, state FROM duckdb_external_resources(discover := true); +-- +ok +== +CALL register_external_resource_type('rec@disc', kind := 'catalog', create_function := 'noop_create', list_function := 'rec_list'); -- ok == diff --git a/parser/testdata/corpus/sql/table_function/external_resource_logging.test b/parser/testdata/corpus/sql/table_function/external_resource_logging.test index 933a4f5b..d270360e 100644 --- a/parser/testdata/corpus/sql/table_function/external_resource_logging.test +++ b/parser/testdata/corpus/sql/table_function/external_resource_logging.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/external_resource_logging.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO mock_status(h) AS TABLE diff --git a/parser/testdata/corpus/sql/table_function/external_resource_types.test b/parser/testdata/corpus/sql/table_function/external_resource_types.test index fa74b940..c9ed8504 100644 --- a/parser/testdata/corpus/sql/table_function/external_resource_types.test +++ b/parser/testdata/corpus/sql/table_function/external_resource_types.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/external_resource_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM duckdb_external_resource_types(); diff --git a/parser/testdata/corpus/sql/table_function/external_resources_type_pruning.test b/parser/testdata/corpus/sql/table_function/external_resources_type_pruning.test new file mode 100644 index 00000000..2e8d8eeb --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/external_resources_type_pruning.test @@ -0,0 +1,67 @@ +# source: test/sql/table_function/external_resources_type_pruning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE MACRO list_a(opts) AS TABLE + SELECT MAP {'id': 'a' || nextval('calls_a')::VARCHAR} AS handle, 'a-name' AS name, 'a-ref' AS reference, 'running' AS state; +-- +ok +== +CREATE MACRO list_b(opts) AS TABLE + SELECT MAP {'id': 'b' || nextval('calls_b')::VARCHAR} AS handle, 'b-name' AS name, 'b-ref' AS reference, 'running' AS state; +-- +ok +== +CALL register_external_resource_type('a@pr', kind := 'catalog', create_function := 'noop_create', list_function := 'list_a'); +-- +ok +== +CALL register_external_resource_type('b@pr', kind := 'catalog', create_function := 'noop_create', list_function := 'list_b'); +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true, type := 'a@pr'); +-- +ok +== +SELECT * FROM duckdb_external_resources(discover := true, type := 'b@pr'); +-- +ok +== +SELECT * FROM duckdb_external_resources(discover := true, type := 'none@pr'); +-- +ok +== +CALL register_external_resource('a@pr', 'local_a', MAP {'id': 'x'}); +-- +ok +== +SELECT * FROM duckdb_external_resources(type := 'a@pr'); +-- +ok +== +SELECT * FROM duckdb_external_resources(type := 'b@pr'); +-- +ok +== +SELECT * FROM duckdb_external_resources(type := 'none@pr'); +-- +ok +== +SELECT name, type, managed FROM duckdb_external_resources(discover := true, type := 'a@pr'); +-- +ok +== +SELECT * FROM duckdb_external_resources(discover := true, type := 'a@pr') WHERE handle['id'] = 'x'; +-- +ok +== +CALL register_external_resource('orphan@pr', 'kept', MAP {'id': 'o'}); +-- +ok +== +SELECT * FROM duckdb_external_resources(discover := true, type := 'orphan@pr'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/external_resources_where_pruning.test b/parser/testdata/corpus/sql/table_function/external_resources_where_pruning.test new file mode 100644 index 00000000..8d3c05d1 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/external_resources_where_pruning.test @@ -0,0 +1,45 @@ +# source: test/sql/table_function/external_resources_where_pruning.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CALL register_external_resource_type('a@wp', kind := 'catalog', create_function := 'noop_create', list_function := 'list_a'); +-- +ok +== +CALL register_external_resource_type('b@wp', kind := 'catalog', create_function := 'noop_create', list_function := 'list_b'); +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true) WHERE type = 'a@wp'; +-- +ok +== +SELECT * FROM duckdb_external_resources(discover := true) WHERE type = 'b@wp'; +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true) WHERE type IN ('a@wp', 'none@wp'); +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true) WHERE type LIKE 'b@%'; +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true) WHERE type <> 'b@wp'; +-- +ok +== +SELECT count(*) FROM duckdb_external_resources(discover := true) WHERE type = 'none@wp'; +-- +ok +== +SELECT type, handle FROM duckdb_external_resources(discover := true) WHERE handle['id'] LIKE 'b%'; +-- +ok +== +SELECT count(*) FROM duckdb_external_resources(discover := true) WHERE type = 'a@wp' AND handle['id'] LIKE 'b%'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/glob_prepared.test b/parser/testdata/corpus/sql/table_function/glob_prepared.test new file mode 100644 index 00000000..235fac92 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/glob_prepared.test @@ -0,0 +1,17 @@ +# source: test/sql/table_function/glob_prepared.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +COPY (SELECT 1 i) TO '{TEST_DIR}/glob_prepared_1.csv'; +-- +ok +== +PREPARE p AS SELECT count(*) FROM glob('{TEST_DIR}/glob_prepared_*.csv'); +-- +ok +== +COPY (SELECT 1 i) TO '{TEST_DIR}/glob_prepared_2.csv'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/icu_range_timestamptz.test b/parser/testdata/corpus/sql/table_function/icu_range_timestamptz.test index 0b20d2d4..faef658e 100644 --- a/parser/testdata/corpus/sql/table_function/icu_range_timestamptz.test +++ b/parser/testdata/corpus/sql/table_function/icu_range_timestamptz.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/icu_range_timestamptz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT d FROM range(TIMESTAMPTZ '1992-01-01 00:00:00-08', TIMESTAMPTZ '1992-01-01 12:00:00-08', INTERVAL (1) HOUR) tbl(d) diff --git a/parser/testdata/corpus/sql/table_function/icu_range_timestamptz_lateral_empty.test b/parser/testdata/corpus/sql/table_function/icu_range_timestamptz_lateral_empty.test new file mode 100644 index 00000000..40fb8894 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/icu_range_timestamptz_lateral_empty.test @@ -0,0 +1,39 @@ +# source: test/sql/table_function/icu_range_timestamptz_lateral_empty.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS +SELECT i, TIMESTAMPTZ '2024-01-01 00:00:00+00' + INTERVAL (i * 60) SECOND AS ts +FROM generate_series(0, 9) s(i); +-- +ok +== +SELECT list(i ORDER BY i) FROM t, LATERAL range( + ts + (CASE WHEN i = 5 THEN INTERVAL '7 minutes' ELSE INTERVAL '0 minutes' END), + ts + INTERVAL '5 minutes', + INTERVAL '10 minutes'); +-- +ok +== +SELECT count(*) FROM t, LATERAL generate_series( + ts + (CASE WHEN i = 0 THEN INTERVAL '7 minutes' ELSE INTERVAL '0 minutes' END), + ts + INTERVAL '5 minutes', + INTERVAL '10 minutes'); +-- +ok +== +SELECT count(*) FILTER (WHERE i % 2 = 0), count(*) FROM generate_series(0, 64) s(i), LATERAL range( + TIMESTAMPTZ '2024-01-01 00:00:00+00' + (CASE WHEN i % 2 = 0 THEN INTERVAL '1 minute' ELSE INTERVAL '7 minutes' END), + TIMESTAMPTZ '2024-01-01 00:00:00+00' + INTERVAL '5 minutes', + INTERVAL '10 minutes'); +-- +ok +== +SELECT count(*) FROM generate_series(0, 64) s(i), LATERAL range( + TIMESTAMPTZ '2024-01-01 00:00:00+00' + (CASE WHEN i % 2 = 0 THEN INTERVAL '9 minutes' ELSE INTERVAL '3 minutes' END), + TIMESTAMPTZ '2024-01-01 00:00:00+00' + INTERVAL '5 minutes', + INTERVAL '-10 minutes'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/information_schema.test b/parser/testdata/corpus/sql/table_function/information_schema.test index e9af3313..147446aa 100644 --- a/parser/testdata/corpus/sql/table_function/information_schema.test +++ b/parser/testdata/corpus/sql/table_function/information_schema.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/information_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; @@ -115,6 +115,44 @@ WHERE constraint_schema = 'scheme' AND check_clause LIKE 'CHECK%' -- ok == +CREATE TABLE scheme.check_columns (a INTEGER NOT NULL, b INTEGER NOT NULL UNIQUE, CHECK (a > 0 AND b > 0), CHECK (1 = 1), CHECK (a < b), CHECK (a < b)); +-- +ok +== +SELECT constraint_name, check_clause +FROM information_schema.check_constraints +WHERE constraint_schema = 'scheme' AND constraint_name LIKE 'check_columns%' +ORDER BY ALL +-- +ok +== +DROP TABLE scheme.check_columns +-- +ok +== +ATTACH ':memory:' AS check_db; +-- +ok +== +CREATE SCHEMA check_db.scheme; +-- +ok +== +CREATE TABLE check_db.scheme.check_columns (a INTEGER, b INTEGER NOT NULL, CHECK (1 = 1)); +-- +ok +== +SELECT constraint_catalog, constraint_schema, constraint_name, check_clause +FROM information_schema.check_constraints +WHERE constraint_catalog = 'check_db' +ORDER BY ALL +-- +ok +== +DETACH check_db +-- +ok +== CREATE OR REPLACE VIEW scheme.emp_dept_view AS SELECT emp.*, dept.dept_name FROM scheme.emp JOIN scheme.dept ON emp.dept_id = dept.dept_id; -- ok diff --git a/parser/testdata/corpus/sql/table_function/information_schema_fkey_constraint_names.test b/parser/testdata/corpus/sql/table_function/information_schema_fkey_constraint_names.test index 0cd36813..23eeb4f2 100644 --- a/parser/testdata/corpus/sql/table_function/information_schema_fkey_constraint_names.test +++ b/parser/testdata/corpus/sql/table_function/information_schema_fkey_constraint_names.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/information_schema_fkey_constraint_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select constraint_name diff --git a/parser/testdata/corpus/sql/table_function/information_schema_issue12867.test b/parser/testdata/corpus/sql/table_function/information_schema_issue12867.test index 3a3659e0..49b0923d 100644 --- a/parser/testdata/corpus/sql/table_function/information_schema_issue12867.test +++ b/parser/testdata/corpus/sql/table_function/information_schema_issue12867.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/information_schema_issue12867.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a (a1 int, a2 int, PRIMARY KEY (a1, a2)); diff --git a/parser/testdata/corpus/sql/table_function/information_schema_types.test b/parser/testdata/corpus/sql/table_function/information_schema_types.test index 2332f626..3bd3179e 100644 --- a/parser/testdata/corpus/sql/table_function/information_schema_types.test +++ b/parser/testdata/corpus/sql/table_function/information_schema_types.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/information_schema_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select table_name, column_name diff --git a/parser/testdata/corpus/sql/table_function/issue_25882.test b/parser/testdata/corpus/sql/table_function/issue_25882.test index 79edc0c0..f63f7314 100644 --- a/parser/testdata/corpus/sql/table_function/issue_25882.test +++ b/parser/testdata/corpus/sql/table_function/issue_25882.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/issue_25882.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT size, length(content) > 0 FROM read_text('/proc/self/status'); diff --git a/parser/testdata/corpus/sql/table_function/lateral_table_function.test b/parser/testdata/corpus/sql/table_function/lateral_table_function.test index c34298e2..7f4d5644 100644 --- a/parser/testdata/corpus/sql/table_function/lateral_table_function.test +++ b/parser/testdata/corpus/sql/table_function/lateral_table_function.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/lateral_table_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM read_csv(thisishopefullyanonexistentfile) diff --git a/parser/testdata/corpus/sql/table_function/postgres_setof_compatibility.test b/parser/testdata/corpus/sql/table_function/postgres_setof_compatibility.test index e028afb1..b7f1967e 100644 --- a/parser/testdata/corpus/sql/table_function/postgres_setof_compatibility.test +++ b/parser/testdata/corpus/sql/table_function/postgres_setof_compatibility.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/postgres_setof_compatibility.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select i from generate_series(1, 2) i; diff --git a/parser/testdata/corpus/sql/table_function/range_cardinality_extremes.test b/parser/testdata/corpus/sql/table_function/range_cardinality_extremes.test index d886229f..d3fb030a 100644 --- a/parser/testdata/corpus/sql/table_function/range_cardinality_extremes.test +++ b/parser/testdata/corpus/sql/table_function/range_cardinality_extremes.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_cardinality_extremes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) FROM range(TIMESTAMP '1992-01-01', TIMESTAMP '1992-12-31', INTERVAL '-1 MONTH') t1, range(3) t2; diff --git a/parser/testdata/corpus/sql/table_function/range_function_different_iterators.test b/parser/testdata/corpus/sql/table_function/range_function_different_iterators.test index fef8b9e6..92a0d53c 100644 --- a/parser/testdata/corpus/sql/table_function/range_function_different_iterators.test +++ b/parser/testdata/corpus/sql/table_function/range_function_different_iterators.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_function_different_iterators.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from range(4,15,6); diff --git a/parser/testdata/corpus/sql/table_function/range_function_lateral.test b/parser/testdata/corpus/sql/table_function/range_function_lateral.test index 0b99075c..3f565bb0 100644 --- a/parser/testdata/corpus/sql/table_function/range_function_lateral.test +++ b/parser/testdata/corpus/sql/table_function/range_function_lateral.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_function_lateral.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(1, NULL, 1); diff --git a/parser/testdata/corpus/sql/table_function/range_lateral_parallel.test b/parser/testdata/corpus/sql/table_function/range_lateral_parallel.test new file mode 100644 index 00000000..538cd483 --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/range_lateral_parallel.test @@ -0,0 +1,30 @@ +# source: test/sql/table_function/range_lateral_parallel.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT i AS val1 FROM range(1, 1000001) t(i); +-- +ok +== +SELECT count(*), sum(series) FROM t CROSS JOIN generate_series(1, CASE WHEN t.val1 % 10 = 0 THEN 0 WHEN t.val1 % 100 = 71 THEN 2 ELSE 1 END) AS g(series); +-- +ok +== +SELECT count(*), sum(x) FROM t, LATERAL range(t.val1 % 3) r(x); +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE x < val1 OR x >= val1 + n), count(*) FILTER (WHERE o <> x - val1 + 1), sum(x - val1) +FROM (SELECT val1, CASE WHEN val1 % 100000 = 0 THEN 5000 ELSE val1 % 3 END AS n FROM t), LATERAL range(val1, val1 + n) WITH ORDINALITY r(x, o); +-- +ok +== +SELECT count(*), count(DISTINCT x), max(x) FROM t, LATERAL range(TIMESTAMP '2020-01-01', TIMESTAMP '2020-01-01' + (t.val1 % 3) * INTERVAL 1 DAY, INTERVAL 1 DAY) r(x); +-- +ok +== +SELECT count(*), count(DISTINCT x), max(x) = TIMESTAMPTZ '2020-01-03 00:00:00+00' FROM t, LATERAL generate_series(TIMESTAMPTZ '2020-01-01 00:00:00+00', TIMESTAMPTZ '2020-01-01 00:00:00+00' + (t.val1 % 3) * INTERVAL 1 DAY, INTERVAL 1 DAY) r(x); +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/range_lateral_threads.test b/parser/testdata/corpus/sql/table_function/range_lateral_threads.test new file mode 100644 index 00000000..118cd32e --- /dev/null +++ b/parser/testdata/corpus/sql/table_function/range_lateral_threads.test @@ -0,0 +1,52 @@ +# source: test/sql/table_function/range_lateral_threads.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) AS probe_unnest FROM range(10000) t(i), LATERAL unnest([i]) r(x); +-- +ok +== +SELECT count(*) AS probe_range FROM range(10000) t(i), LATERAL range(i, i + 1) r(x); +-- +ok +== +SELECT count(*) AS probe_generate_series FROM range(10000) t(i), LATERAL generate_series(i, i) r(x); +-- +ok +== +SELECT count(*) AS probe_timestamp_unnest FROM range(10000) t(i), LATERAL unnest([TIMESTAMP '2020-01-01' + i * INTERVAL 1 DAY]) r(x); +-- +ok +== +SELECT count(*) AS probe_timestamp_range FROM range(10000) t(i), LATERAL range(TIMESTAMP '2020-01-01' + i * INTERVAL 1 DAY, TIMESTAMP '2020-01-02' + i * INTERVAL 1 DAY, INTERVAL 1 DAY) r(x); +-- +ok +== +SELECT probe, span = (SELECT span FROM probe_spans WHERE probe = 'probe_unnest') +FROM probe_spans WHERE probe IN ('probe_range', 'probe_generate_series') ORDER BY probe; +-- +ok +== +SELECT span = (SELECT span FROM probe_spans WHERE probe = 'probe_timestamp_unnest') +FROM probe_spans WHERE probe = 'probe_timestamp_range'; +-- +ok +== +SELECT count(*) AS probe_timestamptz_unnest FROM range(10000) t(i), LATERAL unnest([TIMESTAMPTZ '2020-01-01 00:00:00+00' + i * INTERVAL 1 DAY]) r(x); +-- +ok +== +SELECT count(*) AS probe_timestamptz_range FROM range(10000) t(i), LATERAL range(TIMESTAMPTZ '2020-01-01 00:00:00+00' + i * INTERVAL 1 DAY, TIMESTAMPTZ '2020-01-02 00:00:00+00' + i * INTERVAL 1 DAY, INTERVAL 1 DAY) r(x); +-- +ok +== +SELECT count(*) AS probe_timestamptz_end FROM range(1); +-- +ok +== +SELECT span = (SELECT span FROM probe_spans WHERE probe = 'probe_timestamptz_unnest') +FROM probe_spans WHERE probe = 'probe_timestamptz_range'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/table_function/range_non_foldable.test b/parser/testdata/corpus/sql/table_function/range_non_foldable.test index d0a3ec1c..4d2e442e 100644 --- a/parser/testdata/corpus/sql/table_function/range_non_foldable.test +++ b/parser/testdata/corpus/sql/table_function/range_non_foldable.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_non_foldable.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) diff --git a/parser/testdata/corpus/sql/table_function/range_timestamp.test b/parser/testdata/corpus/sql/table_function/range_timestamp.test index 3b6456e9..c64bdc1a 100644 --- a/parser/testdata/corpus/sql/table_function/range_timestamp.test +++ b/parser/testdata/corpus/sql/table_function/range_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT d::DATE FROM range(DATE '1992-01-01', DATE '1992-10-01', INTERVAL (1) MONTH) tbl(d) diff --git a/parser/testdata/corpus/sql/table_function/range_timestamp_lateral_empty.test b/parser/testdata/corpus/sql/table_function/range_timestamp_lateral_empty.test index 1c21d1ba..034a0037 100644 --- a/parser/testdata/corpus/sql/table_function/range_timestamp_lateral_empty.test +++ b/parser/testdata/corpus/sql/table_function/range_timestamp_lateral_empty.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/range_timestamp_lateral_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS @@ -20,13 +20,6 @@ SELECT COUNT(*) FROM t, LATERAL range( -- ok == -SELECT list(i ORDER BY i) FROM t, LATERAL range( - ts + (CASE WHEN i = 5 THEN INTERVAL '7 minutes' ELSE INTERVAL '0 minutes' END), - ts + INTERVAL '5 minutes', - INTERVAL '10 minutes'); --- -ok -== SELECT COUNT(*) FROM t, LATERAL range( ts + (CASE WHEN i = 0 THEN INTERVAL '7 minutes' ELSE INTERVAL '0 minutes' END), ts + INTERVAL '5 minutes', diff --git a/parser/testdata/corpus/sql/table_function/read_text_and_blob.test b/parser/testdata/corpus/sql/table_function/read_text_and_blob.test index 17668eb7..c8658c3e 100644 --- a/parser/testdata/corpus/sql/table_function/read_text_and_blob.test +++ b/parser/testdata/corpus/sql/table_function/read_text_and_blob.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/read_text_and_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM read_text('test/sql/table_function/files/*.txt'); diff --git a/parser/testdata/corpus/sql/table_function/register_external_resource.test b/parser/testdata/corpus/sql/table_function/register_external_resource.test index c4e7036e..faf75526 100644 --- a/parser/testdata/corpus/sql/table_function/register_external_resource.test +++ b/parser/testdata/corpus/sql/table_function/register_external_resource.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/register_external_resource.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL register_external_resource('mock@local', 'r1', MAP {'id': 'abc'}, diff --git a/parser/testdata/corpus/sql/table_function/sqlite_master.test b/parser/testdata/corpus/sql/table_function/sqlite_master.test index 2e5c1f26..05afed61 100644 --- a/parser/testdata/corpus/sql/table_function/sqlite_master.test +++ b/parser/testdata/corpus/sql/table_function/sqlite_master.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/sqlite_master.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM sqlite_master; diff --git a/parser/testdata/corpus/sql/table_function/sqlite_master_connections.test b/parser/testdata/corpus/sql/table_function/sqlite_master_connections.test index 030c68c8..a95c5dc8 100644 --- a/parser/testdata/corpus/sql/table_function/sqlite_master_connections.test +++ b/parser/testdata/corpus/sql/table_function/sqlite_master_connections.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/sqlite_master_connections.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP VIEW sqlite_master diff --git a/parser/testdata/corpus/sql/table_function/sqlite_master_quotes.test b/parser/testdata/corpus/sql/table_function/sqlite_master_quotes.test index 86cd0e9d..82565d60 100644 --- a/parser/testdata/corpus/sql/table_function/sqlite_master_quotes.test +++ b/parser/testdata/corpus/sql/table_function/sqlite_master_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/sqlite_master_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE "a b c"("d e" INTEGER, f INTEGER); diff --git a/parser/testdata/corpus/sql/table_function/table_function_positional_by_name.test b/parser/testdata/corpus/sql/table_function/table_function_positional_by_name.test index 4fd23b15..36ded92a 100644 --- a/parser/testdata/corpus/sql/table_function/table_function_positional_by_name.test +++ b/parser/testdata/corpus/sql/table_function/table_function_positional_by_name.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/table_function_positional_by_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(1, 5) diff --git a/parser/testdata/corpus/sql/table_function/test_information_schema_columns.test b/parser/testdata/corpus/sql/table_function/test_information_schema_columns.test index 9c7da71c..3ba09b42 100644 --- a/parser/testdata/corpus/sql/table_function/test_information_schema_columns.test +++ b/parser/testdata/corpus/sql/table_function/test_information_schema_columns.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/test_information_schema_columns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wide ( diff --git a/parser/testdata/corpus/sql/table_function/test_range_function.test b/parser/testdata/corpus/sql/table_function/test_range_function.test index 34f6a2d5..16f685eb 100644 --- a/parser/testdata/corpus/sql/table_function/test_range_function.test +++ b/parser/testdata/corpus/sql/table_function/test_range_function.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/test_range_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM range(0, 10, 1) diff --git a/parser/testdata/corpus/sql/table_function/test_repeat_function.test b/parser/testdata/corpus/sql/table_function/test_repeat_function.test index 0b602a8d..c01e5d86 100644 --- a/parser/testdata/corpus/sql/table_function/test_repeat_function.test +++ b/parser/testdata/corpus/sql/table_function/test_repeat_function.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/test_repeat_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM repeat(0, 3) diff --git a/parser/testdata/corpus/sql/table_function/test_repeat_row_function.test b/parser/testdata/corpus/sql/table_function/test_repeat_row_function.test index d6a78795..b93771f4 100644 --- a/parser/testdata/corpus/sql/table_function/test_repeat_row_function.test +++ b/parser/testdata/corpus/sql/table_function/test_repeat_row_function.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/test_repeat_row_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM repeat_row(0, num_rows=3) diff --git a/parser/testdata/corpus/sql/table_function/test_table_function.test b/parser/testdata/corpus/sql/table_function/test_table_function.test index b929440d..63158e0e 100644 --- a/parser/testdata/corpus/sql/table_function/test_table_function.test +++ b/parser/testdata/corpus/sql/table_function/test_table_function.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/test_table_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM pragma_table_info('integers'); diff --git a/parser/testdata/corpus/sql/table_function/warn_deprecated_identifier_conversion.test b/parser/testdata/corpus/sql/table_function/warn_deprecated_identifier_conversion.test index fd98a197..db2e6cc6 100644 --- a/parser/testdata/corpus/sql/table_function/warn_deprecated_identifier_conversion.test +++ b/parser/testdata/corpus/sql/table_function/warn_deprecated_identifier_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/table_function/warn_deprecated_identifier_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET table_function_identifier_conversion='DISABLE_IMPLICIT_STRING'; diff --git a/parser/testdata/corpus/sql/timezone/disable_timestamptz_casts.test b/parser/testdata/corpus/sql/timezone/disable_timestamptz_casts.test index 8e23e433..500b3d5c 100644 --- a/parser/testdata/corpus/sql/timezone/disable_timestamptz_casts.test +++ b/parser/testdata/corpus/sql/timezone/disable_timestamptz_casts.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/disable_timestamptz_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set disable_timestamptz_casts=false; diff --git a/parser/testdata/corpus/sql/timezone/icu_calendar_operations.test b/parser/testdata/corpus/sql/timezone/icu_calendar_operations.test index 16a14a79..9e446cac 100644 --- a/parser/testdata/corpus/sql/timezone/icu_calendar_operations.test +++ b/parser/testdata/corpus/sql/timezone/icu_calendar_operations.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/icu_calendar_operations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar = '{cal}'; diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar.test index ff828a2d..bbf8be2b 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT name FROM icu_calendar_names() diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_chinese.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_chinese.test index eefaa5b1..f1f6487c 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_chinese.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_chinese.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_chinese.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='chinese' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_coptic.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_coptic.test index 7b73a407..df3eede9 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_coptic.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_coptic.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_coptic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='coptic' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_hebrew.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_hebrew.test index c71cfce4..c4960e30 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_hebrew.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_hebrew.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_hebrew.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='hebrew' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic.test index a7c668ec..8fcba303 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_islamic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='islamic-civil' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic_observed.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic_observed.test index a491228e..9daac3cd 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic_observed.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_islamic_observed.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_islamic_observed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='islamic' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_japanese.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_japanese.test index 5fcee190..e9505e73 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_japanese.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_japanese.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_japanese.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ts, era(ts), year(ts), month(ts), day(ts) FROM (VALUES diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_persian.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_persian.test index e54aac02..97c7ac07 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_persian.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_persian.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_persian.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='persian' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_range_error.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_range_error.test index 58789b7b..5addd73c 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_range_error.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_range_error.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_range_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='chinese'; diff --git a/parser/testdata/corpus/sql/timezone/test_icu_calendar_systems.test b/parser/testdata/corpus/sql/timezone/test_icu_calendar_systems.test index e4d6d770..ca7b5e74 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_calendar_systems.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_calendar_systems.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_calendar_systems.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET Calendar='buddhist' diff --git a/parser/testdata/corpus/sql/timezone/test_icu_casts.test b/parser/testdata/corpus/sql/timezone/test_icu_casts.test index baefaf14..a5199605 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_casts.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_casts.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tstzs AS diff --git a/parser/testdata/corpus/sql/timezone/test_icu_datetime_overflow.test b/parser/testdata/corpus/sql/timezone/test_icu_datetime_overflow.test index 9859864d..b59fe579 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_datetime_overflow.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_datetime_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_datetime_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '2000-01-01 00:00:00+00'::TIMESTAMPTZ - INTERVAL 2147483647 MONTH; diff --git a/parser/testdata/corpus/sql/timezone/test_icu_datetime_sweep.test b/parser/testdata/corpus/sql/timezone/test_icu_datetime_sweep.test index 5582a936..ba41d1a0 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_datetime_sweep.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_datetime_sweep.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_datetime_sweep.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH instants(ts) AS (VALUES diff --git a/parser/testdata/corpus/sql/timezone/test_icu_offset_seconds_roundtrip.test b/parser/testdata/corpus/sql/timezone/test_icu_offset_seconds_roundtrip.test new file mode 100644 index 00000000..3141ab45 --- /dev/null +++ b/parser/testdata/corpus/sql/timezone/test_icu_offset_seconds_roundtrip.test @@ -0,0 +1,21 @@ +# source: test/sql/timezone/test_icu_offset_seconds_roundtrip.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT (TIMESTAMPTZ '1900-01-01 00:00:00+00')::VARCHAR; +-- +ok +== +SELECT (TIMESTAMPTZ '1900-01-01 00:00:00+00')::VARCHAR::TIMESTAMPTZ = TIMESTAMPTZ '1900-01-01 00:00:00+00'; +-- +ok +== +SELECT (TIMESTAMPTZ '2020-06-01 00:00:00+00')::VARCHAR; +-- +ok +== +SELECT (TIMESTAMPTZ '2020-01-01 00:00:00+00')::VARCHAR; +-- +ok +== diff --git a/parser/testdata/corpus/sql/timezone/test_icu_parse_time_zone_per_row.test b/parser/testdata/corpus/sql/timezone/test_icu_parse_time_zone_per_row.test index 032efb7f..25dd536d 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_parse_time_zone_per_row.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_parse_time_zone_per_row.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_parse_time_zone_per_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s::TIMESTAMPTZ FROM (VALUES (1, '2024-01-01 00:00:00 Asia/Tokyo'), (2, '2024-01-01 00:00:00'), (3, '2024-01-01 00:00:00 America/New_York'), (4, '2024-01-01 00:00:00')) t(i, s) ORDER BY i diff --git a/parser/testdata/corpus/sql/timezone/test_icu_timezone.test b/parser/testdata/corpus/sql/timezone/test_icu_timezone.test index 4bf98f34..7d3ae5b7 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_timezone.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_timezone.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_timezone.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone = 'Europe/Duck'; @@ -125,6 +125,18 @@ WHERE ts > '2001-02-16 18:38:40'::TIMESTAMP -- ok == +SELECT DATE '2026-11-01' AT TIME ZONE 'Asia/Shanghai'; +-- +ok +== +SELECT typeof(DATE '2026-11-01' AT TIME ZONE 'Asia/Shanghai'); +-- +ok +== +SELECT DATE '2026-11-01' AT TIME ZONE 'Asia/Shanghai' AT TIME ZONE 'UTC' <= now(); +-- +ok +== SELECT '2019-01-01 00:00:00.123456789+00'::TIMESTAMPTZ_NS AT TIME ZONE 'UTC'; -- ok @@ -317,3 +329,7 @@ select '2026-11-02'::timestamptz -- ok == +set timezone='America/Havana'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/timezone/test_icu_timezone_edge_cases.test b/parser/testdata/corpus/sql/timezone/test_icu_timezone_edge_cases.test index 3227f7a9..368e8db2 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_timezone_edge_cases.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_timezone_edge_cases.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_timezone_edge_cases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ts, ts::TIMESTAMPTZ FROM (VALUES diff --git a/parser/testdata/corpus/sql/timezone/test_icu_timezone_far_future.test b/parser/testdata/corpus/sql/timezone/test_icu_timezone_far_future.test index 8d2fd343..8d0eb87b 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_timezone_far_future.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_timezone_far_future.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_timezone_far_future.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '2038-01-19 03:14:07+00'::TIMESTAMPTZ; diff --git a/parser/testdata/corpus/sql/timezone/test_icu_timezone_properties.test b/parser/testdata/corpus/sql/timezone/test_icu_timezone_properties.test index 52cac81d..ea1b0205 100644 --- a/parser/testdata/corpus/sql/timezone/test_icu_timezone_properties.test +++ b/parser/testdata/corpus/sql/timezone/test_icu_timezone_properties.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/test_icu_timezone_properties.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE windows AS diff --git a/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_date.test b/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_date.test index 1777624d..d43be5bd 100644 --- a/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_date.test +++ b/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_date.test @@ -1,6 +1,6 @@ # source: test/sql/timezone/timestamptz_ns_to_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(CAST('2020-01-02 03:04:05.123456789+00' AS TIMESTAMPTZ_NS) AS DATE), CAST(CAST('2020-01-02 03:04:05.123456+00' AS TIMESTAMPTZ) AS DATE) diff --git a/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_timestamp.test b/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_timestamp.test new file mode 100644 index 00000000..f3228ce5 --- /dev/null +++ b/parser/testdata/corpus/sql/timezone/timestamptz_ns_to_timestamp.test @@ -0,0 +1,21 @@ +# source: test/sql/timezone/timestamptz_ns_to_timestamp.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CAST(CAST('2020-01-02 03:04:05.123456789+00' AS TIMESTAMPTZ_NS) AS TIMESTAMP), CAST(CAST('2020-01-02 03:04:05.123456499+00' AS TIMESTAMPTZ_NS) AS TIMESTAMP) +-- +ok +== +SELECT CAST(CAST('1969-12-31 23:59:59.123456789+00' AS TIMESTAMPTZ_NS) AS TIMESTAMP), CAST(CAST('1969-12-31 23:59:59.999999999+00' AS TIMESTAMPTZ_NS) AS TIMESTAMP) +-- +ok +== +SELECT CAST('infinity'::TIMESTAMPTZ_NS AS TIMESTAMP), CAST('-infinity'::TIMESTAMPTZ_NS AS TIMESTAMP), CAST(NULL::TIMESTAMPTZ_NS AS TIMESTAMP) +-- +ok +== +SELECT CAST(CAST('2020-01-02 03:04:05.123456789+00' AS TIMESTAMPTZ_NS) AS TIMESTAMP) +-- +ok +== diff --git a/parser/testdata/corpus/sql/topn/test_top_n.test b/parser/testdata/corpus/sql/topn/test_top_n.test index b524bf7f..b12d9784 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n.test +++ b/parser/testdata/corpus/sql/topn/test_top_n.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (22), (2), (7); diff --git a/parser/testdata/corpus/sql/topn/test_top_n_distinct_row_group_pruner.test b/parser/testdata/corpus/sql/topn/test_top_n_distinct_row_group_pruner.test index bbdb4c24..dfc5d0ed 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_distinct_row_group_pruner.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_distinct_row_group_pruner.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_distinct_row_group_pruner.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/top_n_distinct_row_group_pruner_data.duckdb' AS db (ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_lists.test b/parser/testdata/corpus/sql/topn/test_top_n_lists.test index b1a40c65..877571e9 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_lists.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_lists.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_lists.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT [i] l FROM range(1000) tbl(i) UNION ALL SELECT NULL l FROM range(3) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_medium.test b/parser/testdata/corpus/sql/topn/test_top_n_medium.test index 22d52bdc..5d87b00d 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_medium.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_medium.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_medium.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT i, i % 1000 j FROM range(1000000) tbl(i) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nested_struct.test b/parser/testdata/corpus/sql/topn/test_top_n_nested_struct.test index 54705b03..fcebeeae 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nested_struct.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nested_struct.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nested_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE nested_struct(cik BIGINT, entityName VARCHAR, a STRUCT(b STRUCT(c INT, d INT), c STRUCT(e INT, f INT))); diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nulls_first.test b/parser/testdata/corpus/sql/topn/test_top_n_nulls_first.test index 3a281644..a785950a 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nulls_first.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nulls_first.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nulls_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM integers ORDER BY i NULLS FIRST LIMIT 2 diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nulls_first_row_group_reorderer_edge_cases.test b/parser/testdata/corpus/sql/topn/test_top_n_nulls_first_row_group_reorderer_edge_cases.test index 784263ac..7e36dae8 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nulls_first_row_group_reorderer_edge_cases.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nulls_first_row_group_reorderer_edge_cases.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nulls_first_row_group_reorderer_edge_cases.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads TO 1 diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner.test b/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner.test index f401dd0a..55d56119 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nulls_row_group_pruner.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner_extensive.test b/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner_extensive.test index 427fd8e2..1aa56184 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner_extensive.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nulls_row_group_pruner_extensive.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nulls_row_group_pruner_extensive.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/top_n_nulls_row_group_pruner_extensive_data.duckdb' AS db (ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_nulls_small.test b/parser/testdata/corpus/sql/topn/test_top_n_nulls_small.test index b20b5038..2c0d8964 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_nulls_small.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_nulls_small.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_nulls_small.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i, i j FROM range(1000) tbl(i) UNION ALL SELECT NULL i, range j FROM range(1000) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_offset_no_limit_pruner.test b/parser/testdata/corpus/sql/topn/test_top_n_offset_no_limit_pruner.test index f6e1084a..6018d0d3 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_offset_no_limit_pruner.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_offset_no_limit_pruner.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_offset_no_limit_pruner.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range AS id FROM range(300000) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_structs.test b/parser/testdata/corpus/sql/topn/test_top_n_structs.test index 1fb7f040..336c2fce 100644 --- a/parser/testdata/corpus/sql/topn/test_top_n_structs.test +++ b/parser/testdata/corpus/sql/topn/test_top_n_structs.test @@ -1,6 +1,6 @@ # source: test/sql/topn/test_top_n_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT {'i': i} l FROM range(1000) tbl(i) UNION ALL SELECT NULL l FROM range(3) diff --git a/parser/testdata/corpus/sql/topn/test_top_n_window_row_group_pruner.test b/parser/testdata/corpus/sql/topn/test_top_n_window_row_group_pruner.test new file mode 100644 index 00000000..b0f9c8da --- /dev/null +++ b/parser/testdata/corpus/sql/topn/test_top_n_window_row_group_pruner.test @@ -0,0 +1,37 @@ +# source: test/sql/topn/test_top_n_window_row_group_pruner.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/top_n_window_row_group_pruner_data.duckdb' AS db (ROW_GROUP_SIZE 2048) +-- +ok +== +CREATE TABLE db.t(k BIGINT,v BIGINT) +-- +ok +== +INSERT INTO db.t SELECT 0,i FROM range(8192) t(i) +-- +ok +== +INSERT INTO db.t SELECT 1,i FROM range(8192) t(i) +-- +ok +== +ATTACH '{TEST_DIR}/top_n_window_row_group_pruner_data.duckdb' AS db +-- +ok +== +SELECT k,n FROM (SELECT k,count(*) OVER (PARTITION BY k) AS n FROM db.t) ORDER BY k LIMIT 1; +-- +ok +== +SELECT k,n FROM (SELECT k,count(*) OVER (PARTITION BY k) AS n FROM db.t) ORDER BY k LIMIT 1 OFFSET 4096; +-- +ok +== +SELECT k,n FROM (SELECT k,count(*) OVER (PARTITION BY k) AS n FROM db.t) ORDER BY k DESC LIMIT 1 OFFSET 8192; +-- +ok +== diff --git a/parser/testdata/corpus/sql/topn/top_n_materialization.test b/parser/testdata/corpus/sql/topn/top_n_materialization.test index 234a8e4e..6234bad3 100644 --- a/parser/testdata/corpus/sql/topn/top_n_materialization.test +++ b/parser/testdata/corpus/sql/topn/top_n_materialization.test @@ -1,6 +1,6 @@ # source: test/sql/topn/top_n_materialization.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT i, i + 1 AS j, i + 2 AS k, -i AS l FROM range(10) t(i); diff --git a/parser/testdata/corpus/sql/topn/top_n_pruning.test b/parser/testdata/corpus/sql/topn/top_n_pruning.test index f8916472..f1c26311 100644 --- a/parser/testdata/corpus/sql/topn/top_n_pruning.test +++ b/parser/testdata/corpus/sql/topn/top_n_pruning.test @@ -1,6 +1,6 @@ # source: test/sql/topn/top_n_pruning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/top_n_hard_limit.duckdb' AS db (ROW_GROUP_SIZE 2048) diff --git a/parser/testdata/corpus/sql/topn/top_n_pruning_read_ahead.test b/parser/testdata/corpus/sql/topn/top_n_pruning_read_ahead.test new file mode 100644 index 00000000..9d63276a --- /dev/null +++ b/parser/testdata/corpus/sql/topn/top_n_pruning_read_ahead.test @@ -0,0 +1,13 @@ +# source: test/sql/topn/top_n_pruning_read_ahead.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/top_n_read_ahead.duckdb' AS db (ROW_GROUP_SIZE 2048) +-- +ok +== +CREATE TABLE t(i BIGINT) +-- +ok +== diff --git a/parser/testdata/corpus/sql/topn/topn_dynamic_filter_cast.test b/parser/testdata/corpus/sql/topn/topn_dynamic_filter_cast.test index e78112cd..4f552adf 100644 --- a/parser/testdata/corpus/sql/topn/topn_dynamic_filter_cast.test +++ b/parser/testdata/corpus/sql/topn/topn_dynamic_filter_cast.test @@ -1,6 +1,6 @@ # source: test/sql/topn/topn_dynamic_filter_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET threads TO 1; diff --git a/parser/testdata/corpus/sql/topn/topn_nulls_first.test b/parser/testdata/corpus/sql/topn/topn_nulls_first.test index f63f2141..4852a05a 100644 --- a/parser/testdata/corpus/sql/topn/topn_nulls_first.test +++ b/parser/testdata/corpus/sql/topn/topn_nulls_first.test @@ -1,6 +1,6 @@ # source: test/sql/topn/topn_nulls_first.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE topn_nulls(v INTEGER) diff --git a/parser/testdata/corpus/sql/topn/tpcds_q14_topn.test b/parser/testdata/corpus/sql/topn/tpcds_q14_topn.test index 1a8a7b04..74b0eedd 100644 --- a/parser/testdata/corpus/sql/topn/tpcds_q14_topn.test +++ b/parser/testdata/corpus/sql/topn/tpcds_q14_topn.test @@ -1,6 +1,6 @@ # source: test/sql/topn/tpcds_q14_topn.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE final(channel VARCHAR, i_brand_id INTEGER, i_class_id INTEGER, i_category_id INTEGER, sum_sales DECIMAL(38,2), number_sales HUGEINT); diff --git a/parser/testdata/corpus/sql/topn/tpcds_q59_topn.test b/parser/testdata/corpus/sql/topn/tpcds_q59_topn.test index 7c7476be..0a863744 100644 --- a/parser/testdata/corpus/sql/topn/tpcds_q59_topn.test +++ b/parser/testdata/corpus/sql/topn/tpcds_q59_topn.test @@ -1,6 +1,6 @@ # source: test/sql/topn/tpcds_q59_topn.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE final(s_store_name1 VARCHAR, s_store_id1 VARCHAR, d_week_seq1 INTEGER, "sun_sales1 / sun_sales2" DOUBLE, "mon_sales1 / mon_sales2" DOUBLE, "tue_sales1 / tue_sales2" DOUBLE, "wed_sales1 / wed_sales2" DOUBLE, "thu_sales1 / thu_sales2" DOUBLE, "fri_sales1 / fri_sales2" DOUBLE, "sat_sales1 / sat_sales2" DOUBLE); diff --git a/parser/testdata/corpus/sql/tpcds/dsdgen_nested_schema.test b/parser/testdata/corpus/sql/tpcds/dsdgen_nested_schema.test new file mode 100644 index 00000000..86f9be80 --- /dev/null +++ b/parser/testdata/corpus/sql/tpcds/dsdgen_nested_schema.test @@ -0,0 +1,117 @@ +# source: test/sql/tpcds/dsdgen_nested_schema.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/dsdgen_nested_schema.db' AS dsdgen_nested (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE dsdgen_nested; +-- +ok +== +CREATE SCHEMA "a.b"; +-- +ok +== +CREATE TABLE b.customer_address AS SELECT 42 AS sentinel; +-- +ok +== +USE dsdgen_nested.a.b; +-- +ok +== +CALL dsdgen(sf=0, overwrite=true); +-- +ok +== +SELECT sentinel FROM dsdgen_nested.b.customer_address; +-- +ok +== +SELECT count(*) FROM (SHOW TABLES FROM dsdgen_nested.a.b); +-- +ok +== +CALL dsdgen(sf=0.01, overwrite=true); +-- +ok +== +SELECT count(*) > 0 FROM dsdgen_nested.a.b.customer_address; +-- +ok +== +CALL dsdgen(sf=0, schema='a.b', suffix='_nested_arg'); +-- +ok +== +SELECT count(*) FROM dsdgen_nested.a.b.customer_address_nested_arg; +-- +ok +== +SELECT count(*) FROM (SHOW TABLES FROM dsdgen_nested."a.b"); +-- +ok +== +CALL dsdgen(sf=0, schema='"a.b"'); +-- +ok +== +SELECT count(*) FROM dsdgen_nested."a.b".customer_address; +-- +ok +== +CREATE SCHEMA dsdgen_nested."legacy.dot"; +-- +ok +== +CALL dsdgen(sf=0, schema='legacy.dot'); +-- +ok +== +SELECT count(*) FROM dsdgen_nested."legacy.dot".customer_address; +-- +ok +== +ATTACH '{TEST_DIR}/dsdgen_schema_arg.db' AS dsdgen_arg (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +CREATE SCHEMA dsdgen_arg."a.b"; +-- +ok +== +CALL dsdgen(sf=0, schema='a.b', catalog='dsdgen_arg'); +-- +ok +== +SELECT count(*) FROM dsdgen_arg."a.b".customer_address; +-- +ok +== +CALL dsdgen(sf=0, catalog='dsdgen_arg', schema='a.b', suffix='_reverse'); +-- +ok +== +SELECT count(*) FROM dsdgen_arg."a.b".customer_address_reverse; +-- +ok +== +CREATE SCHEMA dsdgen_nested.a."b.c"; +-- +ok +== +USE dsdgen_nested.a."b.c"; +-- +ok +== +CALL dsdgen(sf=0, suffix='_quoted'); +-- +ok +== +SELECT count(*) FROM dsdgen_nested.a."b.c".customer_address_quoted; +-- +ok +== diff --git a/parser/testdata/corpus/sql/tpcds/dsdgen_readonly.test b/parser/testdata/corpus/sql/tpcds/dsdgen_readonly.test index da5d5b6f..51838448 100644 --- a/parser/testdata/corpus/sql/tpcds/dsdgen_readonly.test +++ b/parser/testdata/corpus/sql/tpcds/dsdgen_readonly.test @@ -1,6 +1,6 @@ # source: test/sql/tpcds/dsdgen_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL dsdgen(sf=0); diff --git a/parser/testdata/corpus/sql/tpcds/dsdgen_sync_scan.test b/parser/testdata/corpus/sql/tpcds/dsdgen_sync_scan.test index 0d0f455b..688f4f8c 100644 --- a/parser/testdata/corpus/sql/tpcds/dsdgen_sync_scan.test +++ b/parser/testdata/corpus/sql/tpcds/dsdgen_sync_scan.test @@ -1,6 +1,6 @@ # source: test/sql/tpcds/dsdgen_sync_scan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_physical_table_scan_execution_strategy=SYNCHRONOUS; diff --git a/parser/testdata/corpus/sql/tpcds/tpcds_sf0.test b/parser/testdata/corpus/sql/tpcds/tpcds_sf0.test index 2f63a4fc..af4c9894 100644 --- a/parser/testdata/corpus/sql/tpcds/tpcds_sf0.test +++ b/parser/testdata/corpus/sql/tpcds/tpcds_sf0.test @@ -1,6 +1,6 @@ # source: test/sql/tpcds/tpcds_sf0.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL dsdgen(sf=0) diff --git a/parser/testdata/corpus/sql/tpch/dbgen_nested_schema.test b/parser/testdata/corpus/sql/tpch/dbgen_nested_schema.test new file mode 100644 index 00000000..3a1f87a4 --- /dev/null +++ b/parser/testdata/corpus/sql/tpch/dbgen_nested_schema.test @@ -0,0 +1,113 @@ +# source: test/sql/tpch/dbgen_nested_schema.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/dbgen_nested_schema.db' AS dbgen_nested (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +USE dbgen_nested; +-- +ok +== +CREATE TABLE b.region AS SELECT 42 AS sentinel; +-- +ok +== +USE dbgen_nested.a.b; +-- +ok +== +CALL dbgen(sf=0); +-- +ok +== +SELECT count(*) FROM (SHOW TABLES FROM dbgen_nested.a.b); +-- +ok +== +SELECT sentinel FROM dbgen_nested.b.region; +-- +ok +== +SELECT count(*) > 0 FROM dbgen_nested.a.b.nation; +-- +ok +== +SELECT count(*) FROM dbgen_nested.a.b.nation; +-- +ok +== +CALL dbgen(sf=0, schema='a.b', suffix='_nested_arg'); +-- +ok +== +SELECT count(*) FROM dbgen_nested.a.b.nation_nested_arg; +-- +ok +== +SELECT count(*) FROM (SHOW TABLES FROM dbgen_nested."a.b"); +-- +ok +== +CALL dbgen(sf=0, schema='"a.b"'); +-- +ok +== +SELECT count(*) FROM dbgen_nested."a.b".nation; +-- +ok +== +CREATE SCHEMA dbgen_nested."legacy.dot"; +-- +ok +== +CALL dbgen(sf=0, schema='legacy.dot'); +-- +ok +== +SELECT count(*) FROM dbgen_nested."legacy.dot".nation; +-- +ok +== +ATTACH '{TEST_DIR}/dbgen_schema_arg.db' AS dbgen_arg (STORAGE_VERSION 'v2.0.0'); +-- +ok +== +CREATE SCHEMA dbgen_arg."a.b"; +-- +ok +== +CALL dbgen(sf=0, schema='a.b', catalog='dbgen_arg'); +-- +ok +== +SELECT count(*) FROM dbgen_arg."a.b".nation; +-- +ok +== +CALL dbgen(sf=0, catalog='dbgen_arg', schema='a.b', suffix='_reverse'); +-- +ok +== +SELECT count(*) FROM dbgen_arg."a.b".nation_reverse; +-- +ok +== +CREATE SCHEMA dbgen_nested.a."b.c"; +-- +ok +== +USE dbgen_nested.a."b.c"; +-- +ok +== +CALL dbgen(sf=0, suffix='_quoted'); +-- +ok +== +SELECT count(*) FROM dbgen_nested.a."b.c".nation_quoted; +-- +ok +== diff --git a/parser/testdata/corpus/sql/tpch/dbgen_readonly.test b/parser/testdata/corpus/sql/tpch/dbgen_readonly.test index 50b9095f..a042492a 100644 --- a/parser/testdata/corpus/sql/tpch/dbgen_readonly.test +++ b/parser/testdata/corpus/sql/tpch/dbgen_readonly.test @@ -1,12 +1,8 @@ # source: test/sql/tpch/dbgen_readonly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CALL dbgen(sf=0); --- -ok -== ATTACH '{TEST_DIR}/test_dbgen_ro.db' AS dbgentest (READ_ONLY) -- ok diff --git a/parser/testdata/corpus/sql/tpch/dbgen_reference_values.test b/parser/testdata/corpus/sql/tpch/dbgen_reference_values.test index 5401b3c6..316569cc 100644 --- a/parser/testdata/corpus/sql/tpch/dbgen_reference_values.test +++ b/parser/testdata/corpus/sql/tpch/dbgen_reference_values.test @@ -1,6 +1,6 @@ # source: test/sql/tpch/dbgen_reference_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT c_custkey, diff --git a/parser/testdata/corpus/sql/tpch/tpch_sf0.test b/parser/testdata/corpus/sql/tpch/tpch_sf0.test index 588a3ff9..8f256b5e 100644 --- a/parser/testdata/corpus/sql/tpch/tpch_sf0.test +++ b/parser/testdata/corpus/sql/tpch/tpch_sf0.test @@ -1,6 +1,6 @@ # source: test/sql/tpch/tpch_sf0.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA tpch({i}) diff --git a/parser/testdata/corpus/sql/transactions/aborted_transaction_commit.test b/parser/testdata/corpus/sql/transactions/aborted_transaction_commit.test index 53142d0c..5706ce8c 100644 --- a/parser/testdata/corpus/sql/transactions/aborted_transaction_commit.test +++ b/parser/testdata/corpus/sql/transactions/aborted_transaction_commit.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/aborted_transaction_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE keys(i INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/transactions/commit_revert_failure.test b/parser/testdata/corpus/sql/transactions/commit_revert_failure.test index 7390ec01..c569b67f 100644 --- a/parser/testdata/corpus/sql/transactions/commit_revert_failure.test +++ b/parser/testdata/corpus/sql/transactions/commit_revert_failure.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/commit_revert_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_force_commit_failure=true; diff --git a/parser/testdata/corpus/sql/transactions/concurrent_drop_index.test b/parser/testdata/corpus/sql/transactions/concurrent_drop_index.test index 83f3246b..035dc820 100644 --- a/parser/testdata/corpus/sql/transactions/concurrent_drop_index.test +++ b/parser/testdata/corpus/sql/transactions/concurrent_drop_index.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/concurrent_drop_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER, val INTEGER) diff --git a/parser/testdata/corpus/sql/transactions/concurrent_drop_table.test b/parser/testdata/corpus/sql/transactions/concurrent_drop_table.test index 7274164a..ad17a48f 100644 --- a/parser/testdata/corpus/sql/transactions/concurrent_drop_table.test +++ b/parser/testdata/corpus/sql/transactions/concurrent_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/concurrent_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/transactions/conflict_drop_then_delete.test b/parser/testdata/corpus/sql/transactions/conflict_drop_then_delete.test index 5cc06edb..c34f3210 100644 --- a/parser/testdata/corpus/sql/transactions/conflict_drop_then_delete.test +++ b/parser/testdata/corpus/sql/transactions/conflict_drop_then_delete.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/conflict_drop_then_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table original_table as from range(10) select 1 as col diff --git a/parser/testdata/corpus/sql/transactions/conflict_rename_append.test b/parser/testdata/corpus/sql/transactions/conflict_rename_append.test index 21421e49..fccda1c1 100644 --- a/parser/testdata/corpus/sql/transactions/conflict_rename_append.test +++ b/parser/testdata/corpus/sql/transactions/conflict_rename_append.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/conflict_rename_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into original_table diff --git a/parser/testdata/corpus/sql/transactions/count_star_transactions.test b/parser/testdata/corpus/sql/transactions/count_star_transactions.test index 179fbdcf..294d7d61 100644 --- a/parser/testdata/corpus/sql/transactions/count_star_transactions.test +++ b/parser/testdata/corpus/sql/transactions/count_star_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/count_star_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (id INT); diff --git a/parser/testdata/corpus/sql/transactions/delete_and_drop_in_same_transaction.test b/parser/testdata/corpus/sql/transactions/delete_and_drop_in_same_transaction.test index 72520225..d1bfcf5d 100644 --- a/parser/testdata/corpus/sql/transactions/delete_and_drop_in_same_transaction.test +++ b/parser/testdata/corpus/sql/transactions/delete_and_drop_in_same_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/delete_and_drop_in_same_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE SampleTable AS diff --git a/parser/testdata/corpus/sql/transactions/delete_index_lookup_transactions.test b/parser/testdata/corpus/sql/transactions/delete_index_lookup_transactions.test index d6a8a121..5c9e9e1f 100644 --- a/parser/testdata/corpus/sql/transactions/delete_index_lookup_transactions.test +++ b/parser/testdata/corpus/sql/transactions/delete_index_lookup_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/delete_index_lookup_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl VALUES (5, 'con2 payload'); diff --git a/parser/testdata/corpus/sql/transactions/min_max_deletes.test b/parser/testdata/corpus/sql/transactions/min_max_deletes.test index eb45e806..03160371 100644 --- a/parser/testdata/corpus/sql/transactions/min_max_deletes.test +++ b/parser/testdata/corpus/sql/transactions/min_max_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/min_max_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT min(id), max(id) FROM tbl diff --git a/parser/testdata/corpus/sql/transactions/min_max_updates.test b/parser/testdata/corpus/sql/transactions/min_max_updates.test index 73688939..3d056535 100644 --- a/parser/testdata/corpus/sql/transactions/min_max_updates.test +++ b/parser/testdata/corpus/sql/transactions/min_max_updates.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/min_max_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl FROM range(10); diff --git a/parser/testdata/corpus/sql/transactions/revert_commit_index_corruption_drop_table.test b/parser/testdata/corpus/sql/transactions/revert_commit_index_corruption_drop_table.test index d5eda2bb..49bd9957 100644 --- a/parser/testdata/corpus/sql/transactions/revert_commit_index_corruption_drop_table.test +++ b/parser/testdata/corpus/sql/transactions/revert_commit_index_corruption_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/revert_commit_index_corruption_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER PRIMARY KEY, val INTEGER) diff --git a/parser/testdata/corpus/sql/transactions/rollback_drop.test b/parser/testdata/corpus/sql/transactions/rollback_drop.test index d3cd0609..d3211167 100644 --- a/parser/testdata/corpus/sql/transactions/rollback_drop.test +++ b/parser/testdata/corpus/sql/transactions/rollback_drop.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/rollback_drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TABLE original_table diff --git a/parser/testdata/corpus/sql/transactions/rollback_drop_column.test b/parser/testdata/corpus/sql/transactions/rollback_drop_column.test index 278f49a6..9e4476c0 100644 --- a/parser/testdata/corpus/sql/transactions/rollback_drop_column.test +++ b/parser/testdata/corpus/sql/transactions/rollback_drop_column.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/rollback_drop_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER, val INTEGER, extra VARCHAR) diff --git a/parser/testdata/corpus/sql/transactions/rollback_drop_index.test b/parser/testdata/corpus/sql/transactions/rollback_drop_index.test index 0009e0d3..ea97fbf2 100644 --- a/parser/testdata/corpus/sql/transactions/rollback_drop_index.test +++ b/parser/testdata/corpus/sql/transactions/rollback_drop_index.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/rollback_drop_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT index_name FROM duckdb_indexes WHERE index_name = 'idx1' diff --git a/parser/testdata/corpus/sql/transactions/rollback_drop_table.test b/parser/testdata/corpus/sql/transactions/rollback_drop_table.test index b2bf2c03..bdaf5f62 100644 --- a/parser/testdata/corpus/sql/transactions/rollback_drop_table.test +++ b/parser/testdata/corpus/sql/transactions/rollback_drop_table.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/rollback_drop_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER) diff --git a/parser/testdata/corpus/sql/transactions/rollback_drop_table_with_delete.test b/parser/testdata/corpus/sql/transactions/rollback_drop_table_with_delete.test index 1809a752..1eea7fe6 100644 --- a/parser/testdata/corpus/sql/transactions/rollback_drop_table_with_delete.test +++ b/parser/testdata/corpus/sql/transactions/rollback_drop_table_with_delete.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/rollback_drop_table_with_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER PRIMARY KEY) diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/invalidation_policy_is_respected_by_preprocessor.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/invalidation_policy_is_respected_by_preprocessor.test index b9a3aee7..3cbae5f1 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/invalidation_policy_is_respected_by_preprocessor.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/invalidation_policy_is_respected_by_preprocessor.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/invalidation_policy_is_respected_by_preprocessor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t AS SELECT range::INT AS id FROM range(10); diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional.test index 34c557c8..d091dd51 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_after_BEGIN_chained_COMMIT.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_after_BEGIN_chained_COMMIT.test index 600296c5..b137fba6 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_after_BEGIN_chained_COMMIT.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_after_BEGIN_chained_COMMIT.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional_after_BEGIN_chained_COMMIT.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); COMMIT; diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN.test index 3d16176b..a67db288 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit BEGIN TRANSACTION; ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN_body_COMMIT.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN_body_COMMIT.test index d041c925..5934cfb5 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN_body_COMMIT.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN_body_COMMIT.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_BEGIN_body_COMMIT.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit BEGIN TRANSACTION; ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); COMMIT; diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA.test index dd1686fc..5e441259 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disable_checkpoint_on_shutdown; ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA_BEGIN.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA_BEGIN.test index b0d9185e..8d37e6d7 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA_BEGIN.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA_BEGIN.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/multistatement_is_transactional_chained_PRAGMA_BEGIN.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA disable_checkpoint_on_shutdown; BEGIN TRANSACTION; ALTER TABLE t ADD COLUMN d TIMESTAMP WITH TIME ZONE DEFAULT non_existent_function(); diff --git a/parser/testdata/corpus/sql/transactions/statement-preprocessor/pivot_is_handled_correctly.test b/parser/testdata/corpus/sql/transactions/statement-preprocessor/pivot_is_handled_correctly.test index 699bbf3b..c8fe8bef 100644 --- a/parser/testdata/corpus/sql/transactions/statement-preprocessor/pivot_is_handled_correctly.test +++ b/parser/testdata/corpus/sql/transactions/statement-preprocessor/pivot_is_handled_correctly.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/statement-preprocessor/pivot_is_handled_correctly.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PIVOT VALUES(1,2),(1,3) x(y,z) ON x USING FIRST(y) ORDER BY 1; diff --git a/parser/testdata/corpus/sql/transactions/test_alter_preserves_delete_indexes.test b/parser/testdata/corpus/sql/transactions/test_alter_preserves_delete_indexes.test index b86a6222..d96fd612 100644 --- a/parser/testdata/corpus/sql/transactions/test_alter_preserves_delete_indexes.test +++ b/parser/testdata/corpus/sql/transactions/test_alter_preserves_delete_indexes.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_alter_preserves_delete_indexes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_add (id INTEGER PRIMARY KEY, val INTEGER) diff --git a/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict.test b/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict.test index 98e2e349..a167be85 100644 --- a/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict.test +++ b/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_alter_sequence_ownership_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (id INT); diff --git a/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict2.test b/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict2.test index 3ea582e7..0dc67cd9 100644 --- a/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict2.test +++ b/parser/testdata/corpus/sql/transactions/test_alter_sequence_ownership_conflict2.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_alter_sequence_ownership_conflict2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 ( diff --git a/parser/testdata/corpus/sql/transactions/test_basic_transactions.test b/parser/testdata/corpus/sql/transactions/test_basic_transactions.test index b4f000d5..d229f872 100644 --- a/parser/testdata/corpus/sql/transactions/test_basic_transactions.test +++ b/parser/testdata/corpus/sql/transactions/test_basic_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_basic_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers2(i INTEGER) diff --git a/parser/testdata/corpus/sql/transactions/test_cardinality_estimation_uncommitted.test b/parser/testdata/corpus/sql/transactions/test_cardinality_estimation_uncommitted.test index 594a6af3..415831e0 100644 --- a/parser/testdata/corpus/sql/transactions/test_cardinality_estimation_uncommitted.test +++ b/parser/testdata/corpus/sql/transactions/test_cardinality_estimation_uncommitted.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_cardinality_estimation_uncommitted.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1 SELECT range, range FROM range(10000) diff --git a/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom.test b/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom.test index 1257eb27..173c813e 100644 --- a/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom.test +++ b/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_commit_cleanup_oom.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_skip_checkpoint_on_commit = true; diff --git a/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom_index_retry.test b/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom_index_retry.test index b4a7cb5b..050fb785 100644 --- a/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom_index_retry.test +++ b/parser/testdata/corpus/sql/transactions/test_commit_cleanup_oom_index_retry.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_commit_cleanup_oom_index_retry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET temp_directory = '{TEST_DIR}/tmp_cleanup_oom_index_retry'; diff --git a/parser/testdata/corpus/sql/transactions/test_commit_constraint_violation.test b/parser/testdata/corpus/sql/transactions/test_commit_constraint_violation.test new file mode 100644 index 00000000..e1707cf2 --- /dev/null +++ b/parser/testdata/corpus/sql/transactions/test_commit_constraint_violation.test @@ -0,0 +1,65 @@ +# source: test/sql/transactions/test_commit_constraint_violation.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE pk (k INTEGER PRIMARY KEY, u INTEGER UNIQUE, v VARCHAR); +-- +ok +== +INSERT INTO pk VALUES (0, 0, 'seed'); +-- +ok +== +INSERT INTO pk VALUES (5000, 5000, 'first'); +-- +ok +== +INSERT INTO pk SELECT i, i, 'second' FROM range(1, 5001) r(i); +-- +ok +== +SELECT count(*), count(DISTINCT k) FROM pk; +-- +ok +== +SELECT v FROM pk WHERE k = 5000; +-- +ok +== +INSERT INTO pk SELECT i, i, 'retry' FROM range(1, 5000) r(i); +-- +ok +== +INSERT INTO pk VALUES (1, 50000, 'duplicate'); +-- +ok +== +INSERT INTO pk VALUES (50001, 1, 'duplicate'); +-- +ok +== +SELECT count(*), count(DISTINCT k), count(DISTINCT u) FROM pk; +-- +ok +== +CREATE TABLE ix (k INTEGER PRIMARY KEY, j INTEGER, l BIGINT); +-- +ok +== +CREATE INDEX ix_e ON ix ((j + l)); +-- +ok +== +INSERT INTO ix SELECT i, 1, CASE WHEN i = 5000 THEN 9223372036854775807 ELSE i END FROM range(1, 5001) r(i); +-- +ok +== +INSERT INTO ix SELECT i, 1, i FROM range(1, 5000) r(i); +-- +ok +== +SELECT count(*) FROM ix; +-- +ok +== diff --git a/parser/testdata/corpus/sql/transactions/test_commit_flush_append_failure.test b/parser/testdata/corpus/sql/transactions/test_commit_flush_append_failure.test new file mode 100644 index 00000000..9ff33c8b --- /dev/null +++ b/parser/testdata/corpus/sql/transactions/test_commit_flush_append_failure.test @@ -0,0 +1,53 @@ +# source: test/sql/transactions/test_commit_flush_append_failure.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE pk (k INTEGER PRIMARY KEY, v VARCHAR); +-- +ok +== +INSERT INTO pk VALUES (1, 'a'), (2, 'b'); +-- +ok +== +INSERT INTO pk VALUES (3, 'c'), (4, 'd'); +-- +ok +== +SET debug_force_flush_append_failure = true; +-- +ok +== +SELECT count(*) FROM pk; +-- +ok +== +SET debug_force_flush_append_failure = false; +-- +ok +== +SELECT count(*), max(k) FROM pk; +-- +ok +== +INSERT INTO pk VALUES (3, 'c2'), (4, 'd2'); +-- +ok +== +INSERT INTO pk VALUES (3, 'dup'); +-- +ok +== +CREATE TABLE m (k INTEGER PRIMARY KEY); +-- +ok +== +INSERT INTO m SELECT i FROM range(122880) r(i); +-- +ok +== +SELECT count(*) FROM m; +-- +ok +== diff --git a/parser/testdata/corpus/sql/transactions/test_commit_oom_ghost_keys.test b/parser/testdata/corpus/sql/transactions/test_commit_oom_ghost_keys.test new file mode 100644 index 00000000..00da3675 --- /dev/null +++ b/parser/testdata/corpus/sql/transactions/test_commit_oom_ghost_keys.test @@ -0,0 +1,33 @@ +# source: test/sql/transactions/test_commit_oom_ghost_keys.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t (server_id INTEGER, account VARCHAR, n INTEGER, payload VARCHAR, PRIMARY KEY (server_id, account)); +-- +ok +== +INSERT INTO t SELECT 11, 'old' || i, 0, 'x' FROM range(100) r(i); +-- +ok +== +SET max_temp_directory_size = '0KB'; +-- +ok +== +INSERT OR REPLACE INTO t SELECT 11, 'old' || i, 1, 'x' FROM range(50) r(i); +-- +ok +== +INSERT INTO t SELECT 12, 'key' || i || repeat('k', 1000), 0, 'x' FROM range(20000) r(i); +-- +ok +== +SET memory_limit = '70MB'; +-- +ok +== +SELECT count(*), count(*) FILTER (WHERE server_id = 11) FROM t; +-- +ok +== diff --git a/parser/testdata/corpus/sql/transactions/test_create_drop_conflict.test b/parser/testdata/corpus/sql/transactions/test_create_drop_conflict.test index 60161ca9..ae7504e8 100644 --- a/parser/testdata/corpus/sql/transactions/test_create_drop_conflict.test +++ b/parser/testdata/corpus/sql/transactions/test_create_drop_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_create_drop_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA foo; diff --git a/parser/testdata/corpus/sql/transactions/test_create_drop_conflict_variation1.test b/parser/testdata/corpus/sql/transactions/test_create_drop_conflict_variation1.test index f1606a8f..94808502 100644 --- a/parser/testdata/corpus/sql/transactions/test_create_drop_conflict_variation1.test +++ b/parser/testdata/corpus/sql/transactions/test_create_drop_conflict_variation1.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_create_drop_conflict_variation1.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * from foo.bar; diff --git a/parser/testdata/corpus/sql/transactions/test_ddl_after_dml.test b/parser/testdata/corpus/sql/transactions/test_ddl_after_dml.test index 2ac798b8..e43a175b 100644 --- a/parser/testdata/corpus/sql/transactions/test_ddl_after_dml.test +++ b/parser/testdata/corpus/sql/transactions/test_ddl_after_dml.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_ddl_after_dml.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INT) diff --git a/parser/testdata/corpus/sql/transactions/test_from_update_conflict.test b/parser/testdata/corpus/sql/transactions/test_from_update_conflict.test index 8ffe93cc..fe7073b0 100644 --- a/parser/testdata/corpus/sql/transactions/test_from_update_conflict.test +++ b/parser/testdata/corpus/sql/transactions/test_from_update_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_from_update_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test AS SELECT i AS a FROM range (2048, 5000, 1) t1(i) diff --git a/parser/testdata/corpus/sql/transactions/test_index_abort.test b/parser/testdata/corpus/sql/transactions/test_index_abort.test index 90d56421..06d29d93 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_abort.test +++ b/parser/testdata/corpus/sql/transactions/test_index_abort.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_abort.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 1), (2, 2), (3, 3) diff --git a/parser/testdata/corpus/sql/transactions/test_index_delete_cleanup_non_main_storage.test b/parser/testdata/corpus/sql/transactions/test_index_delete_cleanup_non_main_storage.test index 6563a829..3f156db9 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_delete_cleanup_non_main_storage.test +++ b/parser/testdata/corpus/sql/transactions/test_index_delete_cleanup_non_main_storage.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_delete_cleanup_non_main_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET index_scan_percentage=1.0 diff --git a/parser/testdata/corpus/sql/transactions/test_index_huge_aborted_append.test b/parser/testdata/corpus/sql/transactions/test_index_huge_aborted_append.test index fb7652bf..e3b130b8 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_huge_aborted_append.test +++ b/parser/testdata/corpus/sql/transactions/test_index_huge_aborted_append.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_huge_aborted_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER PRIMARY KEY); diff --git a/parser/testdata/corpus/sql/transactions/test_index_large_aborted_append.test b/parser/testdata/corpus/sql/transactions/test_index_large_aborted_append.test index 1e1a002e..8bea14a0 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_large_aborted_append.test +++ b/parser/testdata/corpus/sql/transactions/test_index_large_aborted_append.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_large_aborted_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(i INTEGER UNIQUE); diff --git a/parser/testdata/corpus/sql/transactions/test_index_local_update.test b/parser/testdata/corpus/sql/transactions/test_index_local_update.test index bc00bd37..07531642 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_local_update.test +++ b/parser/testdata/corpus/sql/transactions/test_index_local_update.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_local_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (4) diff --git a/parser/testdata/corpus/sql/transactions/test_index_pending_delete.test b/parser/testdata/corpus/sql/transactions/test_index_pending_delete.test index a65f3e5c..1f6697a5 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_pending_delete.test +++ b/parser/testdata/corpus/sql/transactions/test_index_pending_delete.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_pending_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM integers WHERE i=1 diff --git a/parser/testdata/corpus/sql/transactions/test_index_pending_update.test b/parser/testdata/corpus/sql/transactions/test_index_pending_update.test index 0ed6f9f1..a53ff196 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_pending_update.test +++ b/parser/testdata/corpus/sql/transactions/test_index_pending_update.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_pending_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=4 WHERE i=1 diff --git a/parser/testdata/corpus/sql/transactions/test_index_rollback_flushed_data.test b/parser/testdata/corpus/sql/transactions/test_index_rollback_flushed_data.test index 4425cad7..debb9004 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_rollback_flushed_data.test +++ b/parser/testdata/corpus/sql/transactions/test_index_rollback_flushed_data.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_rollback_flushed_data.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers SELECT range FROM range(2, 4097, 1); diff --git a/parser/testdata/corpus/sql/transactions/test_index_transaction_local.test b/parser/testdata/corpus/sql/transactions/test_index_transaction_local.test index 2b1d663d..b3ec94b0 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_transaction_local.test +++ b/parser/testdata/corpus/sql/transactions/test_index_transaction_local.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_transaction_local.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=1 WHERE i=4 diff --git a/parser/testdata/corpus/sql/transactions/test_index_versioned_deletes.test b/parser/testdata/corpus/sql/transactions/test_index_versioned_deletes.test index ee83d356..16a896f8 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_versioned_deletes.test +++ b/parser/testdata/corpus/sql/transactions/test_index_versioned_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_versioned_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i FROM integers WHERE i=1 diff --git a/parser/testdata/corpus/sql/transactions/test_index_versioned_updates.test b/parser/testdata/corpus/sql/transactions/test_index_versioned_updates.test index 70ffac87..1fe2acf3 100644 --- a/parser/testdata/corpus/sql/transactions/test_index_versioned_updates.test +++ b/parser/testdata/corpus/sql/transactions/test_index_versioned_updates.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_index_versioned_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET j=4 WHERE i=1 diff --git a/parser/testdata/corpus/sql/transactions/test_multi_transaction_append.test b/parser/testdata/corpus/sql/transactions/test_multi_transaction_append.test index 19379338..f1a7d60e 100644 --- a/parser/testdata/corpus/sql/transactions/test_multi_transaction_append.test +++ b/parser/testdata/corpus/sql/transactions/test_multi_transaction_append.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_multi_transaction_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 3) diff --git a/parser/testdata/corpus/sql/transactions/test_multi_version.test b/parser/testdata/corpus/sql/transactions/test_multi_version.test index 01095633..f158ebf2 100644 --- a/parser/testdata/corpus/sql/transactions/test_multi_version.test +++ b/parser/testdata/corpus/sql/transactions/test_multi_version.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_multi_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=5 WHERE i=1; diff --git a/parser/testdata/corpus/sql/transactions/test_multi_version_large.test b/parser/testdata/corpus/sql/transactions/test_multi_version_large.test index e53d7b4c..23e3faf2 100644 --- a/parser/testdata/corpus/sql/transactions/test_multi_version_large.test +++ b/parser/testdata/corpus/sql/transactions/test_multi_version_large.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_multi_version_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1), (2), (3), (4); diff --git a/parser/testdata/corpus/sql/transactions/test_null_version.test b/parser/testdata/corpus/sql/transactions/test_null_version.test index c6cc3597..2c0afea8 100644 --- a/parser/testdata/corpus/sql/transactions/test_null_version.test +++ b/parser/testdata/corpus/sql/transactions/test_null_version.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_null_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (NULL, 3) diff --git a/parser/testdata/corpus/sql/transactions/test_parser_error_transaction_invalidation.test b/parser/testdata/corpus/sql/transactions/test_parser_error_transaction_invalidation.test index b3f65bc7..a878d365 100644 --- a/parser/testdata/corpus/sql/transactions/test_parser_error_transaction_invalidation.test +++ b/parser/testdata/corpus/sql/transactions/test_parser_error_transaction_invalidation.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_parser_error_transaction_invalidation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET current_transaction_invalidation_policy='ALL_ERRORS_INVALIDATE_TRANSACTION'; diff --git a/parser/testdata/corpus/sql/transactions/test_read_only_transaction_temp_writes.test b/parser/testdata/corpus/sql/transactions/test_read_only_transaction_temp_writes.test index 557bb472..03b0aedd 100644 --- a/parser/testdata/corpus/sql/transactions/test_read_only_transaction_temp_writes.test +++ b/parser/testdata/corpus/sql/transactions/test_read_only_transaction_temp_writes.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_read_only_transaction_temp_writes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE p(i INTEGER) @@ -27,10 +27,6 @@ UPDATE t SET i = i + 10 WHERE i = 3 -- ok == -DELETE FROM t WHERE i = 1 --- -ok -== INSERT OR REPLACE INTO t VALUES (2) -- ok diff --git a/parser/testdata/corpus/sql/transactions/test_read_only_transactions.test b/parser/testdata/corpus/sql/transactions/test_read_only_transactions.test index 1d16ebfe..505208b0 100644 --- a/parser/testdata/corpus/sql/transactions/test_read_only_transactions.test +++ b/parser/testdata/corpus/sql/transactions/test_read_only_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_read_only_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES (48) diff --git a/parser/testdata/corpus/sql/transactions/test_stacked_schema_change.test b/parser/testdata/corpus/sql/transactions/test_stacked_schema_change.test index 364f756b..7c60d2c9 100644 --- a/parser/testdata/corpus/sql/transactions/test_stacked_schema_change.test +++ b/parser/testdata/corpus/sql/transactions/test_stacked_schema_change.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_stacked_schema_change.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES (44) diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_abort.test b/parser/testdata/corpus/sql/transactions/test_transaction_abort.test index a8e1dc83..6f916d9a 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_abort.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_abort.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_abort.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELEC 42 diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_local_add.test b/parser/testdata/corpus/sql/transactions/test_transaction_local_add.test index f69a5adb..5fb405a9 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_local_add.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_local_add.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_local_add.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE integers ADD COLUMN k INTEGER DEFAULT 4 diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_local_alter_type.test b/parser/testdata/corpus/sql/transactions/test_transaction_local_alter_type.test index 75d0296e..19e8e153 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_local_alter_type.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_local_alter_type.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_local_alter_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE integers ALTER j TYPE BIGINT diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_local_data.test b/parser/testdata/corpus/sql/transactions/test_transaction_local_data.test index 53ae333c..21cdbf46 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_local_data.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_local_data.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_local_data.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1, 3), (2, 3) diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_local_drop.test b/parser/testdata/corpus/sql/transactions/test_transaction_local_drop.test index a9242f1f..dd10b17a 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_local_drop.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_local_drop.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_local_drop.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ALTER TABLE integers DROP COLUMN j diff --git a/parser/testdata/corpus/sql/transactions/test_transaction_local_unique_ops.test b/parser/testdata/corpus/sql/transactions/test_transaction_local_unique_ops.test index 9f7c6d7f..89297bb4 100644 --- a/parser/testdata/corpus/sql/transactions/test_transaction_local_unique_ops.test +++ b/parser/testdata/corpus/sql/transactions/test_transaction_local_unique_ops.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_transaction_local_unique_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE integers SET i=1 WHERE i=2 diff --git a/parser/testdata/corpus/sql/transactions/test_validity_append_rollback.test b/parser/testdata/corpus/sql/transactions/test_validity_append_rollback.test index 9883622e..ab130a76 100644 --- a/parser/testdata/corpus/sql/transactions/test_validity_append_rollback.test +++ b/parser/testdata/corpus/sql/transactions/test_validity_append_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/test_validity_append_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id INTEGER PRIMARY KEY, v INTEGER); diff --git a/parser/testdata/corpus/sql/transactions/transaction_insert_delete_chunks.test b/parser/testdata/corpus/sql/transactions/transaction_insert_delete_chunks.test index 9af4b1f2..f71a50b6 100644 --- a/parser/testdata/corpus/sql/transactions/transaction_insert_delete_chunks.test +++ b/parser/testdata/corpus/sql/transactions/transaction_insert_delete_chunks.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/transaction_insert_delete_chunks.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers FROM range(1000); diff --git a/parser/testdata/corpus/sql/transactions/transaction_insert_mixed_deletes.test b/parser/testdata/corpus/sql/transactions/transaction_insert_mixed_deletes.test index 027bf7f2..7be5117b 100644 --- a/parser/testdata/corpus/sql/transactions/transaction_insert_mixed_deletes.test +++ b/parser/testdata/corpus/sql/transactions/transaction_insert_mixed_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/transaction_insert_mixed_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers FROM range(1000,3000); diff --git a/parser/testdata/corpus/sql/transactions/txid_current.test b/parser/testdata/corpus/sql/transactions/txid_current.test index bdf4ad0a..d6e2b128 100644 --- a/parser/testdata/corpus/sql/transactions/txid_current.test +++ b/parser/testdata/corpus/sql/transactions/txid_current.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/txid_current.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(txid_current()), txid_current() = current_transaction_id(); diff --git a/parser/testdata/corpus/sql/transactions/types/test_hugeint_transactions.test b/parser/testdata/corpus/sql/transactions/types/test_hugeint_transactions.test index fb6869ea..57744d56 100644 --- a/parser/testdata/corpus/sql/transactions/types/test_hugeint_transactions.test +++ b/parser/testdata/corpus/sql/transactions/types/test_hugeint_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/types/test_hugeint_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO hugeints VALUES (100::HUGEINT), (1023819078293589341789412412), (42); diff --git a/parser/testdata/corpus/sql/transactions/types/test_interval_transactions.test b/parser/testdata/corpus/sql/transactions/types/test_interval_transactions.test index 13487a9b..d9382078 100644 --- a/parser/testdata/corpus/sql/transactions/types/test_interval_transactions.test +++ b/parser/testdata/corpus/sql/transactions/types/test_interval_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/types/test_interval_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO interval VALUES (INTERVAL '20' DAY), (INTERVAL '1' YEAR), (INTERVAL '1' MONTH); diff --git a/parser/testdata/corpus/sql/transactions/types/test_uhugeint_transactions.test b/parser/testdata/corpus/sql/transactions/types/test_uhugeint_transactions.test index defec504..14bdc586 100644 --- a/parser/testdata/corpus/sql/transactions/types/test_uhugeint_transactions.test +++ b/parser/testdata/corpus/sql/transactions/types/test_uhugeint_transactions.test @@ -1,6 +1,6 @@ # source: test/sql/transactions/types/test_uhugeint_transactions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO uhugeints VALUES (100::UHUGEINT), (1023819078293589341789412412), (42); diff --git a/parser/testdata/corpus/sql/trigger/create_trigger_catalog.test b/parser/testdata/corpus/sql/trigger/create_trigger_catalog.test index 213e0e2a..c8dcc3a2 100644 --- a/parser/testdata/corpus/sql/trigger/create_trigger_catalog.test +++ b/parser/testdata/corpus/sql/trigger/create_trigger_catalog.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/create_trigger_catalog.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER, data VARCHAR); @@ -95,6 +95,46 @@ SELECT trigger_name, sql FROM duckdb_triggers() WHERE trigger_name = 'insert_sel -- ok == +CREATE TABLE t_upsert_src (id INTEGER); +-- +ok +== +CREATE TABLE "t upsert" ("Two Words" INTEGER PRIMARY KEY, "V v" INTEGER, "select" INTEGER, MixedCase INTEGER); +-- +ok +== +CREATE TRIGGER upsert_trigger AFTER INSERT ON t_upsert_src INSERT INTO "t upsert" VALUES (1, 1, 1, 1) ON CONFLICT ("Two Words") DO UPDATE SET "V v" = "t upsert"."V v" + 1, "select" = excluded."select", MixedCase = 2 WHERE "t upsert"."V v" < 10; +-- +ok +== +SELECT trigger_name, sql FROM duckdb_triggers() WHERE trigger_name = 'upsert_trigger'; +-- +ok +== +DROP TRIGGER upsert_trigger ON t_upsert_src; +-- +ok +== +CREATE TRIGGER upsert_trigger AFTER INSERT ON t_upsert_src FOR EACH STATEMENT INSERT INTO "t upsert" (VALUES (1, 1, 1, 1)) ON CONFLICT ("Two Words") DO UPDATE SET "V v" = ("t upsert"."V v" + 1), "select" = excluded."select", MixedCase = 2 WHERE ("t upsert"."V v" < 10); +-- +ok +== +SELECT sql FROM duckdb_triggers() WHERE trigger_name = 'upsert_trigger'; +-- +ok +== +INSERT INTO t_upsert_src VALUES (1), (2); +-- +ok +== +INSERT INTO t_upsert_src VALUES (3); +-- +ok +== +SELECT * FROM "t upsert"; +-- +ok +== DROP TABLE log_table CASCADE; -- ok diff --git a/parser/testdata/corpus/sql/trigger/create_trigger_parse.test b/parser/testdata/corpus/sql/trigger/create_trigger_parse.test index 780e11eb..1daf0095 100644 --- a/parser/testdata/corpus/sql/trigger/create_trigger_parse.test +++ b/parser/testdata/corpus/sql/trigger/create_trigger_parse.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/create_trigger_parse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER my_trigger AFTER INSERT ON my_table INSERT INTO log_table VALUES (1); diff --git a/parser/testdata/corpus/sql/trigger/create_trigger_wal.test b/parser/testdata/corpus/sql/trigger/create_trigger_wal.test index ff46d913..7397d3dd 100644 --- a/parser/testdata/corpus/sql/trigger/create_trigger_wal.test +++ b/parser/testdata/corpus/sql/trigger/create_trigger_wal.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/create_trigger_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/create_trigger_wal.db' AS triggerdb (STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/trigger/drop_trigger.test b/parser/testdata/corpus/sql/trigger/drop_trigger.test index b6513ad0..f150ae4b 100644 --- a/parser/testdata/corpus/sql/trigger/drop_trigger.test +++ b/parser/testdata/corpus/sql/trigger/drop_trigger.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/drop_trigger.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) FROM duckdb_triggers() WHERE trigger_name = 'my_trigger' AND table_name = 't1'; diff --git a/parser/testdata/corpus/sql/trigger/drop_trigger_parse.test b/parser/testdata/corpus/sql/trigger/drop_trigger_parse.test index d404fdbd..91bd2dce 100644 --- a/parser/testdata/corpus/sql/trigger/drop_trigger_parse.test +++ b/parser/testdata/corpus/sql/trigger/drop_trigger_parse.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/drop_trigger_parse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TRIGGER my_trigger ON my_table; diff --git a/parser/testdata/corpus/sql/trigger/drop_trigger_unsupported_table.test b/parser/testdata/corpus/sql/trigger/drop_trigger_unsupported_table.test new file mode 100644 index 00000000..352da4e5 --- /dev/null +++ b/parser/testdata/corpus/sql/trigger/drop_trigger_unsupported_table.test @@ -0,0 +1,13 @@ +# source: test/sql/trigger/drop_trigger_unsupported_table.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +DROP TRIGGER IF EXISTS trg_missing ON sqlite_db.my_ext_table; +-- +ok +== +DROP TRIGGER trg_missing ON sqlite_db.my_ext_table; +-- +ok +== diff --git a/parser/testdata/corpus/sql/trigger/drop_trigger_wal.test b/parser/testdata/corpus/sql/trigger/drop_trigger_wal.test index 458cf7ab..a1ca0db9 100644 --- a/parser/testdata/corpus/sql/trigger/drop_trigger_wal.test +++ b/parser/testdata/corpus/sql/trigger/drop_trigger_wal.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/drop_trigger_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/drop_trigger_wal.db' AS triggerdb (STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/trigger/row_trigger_into_table_with_statement_trigger.test b/parser/testdata/corpus/sql/trigger/row_trigger_into_table_with_statement_trigger.test new file mode 100644 index 00000000..074bf169 --- /dev/null +++ b/parser/testdata/corpus/sql/trigger/row_trigger_into_table_with_statement_trigger.test @@ -0,0 +1,37 @@ +# source: test/sql/trigger/row_trigger_into_table_with_statement_trigger.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE u(a INT); +-- +ok +== +CREATE TABLE l(x INT); +-- +ok +== +CREATE TRIGGER b BEFORE INSERT ON u FOR EACH STATEMENT INSERT INTO l VALUES (1); +-- +ok +== +CREATE TRIGGER r AFTER INSERT ON t FOR EACH ROW INSERT INTO u VALUES (NEW.a); +-- +ok +== +SELECT (SELECT count(*) FROM t), (SELECT count(*) FROM u), (SELECT count(*) FROM l); +-- +ok +== +INSERT INTO t VALUES (2), (3); +-- +ok +== +CREATE TRIGGER d AFTER DELETE ON t FOR EACH ROW INSERT INTO u VALUES (OLD.a * 10); +-- +ok +== +SELECT (SELECT count(*) FROM t), (SELECT count(*) FROM u), (SELECT count(*) FROM l), (SELECT max(a) FROM u); +-- +ok +== diff --git a/parser/testdata/corpus/sql/trigger/temporary_trigger.test b/parser/testdata/corpus/sql/trigger/temporary_trigger.test index 34f915a8..2f033b5d 100644 --- a/parser/testdata/corpus/sql/trigger/temporary_trigger.test +++ b/parser/testdata/corpus/sql/trigger/temporary_trigger.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/temporary_trigger.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE audit(msg VARCHAR) diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_delete.test b/parser/testdata/corpus/sql/trigger/trigger_after_delete.test index 64babce9..8f9e3b25 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_delete.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_delete.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE target (id INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_delete_referencing.test b/parser/testdata/corpus/sql/trigger/trigger_after_delete_referencing.test index fb1db9f1..2e3d0377 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_delete_referencing.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_delete_referencing.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_delete_referencing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE target (id INTEGER, val VARCHAR); diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_insert.test b/parser/testdata/corpus/sql/trigger/trigger_after_insert.test index 8caa765a..997994e6 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_insert.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_insert.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER trg_basic AFTER INSERT ON target FOR EACH STATEMENT diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_insert_referencing.test b/parser/testdata/corpus/sql/trigger/trigger_after_insert_referencing.test index 4fda13b5..27bc473e 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_insert_referencing.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_insert_referencing.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_insert_referencing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER trg_ref AFTER INSERT ON target diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_update.test b/parser/testdata/corpus/sql/trigger/trigger_after_update.test index bb08450f..a6fc5766 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_update.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_update.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE target (id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new.test b/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new.test index cdbf11f0..e7244ef6 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_update_old_new.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE old_audit (id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new_wal.test b/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new_wal.test index c7c8674c..828dd39d 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new_wal.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_update_old_new_wal.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_update_old_new_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/trigger_upd_old_new_wal.db' AS triggerdb (STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/trigger/trigger_after_update_referencing.test b/parser/testdata/corpus/sql/trigger/trigger_after_update_referencing.test index 6d048aec..d432c1fc 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_after_update_referencing.test +++ b/parser/testdata/corpus/sql/trigger/trigger_after_update_referencing.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_after_update_referencing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE audit (id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_alter_table.test b/parser/testdata/corpus/sql/trigger/trigger_alter_table.test index b2119f5d..5b5a137a 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_alter_table.test +++ b/parser/testdata/corpus/sql/trigger/trigger_alter_table.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_alter_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE audit(x INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_before_after_mixed.test b/parser/testdata/corpus/sql/trigger/trigger_before_after_mixed.test index f8451a15..32c2d089 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_before_after_mixed.test +++ b/parser/testdata/corpus/sql/trigger/trigger_before_after_mixed.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_before_after_mixed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE log (seq INTEGER, label VARCHAR); diff --git a/parser/testdata/corpus/sql/trigger/trigger_before_delete.test b/parser/testdata/corpus/sql/trigger/trigger_before_delete.test index e9383031..90b9af68 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_before_delete.test +++ b/parser/testdata/corpus/sql/trigger/trigger_before_delete.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_before_delete.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER trg_basic BEFORE DELETE ON target FOR EACH STATEMENT diff --git a/parser/testdata/corpus/sql/trigger/trigger_before_insert.test b/parser/testdata/corpus/sql/trigger/trigger_before_insert.test index e35c16b6..06fba02a 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_before_insert.test +++ b/parser/testdata/corpus/sql/trigger/trigger_before_insert.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_before_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER trg_basic BEFORE INSERT ON target FOR EACH STATEMENT diff --git a/parser/testdata/corpus/sql/trigger/trigger_before_update.test b/parser/testdata/corpus/sql/trigger/trigger_before_update.test index f9fbc78d..b894d227 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_before_update.test +++ b/parser/testdata/corpus/sql/trigger/trigger_before_update.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_before_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TRIGGER trg_basic BEFORE UPDATE ON target FOR EACH STATEMENT diff --git a/parser/testdata/corpus/sql/trigger/trigger_concurrent_rename.test b/parser/testdata/corpus/sql/trigger/trigger_concurrent_rename.test index c8bd8d18..4f64ed76 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_concurrent_rename.test +++ b/parser/testdata/corpus/sql/trigger/trigger_concurrent_rename.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_concurrent_rename.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_dependency.test b/parser/testdata/corpus/sql/trigger/trigger_dependency.test index c39ec4c4..75556b8b 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_dependency.test +++ b/parser/testdata/corpus/sql/trigger/trigger_dependency.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_dependency.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE log(i INT); @@ -83,10 +83,6 @@ DROP TRIGGER tr3 ON t3; -- ok == -CREATE TABLE a(i INT); --- -ok -== CREATE TABLE b(i INT); -- ok diff --git a/parser/testdata/corpus/sql/trigger/trigger_dependency_restart.test b/parser/testdata/corpus/sql/trigger/trigger_dependency_restart.test index 4bf3b5cb..400c0c36 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_dependency_restart.test +++ b/parser/testdata/corpus/sql/trigger/trigger_dependency_restart.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_dependency_restart.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/trigger_dependency_restart.db' AS triggerdb (STORAGE_VERSION 'v2.0.0'); diff --git a/parser/testdata/corpus/sql/trigger/trigger_for_each_row.test b/parser/testdata/corpus/sql/trigger/trigger_for_each_row.test index c53062fb..cfa72fa1 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_for_each_row.test +++ b/parser/testdata/corpus/sql/trigger/trigger_for_each_row.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_for_each_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id INTEGER, val VARCHAR); diff --git a/parser/testdata/corpus/sql/trigger/trigger_multiple_per_event.test b/parser/testdata/corpus/sql/trigger/trigger_multiple_per_event.test index dac18e05..6298e468 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_multiple_per_event.test +++ b/parser/testdata/corpus/sql/trigger/trigger_multiple_per_event.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_multiple_per_event.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE audit1 (msg VARCHAR); diff --git a/parser/testdata/corpus/sql/trigger/trigger_referencing_validation.test b/parser/testdata/corpus/sql/trigger/trigger_referencing_validation.test index b6edf2d2..333dc890 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_referencing_validation.test +++ b/parser/testdata/corpus/sql/trigger/trigger_referencing_validation.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_referencing_validation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_returning.test b/parser/testdata/corpus/sql/trigger/trigger_returning.test index 13300839..820a64f3 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_returning.test +++ b/parser/testdata/corpus/sql/trigger/trigger_returning.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (a INTEGER, b INTEGER GENERATED ALWAYS AS (a + 1)); diff --git a/parser/testdata/corpus/sql/trigger/trigger_returning_binder_parity.test b/parser/testdata/corpus/sql/trigger/trigger_returning_binder_parity.test index ffe2f1f6..ea10470b 100644 --- a/parser/testdata/corpus/sql/trigger/trigger_returning_binder_parity.test +++ b/parser/testdata/corpus/sql/trigger/trigger_returning_binder_parity.test @@ -1,6 +1,6 @@ # source: test/sql/trigger/trigger_returning_binder_parity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE returning_agg_target (a INTEGER); diff --git a/parser/testdata/corpus/sql/trigger/trigger_update_from_multi_match.test b/parser/testdata/corpus/sql/trigger/trigger_update_from_multi_match.test deleted file mode 100644 index d6a57089..00000000 --- a/parser/testdata/corpus/sql/trigger/trigger_update_from_multi_match.test +++ /dev/null @@ -1,83 +0,0 @@ -# source: test/sql/trigger/trigger_update_from_multi_match.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 -# generated by cmd/regenerate - do not edit - -CREATE TABLE t (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t VALUES (1, 0), (2, 0); --- -ok -== -CREATE TABLE audit (id INTEGER, old_v INTEGER, new_v INTEGER); --- -ok -== -CREATE TRIGGER trg AFTER UPDATE ON t -REFERENCING OLD TABLE AS o NEW TABLE AS n -FOR EACH STATEMENT - INSERT INTO audit SELECT o.id, o.v, n.v FROM o JOIN n ON o.id = n.id; --- -ok -== -CREATE TABLE src (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO src VALUES (1, 10), (1, 20), (2, 30), (2, 40); --- -ok -== -UPDATE t SET v = src.v FROM src WHERE t.id = src.id; --- -ok -== -SELECT count(*) FROM audit WHERE old_v = 0 AND (new_v IN (10, 20) AND id = 1 OR new_v IN (30, 40) AND id = 2); --- -ok -== -SELECT count(*) FROM t WHERE (id = 1 AND v IN (10, 20)) OR (id = 2 AND v IN (30, 40)); --- -ok -== -CREATE TABLE tl (id INTEGER, vals INTEGER[]); --- -ok -== -INSERT INTO tl VALUES (1, [0]), (2, [0]); --- -ok -== -CREATE TABLE tl_audit (id INTEGER, old_len INTEGER, new_len INTEGER); --- -ok -== -CREATE TRIGGER trg_l AFTER UPDATE ON tl -REFERENCING OLD TABLE AS o NEW TABLE AS n -FOR EACH STATEMENT - INSERT INTO tl_audit SELECT o.id, len(o.vals), len(n.vals) FROM o JOIN n ON o.id = n.id; --- -ok -== -CREATE TABLE sl (id INTEGER, vals INTEGER[]); --- -ok -== -INSERT INTO sl VALUES (1, [9, 9]), (1, [1, 1]), (2, [8, 8, 8]), (2, [7, 7, 7]); --- -ok -== -UPDATE tl SET vals = sl.vals FROM sl WHERE tl.id = sl.id; --- -ok -== -SELECT id, old_len, new_len FROM tl_audit; --- -ok -== -SELECT id, len(vals) FROM tl; --- -ok -== diff --git a/parser/testdata/corpus/sql/types/alias/nested_alias.test b/parser/testdata/corpus/sql/types/alias/nested_alias.test index 0848f627..f1603c8a 100644 --- a/parser/testdata/corpus/sql/types/alias/nested_alias.test +++ b/parser/testdata/corpus/sql/types/alias/nested_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/nested_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE my_int AS INT diff --git a/parser/testdata/corpus/sql/types/alias/parquet_variant_cast.test b/parser/testdata/corpus/sql/types/alias/parquet_variant_cast.test new file mode 100644 index 00000000..262f20f0 --- /dev/null +++ b/parser/testdata/corpus/sql/types/alias/parquet_variant_cast.test @@ -0,0 +1,13 @@ +# source: test/sql/types/alias/parquet_variant_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TYPE encoded_record AS STRUCT(metadata BLOB, value BLOB); +-- +ok +== +SELECT get_type(variant_to_parquet_variant(NULL)::encoded_record); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/alias/recursive_alias.test b/parser/testdata/corpus/sql/types/alias/recursive_alias.test index fa3c83b7..1d53fea4 100644 --- a/parser/testdata/corpus/sql/types/alias/recursive_alias.test +++ b/parser/testdata/corpus/sql/types/alias/recursive_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/recursive_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE t4 AS UNION ( v0 SETOF t4 ); diff --git a/parser/testdata/corpus/sql/types/alias/test_alias.test b/parser/testdata/corpus/sql/types/alias/test_alias.test index f31f338b..1483c34a 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE alias AS VARCHAR; diff --git a/parser/testdata/corpus/sql/types/alias/test_alias_functions.test b/parser/testdata/corpus/sql/types/alias/test_alias_functions.test index 702d6628..99185f29 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias_functions.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias_functions.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE str_alias as VARCHAR; diff --git a/parser/testdata/corpus/sql/types/alias/test_alias_map.test b/parser/testdata/corpus/sql/types/alias/test_alias_map.test index ad662992..af66e206 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias_map.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias_map.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE MAPPOINT AS MAP(INTEGER,INTEGER); diff --git a/parser/testdata/corpus/sql/types/alias/test_alias_struct.test b/parser/testdata/corpus/sql/types/alias/test_alias_struct.test index be5fa046..c085550a 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias_struct.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE POINT AS STRUCT(i INTEGER, j INTEGER); diff --git a/parser/testdata/corpus/sql/types/alias/test_alias_struct_nested_alias.test b/parser/testdata/corpus/sql/types/alias/test_alias_struct_nested_alias.test index ad889085..cbd91bb2 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias_struct_nested_alias.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias_struct_nested_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias_struct_nested_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE foobar AS ENUM( diff --git a/parser/testdata/corpus/sql/types/alias/test_alias_table.test b/parser/testdata/corpus/sql/types/alias/test_alias_table.test index 2089b8db..fd1a9361 100644 --- a/parser/testdata/corpus/sql/types/alias/test_alias_table.test +++ b/parser/testdata/corpus/sql/types/alias/test_alias_table.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/test_alias_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE person ( @@ -60,10 +60,6 @@ select person.name, pets.name from person inner join pets on (person.current_al -- ok == -DROP TABLE person; --- -ok -== DROP TABLE pets; -- ok diff --git a/parser/testdata/corpus/sql/types/alias/type_with_schema.test b/parser/testdata/corpus/sql/types/alias/type_with_schema.test index fcde6930..2f60c963 100644 --- a/parser/testdata/corpus/sql/types/alias/type_with_schema.test +++ b/parser/testdata/corpus/sql/types/alias/type_with_schema.test @@ -1,6 +1,6 @@ # source: test/sql/types/alias/type_with_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE my_schema.my_type AS STRUCT ( diff --git a/parser/testdata/corpus/sql/types/bignum/issue25939.test b/parser/testdata/corpus/sql/types/bignum/issue25939.test index 9b05e931..e37bc8fa 100644 --- a/parser/testdata/corpus/sql/types/bignum/issue25939.test +++ b/parser/testdata/corpus/sql/types/bignum/issue25939.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/issue25939.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*), min(i), max(i) FROM range(72057594037927930, 72057594037928236) t(i) WHERE (i::BIGINT::BIGNUM)::VARCHAR <> i::VARCHAR; diff --git a/parser/testdata/corpus/sql/types/bignum/test_big_bignum.test b/parser/testdata/corpus/sql/types/bignum/test_big_bignum.test index d2cd7c28..bbe79442 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_big_bignum.test +++ b/parser/testdata/corpus/sql/types/bignum/test_big_bignum.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_big_bignum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t as select concat('1', repeat('0', i))::bignum as a from range(0,100) tbl(i) diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_boundaries.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_boundaries.test index aaa26f18..0f84e412 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_boundaries.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_boundaries.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_boundaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select tinyint::varchar::bignum = tinyint::bignum, diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_comparisons.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_comparisons.test index 56795497..4fae3110 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_comparisons.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_comparisons.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_comparisons.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bignum_comparisons(a bignum); diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_double.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_double.test index 5003666a..6fb9534b 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_double.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_double.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_double.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '100'::bignum::double diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_float_string_cast.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_float_string_cast.test index 9d9cf6ad..5c59ca65 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_float_string_cast.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_float_string_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_float_string_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('1.5' AS INTEGER) AS i1, CAST('1.5' AS HUGEINT) AS i2, CAST('1.5' AS BIGNUM) AS i3; diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_from_double_rounding.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_from_double_rounding.test new file mode 100644 index 00000000..a2540e4a --- /dev/null +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_from_double_rounding.test @@ -0,0 +1,88 @@ +# source: test/sql/types/bignum/test_bignum_from_double_rounding.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 1.5::DOUBLE::BIGNUM, 2.5::DOUBLE::BIGNUM, (-1.5)::DOUBLE::BIGNUM, 1.5::DOUBLE::BIGINT, 2.5::DOUBLE::BIGINT, 1.5::DOUBLE::HUGEINT +-- +ok +== +SELECT x, x::BIGINT, x::HUGEINT, x::BIGNUM +FROM (VALUES (0.5::DOUBLE), (1.5), (2.5), (3.5), (-0.5), (-1.5), (-2.5), (-3.5), (0.49999999999999994), (2.7), (-2.7), + (4503599627370495.5), (-4503599627370495.5), (255.5), (-255.5), (65535.5)) t(x) +-- +ok +== +SELECT hex(255.5::DOUBLE::BIGNUM) = hex(256::BIGNUM), hex((-255.5)::DOUBLE::BIGNUM) = hex((-256)::BIGNUM) +-- +ok +== +SELECT x, x::BIGINT, x::HUGEINT, x::BIGNUM +FROM (VALUES (0.5::FLOAT), (1.5), (2.5), (3.5), (-0.5), (-1.5), (-2.5), (-3.5), (2.7), (-2.7), (8388607.5), (-8388607.5)) t(x) +-- +ok +== +SELECT x::BIGNUM, x::BIGNUM = 0::BIGNUM, hex(x::BIGNUM) = hex(0::BIGNUM), x::FLOAT::BIGNUM = 0::BIGNUM +FROM (VALUES (1e-10::DOUBLE), (-1e-10), (-0.3), (-0.5), ('-0.0'::DOUBLE)) t(x) +-- +ok +== +SELECT x::BIGNUM FROM (VALUES (1e300::DOUBLE), (-1e300), (1.7976931348623157e308), (-1.7976931348623157e308)) t(x) +-- +ok +== +SELECT x::BIGNUM, x::BIGNUM = x::HUGEINT::BIGNUM, (-x)::BIGNUM, (-x)::BIGNUM = (-x)::HUGEINT::BIGNUM +FROM (VALUES (1e30::DOUBLE)) t(x) +-- +ok +== +SELECT x::BIGNUM, x::BIGNUM = x::UHUGEINT::BIGNUM, (-x)::BIGNUM +FROM (VALUES (3.4028235e38::FLOAT)) t(x) +-- +ok +== +SELECT 'inf'::DOUBLE::BIGNUM +-- +ok +== +SELECT '-inf'::DOUBLE::BIGNUM +-- +ok +== +SELECT 'nan'::DOUBLE::BIGNUM +-- +ok +== +SELECT '-inf'::FLOAT::BIGNUM +-- +ok +== +SELECT TRY_CAST(x AS BIGNUM), TRY_CAST(x AS BIGINT), TRY_CAST(x::FLOAT AS BIGNUM), TRY_CAST(x::FLOAT AS BIGINT) +FROM (VALUES ('inf'::DOUBLE), ('-inf'::DOUBLE), ('nan'::DOUBLE), (2.5::DOUBLE), (NULL::DOUBLE)) t(x) +-- +ok +== +CREATE TABLE d AS SELECT * FROM (VALUES (1.5::DOUBLE), (NULL), (-2.5), (NULL), (4503599627370495.5)) t(x) +-- +ok +== +CREATE TABLE b (x BIGNUM) +-- +ok +== +INSERT INTO b SELECT x FROM d +-- +ok +== +SELECT d.x::BIGNUM, b.x, d.x::HUGEINT FROM d POSITIONAL JOIN b +-- +ok +== +SELECT (1.5::DOUBLE::VARIANT)::BIGNUM, (2.5::DOUBLE::VARIANT)::BIGNUM, ((-0.3)::DOUBLE::VARIANT)::BIGNUM = 0::BIGNUM, (1.5::FLOAT::VARIANT)::BIGNUM +-- +ok +== +SELECT 2::BIGNUM::DOUBLE, (-3)::BIGNUM::DOUBLE, 1000000000000000019884624838656::BIGNUM::DOUBLE = 1e30::DOUBLE, 9007199254740993::BIGNUM::DOUBLE +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_from_non_finite.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_from_non_finite.test index b4893db3..a36ab5cc 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_from_non_finite.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_from_non_finite.test @@ -1,16 +1,12 @@ # source: test/sql/types/bignum/test_bignum_from_non_finite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'nan'::FLOAT::BIGNUM -- ok == -SELECT 'inf'::DOUBLE::BIGNUM --- -ok -== CREATE TABLE f AS SELECT * FROM (VALUES ('nan'::FLOAT), (1::FLOAT), ('inf'::FLOAT)) t(x); -- ok diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_hugeint.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_hugeint.test index a0f28c7d..05316f25 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_hugeint.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_hugeint.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_hugeint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit Select 85070591730234614260976917445211069672::BIGNUM ; diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_implicit_cast.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_implicit_cast.test index f89eaea4..d4d2ca63 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_implicit_cast.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_implicit_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_implicit_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t (a bignum) @@ -23,3 +23,7 @@ insert into t values (1000000000000000000000000000000000000000000000000000000000 -- ok == +SELECT 2.7::FLOAT::BIGNUM +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_large_varchar.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_large_varchar.test index 880c46a5..ebf612c2 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_large_varchar.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_large_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_large_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(repeat('9', 100000) AS BIGNUM) + 1 = CAST('1' || repeat('0', 100000) AS BIGNUM); diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_negate_compare.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_negate_compare.test new file mode 100644 index 00000000..30e290e7 --- /dev/null +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_negate_compare.test @@ -0,0 +1,13 @@ +# source: test/sql/types/bignum/test_bignum_negate_compare.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE numbers AS SELECT i, s::BIGNUM AS v, '170141183460469231731687303715884105728'::BIGNUM AS m FROM (VALUES (1, '-18446744073709551616'), (2, '-170141183460469231731687303715884105728'), (3, '-340282366920938463463374607431768211456')) t(i, s) +-- +ok +== +SELECT i, v > -m, v = -m FROM numbers ORDER BY i +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_not_cast.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_not_cast.test index f71762a5..4160acfa 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_not_cast.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_not_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_not_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select {type}::bignum FROM test_all_types() limit 1; diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_subtract.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_subtract.test index 86cf9edf..8eeb712a 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_subtract.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_subtract.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_subtract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT -(1::BIGNUM) diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_sum.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_sum.test index fd355575..4aaa3d58 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_sum.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_sum.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_sum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numbers ( x bignum ); diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_to_double_overflow.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_double_overflow.test index 9453ee18..942b4576 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_to_double_overflow.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_double_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_to_double_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST(('1' || repeat('0', 309))::BIGNUM AS DOUBLE); diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integer_range.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integer_range.test new file mode 100644 index 00000000..fd794847 --- /dev/null +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integer_range.test @@ -0,0 +1,61 @@ +# source: test/sql/types/bignum/test_bignum_to_integer_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT TRY_CAST('300'::BIGNUM AS TINYINT), TRY_CAST('-129'::BIGNUM AS TINYINT), TRY_CAST('-1'::BIGNUM AS UBIGINT), TRY_CAST(('1' || repeat('0', 400))::BIGNUM AS HUGEINT); +-- +ok +== +SELECT TRY_CAST('127'::BIGNUM AS TINYINT), TRY_CAST('-128'::BIGNUM AS TINYINT), TRY_CAST('255'::BIGNUM AS UTINYINT), TRY_CAST('0'::BIGNUM AS UINTEGER); +-- +ok +== +SELECT '300'::BIGNUM::TINYINT +-- +ok +== +SELECT '87112285931760246646623899502532662132741'::BIGNUM::BIGINT +-- +ok +== +SELECT ('1' || repeat('0', 400))::BIGNUM::HUGEINT +-- +ok +== +SELECT ('-1' || repeat('0', 400))::BIGNUM::HUGEINT +-- +ok +== +SELECT '-1'::BIGNUM::UINTEGER +-- +ok +== +SELECT '-1'::BIGNUM::UHUGEINT +-- +ok +== +SELECT '-256'::BIGNUM::UTINYINT +-- +ok +== +SELECT '-170141183460469231731687303715884105728'::BIGNUM::HUGEINT, '170141183460469231731687303715884105727'::BIGNUM::HUGEINT, '340282366920938463463374607431768211455'::BIGNUM::UHUGEINT, '-9223372036854775808'::BIGNUM::BIGINT; +-- +ok +== +SELECT '-170141183460469231731687303715884105729'::BIGNUM::HUGEINT +-- +ok +== +SELECT '340282366920938463463374607431768211456'::BIGNUM::UHUGEINT +-- +ok +== +SELECT TRY_CAST(300::BIGNUM::VARIANT AS TINYINT); +-- +ok +== +SELECT count(*) FROM (SELECT * FROM test_all_types()) t WHERE tinyint::BIGNUM::TINYINT IS DISTINCT FROM tinyint OR utinyint::BIGNUM::UTINYINT IS DISTINCT FROM utinyint OR bigint::BIGNUM::BIGINT IS DISTINCT FROM bigint OR ubigint::BIGNUM::UBIGINT IS DISTINCT FROM ubigint OR hugeint::BIGNUM::HUGEINT IS DISTINCT FROM hugeint OR uhugeint::BIGNUM::UHUGEINT IS DISTINCT FROM uhugeint; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integral_cast.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integral_cast.test new file mode 100644 index 00000000..14b57876 --- /dev/null +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_to_integral_cast.test @@ -0,0 +1,74 @@ +# source: test/sql/types/bignum/test_bignum_to_integral_cast.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 42::BIGNUM::HUGEINT, (-42)::BIGNUM::HUGEINT, 7::BIGNUM::UHUGEINT, 0::BIGNUM::UHUGEINT; +-- +ok +== +SELECT (-1)::BIGNUM::HUGEINT, (-0)::BIGNUM::UTINYINT; +-- +ok +== +SELECT '170141183460469231731687303715884105727'::BIGNUM::HUGEINT, + '-170141183460469231731687303715884105728'::BIGNUM::HUGEINT, + '340282366920938463463374607431768211455'::BIGNUM::UHUGEINT, + '0'::BIGNUM::UHUGEINT; +-- +ok +== +SELECT '9223372036854775807'::BIGNUM::BIGINT, '-9223372036854775808'::BIGNUM::BIGINT, + '18446744073709551615'::BIGNUM::UBIGINT, '255'::BIGNUM::UTINYINT; +-- +ok +== +SELECT '170141183460469231731687303715884105728'::BIGNUM::HUGEINT; +-- +ok +== +SELECT '-170141183460469231731687303715884105729'::BIGNUM::HUGEINT; +-- +ok +== +SELECT '340282366920938463463374607431768211456'::BIGNUM::UHUGEINT; +-- +ok +== +SELECT '9223372036854775808'::BIGNUM::BIGINT; +-- +ok +== +SELECT '256'::BIGNUM::UTINYINT; +-- +ok +== +SELECT (-100)::BIGNUM::UTINYINT; +-- +ok +== +SELECT (-1)::BIGNUM::UHUGEINT; +-- +ok +== +SELECT '340282366920938463463374607431768211461'::BIGNUM::BIGINT; +-- +ok +== +SELECT ('-' || '340282366920938463463374607431768211461')::BIGNUM::BIGINT; +-- +ok +== +SELECT repeat('9', 60)::BIGNUM::HUGEINT; +-- +ok +== +SELECT TRY_CAST(42::BIGNUM AS HUGEINT), TRY_CAST((-42)::BIGNUM AS UHUGEINT), TRY_CAST(repeat('9', 60)::BIGNUM AS HUGEINT), + TRY_CAST(repeat('9', 60)::BIGNUM AS BIGINT), TRY_CAST('300'::BIGNUM AS UTINYINT), TRY_CAST('127'::BIGNUM AS TINYINT); +-- +ok +== +SELECT i, TRY_CAST(b AS INTEGER) FROM (SELECT i, (i::HUGEINT * 1000000000)::BIGNUM AS b FROM range(0, 6) t(i)) ORDER BY i; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_try_cast.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_try_cast.test index 4b0bb535..26bd7bb7 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_try_cast.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('hello' AS BIGNUM) diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_invalid.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_invalid.test index 930274ea..466ab844 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_invalid.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_invalid.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_varchar_invalid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'ä'::BIGNUM diff --git a/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_large.test b/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_large.test index a5d33e44..3ed4710d 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_large.test +++ b/parser/testdata/corpus/sql/types/bignum/test_bignum_varchar_large.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_bignum_varchar_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE strings AS diff --git a/parser/testdata/corpus/sql/types/bignum/test_double_bignum.test b/parser/testdata/corpus/sql/types/bignum/test_double_bignum.test index 5b3bd962..8870d9c2 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_double_bignum.test +++ b/parser/testdata/corpus/sql/types/bignum/test_double_bignum.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_double_bignum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368::double::bignum diff --git a/parser/testdata/corpus/sql/types/bignum/test_int_bignum_conversion.test b/parser/testdata/corpus/sql/types/bignum/test_int_bignum_conversion.test index 4b23a2de..014a9c9b 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_int_bignum_conversion.test +++ b/parser/testdata/corpus/sql/types/bignum/test_int_bignum_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_int_bignum_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select distinct i::{int_type}::bignum = i::bignum from range(0, 100) t(i); diff --git a/parser/testdata/corpus/sql/types/bignum/test_int_varchar_bignum_compatibility.test b/parser/testdata/corpus/sql/types/bignum/test_int_varchar_bignum_compatibility.test index a8c3c9bf..ec9448da 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_int_varchar_bignum_compatibility.test +++ b/parser/testdata/corpus/sql/types/bignum/test_int_varchar_bignum_compatibility.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_int_varchar_bignum_compatibility.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integer_values AS diff --git a/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_conversion.test b/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_conversion.test index 7ab6f3d3..d92738fe 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_conversion.test +++ b/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_varchar_bignum_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '340282366920938463463374607431768211455'::UHUGEINT::bignum diff --git a/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_unhappy.test b/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_unhappy.test index 5935532c..efedb9d6 100644 --- a/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_unhappy.test +++ b/parser/testdata/corpus/sql/types/bignum/test_varchar_bignum_unhappy.test @@ -1,6 +1,6 @@ # source: test/sql/types/bignum/test_varchar_bignum_unhappy.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '-0'::BIGNUM diff --git a/parser/testdata/corpus/sql/types/bit/bit_issue_11211.test b/parser/testdata/corpus/sql/types/bit/bit_issue_11211.test index 6ae96f96..0191731d 100644 --- a/parser/testdata/corpus/sql/types/bit/bit_issue_11211.test +++ b/parser/testdata/corpus/sql/types/bit/bit_issue_11211.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/bit_issue_11211.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select ( 2::bit & 2::bit ) = 2::bit as b; diff --git a/parser/testdata/corpus/sql/types/bit/bit_issue_22527.test b/parser/testdata/corpus/sql/types/bit/bit_issue_22527.test index 7d7a7767..d9ff1c3d 100644 --- a/parser/testdata/corpus/sql/types/bit/bit_issue_22527.test +++ b/parser/testdata/corpus/sql/types/bit/bit_issue_22527.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/bit_issue_22527.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/types/bit/bit_sort_key_order.test b/parser/testdata/corpus/sql/types/bit/bit_sort_key_order.test index 99aa6d14..e645a8b7 100644 --- a/parser/testdata/corpus/sql/types/bit/bit_sort_key_order.test +++ b/parser/testdata/corpus/sql/types/bit/bit_sort_key_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/bit_sort_key_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE b AS SELECT x::BIT x, i FROM (VALUES ('0',1),('1111111111111111111',2),('01',3),('1',4),('10',5)) v(x,i); diff --git a/parser/testdata/corpus/sql/types/bit/bit_try_cast.test b/parser/testdata/corpus/sql/types/bit/bit_try_cast.test index 26e62264..e72a4ac9 100644 --- a/parser/testdata/corpus/sql/types/bit/bit_try_cast.test +++ b/parser/testdata/corpus/sql/types/bit/bit_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/bit_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT try_cast(1::BIT as TINYINT); diff --git a/parser/testdata/corpus/sql/types/bit/test_bit.test b/parser/testdata/corpus/sql/types/bit/test_bit.test index f4034871..41bffc75 100644 --- a/parser/testdata/corpus/sql/types/bit/test_bit.test +++ b/parser/testdata/corpus/sql/types/bit/test_bit.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/test_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ('0101011'::BIT) diff --git a/parser/testdata/corpus/sql/types/bit/test_bit_bitwise_operations.test b/parser/testdata/corpus/sql/types/bit/test_bit_bitwise_operations.test index 8fa615c6..098e6534 100644 --- a/parser/testdata/corpus/sql/types/bit/test_bit_bitwise_operations.test +++ b/parser/testdata/corpus/sql/types/bit/test_bit_bitwise_operations.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/test_bit_bitwise_operations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO bits VALUES('101111011010'), ('110001100100'), ('101001000110') diff --git a/parser/testdata/corpus/sql/types/bit/test_bit_equality.test b/parser/testdata/corpus/sql/types/bit/test_bit_equality.test index 050befa4..6f5fe7db 100644 --- a/parser/testdata/corpus/sql/types/bit/test_bit_equality.test +++ b/parser/testdata/corpus/sql/types/bit/test_bit_equality.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/test_bit_equality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select bitstring('1', 6) from range(100000) group by 1; diff --git a/parser/testdata/corpus/sql/types/bit/test_bit_functions.test b/parser/testdata/corpus/sql/types/bit/test_bit_functions.test index 7b927db1..ae719186 100644 --- a/parser/testdata/corpus/sql/types/bit/test_bit_functions.test +++ b/parser/testdata/corpus/sql/types/bit/test_bit_functions.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/test_bit_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO bits VALUES('101001111'), ('00111'), ('100101010110000000000001'), ('111111010100') @@ -119,3 +119,23 @@ SELECT bit_position('010'::BIT, '1101110101011101'::BIT) -- ok == +SELECT bit_position('0011'::BIT, '000011'::BIT) +-- +ok +== +SELECT bit_position('011'::BIT, '0011'::BIT) +-- +ok +== +SELECT bit_position('1101'::BIT, '11101'::BIT) +-- +ok +== +SELECT bit_position('111'::BIT, '11011'::BIT) +-- +ok +== +SELECT bit_position('11'::BIT, '1'::BIT) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/bit/test_hex_to_bit.test b/parser/testdata/corpus/sql/types/bit/test_hex_to_bit.test index ea2f250e..1700c384 100644 --- a/parser/testdata/corpus/sql/types/bit/test_hex_to_bit.test +++ b/parser/testdata/corpus/sql/types/bit/test_hex_to_bit.test @@ -1,6 +1,6 @@ # source: test/sql/types/bit/test_hex_to_bit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE valid (v VARCHAR); diff --git a/parser/testdata/corpus/sql/types/blob/test_blob.test b/parser/testdata/corpus/sql/types/blob/test_blob.test index 454a9624..04609e33 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'abc �'::BYTEA; diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_cast.test b/parser/testdata/corpus/sql/types/blob/test_blob_cast.test index 9f55c23d..10224af3 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_cast.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'a'::BYTEA::VARCHAR diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_function.test b/parser/testdata/corpus/sql/types/blob/test_blob_function.test index cb58f341..4b717ecd 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_function.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_function.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO blobs VALUES ('a'::BYTEA) diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_invalid_utf8.test b/parser/testdata/corpus/sql/types/blob/test_blob_invalid_utf8.test index 195601e9..7cf901d4 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_invalid_utf8.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_invalid_utf8.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_invalid_utf8.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE b(b blob); diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_operator.test b/parser/testdata/corpus/sql/types/blob/test_blob_operator.test index 79879475..4250a463 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_operator.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_operator.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_operator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE blobs (b BYTEA, g INTEGER); diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_string.test b/parser/testdata/corpus/sql/types/blob/test_blob_string.test index 7341b4a8..071259bf 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_string.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_string.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO blobs VALUES ('aaaaaaaaaa') diff --git a/parser/testdata/corpus/sql/types/blob/test_blob_try_cast.test b/parser/testdata/corpus/sql/types/blob/test_blob_try_cast.test index 88cec056..b1e538a1 100644 --- a/parser/testdata/corpus/sql/types/blob/test_blob_try_cast.test +++ b/parser/testdata/corpus/sql/types/blob/test_blob_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/blob/test_blob_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('\\' AS BLOB) diff --git a/parser/testdata/corpus/sql/types/cast_expression_storage_version.test b/parser/testdata/corpus/sql/types/cast_expression_storage_version.test index e6d87d9a..20e33acf 100644 --- a/parser/testdata/corpus/sql/types/cast_expression_storage_version.test +++ b/parser/testdata/corpus/sql/types/cast_expression_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/types/cast_expression_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/cast_expr_old.db' AS oldb (STORAGE_VERSION 'v1.5.0'); diff --git a/parser/testdata/corpus/sql/types/date/date_implicit_cast.test b/parser/testdata/corpus/sql/types/date/date_implicit_cast.test index e327c1fe..1e217d7c 100644 --- a/parser/testdata/corpus/sql/types/date/date_implicit_cast.test +++ b/parser/testdata/corpus/sql/types/date/date_implicit_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/date_implicit_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(ts {type}) diff --git a/parser/testdata/corpus/sql/types/date/date_limits.test b/parser/testdata/corpus/sql/types/date/date_limits.test index 3c757500..bc50a9e9 100644 --- a/parser/testdata/corpus/sql/types/date/date_limits.test +++ b/parser/testdata/corpus/sql/types/date/date_limits.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/date_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '1969-01-01'::date diff --git a/parser/testdata/corpus/sql/types/date/date_parsing.test b/parser/testdata/corpus/sql/types/date/date_parsing.test index 14fa22d0..f9c5fe55 100644 --- a/parser/testdata/corpus/sql/types/date/date_parsing.test +++ b/parser/testdata/corpus/sql/types/date/date_parsing.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/date_parsing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '1992-01-01'::DATE::VARCHAR == '1992-01-01' diff --git a/parser/testdata/corpus/sql/types/date/date_try_cast.test b/parser/testdata/corpus/sql/types/date/date_try_cast.test index 3fe5b774..3757ce0d 100644 --- a/parser/testdata/corpus/sql/types/date/date_try_cast.test +++ b/parser/testdata/corpus/sql/types/date/date_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/date_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast('' as date) diff --git a/parser/testdata/corpus/sql/types/date/test_bc_dates.test b/parser/testdata/corpus/sql/types/date/test_bc_dates.test index 7d3d654c..bed0ec55 100644 --- a/parser/testdata/corpus/sql/types/date/test_bc_dates.test +++ b/parser/testdata/corpus/sql/types/date/test_bc_dates.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/test_bc_dates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO dates VALUES ('-1993-08-14'), (NULL) diff --git a/parser/testdata/corpus/sql/types/date/test_date.test b/parser/testdata/corpus/sql/types/date/test_date.test index 6dd18f5a..f814fdee 100644 --- a/parser/testdata/corpus/sql/types/date/test_date.test +++ b/parser/testdata/corpus/sql/types/date/test_date.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/test_date.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i + 5 FROM dates diff --git a/parser/testdata/corpus/sql/types/date/test_date_2411.test b/parser/testdata/corpus/sql/types/date/test_date_2411.test index fe1c5a26..44f11611 100644 --- a/parser/testdata/corpus/sql/types/date/test_date_2411.test +++ b/parser/testdata/corpus/sql/types/date/test_date_2411.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/test_date_2411.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamp(i TIMESTAMP) diff --git a/parser/testdata/corpus/sql/types/date/test_incorrect_dates.test b/parser/testdata/corpus/sql/types/date/test_incorrect_dates.test index d893c884..ae300fbc 100644 --- a/parser/testdata/corpus/sql/types/date/test_incorrect_dates.test +++ b/parser/testdata/corpus/sql/types/date/test_incorrect_dates.test @@ -1,6 +1,6 @@ # source: test/sql/types/date/test_incorrect_dates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO dates VALUES ('blabla') diff --git a/parser/testdata/corpus/sql/types/decimal/cast_from_decimal.test b/parser/testdata/corpus/sql/types/decimal/cast_from_decimal.test index 856f2cc8..ba22078d 100644 --- a/parser/testdata/corpus/sql/types/decimal/cast_from_decimal.test +++ b/parser/testdata/corpus/sql/types/decimal/cast_from_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/cast_from_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 127::DECIMAL(3,0)::TINYINT, -127::DECIMAL(3,0)::TINYINT, -7::DECIMAL(9,1)::TINYINT, 27::DECIMAL(18,1)::TINYINT, 33::DECIMAL(38,1)::TINYINT diff --git a/parser/testdata/corpus/sql/types/decimal/cast_to_decimal.test b/parser/testdata/corpus/sql/types/decimal/cast_to_decimal.test index 3449077d..5d34d8a3 100644 --- a/parser/testdata/corpus/sql/types/decimal/cast_to_decimal.test +++ b/parser/testdata/corpus/sql/types/decimal/cast_to_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/cast_to_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 100::TINYINT::DECIMAL(18,3), 100::TINYINT::DECIMAL(3,0), (-100)::TINYINT::DECIMAL(3,0), 0::TINYINT::DECIMAL(3,3) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_aggregates.test b/parser/testdata/corpus/sql/types/decimal/decimal_aggregates.test index cad2289e..f1a46247 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_aggregates.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(FIRST('0.1'::DECIMAL(4,1))) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_arithmetic.test b/parser/testdata/corpus/sql/types/decimal/decimal_arithmetic.test index ee00856e..edb2bb3a 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_arithmetic.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT -('0.1'::DECIMAL), -('-0.1'::DECIMAL) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_automatic_cast.test b/parser/testdata/corpus/sql/types/decimal/decimal_automatic_cast.test index fdb6ed56..35af5bd2 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_automatic_cast.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_automatic_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_automatic_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1.33, 10.0] diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_average.test b/parser/testdata/corpus/sql/types/decimal/decimal_average.test index 73aa9b2a..9b19f5cf 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_average.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_average.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_average.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE prices (v DECIMAL(10,2)); @@ -184,3 +184,23 @@ FROM ( -- ok == +PREPARE p AS SELECT decimal_average(?); +-- +ok +== +EXECUTE p(1.5); +-- +ok +== +CREATE MACRO m(x) AS (SELECT decimal_average(x)); +-- +ok +== +PREPARE p2 AS SELECT m(?); +-- +ok +== +EXECUTE p2(2.5); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_decimal_overflow_cast.test b/parser/testdata/corpus/sql/types/decimal/decimal_decimal_overflow_cast.test index 4fe28ddc..47f3c5e4 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_decimal_overflow_cast.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_decimal_overflow_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_decimal_overflow_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1.0::DECIMAL(4,3)::DECIMAL(2,1), 1.0::DECIMAL(4,3)::DECIMAL(9,1), 1.0::DECIMAL(4,3)::DECIMAL(18,1), 1.0::DECIMAL(4,3)::DECIMAL(38,1) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_division.test b/parser/testdata/corpus/sql/types/decimal/decimal_division.test index d32235d4..2e525fbe 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_division.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_division.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_division.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT decimal_division(10.00, 4.00); @@ -140,3 +140,51 @@ SELECT decimal_division(1.0::DECIMAL(4,1), 3.0::DECIMAL(4,1), 39); -- ok == +SELECT decimal_division(127, 4.00); +-- +ok +== +SELECT decimal_division(10, 4); +-- +ok +== +SELECT decimal_division(1::{type}, 4.00); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT decimal_division(10::{type}, 4::DECIMAL(1,0), 0), typeof(decimal_division(10::{type}, 4::DECIMAL(1,0), 0)); +-- +error: Parser Error: syntax error at or near "{" +== +SELECT decimal_division(170141183460469231731687303715884105727::{type}, 2::DECIMAL(1,0), 0); +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE cross_tier(x BIGINT, y INTEGER, dx DECIMAL(19,0), dy DECIMAL(10,0)); +-- +ok +== +INSERT INTO cross_tier VALUES (10, 4, 10, 4); +-- +ok +== +SELECT decimal_division(x, y), typeof(decimal_division(x, y)), decimal_division(dx, dy), decimal_division(y, x) FROM cross_tier; +-- +ok +== +SELECT decimal_division(127, 4.00, 2); +-- +ok +== +SELECT decimal_division(1.5::DECIMAL(18,1), 4.00), typeof(decimal_division(1.5::DECIMAL(18,1), 4.00)); +-- +ok +== +SELECT decimal_division(1::BIGINT, 4.00), typeof(decimal_division(1::BIGINT, 4.00)); +-- +ok +== +SELECT decimal_division(1.5::DECIMAL(4,1), 4.00::DECIMAL(18,2)), typeof(decimal_division(1.5::DECIMAL(4,1), 4.00::DECIMAL(18,2))); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_exception.test b/parser/testdata/corpus/sql/types/decimal/decimal_exception.test index 376a4c21..baef7789 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_exception.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_exception.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_exception.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select cast('9.99' as decimal(1,0)); diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_exponent.test b/parser/testdata/corpus/sql/types/decimal/decimal_exponent.test index 755285f3..4f7f87e7 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_exponent.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_exponent.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_exponent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '1e3'::DECIMAL, '1e-1'::DECIMAL, '.1e3'::DECIMAL, '0.1e3'::DECIMAL @@ -171,3 +171,31 @@ SELECT '5.5e-8'::DECIMAL(18,6) -- ok == +SELECT '0.2e5'::DECIMAL(4,0) +-- +ok +== +SELECT '-0.2e5'::DECIMAL(4,0) +-- +ok +== +SELECT '218.91127e7'::DECIMAL(10,2) +-- +ok +== +SELECT '0.12345e4'::DECIMAL(4,1) +-- +ok +== +SELECT '0.99e38'::DECIMAL(37,0) +-- +ok +== +SELECT TRY_CAST('0.92e19' AS DECIMAL(17,0)), TRY_CAST('0.92e19' AS DECIMAL(18,0)), TRY_CAST('0.92e19' AS DECIMAL(19,0)) +-- +ok +== +SELECT '0.2e4'::DECIMAL(4,0), '-0.2e4'::DECIMAL(4,0), '0.9999e4'::DECIMAL(4,0), '0.1234e3'::DECIMAL(4,1), '218.91127e7'::DECIMAL(12,2), '0.99e38'::DECIMAL(38,0) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_overflow.test b/parser/testdata/corpus/sql/types/decimal/decimal_overflow.test index e5cfb29c..28797796 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_overflow.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select (99000000000000000.0::DECIMAL(18,1)+99000000000000000.0::DECIMAL(18,1)); diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_overflow_table.test b/parser/testdata/corpus/sql/types/decimal/decimal_overflow_table.test index 008c02ec..6d448634 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_overflow_table.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_overflow_table.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_overflow_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimals(d DECIMAL(18,1)) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_promotion.test b/parser/testdata/corpus/sql/types/decimal/decimal_promotion.test index f014f417..02ae8f93 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_promotion.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_promotion.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_promotion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(1::DECIMAL(4,0) + 1::DECIMAL(4,0)), diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_try_cast.test b/parser/testdata/corpus/sql/types/decimal/decimal_try_cast.test index d00061a8..106e2aa2 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_try_cast.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(1000 AS DECIMAL(3,0)) diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_values_warning.test b/parser/testdata/corpus/sql/types/decimal/decimal_values_warning.test index 65a3bc2d..9ba86ccc 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_values_warning.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_values_warning.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_values_warning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit VALUES (32942348563242.111222333444555666777888::DECIMAL(38,24)), (NULL::NUMERIC); diff --git a/parser/testdata/corpus/sql/types/decimal/decimal_zero_to_float.test b/parser/testdata/corpus/sql/types/decimal/decimal_zero_to_float.test index f28cf762..0cd89ab9 100644 --- a/parser/testdata/corpus/sql/types/decimal/decimal_zero_to_float.test +++ b/parser/testdata/corpus/sql/types/decimal/decimal_zero_to_float.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/decimal_zero_to_float.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(0::DECIMAL(38, 30) AS DOUBLE), signbit(CAST(0::DECIMAL(38, 30) AS DOUBLE)), diff --git a/parser/testdata/corpus/sql/types/decimal/large_decimal_constants.test b/parser/testdata/corpus/sql/types/decimal/large_decimal_constants.test index 7b57c1eb..9d09ddcd 100644 --- a/parser/testdata/corpus/sql/types/decimal/large_decimal_constants.test +++ b/parser/testdata/corpus/sql/types/decimal/large_decimal_constants.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/large_decimal_constants.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 42.1, -10239814.1, 1049185157.12345, 102398294123451814.12345, -49238409238403918140294812084.12490812490 diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal.test b/parser/testdata/corpus/sql/types/decimal/test_decimal.test index 3aa6ce7b..4758d792 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof('0.1'::DECIMAL); diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_2411.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_2411.test index 62b8d62f..4105da71 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_2411.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_2411.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_2411.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimals(i DECIMAL(38,1)) diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_2975.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_2975.test index 325c2e06..3f3d738a 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_2975.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_2975.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_2975.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table q (big decimal (38,10)) diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_4106.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_4106.test index b4f86a68..21677a48 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_4106.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_4106.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_4106.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE from_values AS VALUES (1000000), (10.0000000005); diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_from_string.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_from_string.test index fbe12853..e11218fb 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_from_string.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_from_string.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_from_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '+1e-1'::DECIMAL(38,3) diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_ops.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_ops.test index 4efc6237..dc90e9a5 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_ops.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_ops.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM decimals diff --git a/parser/testdata/corpus/sql/types/decimal/test_decimal_small_precision_behavior.test b/parser/testdata/corpus/sql/types/decimal/test_decimal_small_precision_behavior.test index bd245938..0a89f6ab 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_decimal_small_precision_behavior.test +++ b/parser/testdata/corpus/sql/types/decimal/test_decimal_small_precision_behavior.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_decimal_small_precision_behavior.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '1.023450000001'::DECIMAL(5,4) diff --git a/parser/testdata/corpus/sql/types/decimal/test_empty_dec.test b/parser/testdata/corpus/sql/types/decimal/test_empty_dec.test index 61c0598f..5c61131e 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_empty_dec.test +++ b/parser/testdata/corpus/sql/types/decimal/test_empty_dec.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_empty_dec.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decs(i DEC(), j DEC) diff --git a/parser/testdata/corpus/sql/types/decimal/test_empty_decimal.test b/parser/testdata/corpus/sql/types/decimal/test_empty_decimal.test index 27550799..0ebdfaa9 100644 --- a/parser/testdata/corpus/sql/types/decimal/test_empty_decimal.test +++ b/parser/testdata/corpus/sql/types/decimal/test_empty_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/types/decimal/test_empty_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE decimals(i DECIMAL(), j DECIMAL) diff --git a/parser/testdata/corpus/sql/types/enum/create_enum_collection_alias.test b/parser/testdata/corpus/sql/types/enum/create_enum_collection_alias.test index 25ff7903..d796afbf 100644 --- a/parser/testdata/corpus/sql/types/enum/create_enum_collection_alias.test +++ b/parser/testdata/corpus/sql/types/enum/create_enum_collection_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/create_enum_collection_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE enum_list AS ENUM ('sad', 'ok', 'happy')[] diff --git a/parser/testdata/corpus/sql/types/enum/enum_cast_optimizer.test b/parser/testdata/corpus/sql/types/enum/enum_cast_optimizer.test new file mode 100644 index 00000000..3b97f576 --- /dev/null +++ b/parser/testdata/corpus/sql/types/enum/enum_cast_optimizer.test @@ -0,0 +1,41 @@ +# source: test/sql/types/enum/enum_cast_optimizer.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TYPE e1 AS ENUM ('a','b','c'); +-- +ok +== +CREATE TYPE e2 AS ENUM ('c','b','a'); +-- +ok +== +CREATE TABLE t(e e1); +-- +ok +== +INSERT INTO t VALUES ('a'),('b'),('c'); +-- +ok +== +SELECT e, e::e2 >= 'c'::e2 FROM t ORDER BY e; +-- +ok +== +SELECT e, TRY_CAST(e AS ENUM('a','b')) NOT IN ('a'::ENUM('a','b')) FROM t ORDER BY e; +-- +ok +== +SELECT e, CAST(e AS ENUM('a','b')) IN ('a'::ENUM('a','b')) FROM t ORDER BY e; +-- +ok +== +CREATE TYPE e3 AS ENUM ('a','b','c','d'); +-- +ok +== +SELECT count(*) FROM t WHERE e::e3 IN ('a'::e3, 'd'::e3); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/enum/enum_enum_cast_missing_value.test b/parser/testdata/corpus/sql/types/enum/enum_enum_cast_missing_value.test new file mode 100644 index 00000000..9d5e6251 --- /dev/null +++ b/parser/testdata/corpus/sql/types/enum/enum_enum_cast_missing_value.test @@ -0,0 +1,45 @@ +# source: test/sql/types/enum/enum_enum_cast_missing_value.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TYPE e1 AS ENUM ('a','b'); +-- +ok +== +CREATE TYPE e2 AS ENUM ('a','b','z'); +-- +ok +== +CREATE TYPE e3 AS ENUM ('a'); +-- +ok +== +CREATE TABLE t(c e1); +-- +ok +== +INSERT INTO t VALUES ('a'),('b'); +-- +ok +== +SELECT c, CAST(c AS e2) = 'z'::e2, CAST(c AS e2) <> 'z'::e2 FROM t ORDER BY c; +-- +ok +== +SELECT c FROM t WHERE CAST(c AS e2) NOT IN ('a'::e2,'z'::e2); +-- +ok +== +SELECT c FROM t WHERE c NOT IN ('a'::e1, 'z'::e2); +-- +ok +== +SELECT CAST(c AS e3) FROM t; +-- +ok +== +SELECT TRY_CAST(c AS e3) FROM t ORDER BY c; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/enum/standalone_enum.test b/parser/testdata/corpus/sql/types/enum/standalone_enum.test index 6760719e..879280bc 100644 --- a/parser/testdata/corpus/sql/types/enum/standalone_enum.test +++ b/parser/testdata/corpus/sql/types/enum/standalone_enum.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/standalone_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'hello'::ENUM('world', 'hello'); diff --git a/parser/testdata/corpus/sql/types/enum/test_25633.test b/parser/testdata/corpus/sql/types/enum/test_25633.test index eb92bf60..d5c1198c 100644 --- a/parser/testdata/corpus/sql/types/enum/test_25633.test +++ b/parser/testdata/corpus/sql/types/enum/test_25633.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_25633.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE years AS ENUM ('2001', '2006'); diff --git a/parser/testdata/corpus/sql/types/enum/test_26369.test b/parser/testdata/corpus/sql/types/enum/test_26369.test index 8c363469..6e08ca99 100644 --- a/parser/testdata/corpus/sql/types/enum/test_26369.test +++ b/parser/testdata/corpus/sql/types/enum/test_26369.test @@ -1,16 +1,8 @@ # source: test/sql/types/enum/test_26369.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -CREATE TYPE mood AS ENUM(); --- -ok -== -CREATE TABLE t (m mood); --- -ok -== PIVOT t ON m USING count(*) GROUP BY rowid; -- ok diff --git a/parser/testdata/corpus/sql/types/enum/test_3479.test b/parser/testdata/corpus/sql/types/enum/test_3479.test index 23a58984..95fb26c3 100644 --- a/parser/testdata/corpus/sql/types/enum/test_3479.test +++ b/parser/testdata/corpus/sql/types/enum/test_3479.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_3479.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood_2 AS ENUM ('1', '2', '3'); diff --git a/parser/testdata/corpus/sql/types/enum/test_3641.test b/parser/testdata/corpus/sql/types/enum/test_3641.test index eb4e742d..a34f3025 100644 --- a/parser/testdata/corpus/sql/types/enum/test_3641.test +++ b/parser/testdata/corpus/sql/types/enum/test_3641.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_3641.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood_2 AS ENUM ('very sad', 'very ok', 'very happy'); diff --git a/parser/testdata/corpus/sql/types/enum/test_5983.test b/parser/testdata/corpus/sql/types/enum/test_5983.test index 88d898bf..49733301 100644 --- a/parser/testdata/corpus/sql/types/enum/test_5983.test +++ b/parser/testdata/corpus/sql/types/enum/test_5983.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_5983.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CALL DBGEN(sf=0.01); diff --git a/parser/testdata/corpus/sql/types/enum/test_6356.test b/parser/testdata/corpus/sql/types/enum/test_6356.test index 5dde0474..90241d5a 100644 --- a/parser/testdata/corpus/sql/types/enum/test_6356.test +++ b/parser/testdata/corpus/sql/types/enum/test_6356.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_6356.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a (a string, b mood); diff --git a/parser/testdata/corpus/sql/types/enum/test_alter_enum.test b/parser/testdata/corpus/sql/types/enum/test_alter_enum.test index bb4e8e6d..2977cef4 100644 --- a/parser/testdata/corpus/sql/types/enum/test_alter_enum.test +++ b/parser/testdata/corpus/sql/types/enum/test_alter_enum.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_alter_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE person ( diff --git a/parser/testdata/corpus/sql/types/enum/test_enum.test b/parser/testdata/corpus/sql/types/enum/test_enum.test index 3cbab087..b4da8611 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE IF NOT EXISTS mood AS ENUM ('sad', 'ok', 'happy'); @@ -51,10 +51,6 @@ ALTER TYPE mood REMOVE VALUE 'depressive'; -- error: Parser Error: syntax error at or near "TYPE" == -DROP TYPE mood; --- -ok -== DROP TYPE mood_2; -- ok diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_case.test b/parser/testdata/corpus/sql/types/enum/test_enum_case.test index 38386028..d3e2a565 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_case.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_case.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE E1 AS ENUM ('v1', 'v2'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_cast.test b/parser/testdata/corpus/sql/types/enum/test_enum_cast.test index 232aae13..fcac8b9e 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_cast.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO person VALUES ('Pedro', 'ok'), ('Mark', 'sad'),('Moe', 'happy'), ('Diego', NULL); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_comparisons.test b/parser/testdata/corpus/sql/types/enum/test_enum_comparisons.test index 4c7b8c3d..55355b3f 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_comparisons.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_comparisons.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_comparisons.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE mood AS ENUM ('sad', 'quackity-quack', 'happy', 'ok'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_constraints.test b/parser/testdata/corpus/sql/types/enum/test_enum_constraints.test index c61f4784..5d1fe1a8 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_constraints.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit drop type mood diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_duckdb_types.test b/parser/testdata/corpus/sql/types/enum/test_enum_duckdb_types.test index 40759c6a..3a9f7d92 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_duckdb_types.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_duckdb_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_duckdb_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT type_name, logical_type FROM duckdb_types() WHERE NOT internal diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_range_boundary_rows.test b/parser/testdata/corpus/sql/types/enum/test_enum_range_boundary_rows.test index 8dd19e1b..35d41dc7 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_range_boundary_rows.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_range_boundary_rows.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_range_boundary_rows.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE e AS ENUM ('a', 'b', 'c', 'd'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_schema.test b/parser/testdata/corpus/sql/types/enum/test_enum_schema.test index 462f06f1..d906f0b6 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_schema.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_schema.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_schema.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE s1.mood AS ENUM ('sad', 'ok', 'happy'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_structs.test b/parser/testdata/corpus/sql/types/enum/test_enum_structs.test index cd3f6729..8eba498d 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_structs.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_structs.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET storage_compatibility_version='v0.10.2'; diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_table.test b/parser/testdata/corpus/sql/types/enum/test_enum_table.test index 0471b8fd..6f7ead7b 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_table.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_table.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_table.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO person VALUES ('Moe', 'diego'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_temp_tbl.test b/parser/testdata/corpus/sql/types/enum/test_enum_temp_tbl.test index 405636f5..6c2e3e9e 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_temp_tbl.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_temp_tbl.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_temp_tbl.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TEMP TABLE tbl_temp (name varchar , cur_mood mood); diff --git a/parser/testdata/corpus/sql/types/enum/test_enum_to_numbers.test b/parser/testdata/corpus/sql/types/enum/test_enum_to_numbers.test index 3d82f626..f4f4a229 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enum_to_numbers.test +++ b/parser/testdata/corpus/sql/types/enum/test_enum_to_numbers.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enum_to_numbers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create type enum_numstrings as enum ('1', '2', '3', '4'); diff --git a/parser/testdata/corpus/sql/types/enum/test_enums_and_built_in_types.test b/parser/testdata/corpus/sql/types/enum/test_enums_and_built_in_types.test index 7a4c5a01..a1568e1c 100644 --- a/parser/testdata/corpus/sql/types/enum/test_enums_and_built_in_types.test +++ b/parser/testdata/corpus/sql/types/enum/test_enums_and_built_in_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/enum/test_enums_and_built_in_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE "integer" AS ENUM ('1', '2', '3'); diff --git a/parser/testdata/corpus/sql/types/float/ieee_floating_points.test b/parser/testdata/corpus/sql/types/float/ieee_floating_points.test index 82f14136..a8200efe 100644 --- a/parser/testdata/corpus/sql/types/float/ieee_floating_points.test +++ b/parser/testdata/corpus/sql/types/float/ieee_floating_points.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/ieee_floating_points.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE tbl(val {type}) diff --git a/parser/testdata/corpus/sql/types/float/infinity_test.test b/parser/testdata/corpus/sql/types/float/infinity_test.test index efbea3a1..d7d38b8e 100644 --- a/parser/testdata/corpus/sql/types/float/infinity_test.test +++ b/parser/testdata/corpus/sql/types/float/infinity_test.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/infinity_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'INF'::{type}, '-INF'::{type} diff --git a/parser/testdata/corpus/sql/types/float/nan_aggregate.test b/parser/testdata/corpus/sql/types/float/nan_aggregate.test index 933a1d23..cc630966 100644 --- a/parser/testdata/corpus/sql/types/float/nan_aggregate.test +++ b/parser/testdata/corpus/sql/types/float/nan_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table floats(f {type}, i int); diff --git a/parser/testdata/corpus/sql/types/float/nan_aggregates.test b/parser/testdata/corpus/sql/types/float/nan_aggregates.test index 0601b78a..cc02eb65 100644 --- a/parser/testdata/corpus/sql/types/float/nan_aggregates.test +++ b/parser/testdata/corpus/sql/types/float/nan_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM('inf'::{type}), SUM('-inf'::{type}), SUM('nan'::{type}) diff --git a/parser/testdata/corpus/sql/types/float/nan_arithmetic.test b/parser/testdata/corpus/sql/types/float/nan_arithmetic.test index cf3bdfb7..e98a2069 100644 --- a/parser/testdata/corpus/sql/types/float/nan_arithmetic.test +++ b/parser/testdata/corpus/sql/types/float/nan_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{val}'::{type} + 1 diff --git a/parser/testdata/corpus/sql/types/float/nan_cast.test b/parser/testdata/corpus/sql/types/float/nan_cast.test index 1ea97a42..27df6538 100644 --- a/parser/testdata/corpus/sql/types/float/nan_cast.test +++ b/parser/testdata/corpus/sql/types/float/nan_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{val}'::{source_type} diff --git a/parser/testdata/corpus/sql/types/float/nan_functions.test b/parser/testdata/corpus/sql/types/float/nan_functions.test index 65d8d9e3..302a468f 100644 --- a/parser/testdata/corpus/sql/types/float/nan_functions.test +++ b/parser/testdata/corpus/sql/types/float/nan_functions.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT nextafter(3, '-inf'::{type}) diff --git a/parser/testdata/corpus/sql/types/float/nan_join.test b/parser/testdata/corpus/sql/types/float/nan_join.test index 53405eba..2973a83f 100644 --- a/parser/testdata/corpus/sql/types/float/nan_join.test +++ b/parser/testdata/corpus/sql/types/float/nan_join.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM floats JOIN (SELECT 'inf'::{type}) tbl(f) USING (f) diff --git a/parser/testdata/corpus/sql/types/float/nan_minmax_order.test b/parser/testdata/corpus/sql/types/float/nan_minmax_order.test index 14b9a783..7d79737a 100644 --- a/parser/testdata/corpus/sql/types/float/nan_minmax_order.test +++ b/parser/testdata/corpus/sql/types/float/nan_minmax_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_minmax_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MIN(f), MAX(f) FROM (VALUES ('nan'::{type}), (1::{type}), (2::{type})) t(f) diff --git a/parser/testdata/corpus/sql/types/float/nan_ordering.test b/parser/testdata/corpus/sql/types/float/nan_ordering.test index c1167995..015c99b1 100644 --- a/parser/testdata/corpus/sql/types/float/nan_ordering.test +++ b/parser/testdata/corpus/sql/types/float/nan_ordering.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_ordering.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE floats(f {type}); diff --git a/parser/testdata/corpus/sql/types/float/nan_test.test b/parser/testdata/corpus/sql/types/float/nan_test.test index bf5b603f..3cf3d107 100644 --- a/parser/testdata/corpus/sql/types/float/nan_test.test +++ b/parser/testdata/corpus/sql/types/float/nan_test.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 'NAN'::{type} diff --git a/parser/testdata/corpus/sql/types/float/nan_window.test b/parser/testdata/corpus/sql/types/float/nan_window.test index fa1fe4b6..48ce20b5 100644 --- a/parser/testdata/corpus/sql/types/float/nan_window.test +++ b/parser/testdata/corpus/sql/types/float/nan_window.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nan_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT f, SUM(i) OVER (PARTITION BY f) FROM floats ORDER BY f diff --git a/parser/testdata/corpus/sql/types/float/nested_nan.test b/parser/testdata/corpus/sql/types/float/nested_nan.test index 0ae58188..b1e4ab92 100644 --- a/parser/testdata/corpus/sql/types/float/nested_nan.test +++ b/parser/testdata/corpus/sql/types/float/nested_nan.test @@ -1,6 +1,6 @@ # source: test/sql/types/float/nested_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ['nan'::double] diff --git a/parser/testdata/corpus/sql/types/geo/geometry.test b/parser/testdata/corpus/sql/types/geo/geometry.test index 0874e6b7..cf651959 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry.test +++ b/parser/testdata/corpus/sql/types/geo/geometry.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(id INT, g GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_blob_cast.test b/parser/testdata/corpus/sql/types/geo/geometry_blob_cast.test index 863a9b3e..fd806768 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_blob_cast.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_blob_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_blob_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into t1 values diff --git a/parser/testdata/corpus/sql/types/geo/geometry_blob_cast_invalid_parts.test b/parser/testdata/corpus/sql/types/geo/geometry_blob_cast_invalid_parts.test index 36153f15..262a2298 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_blob_cast_invalid_parts.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_blob_cast_invalid_parts.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_blob_cast_invalid_parts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT from_hex('0104000000020000000101000000000000000000f03f000000000000004001020000000200000000000000000000000000000000000000000000000000f03f000000000000f03f')::GEOMETRY diff --git a/parser/testdata/corpus/sql/types/geo/geometry_compatability.test b/parser/testdata/corpus/sql/types/geo/geometry_compatability.test index e9cadb61..13becf58 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_compatability.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_compatability.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_compatability.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit copy (select content from read_blob('{DATA_DIR}/storage/spatial_geo.db')) to '{TEST_DIR}/geo.db' (format BLOB); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs.test b/parser/testdata/corpus/sql/types/geo/geometry_crs.test index be59783a..59f5acc6 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_crs.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_crs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select st_crs(NULL); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs_formats.test b/parser/testdata/corpus/sql/types/geo/geometry_crs_formats.test index 25e24d47..c843e8fd 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_crs_formats.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs_formats.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_crs_formats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof('POINT(0 1)'::GEOMETRY(' OGC:CRS84 ')); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs_id_overflow.test b/parser/testdata/corpus/sql/types/geo/geometry_crs_id_overflow.test new file mode 100644 index 00000000..27f22c10 --- /dev/null +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs_id_overflow.test @@ -0,0 +1,17 @@ +# source: test/sql/types/geo/geometry_crs_id_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT typeof('POINT(0 1)'::GEOMETRY($wkt$GEOGCRS["WGS",ID["EPSG",18446744073709551615]]$wkt$)); +-- +ok +== +SELECT typeof('POINT(0 1)'::GEOMETRY($wkt$GEOGCRS["WGS",ID["EPSG",18446744073709551616]]$wkt$)); +-- +ok +== +SELECT typeof('POINT(0 1)'::GEOMETRY($wkt$GEOGCRS["WGS",ID["EPSG",1e30]]$wkt$)); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs_persist.test b/parser/testdata/corpus/sql/types/geo/geometry_crs_persist.test index b12ed4c3..553968d1 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_crs_persist.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs_persist.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_crs_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wkb (g GEOMETRY('OGC:CRS84')); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs_projjson.test b/parser/testdata/corpus/sql/types/geo/geometry_crs_projjson.test index dbaa9308..fd005835 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_crs_projjson.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs_projjson.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_crs_projjson.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof('POINT(0 1)'::GEOMETRY(' diff --git a/parser/testdata/corpus/sql/types/geo/geometry_crs_wkt2.test b/parser/testdata/corpus/sql/types/geo/geometry_crs_wkt2.test index 83a9c982..99cfe639 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_crs_wkt2.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_crs_wkt2.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_crs_wkt2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof('POINT(0 1)'::GEOMETRY('GEOGCRS["WGS 84 (CRS84)", diff --git a/parser/testdata/corpus/sql/types/geo/geometry_from_wkb_stats.test b/parser/testdata/corpus/sql/types/geo/geometry_from_wkb_stats.test index caeed849..56597354 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_from_wkb_stats.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_from_wkb_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_from_wkb_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lines_wkb(wkb BLOB); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_intersection_filter_parquet.test b/parser/testdata/corpus/sql/types/geo/geometry_intersection_filter_parquet.test index 83d3c8fa..012c14a4 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_intersection_filter_parquet.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_intersection_filter_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_intersection_filter_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/types/geo/geometry_intersects.test b/parser/testdata/corpus/sql/types/geo/geometry_intersects.test index ebfaba8e..cb673078 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_intersects.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_intersects.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_intersects.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 'POINT(0 1)'::GEOMETRY && 'POINT(0 0)'::GEOMETRY; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_legacy_recheckpoint.test b/parser/testdata/corpus/sql/types/geo/geometry_legacy_recheckpoint.test index f667c2ef..f5612a30 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_legacy_recheckpoint.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_legacy_recheckpoint.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_legacy_recheckpoint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/geometry_legacy_recheckpoint.db' AS db (STORAGE_VERSION 'v1.4.4'); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_nonascii_cast.test b/parser/testdata/corpus/sql/types/geo/geometry_nonascii_cast.test index c64be3c5..7780eb16 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_nonascii_cast.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_nonascii_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_nonascii_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 'pä int(0 1)'::GEOMETRY diff --git a/parser/testdata/corpus/sql/types/geo/geometry_parquet_pushdown.test b/parser/testdata/corpus/sql/types/geo/geometry_parquet_pushdown.test index 0f4c8d74..4098989b 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_parquet_pushdown.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_parquet_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_parquet_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/types/geo/geometry_persist.test b/parser/testdata/corpus/sql/types/geo/geometry_persist.test index fcce043e..49b369ff 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_persist.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_persist.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_persist.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(g GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_persist_wal.test b/parser/testdata/corpus/sql/types/geo/geometry_persist_wal.test index 9f6ecf41..712995a5 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_persist_wal.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_persist_wal.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_persist_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/geometry_wal.db' AS geo_wal (STORAGE_VERSION 'v1.5.0') diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred.test b/parser/testdata/corpus/sql/types/geo/geometry_shred.test index 2b5b6a0f..07a36fdc 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET geometry_minimum_shredding_size = 0; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_deletes.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_deletes.test index ddcfb651..768bd6d0 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_deletes.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set checkpoint_threshold='10gb' diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_empty.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_empty.test index d39df84c..6d6b2cac 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_empty.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_empty.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(type VARCHAR, has_z BOOLEAN, has_m BOOLEAN, g GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_fetch.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_fetch.test index 864b14de..fbd841b0 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_fetch.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_fetch.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_fetch.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(g geometry, id integer); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_limit.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_limit.test index bec5685d..ef25bb5d 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_limit.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_limit.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET geometry_minimum_shredding_size = 3; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_list.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_list.test index 7fd99f88..2efabf17 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_list.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1(g geometry[], id integer); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_more.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_more.test index 1b61baf9..fd164113 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_more.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_more.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_more.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET checkpoint_threshold='10gb'; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_pk_append.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_pk_append.test index efe05fd6..42303517 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_pk_append.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_pk_append.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_pk_append.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(id UUID PRIMARY KEY, g GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_shred_shapes.test b/parser/testdata/corpus/sql/types/geo/geometry_shred_shapes.test index 46c337f1..fd4ec485 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_shred_shapes.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_shred_shapes.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_shred_shapes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET geometry_minimum_shredding_size = 0 diff --git a/parser/testdata/corpus/sql/types/geo/geometry_stats.test b/parser/testdata/corpus/sql/types/geo/geometry_stats.test index 2a4dadce..418e9827 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_stats.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into t1 values (0, 'POINT(0 0)'::GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune.test b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune.test index 01e867fd..8e63a536 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_stats_prune.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '{TEST_DIR}/repro_geo_rowgroup.db' AS geoms (ROW_GROUP_SIZE 2048, STORAGE_VERSION 'v1.5.0'); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_nan.test b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_nan.test index f82806e1..57cdeeed 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_nan.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_nan.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_stats_prune_nan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE p(g GEOMETRY); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_null.test b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_null.test index 44931547..4c8b0805 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_null.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_stats_prune_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY ( diff --git a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_shredded.test b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_shredded.test index d7826ba9..e7278008 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_shredded.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_stats_prune_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_stats_prune_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit set geometry_minimum_shredding_size=0; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_storage_version.test b/parser/testdata/corpus/sql/types/geo/geometry_storage_version.test index af1f1792..6d4b8e9a 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_storage_version.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_storage_version.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_storage_version.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/geometry.db' (STORAGE_VERSION 'v1.4.4'); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_try_cast_malformed.test b/parser/testdata/corpus/sql/types/geo/geometry_try_cast_malformed.test index dcb927b7..807693f3 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_try_cast_malformed.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_try_cast_malformed.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_try_cast_malformed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('POINT(1 2' AS GEOMETRY), TRY_CAST('FOO(1 2)' AS GEOMETRY), TRY_CAST('POINT(1 2) x' AS GEOMETRY), diff --git a/parser/testdata/corpus/sql/types/geo/geometry_update.test b/parser/testdata/corpus/sql/types/geo/geometry_update.test index 3d74fac6..d2a9e2cc 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_update.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_update.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (id INT, geo GEOMETRY) diff --git a/parser/testdata/corpus/sql/types/geo/geometry_vertex_extract.test b/parser/testdata/corpus/sql/types/geo/geometry_vertex_extract.test index 43f09c7c..e3d4f821 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_vertex_extract.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_vertex_extract.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_vertex_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT vertex_extract('POINT(1 2)'::GEOMETRY, 'x'); diff --git a/parser/testdata/corpus/sql/types/geo/geometry_wkb.test b/parser/testdata/corpus/sql/types/geo/geometry_wkb.test index 45a551ec..5eee69b0 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_wkb.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_wkb.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_wkb.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into t1 values diff --git a/parser/testdata/corpus/sql/types/geo/geometry_wkb_depth.test b/parser/testdata/corpus/sql/types/geo/geometry_wkb_depth.test index 2e5b0a7d..6fba7501 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_wkb_depth.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_wkb_depth.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_wkb_depth.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ST_AsText(ST_GeomFromWKB(from_hex(repeat('010700000001000000', 15) || '010700000000000000')))[1:40]; diff --git a/parser/testdata/corpus/sql/types/geo/geometry_wkb_invalid_flag.test b/parser/testdata/corpus/sql/types/geo/geometry_wkb_invalid_flag.test index 95e0c2f0..414cb41c 100644 --- a/parser/testdata/corpus/sql/types/geo/geometry_wkb_invalid_flag.test +++ b/parser/testdata/corpus/sql/types/geo/geometry_wkb_invalid_flag.test @@ -1,6 +1,6 @@ # source: test/sql/types/geo/geometry_wkb_invalid_flag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT from_hex('01A10F0000000000000000F03F0000000000000040')::GEOMETRY; diff --git a/parser/testdata/corpus/sql/types/hugeint/hugeint_multiply.test b/parser/testdata/corpus/sql/types/hugeint/hugeint_multiply.test index 73a1cc8e..e7f745d4 100644 --- a/parser/testdata/corpus/sql/types/hugeint/hugeint_multiply.test +++ b/parser/testdata/corpus/sql/types/hugeint/hugeint_multiply.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/hugeint_multiply.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 251658240::HUGEINT * 251658240::HUGEINT @@ -131,3 +131,106 @@ SELECT 17293822569102704639::HUGEINT * 10376293541461622783::HUGEINT -- ok == +SELECT (-9223372036854775808)::HUGEINT * 18446744073709551616::HUGEINT, + 18446744073709551616::HUGEINT * (-9223372036854775808)::HUGEINT, + (-85070591730234615865843651857942052864)::HUGEINT * 2::HUGEINT, + 85070591730234615865843651857942052864::HUGEINT * (-2)::HUGEINT +-- +ok +== +SELECT (-18446744073709551616)::HUGEINT * 9223372036854775808::HUGEINT, + (-2)::HUGEINT * 85070591730234615865843651857942052864::HUGEINT +-- +ok +== +SELECT (-85070591730234615865843651857942052864)::HUGEINT * (-2)::HUGEINT +-- +ok +== +SELECT (-9223372036854775808)::HUGEINT * (-18446744073709551616)::HUGEINT +-- +ok +== +SELECT (-85070591730234615865843651857942052865)::HUGEINT * 2::HUGEINT +-- +ok +== +SELECT (-9223372036854775809)::HUGEINT * 18446744073709551616::HUGEINT +-- +ok +== +SELECT 18446744073709551616::HUGEINT * (-9223372036854775809)::HUGEINT +-- +ok +== +SELECT (-9223372036854775808)::HUGEINT * 18446744073709551617::HUGEINT +-- +ok +== +SELECT (-85070591730234615865843651857942052863)::HUGEINT * 2::HUGEINT, + 170141183460469231731687303715884105727::HUGEINT * (-1)::HUGEINT, + (-1)::HUGEINT * 170141183460469231731687303715884105727::HUGEINT, + (-170141183460469231731687303715884105727)::HUGEINT * (-1)::HUGEINT +-- +ok +== +SELECT (-170141183460469231731687303715884105728)::HUGEINT * 1::HUGEINT, + 1::HUGEINT * (-170141183460469231731687303715884105728)::HUGEINT, + (-170141183460469231731687303715884105728)::HUGEINT * 0::HUGEINT, + 0::HUGEINT * (-170141183460469231731687303715884105728)::HUGEINT +-- +ok +== +SELECT (-170141183460469231731687303715884105728)::HUGEINT * (-1)::HUGEINT +-- +ok +== +SELECT (-1)::HUGEINT * (-170141183460469231731687303715884105728)::HUGEINT +-- +ok +== +SELECT (-170141183460469231731687303715884105728)::HUGEINT * 2::HUGEINT +-- +ok +== +SELECT TRY((-9223372036854775808)::HUGEINT * 18446744073709551616::HUGEINT), + TRY(85070591730234615865843651857942052864::HUGEINT * 2::HUGEINT), + TRY((-170141183460469231731687303715884105728)::HUGEINT * (-1)::HUGEINT) +-- +ok +== +CREATE TABLE products(a HUGEINT, b HUGEINT); +-- +ok +== +INSERT INTO products VALUES + (-85070591730234615865843651857942052864, 2), + (85070591730234615865843651857942052864, -2), + (-9223372036854775808, 18446744073709551616), + (NULL, 2), + (-85070591730234615865843651857942052864, NULL), + (5, 7); +-- +ok +== +SELECT a * b FROM products +-- +ok +== +SELECT a * (-b) FROM products +-- +ok +== +SELECT CAST(-9223372036854775808 AS DECIMAL(38,0)) * CAST(18446744073709551616 AS DECIMAL(38,0)) +-- +ok +== +SELECT 340282366920938463463374607431768211455::UHUGEINT * 1::UHUGEINT, + 1::UHUGEINT * 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT 340282366920938463463374607431768211455::UHUGEINT * 2::UHUGEINT +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/hugeint/hugeint_sum_overflow.test b/parser/testdata/corpus/sql/types/hugeint/hugeint_sum_overflow.test index 8831ebac..2968adec 100644 --- a/parser/testdata/corpus/sql/types/hugeint/hugeint_sum_overflow.test +++ b/parser/testdata/corpus/sql/types/hugeint/hugeint_sum_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/hugeint_sum_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(170141183460469231731687303715884105727) FROM range(10); diff --git a/parser/testdata/corpus/sql/types/hugeint/hugeint_try_cast.test b/parser/testdata/corpus/sql/types/hugeint/hugeint_try_cast.test index 978bd287..573ddd9c 100644 --- a/parser/testdata/corpus/sql/types/hugeint/hugeint_try_cast.test +++ b/parser/testdata/corpus/sql/types/hugeint/hugeint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/hugeint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('170141183460469231731687303715884105728' AS HUGEINT) @@ -15,7 +15,7 @@ SELECT CAST('-170141183460469231731687303715884105729' AS HUGEINT) -- ok == -SELECT CAST('-170141183460469231731687303715884105729'::DOUBLE AS HUGEINT) +SELECT CAST('-170141183460469269510619166673045815296'::DOUBLE AS HUGEINT) -- ok == @@ -31,7 +31,7 @@ SELECT TRY_CAST('-170141183460469231731687303715884105729' AS HUGEINT) -- ok == -SELECT TRY_CAST('-170141183460469231731687303715884105729'::DOUBLE AS HUGEINT) +SELECT TRY_CAST('-170141183460469269510619166673045815296'::DOUBLE AS HUGEINT) -- ok == diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_aggregates.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_aggregates.test index 67e19f8a..930ed296 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_aggregates.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(g INTEGER, h HUGEINT); diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_arithmetic.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_arithmetic.test index 47d842f4..60365337 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_arithmetic.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT -(100::HUGEINT), -(-(50::HUGEINT)); diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_auto_cast.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_auto_cast.test index 84b9744a..2da7aa90 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_auto_cast.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_auto_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_auto_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10000000000000000000::HUGEINT + 100::TINYINT, 10000000000000000000::HUGEINT + 100::SMALLINT, 10000000000000000000::HUGEINT + 100::INTEGER, 10000000000000000000::HUGEINT + 100::BIGINT; diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_bitwise.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_bitwise.test index 9a3fafe2..e201fbe4 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_bitwise.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_bitwise.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_bitwise.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1::HUGEINT << 3 diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_cast_from_floating_bounds.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_cast_from_floating_bounds.test new file mode 100644 index 00000000..6733b906 --- /dev/null +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_cast_from_floating_bounds.test @@ -0,0 +1,152 @@ +# source: test/sql/types/hugeint/test_hugeint_cast_from_floating_bounds.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CAST(-1.7014118346046923e38::DOUBLE AS HUGEINT), + TRY_CAST(-1.7014118346046923e38::DOUBLE AS HUGEINT), + CAST('-1.7014118346046923e38'::FLOAT AS HUGEINT), + TRY_CAST('-1.7014118346046923e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST('-170141183460469231731687303715884105728'::HUGEINT::DOUBLE AS HUGEINT) = '-170141183460469231731687303715884105728'::HUGEINT +-- +ok +== +SELECT CAST(-9223372036854775808::DOUBLE AS BIGINT), CAST(-2147483648::DOUBLE AS INTEGER) +-- +ok +== +SELECT CAST(-1.7014118346046921e38::DOUBLE AS HUGEINT), CAST('-1.7014117331926443e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST(-1.7014118346046927e38::DOUBLE AS HUGEINT) +-- +ok +== +SELECT CAST('-1.7014120374287884e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT TRY_CAST(-1.7014118346046927e38::DOUBLE AS HUGEINT), TRY_CAST('-1.7014120374287884e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST(1.7014118346046923e38::DOUBLE AS HUGEINT) +-- +ok +== +SELECT CAST('1.7014118346046923e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT TRY_CAST(1.7014118346046923e38::DOUBLE AS HUGEINT), TRY_CAST('1.7014118346046923e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST(1.7014118346046921e38::DOUBLE AS HUGEINT), CAST('1.7014117331926443e38'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST(1.7014118346046923e38::DOUBLE AS UHUGEINT), CAST('1.7014118346046923e38'::FLOAT AS UHUGEINT), + CAST(1.7014118346046921e38::DOUBLE AS UHUGEINT) +-- +ok +== +SELECT CAST(3.4028236692093843e38::DOUBLE AS UHUGEINT), CAST('3.4028234663852886e38'::FLOAT AS UHUGEINT) +-- +ok +== +SELECT CAST(3.402823669209385e38::DOUBLE AS UHUGEINT) +-- +ok +== +SELECT TRY_CAST(3.402823669209385e38::DOUBLE AS UHUGEINT) +-- +ok +== +SELECT CAST(-0.0::DOUBLE AS UHUGEINT), CAST(0.0::DOUBLE AS UHUGEINT), CAST(-0.5::DOUBLE AS UHUGEINT), CAST('-0.5'::FLOAT AS UHUGEINT) +-- +ok +== +SELECT TRY_CAST(-0.5000000000000001::DOUBLE AS UHUGEINT), TRY_CAST('-0.50000006'::FLOAT AS UHUGEINT) +-- +ok +== +SELECT CAST(-0.5000000000000001::DOUBLE AS UHUGEINT) +-- +ok +== +SELECT CAST('-0.50000006'::FLOAT AS UHUGEINT) +-- +ok +== +SELECT CAST('0.0'::FLOAT AS UHUGEINT), CAST('-0.0'::FLOAT AS UHUGEINT) +-- +ok +== +SELECT CAST(-0.0::DOUBLE AS HUGEINT), CAST(0.0::DOUBLE AS HUGEINT), CAST('-0.0'::FLOAT AS HUGEINT), CAST('0.0'::FLOAT AS HUGEINT) +-- +ok +== +SELECT CAST('{value}'::{type} AS {target}) +-- +error: Parser Error: syntax error at or near "{" +== +SELECT TRY_CAST('{value}'::{type} AS {target}) +-- +error: Parser Error: syntax error at or near "{" +== +CREATE TABLE doubles AS SELECT * FROM (VALUES + (1, -1.7014118346046923e38::DOUBLE), + (2, NULL), + (3, -1.7014118346046927e38::DOUBLE), + (4, -0.0::DOUBLE), + (5, 1.7014118346046921e38::DOUBLE), + (6, NULL), + (7, 1.7014118346046923e38::DOUBLE), + (8, 'nan'::DOUBLE) +) t(id, d); +-- +ok +== +SELECT id, TRY_CAST(d AS HUGEINT), TRY_CAST(d::FLOAT AS HUGEINT) FROM doubles ORDER BY id +-- +ok +== +SELECT id, CAST(d AS HUGEINT) FROM doubles WHERE id IN (1, 2, 4, 5) ORDER BY id +-- +ok +== +SELECT CAST(d AS HUGEINT) FROM doubles +-- +ok +== +SELECT i, fill(x) OVER (ORDER BY i) +FROM (VALUES (1, 0::HUGEINT), (2, '-85070591730234615865843651857942052864'::HUGEINT), (3, NULL)) t(i, x) +ORDER BY i +-- +ok +== +SELECT i, fill(x) OVER (ORDER BY i) +FROM (VALUES + (0::BIGINT, '-170141183460469231731687303715884105728'::HUGEINT), + (1, NULL), + (4611686018427387904, '170141183460469231731687303715884105727'::HUGEINT) +) t(i, x) +ORDER BY i +-- +ok +== +SELECT i, fill(x) OVER (ORDER BY i) +FROM (VALUES + (0::BIGINT, -1::HUGEINT), + (18014398509481983, NULL), + (18014398509481984, '-170141183460469231731687303715884105728'::HUGEINT) +) t(i, x) +ORDER BY i +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_conversion.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_conversion.test index 7b9a4de6..d6d03574 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_conversion.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '7'::HUGEINT, '130'::HUGEINT, '924829852'::HUGEINT diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_exponent.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_exponent.test index c0b78121..14ca1ceb 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_exponent.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_exponent.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_exponent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '170141183460469231731687303715884105700e0'::hugeint diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_functions.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_functions.test index a2b6223c..ccb3abeb 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_functions.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_functions.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select abs(1::HUGEINT), abs('-1329227995784915872903807060280344576'::HUGEINT), abs(0::HUGEINT) diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_null_value.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_null_value.test index 6ec561ea..7abccb70 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_null_value.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_null_value.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_null_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL::HUGEINT diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_ops.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_ops.test index ad68f3a2..7eaf9f58 100644 --- a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_ops.test +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_ops.test @@ -1,6 +1,6 @@ # source: test/sql/types/hugeint/test_hugeint_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(h HUGEINT); diff --git a/parser/testdata/corpus/sql/types/hugeint/test_hugeint_to_floating_rounding.test b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_to_floating_rounding.test new file mode 100644 index 00000000..dff00c21 --- /dev/null +++ b/parser/testdata/corpus/sql/types/hugeint/test_hugeint_to_floating_rounding.test @@ -0,0 +1,124 @@ +# source: test/sql/types/hugeint/test_hugeint_to_floating_rounding.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CAST(CAST('-18014398509481987' AS DECIMAL(38,0)) AS DOUBLE)::VARCHAR, + CAST(CAST('-18014398509481987' AS HUGEINT) AS DOUBLE)::VARCHAR +-- +ok +== +SELECT '85070591730234625310576617597232480257'::HUGEINT::DOUBLE::VARCHAR, + '85070591730234615884290395931651604481'::HUGEINT::DOUBLE::VARCHAR +-- +ok +== +CREATE TABLE signed_cases AS +SELECT i, v::HUGEINT AS v +FROM (VALUES + (1, '-9007199254740994'), + (2, '9223372036854775807'), + (3, '9223372036854775809'), + (4, '-9223372036854775809'), + (5, '18446744073709551615'), + (6, '18446744073709551616'), + (7, '18446744073709551617'), + (8, '170141183460469231731687303715884105727'), + (9, '-170141183460469231731687303715884105728'), + (10, '83076749736557251279859978122297345'), + (11, '-83076749736557251279859978122297345'), + (12, '1152921573326323713'), + (13, '99999999999999999999999999999999999999') +) t(i, v); +-- +ok +== +SELECT v, v::DOUBLE::VARCHAR, v::FLOAT::DOUBLE::VARCHAR FROM signed_cases ORDER BY i +-- +ok +== +SELECT v, v::DOUBLE::VARCHAR, v::FLOAT::DOUBLE::VARCHAR +FROM (VALUES + (1, '18446744073709551615'::UHUGEINT), + (2, '18446744073709551617'::UHUGEINT), + (3, '170141183460469231731687303715884105728'::UHUGEINT), + (4, '83076749736557251279859978122297345'::UHUGEINT), + (5, '340282356779733661637539395458142568447'::UHUGEINT), + (6, '340282356779733661637539395458142568448'::UHUGEINT), + (7, '340282366920938463463374607431768211455'::UHUGEINT) +) t(i, v) +ORDER BY i +-- +ok +== +CREATE TABLE decimals AS +SELECT i, v::DECIMAL(38,0) AS d38, TRY_CAST(v AS DECIMAL(19,0)) AS d19 +FROM (VALUES + (1, '-18014398509481987'), + (2, NULL), + (3, '-9007199254740994'), + (4, '1152921573326323713'), + (5, '-9999999999999999999'), + (6, '-83076749736557251279859978122297345') +) t(i, v); +-- +ok +== +SELECT d38::DOUBLE::VARCHAR, d38::FLOAT::DOUBLE::VARCHAR, d19::DOUBLE::VARCHAR, d19::FLOAT::DOUBLE::VARCHAR, + typeof(d19) +FROM decimals ORDER BY i +-- +ok +== +CREATE TABLE near_midpoint AS +SELECT ((m << (b - p)) + (1::HUGEINT << (b - p - 1)) + delta) * sign AS v +FROM (VALUES (53), (24)) t1(p), + LATERAL (VALUES (1::HUGEINT << (p - 1)), ((1::HUGEINT << (p - 1)) + 1), ((1::HUGEINT << p) - 1)) t2(m), + range(26, 128) t3(b), + (VALUES (-1), (0), (1)) t4(delta), + (VALUES (1), (-1)) t5(sign) +WHERE b >= p + 2; +-- +ok +== +SELECT count(*) FROM near_midpoint +-- +ok +== +SELECT count(*) FILTER (v::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (v::FLOAT <> v::VARCHAR::FLOAT), + count(*) FILTER (TRY_CAST(v AS UHUGEINT)::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (TRY_CAST(v AS UHUGEINT)::FLOAT <> v::VARCHAR::FLOAT), + count(*) FILTER (TRY_CAST(v AS DECIMAL(38,0))::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (TRY_CAST(v AS DECIMAL(38,0))::FLOAT <> v::VARCHAR::FLOAT), + count(*) FILTER (TRY_CAST(v AS DECIMAL(19,0))::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (TRY_CAST(v AS DECIMAL(19,0))::FLOAT <> v::VARCHAR::FLOAT), + count(*) FILTER (TRY_CAST(v AS DECIMAL(38,1))::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (TRY_CAST(v AS DECIMAL(38,1))::FLOAT <> v::VARCHAR::FLOAT), + count(*) FILTER (TRY_CAST(v AS BIGINT)::DOUBLE <> v::VARCHAR::DOUBLE), + count(*) FILTER (TRY_CAST(v AS BIGINT)::FLOAT <> v::VARCHAR::FLOAT) +FROM near_midpoint +-- +ok +== +CREATE TABLE near_midpoint_unsigned AS +SELECT (m << (b - p)::UHUGEINT) + (1::UHUGEINT << (b - p - 1)::UHUGEINT) + 1 AS v +FROM (VALUES (53), (24)) t1(p), + LATERAL (VALUES (1::UHUGEINT << (p - 1)::UHUGEINT), ((1::UHUGEINT << (p - 1)::UHUGEINT) + 1), + ((1::UHUGEINT << p::UHUGEINT) - 1)) t2(m), + range(26, 129) t3(b) +WHERE b >= p + 2; +-- +ok +== +SELECT count(*), count(*) FILTER (v::DOUBLE <> v::VARCHAR::DOUBLE), count(*) FILTER (v::FLOAT <> v::VARCHAR::FLOAT) +FROM near_midpoint_unsigned +-- +ok +== +SELECT x, avg(x) OVER (PARTITION BY x)::VARCHAR +FROM (VALUES ('-170141183460469231731687303715884105728'::HUGEINT), ('-18446744073709551616'::HUGEINT)) t(x) +ORDER BY x +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/interval/frac_interval.test b/parser/testdata/corpus/sql/types/interval/frac_interval.test index 33d45d63..367ff81d 100644 --- a/parser/testdata/corpus/sql/types/interval/frac_interval.test +++ b/parser/testdata/corpus/sql/types/interval/frac_interval.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/frac_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select interval '0.00005 MILLENNIUM'; diff --git a/parser/testdata/corpus/sql/types/interval/interval_alias.test b/parser/testdata/corpus/sql/types/interval/interval_alias.test index a209a0da..8b2ab3d0 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_alias.test +++ b/parser/testdata/corpus/sql/types/interval/interval_alias.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_alias.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT alias('5 days'::INTERVAL DAY TO SECOND); diff --git a/parser/testdata/corpus/sql/types/interval/interval_colon_time_overflow.test b/parser/testdata/corpus/sql/types/interval/interval_colon_time_overflow.test index bc5bea3c..cdae81e8 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_colon_time_overflow.test +++ b/parser/testdata/corpus/sql/types/interval/interval_colon_time_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_colon_time_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '9223372036854775807 microseconds 999999999:00:00'::INTERVAL; diff --git a/parser/testdata/corpus/sql/types/interval/interval_constants.test b/parser/testdata/corpus/sql/types/interval/interval_constants.test index 9b92922d..38b0009e 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_constants.test +++ b/parser/testdata/corpus/sql/types/interval/interval_constants.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_constants.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT interval 2 days; diff --git a/parser/testdata/corpus/sql/types/interval/interval_epoch_overflow.test b/parser/testdata/corpus/sql/types/interval/interval_epoch_overflow.test index 88c3ea2e..5911997c 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_epoch_overflow.test +++ b/parser/testdata/corpus/sql/types/interval/interval_epoch_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_epoch_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT epoch_us(INTERVAL '2147483647 months') diff --git a/parser/testdata/corpus/sql/types/interval/interval_multiply_overflow.test b/parser/testdata/corpus/sql/types/interval/interval_multiply_overflow.test index 5a1bccea..9dde8f98 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_multiply_overflow.test +++ b/parser/testdata/corpus/sql/types/interval/interval_multiply_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_multiply_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT INTERVAL '1952257854 days 3 months' * 1.1; diff --git a/parser/testdata/corpus/sql/types/interval/interval_ten_digit_hours.test b/parser/testdata/corpus/sql/types/interval/interval_ten_digit_hours.test index 4f376a29..469621d2 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_ten_digit_hours.test +++ b/parser/testdata/corpus/sql/types/interval/interval_ten_digit_hours.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_ten_digit_hours.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i::VARCHAR, i::VARCHAR::INTERVAL = i FROM (SELECT to_microseconds(3600000000 * 1000000000) AS i) diff --git a/parser/testdata/corpus/sql/types/interval/interval_try_cast.test b/parser/testdata/corpus/sql/types/interval/interval_try_cast.test index 92dc5ebd..17fd1cdb 100644 --- a/parser/testdata/corpus/sql/types/interval/interval_try_cast.test +++ b/parser/testdata/corpus/sql/types/interval/interval_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/interval_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT cast(' ' as interval) diff --git a/parser/testdata/corpus/sql/types/interval/test_interval.test b/parser/testdata/corpus/sql/types/interval/test_interval.test index 4ab2dfa6..351ad3c5 100644 --- a/parser/testdata/corpus/sql/types/interval/test_interval.test +++ b/parser/testdata/corpus/sql/types/interval/test_interval.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/test_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT INTERVAL '2 years' diff --git a/parser/testdata/corpus/sql/types/interval/test_interval_addition.test b/parser/testdata/corpus/sql/types/interval/test_interval_addition.test index 2d837d2b..c6008aab 100644 --- a/parser/testdata/corpus/sql/types/interval/test_interval_addition.test +++ b/parser/testdata/corpus/sql/types/interval/test_interval_addition.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/test_interval_addition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DATE '1992-03-01' + INTERVAL '1' YEAR @@ -248,3 +248,22 @@ SELECT id, lhs - rhs FROM issue1998 ORDER BY 1 -- ok == +CREATE TABLE generated_data_table ( + id BIGINT, + timmestamp_s_col TIMESTAMP_S, + timmestamp_ms_col TIMESTAMP_MS, + timmestamp_us_col TIMESTAMP, +); +-- +ok +== +INSERT INTO generated_data_table +SELECT + seq AS id, + TIMESTAMP_S '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_s_col, + TIMESTAMP_MS '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_ms_col, + TIMESTAMP '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_us_col, +FROM generate_series(1, 100) AS t(seq); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/interval/test_interval_between.test b/parser/testdata/corpus/sql/types/interval/test_interval_between.test index 8e9bb249..febc2e46 100644 --- a/parser/testdata/corpus/sql/types/interval/test_interval_between.test +++ b/parser/testdata/corpus/sql/types/interval/test_interval_between.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/test_interval_between.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH d(y) AS ( diff --git a/parser/testdata/corpus/sql/types/interval/test_interval_comparison.test b/parser/testdata/corpus/sql/types/interval/test_interval_comparison.test index d2438297..f6b050d5 100644 --- a/parser/testdata/corpus/sql/types/interval/test_interval_comparison.test +++ b/parser/testdata/corpus/sql/types/interval/test_interval_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/test_interval_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT INTERVAL '30' DAY > INTERVAL '1' MONTH diff --git a/parser/testdata/corpus/sql/types/interval/test_interval_no_normalize_dedup.test b/parser/testdata/corpus/sql/types/interval/test_interval_no_normalize_dedup.test new file mode 100644 index 00000000..9c9ad966 --- /dev/null +++ b/parser/testdata/corpus/sql/types/interval/test_interval_no_normalize_dedup.test @@ -0,0 +1,49 @@ +# source: test/sql/types/interval/test_interval_no_normalize_dedup.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT DATE '2008-05-17' AS d; +-- +ok +== +SELECT d + INTERVAL 30 DAY AS plus_30_days, d + INTERVAL 1 MONTH AS plus_1_month FROM t; +-- +ok +== +SELECT d + INTERVAL 1 MONTH AS plus_1_month, d + INTERVAL 30 DAY AS plus_30_days FROM t; +-- +ok +== +SELECT max(d + INTERVAL 30 DAY) AS plus_30_days, max(d + INTERVAL 1 MONTH) AS plus_1_month FROM t; +-- +ok +== +SELECT max(d + INTERVAL 1 MONTH) AS plus_1_month, max(d + INTERVAL 30 DAY) AS plus_30_days FROM t; +-- +ok +== +SELECT d + INTERVAL 360 DAY AS plus_360_days, d + INTERVAL 1 YEAR AS plus_1_year FROM t; +-- +ok +== +SELECT d + INTERVAL 1 DAY AS plus_1_day, d + INTERVAL 24 HOUR AS plus_24_hours FROM t; +-- +ok +== +SELECT d + INTERVAL 30 DAY AS a, d + INTERVAL 30 DAY AS b FROM t; +-- +ok +== +SELECT d + INTERVAL 30 DAY AS a, d + INTERVAL '0 months 30 days 00:00:00.000000' AS b FROM t; +-- +ok +== +SELECT 11 WHERE INTERVAL 30 DAY = INTERVAL '1 month'; +-- +ok +== +SELECT (SELECT d + INTERVAL 1 MONTH FROM t), (SELECT d + INTERVAL 30 DAY FROM t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/interval/test_interval_ops.test b/parser/testdata/corpus/sql/types/interval/test_interval_ops.test index 4f0c500f..75249ef2 100644 --- a/parser/testdata/corpus/sql/types/interval/test_interval_ops.test +++ b/parser/testdata/corpus/sql/types/interval/test_interval_ops.test @@ -1,6 +1,6 @@ # source: test/sql/types/interval/test_interval_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM interval i1 JOIN interval i2 USING (t) ORDER BY 1 diff --git a/parser/testdata/corpus/sql/types/list/list_case.test b/parser/testdata/corpus/sql/types/list/list_case.test index 0c351451..8876ced4 100644 --- a/parser/testdata/corpus/sql/types/list/list_case.test +++ b/parser/testdata/corpus/sql/types/list/list_case.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT case when 1=1 then [1] else [2] end diff --git a/parser/testdata/corpus/sql/types/list/list_comparison.test b/parser/testdata/corpus/sql/types/list/list_comparison.test index da309363..9e3a5583 100644 --- a/parser/testdata/corpus/sql/types/list/list_comparison.test +++ b/parser/testdata/corpus/sql/types/list/list_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] < [2] diff --git a/parser/testdata/corpus/sql/types/list/list_concat_null.test b/parser/testdata/corpus/sql/types/list/list_concat_null.test index 0e06e6f2..0261080a 100644 --- a/parser/testdata/corpus/sql/types/list/list_concat_null.test +++ b/parser/testdata/corpus/sql/types/list/list_concat_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_concat_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE table x1 (b INT[]); diff --git a/parser/testdata/corpus/sql/types/list/list_constant_reference.test b/parser/testdata/corpus/sql/types/list/list_constant_reference.test index 42eb5460..2c80b370 100644 --- a/parser/testdata/corpus/sql/types/list/list_constant_reference.test +++ b/parser/testdata/corpus/sql/types/list/list_constant_reference.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_constant_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list(__mark_join_marker ORDER BY id) diff --git a/parser/testdata/corpus/sql/types/list/list_cross_product.test b/parser/testdata/corpus/sql/types/list/list_cross_product.test index 54bf1f0c..7c74cc54 100644 --- a/parser/testdata/corpus/sql/types/list/list_cross_product.test +++ b/parser/testdata/corpus/sql/types/list/list_cross_product.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT * FROM (VALUES (1, [1, 2, 3]), (2, NULL), (3, [NULL, 3, 4])) tbl (a, b); diff --git a/parser/testdata/corpus/sql/types/list/list_distinct.test b/parser/testdata/corpus/sql/types/list/list_distinct.test index 068beeed..9d4062f1 100644 --- a/parser/testdata/corpus/sql/types/list/list_distinct.test +++ b/parser/testdata/corpus/sql/types/list/list_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] IS NOT DISTINCT FROM [2] diff --git a/parser/testdata/corpus/sql/types/list/list_extract_internal_issue2747.test b/parser/testdata/corpus/sql/types/list/list_extract_internal_issue2747.test index 59781238..d7577a2a 100644 --- a/parser/testdata/corpus/sql/types/list/list_extract_internal_issue2747.test +++ b/parser/testdata/corpus/sql/types/list/list_extract_internal_issue2747.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_extract_internal_issue2747.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select string_split(string_agg(NULL, ','), ',')[100] from range(10); diff --git a/parser/testdata/corpus/sql/types/list/list_extract_struct.test b/parser/testdata/corpus/sql/types/list/list_extract_struct.test index 68e364fc..bec8640b 100644 --- a/parser/testdata/corpus/sql/types/list/list_extract_struct.test +++ b/parser/testdata/corpus/sql/types/list/list_extract_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_extract_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT diff --git a/parser/testdata/corpus/sql/types/list/list_index.test b/parser/testdata/corpus/sql/types/list/list_index.test index b9e272d6..8eba2a48 100644 --- a/parser/testdata/corpus/sql/types/list/list_index.test +++ b/parser/testdata/corpus/sql/types/list/list_index.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES (2, NULL), (3, [NULL]), (4, [4, 5, NULL, 6]); diff --git a/parser/testdata/corpus/sql/types/list/list_index_abort_small.test b/parser/testdata/corpus/sql/types/list/list_index_abort_small.test index bffe2834..f93fb460 100644 --- a/parser/testdata/corpus/sql/types/list/list_index_abort_small.test +++ b/parser/testdata/corpus/sql/types/list/list_index_abort_small.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_index_abort_small.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a SELECT i id, NULL c FROM range(2, 2500, 1) tbl(i) diff --git a/parser/testdata/corpus/sql/types/list/list_index_abort_small_nested.test b/parser/testdata/corpus/sql/types/list/list_index_abort_small_nested.test index 9da23674..cf6403db 100644 --- a/parser/testdata/corpus/sql/types/list/list_index_abort_small_nested.test +++ b/parser/testdata/corpus/sql/types/list/list_index_abort_small_nested.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_index_abort_small_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER PRIMARY KEY, c INT[][]); diff --git a/parser/testdata/corpus/sql/types/list/list_indexing.test b/parser/testdata/corpus/sql/types/list/list_indexing.test index e00b290e..3b5c07f6 100644 --- a/parser/testdata/corpus/sql/types/list/list_indexing.test +++ b/parser/testdata/corpus/sql/types/list/list_indexing.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_indexing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (l INTEGER[]); diff --git a/parser/testdata/corpus/sql/types/list/list_null_members.test b/parser/testdata/corpus/sql/types/list/list_null_members.test index dd020f92..a6f81daf 100644 --- a/parser/testdata/corpus/sql/types/list/list_null_members.test +++ b/parser/testdata/corpus/sql/types/list/list_null_members.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_null_members.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW list_int AS diff --git a/parser/testdata/corpus/sql/types/list/list_null_members_small.test b/parser/testdata/corpus/sql/types/list/list_null_members_small.test index 088425ab..7c7290f9 100644 --- a/parser/testdata/corpus/sql/types/list/list_null_members_small.test +++ b/parser/testdata/corpus/sql/types/list/list_null_members_small.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_null_members_small.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW list_int AS diff --git a/parser/testdata/corpus/sql/types/list/list_of_struct.test b/parser/testdata/corpus/sql/types/list/list_of_struct.test index cc4f54ff..5253a636 100644 --- a/parser/testdata/corpus/sql/types/list/list_of_struct.test +++ b/parser/testdata/corpus/sql/types/list/list_of_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_of_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT [{'a': 3, 'b': 'hello'}, NULL, {'a': NULL, 'b': 'thisisalongstring'}] l; diff --git a/parser/testdata/corpus/sql/types/list/list_parse_recursion.test b/parser/testdata/corpus/sql/types/list/list_parse_recursion.test index 9b849c2e..027d943b 100644 --- a/parser/testdata/corpus/sql/types/list/list_parse_recursion.test +++ b/parser/testdata/corpus/sql/types/list/list_parse_recursion.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_parse_recursion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT REPEAT ( '[{"a":' , 100000 )::INT[] diff --git a/parser/testdata/corpus/sql/types/list/list_stats.test b/parser/testdata/corpus/sql/types/list/list_stats.test index 30469dc8..1f60d324 100644 --- a/parser/testdata/corpus/sql/types/list/list_stats.test +++ b/parser/testdata/corpus/sql/types/list/list_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s.child_stats.min, s.child_stats.max FROM (SELECT STATS([3, 4]) s) diff --git a/parser/testdata/corpus/sql/types/list/list_test_many_deletes.test b/parser/testdata/corpus/sql/types/list/list_test_many_deletes.test index 5b0a0e80..45a3f4c9 100644 --- a/parser/testdata/corpus/sql/types/list/list_test_many_deletes.test +++ b/parser/testdata/corpus/sql/types/list/list_test_many_deletes.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_test_many_deletes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE lists(i INT[]) diff --git a/parser/testdata/corpus/sql/types/list/list_to_varchar_cast.test b/parser/testdata/corpus/sql/types/list/list_to_varchar_cast.test index 3171b0bd..b72bfcb8 100644 --- a/parser/testdata/corpus/sql/types/list/list_to_varchar_cast.test +++ b/parser/testdata/corpus/sql/types/list/list_to_varchar_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_to_varchar_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT concat_ws('.', list_reverse(string_split('1.2..3', '.'))); diff --git a/parser/testdata/corpus/sql/types/list/list_update_with_many_matches.test b/parser/testdata/corpus/sql/types/list/list_update_with_many_matches.test index 6ab4085c..324ac378 100644 --- a/parser/testdata/corpus/sql/types/list/list_update_with_many_matches.test +++ b/parser/testdata/corpus/sql/types/list/list_update_with_many_matches.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_update_with_many_matches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table lists(id int, i int[]); diff --git a/parser/testdata/corpus/sql/types/list/list_updates.test b/parser/testdata/corpus/sql/types/list/list_updates.test index 4791eb3c..5611b67b 100644 --- a/parser/testdata/corpus/sql/types/list/list_updates.test +++ b/parser/testdata/corpus/sql/types/list/list_updates.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER, b INTEGER[]); diff --git a/parser/testdata/corpus/sql/types/list/list_updates_varchar.test b/parser/testdata/corpus/sql/types/list/list_updates_varchar.test index b2068ac6..f562c16a 100644 --- a/parser/testdata/corpus/sql/types/list/list_updates_varchar.test +++ b/parser/testdata/corpus/sql/types/list/list_updates_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/list_updates_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER, b VARCHAR[]); diff --git a/parser/testdata/corpus/sql/types/list/mix_numeric_types.test b/parser/testdata/corpus/sql/types/list/mix_numeric_types.test index 2a19d6b2..4ebbc22f 100644 --- a/parser/testdata/corpus/sql/types/list/mix_numeric_types.test +++ b/parser/testdata/corpus/sql/types/list/mix_numeric_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/mix_numeric_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select [100::UTINYINT, 10000::SMALLINT]; diff --git a/parser/testdata/corpus/sql/types/list/nested_comparison_validity.test b/parser/testdata/corpus/sql/types/list/nested_comparison_validity.test index 90453649..a34488c3 100644 --- a/parser/testdata/corpus/sql/types/list/nested_comparison_validity.test +++ b/parser/testdata/corpus/sql/types/list/nested_comparison_validity.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/nested_comparison_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id,x=y,x<>y FROM (VALUES (1,[1,NULL],[0,NULL]),(2,[2,NULL],[2,NULL])) t(id,x,y) ORDER BY id; diff --git a/parser/testdata/corpus/sql/types/list/nested_list_extract.test b/parser/testdata/corpus/sql/types/list/nested_list_extract.test index 71f932fd..98b1327e 100644 --- a/parser/testdata/corpus/sql/types/list/nested_list_extract.test +++ b/parser/testdata/corpus/sql/types/list/nested_list_extract.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/nested_list_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER, b INTEGER[][]); diff --git a/parser/testdata/corpus/sql/types/list/nested_list_slice.test b/parser/testdata/corpus/sql/types/list/nested_list_slice.test index 1eb1a93f..57452cc8 100644 --- a/parser/testdata/corpus/sql/types/list/nested_list_slice.test +++ b/parser/testdata/corpus/sql/types/list/nested_list_slice.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/nested_list_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id, b[0:1] FROM a ORDER BY id diff --git a/parser/testdata/corpus/sql/types/list/nested_list_updates.test b/parser/testdata/corpus/sql/types/list/nested_list_updates.test index 1f82ad58..d319a3c1 100644 --- a/parser/testdata/corpus/sql/types/list/nested_list_updates.test +++ b/parser/testdata/corpus/sql/types/list/nested_list_updates.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/nested_list_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE a SET b=[[7, 8, 9], [10, 11]] WHERE b IS NULL diff --git a/parser/testdata/corpus/sql/types/list/recursive_unnest.test b/parser/testdata/corpus/sql/types/list/recursive_unnest.test index ba1c2c78..d2dedcca 100644 --- a/parser/testdata/corpus/sql/types/list/recursive_unnest.test +++ b/parser/testdata/corpus/sql/types/list/recursive_unnest.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/recursive_unnest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT UNNEST([[1, 2, 3]], recursive := true) diff --git a/parser/testdata/corpus/sql/types/list/unnest_aggregate.test b/parser/testdata/corpus/sql/types/list/unnest_aggregate.test index 9350d3d3..faa9fc26 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_aggregate.test +++ b/parser/testdata/corpus/sql/types/list/unnest_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(a) FROM UNNEST(RANGE(1, 11)) t(a); diff --git a/parser/testdata/corpus/sql/types/list/unnest_array.test b/parser/testdata/corpus/sql/types/list/unnest_array.test index e018db8b..46327517 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_array.test +++ b/parser/testdata/corpus/sql/types/list/unnest_array.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT unnest([[1, 2], [3, 4]]::int[][], recursive:=true) diff --git a/parser/testdata/corpus/sql/types/list/unnest_complex_types.test b/parser/testdata/corpus/sql/types/list/unnest_complex_types.test index 5bd16896..e8626bcb 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_complex_types.test +++ b/parser/testdata/corpus/sql/types/list/unnest_complex_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_complex_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT id, UNNEST(i), UNNEST(j) FROM (VALUES (3, ['hello', NULL, 'world'], [NULL])) tbl(id, i, j) diff --git a/parser/testdata/corpus/sql/types/list/unnest_expand.test b/parser/testdata/corpus/sql/types/list/unnest_expand.test index 93902121..c23aba99 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_expand.test +++ b/parser/testdata/corpus/sql/types/list/unnest_expand.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_expand.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (str VARCHAR, str_list VARCHAR[]); diff --git a/parser/testdata/corpus/sql/types/list/unnest_group_by.test b/parser/testdata/corpus/sql/types/list/unnest_group_by.test index b3e11f4b..eafc3622 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_group_by.test +++ b/parser/testdata/corpus/sql/types/list/unnest_group_by.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_group_by.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT unnest(['a', 'b']) AS tag, count(*) FROM range(1) GROUP BY tag ORDER BY tag diff --git a/parser/testdata/corpus/sql/types/list/unnest_having_qualify.test b/parser/testdata/corpus/sql/types/list/unnest_having_qualify.test index 5fdfe3d5..cd822a1b 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_having_qualify.test +++ b/parser/testdata/corpus/sql/types/list/unnest_having_qualify.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_having_qualify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 42 having unnest([1,2,3]); diff --git a/parser/testdata/corpus/sql/types/list/unnest_non_constant_options.test b/parser/testdata/corpus/sql/types/list/unnest_non_constant_options.test index 6252d1a7..32be843d 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_non_constant_options.test +++ b/parser/testdata/corpus/sql/types/list/unnest_non_constant_options.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_non_constant_options.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT UNNEST([[1,2]], max_depth := unnest([2])); diff --git a/parser/testdata/corpus/sql/types/list/unnest_null_empty.test b/parser/testdata/corpus/sql/types/list/unnest_null_empty.test index dc09d2f6..77045ca5 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_null_empty.test +++ b/parser/testdata/corpus/sql/types/list/unnest_null_empty.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_null_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE people(id INTEGER, name VARCHAR, address VARCHAR[]); diff --git a/parser/testdata/corpus/sql/types/list/unnest_table_function.test b/parser/testdata/corpus/sql/types/list/unnest_table_function.test index f69ae399..21ed210b 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_table_function.test +++ b/parser/testdata/corpus/sql/types/list/unnest_table_function.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_table_function.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM UNNEST(ARRAY[1, 2, 3]); diff --git a/parser/testdata/corpus/sql/types/list/unnest_types.test b/parser/testdata/corpus/sql/types/list/unnest_types.test index 66f8be90..2a51076a 100644 --- a/parser/testdata/corpus/sql/types/list/unnest_types.test +++ b/parser/testdata/corpus/sql/types/list/unnest_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/list/unnest_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a as select list(i::{type}) AS l from range(1, 6, 1) t1(i) diff --git a/parser/testdata/corpus/sql/types/map/map_cast.test b/parser/testdata/corpus/sql/types/map/map_cast.test index e98bdbb5..f4c3dae9 100644 --- a/parser/testdata/corpus/sql/types/map/map_cast.test +++ b/parser/testdata/corpus/sql/types/map/map_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP(['a', 'b', 'c'], [1, 2, NULL])::MAP(VARCHAR, VARCHAR) diff --git a/parser/testdata/corpus/sql/types/map/map_const_and_col_combination.test b/parser/testdata/corpus/sql/types/map/map_const_and_col_combination.test index 80bc4888..3a3cd174 100644 --- a/parser/testdata/corpus/sql/types/map/map_const_and_col_combination.test +++ b/parser/testdata/corpus/sql/types/map/map_const_and_col_combination.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_const_and_col_combination.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ints (i INT); diff --git a/parser/testdata/corpus/sql/types/map/map_empty.test b/parser/testdata/corpus/sql/types/map/map_empty.test index ce4e7e98..145f6a5c 100644 --- a/parser/testdata/corpus/sql/types/map/map_empty.test +++ b/parser/testdata/corpus/sql/types/map/map_empty.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT MAP { * : ? IN ( SELECT TRUE ) } ; diff --git a/parser/testdata/corpus/sql/types/map/map_extract_nested_null.test b/parser/testdata/corpus/sql/types/map/map_extract_nested_null.test index c8b3efb9..a578da8f 100644 --- a/parser/testdata/corpus/sql/types/map/map_extract_nested_null.test +++ b/parser/testdata/corpus/sql/types/map/map_extract_nested_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_extract_nested_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test(id int, attr MAP(VARCHAR, UNION(i INT, s VARCHAR))); diff --git a/parser/testdata/corpus/sql/types/map/map_keys_outer_join_null.test b/parser/testdata/corpus/sql/types/map/map_keys_outer_join_null.test index d4547413..df3c96c9 100644 --- a/parser/testdata/corpus/sql/types/map/map_keys_outer_join_null.test +++ b/parser/testdata/corpus/sql/types/map/map_keys_outer_join_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_keys_outer_join_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a AS SELECT i FROM range(5000) r(i); diff --git a/parser/testdata/corpus/sql/types/map/map_null.test b/parser/testdata/corpus/sql/types/map/map_null.test index 74a76746..ddf4e72d 100644 --- a/parser/testdata/corpus/sql/types/map/map_null.test +++ b/parser/testdata/corpus/sql/types/map/map_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/map/map_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select map(NULL::INT[], [1,2,3]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_aggregate.test b/parser/testdata/corpus/sql/types/nested/array/array_aggregate.test index 96aff3ec..4b174682 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_aggregate.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (a INT[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_case.test b/parser/testdata/corpus/sql/types/nested/array/array_case.test index 2fd1b48a..8dc3746f 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_case.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_case.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CASE WHEN i % 3 = 0 THEN NULL ELSE [i]::INT[1] END FROM range(5) t(i); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_cast.test b/parser/testdata/corpus/sql/types/nested/array/array_cast.test index d636885b..11ebde75 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_cast.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_value(1, 2, 3)::VARCHAR diff --git a/parser/testdata/corpus/sql/types/nested/array/array_coverage.test b/parser/testdata/corpus/sql/types/nested/array/array_coverage.test index 9f8d5e47..6c02805e 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_coverage.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DISTINCT array_value(array_value(1, 2, 3), array_value(4,5,6)); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_fuzzer_failures.test b/parser/testdata/corpus/sql/types/nested/array/array_fuzzer_failures.test index 76c59796..724dcd43 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_fuzzer_failures.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_fuzzer_failures.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_fuzzer_failures.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE array_tbl(c50 INTEGER[2][]);; diff --git a/parser/testdata/corpus/sql/types/nested/array/array_invalid.test b/parser/testdata/corpus/sql/types/nested/array/array_invalid.test index bc99c6c2..5af4fa9c 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_invalid.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_invalid.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_invalid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(a INT, b INT[0]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_join_gather.test b/parser/testdata/corpus/sql/types/nested/array/array_join_gather.test new file mode 100644 index 00000000..d2797e25 --- /dev/null +++ b/parser/testdata/corpus/sql/types/nested/array/array_join_gather.test @@ -0,0 +1,61 @@ +# source: test/sql/types/nested/array/array_join_gather.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT * FROM (VALUES ([0, 9]::BIGINT[2]), ([1, 8]), ([5, 2])) v(x); +-- +ok +== +CREATE TABLE s AS SELECT * FROM (VALUES ([0, 9]::BIGINT[2]), ([5, 2])) v(x); +-- +ok +== +SELECT t.x, s.x FROM t LEFT JOIN s ON s.x = t.x ORDER BY t.x +-- +ok +== +SELECT t.x, s.x FROM s RIGHT JOIN t ON s.x = t.x ORDER BY t.x +-- +ok +== +CREATE TABLE big_t AS SELECT i, [i, i + 1, i + 2]::BIGINT[3] x FROM range(100000) r(i); +-- +ok +== +CREATE TABLE big_s AS SELECT [i, i + 1, i + 2]::BIGINT[3] x, i::VARCHAR || 'nnnnnnnn' AS str FROM range(0, 100000, 3) r(i); +-- +ok +== +SELECT count(*), count(big_s.x), count(*) FILTER (WHERE big_s.x <> big_t.x) FROM big_t LEFT JOIN big_s ON big_s.x = big_t.x +-- +ok +== +CREATE TABLE nested_t AS SELECT i, {'a': [i, i + 1]::BIGINT[2], 'b': i} s, [[i, i]::BIGINT[2]] l FROM range(10000) r(i); +-- +ok +== +CREATE TABLE nested_s AS SELECT i, {'a': [i, i + 1]::BIGINT[2], 'b': i} s, [[i, i]::BIGINT[2]] l FROM range(0, 10000, 3) r(i); +-- +ok +== +SELECT count(nested_s.i), count(*) FILTER (WHERE nested_s.s <> nested_t.s OR nested_s.l <> nested_t.l) FROM nested_t LEFT JOIN nested_s ON nested_s.i = nested_t.i +-- +ok +== +SELECT count(sub), count(*) FILTER (WHERE i % 3 = 0 AND sub IS DISTINCT FROM x) FROM (SELECT i, x, (SELECT x FROM big_s WHERE big_s.x = big_t.x) sub FROM big_t) +-- +ok +== +CREATE TABLE prefix_t AS SELECT i FROM range(10) r(i); +-- +ok +== +CREATE TABLE prefix_s AS SELECT i, {'a': [i, i + 1]::BIGINT[2], 'b': i} s FROM range(2) r(i); +-- +ok +== +SELECT prefix_t.i, prefix_s.s FROM prefix_t LEFT JOIN prefix_s ON prefix_s.i = prefix_t.i ORDER BY prefix_t.i +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/nested/array/array_joins.test b/parser/testdata/corpus/sql/types/nested/array/array_joins.test index 05e6ef57..747c461a 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_joins.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_joins.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_joins.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(i INTEGER, a INTEGER[3]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_joins_2.test b/parser/testdata/corpus/sql/types/nested/array/array_joins_2.test index 2f577351..91fc4dd7 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_joins_2.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_joins_2.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_joins_2.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_array (c1 int[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_large.test b/parser/testdata/corpus/sql/types/nested/array/array_large.test index fca84673..52d75395 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_large.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_large.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_large.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (a INT[4096]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_lateral_unnest.test b/parser/testdata/corpus/sql/types/nested/array/array_lateral_unnest.test index 635c700d..6bef431b 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_lateral_unnest.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_lateral_unnest.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_lateral_unnest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE m(id INT, fixed INT[2]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_limit_offset.test b/parser/testdata/corpus/sql/types/nested/array/array_limit_offset.test index 9819ed35..3d3dbf6e 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_limit_offset.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_limit_offset.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_limit_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl1 VALUES ([1, 2, 3]), ([4, NULL, 6]), ([7, 8, 9]), (NULL), ([10, 11, 12]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_list_agg.test b/parser/testdata/corpus/sql/types/nested/array/array_list_agg.test index 37b20dfb..f409dd3a 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_list_agg.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_list_agg.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_list_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE arrays (a INTEGER[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_list_aggregate.test b/parser/testdata/corpus/sql/types/nested/array/array_list_aggregate.test index 1c2f0aeb..6ddfceb2 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_list_aggregate.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_list_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_list_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (a INT, b INT, c INT); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_misc.test b/parser/testdata/corpus/sql/types/nested/array/array_misc.test index e06b135c..05e22489 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_misc.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_misc.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_misc.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE arrays (a INTEGER[3]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_csv.test b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_csv.test index 0c178fcd..cf9ff7a5 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_csv.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_csv.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_roundtrip_csv.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE arrays2 (a INTEGER[3]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_json.test b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_json.test index 2828c2d8..3ad2bbc5 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_json.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_json.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_roundtrip_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a::JSON FROM arrays diff --git a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_parquet.test b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_parquet.test index 081d240f..863f2439 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_parquet.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_roundtrip_parquet.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_roundtrip_parquet.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit COPY (SELECT [range, range + 1, range + 2] a FROM range(3)) TO '{TEST_DIR}/arrays_parquet_test.parquet' diff --git a/parser/testdata/corpus/sql/types/nested/array/array_rowgroup.test b/parser/testdata/corpus/sql/types/nested/array/array_rowgroup.test index 3e23be0f..8f85cd0e 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_rowgroup.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_rowgroup.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_rowgroup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table arrays(id int primary key, a int[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_simple.test b/parser/testdata/corpus/sql/types/nested/array/array_simple.test index 1c5e19f4..addbbe5f 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_simple.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_simple.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_simple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT array_value(1, 2, 3); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_statistics.test b/parser/testdata/corpus/sql/types/nested/array/array_statistics.test index fa97d65e..e41e99e9 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_statistics.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_statistics.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_statistics.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s.child_stats.min, s.child_stats.max, s.has_no_null, s.has_null FROM (SELECT STATS(array_value(1,2)) s) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_storage_3.test b/parser/testdata/corpus/sql/types/nested/array/array_storage_3.test index 9799550b..8cab1822 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_storage_3.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_storage_3.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_storage_3.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma preserve_insertion_order=true diff --git a/parser/testdata/corpus/sql/types/nested/array/array_summarize.test b/parser/testdata/corpus/sql/types/nested/array/array_summarize.test index 92641fa2..5b3c354f 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_summarize.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_summarize.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_summarize.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SUMMARIZE arrays diff --git a/parser/testdata/corpus/sql/types/nested/array/array_try_cast.test b/parser/testdata/corpus/sql/types/nested/array/array_try_cast.test index 2e236257..791b9a22 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_try_cast.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST(array_value(1,2) as INTEGER[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_try_cast_vector_types.test b/parser/testdata/corpus/sql/types/nested/array/array_try_cast_vector_types.test index e194b130..f34b5b6c 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_try_cast_vector_types.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_try_cast_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_try_cast_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST(test_vector AS INT[2]) AS a FROM test_vector_types(NULL::INTEGER[]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_tupleformat.test b/parser/testdata/corpus/sql/types/nested/array/array_tupleformat.test index 9a878ff2..76fa8c41 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_tupleformat.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_tupleformat.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_tupleformat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (i VARCHAR[3]) diff --git a/parser/testdata/corpus/sql/types/nested/array/array_unnest.test b/parser/testdata/corpus/sql/types/nested/array/array_unnest.test index 426edbc8..0492e918 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_unnest.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_unnest.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_unnest.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT UNNEST(array_value(1, 2, NULL, 4, 5)); diff --git a/parser/testdata/corpus/sql/types/nested/array/array_value_comparison.test b/parser/testdata/corpus/sql/types/nested/array/array_value_comparison.test index a714c99a..d901d7ba 100644 --- a/parser/testdata/corpus/sql/types/nested/array/array_value_comparison.test +++ b/parser/testdata/corpus/sql/types/nested/array/array_value_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/array/array_value_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE arr_test (arr INT[3]); diff --git a/parser/testdata/corpus/sql/types/nested/array/tuple_with_array_row_layout.test b/parser/testdata/corpus/sql/types/nested/array/tuple_with_array_row_layout.test new file mode 100644 index 00000000..794c5114 --- /dev/null +++ b/parser/testdata/corpus/sql/types/nested/array/tuple_with_array_row_layout.test @@ -0,0 +1,57 @@ +# source: test/sql/types/nested/array/tuple_with_array_row_layout.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT DISTINCT (1, [1]::INT[1]); +-- +ok +== +CREATE TABLE t AS SELECT range i, [range, range + 1]::INT[2] arr FROM range(3); +-- +ok +== +SELECT count(*) FROM t t1 JOIN t t2 ON row(1, t1.arr) = row(1, t2.arr); +-- +ok +== +SELECT t1.i, row(t2.i, t2.arr) FROM t t1 JOIN t t2 ON t1.i = t2.i ORDER BY t1.i; +-- +ok +== +SELECT (i, arr) g, count(*) FROM t GROUP BY g ORDER BY g; +-- +ok +== +SELECT row(1, arr) FROM t UNION SELECT row(1, arr) FROM t ORDER BY 1; +-- +ok +== +SELECT row(1, arr) FROM t INTERSECT SELECT row(1, arr) FROM t WHERE i > 0 ORDER BY 1; +-- +ok +== +SELECT count(DISTINCT row(1, arr)), first(row(1, arr) ORDER BY i) FROM t; +-- +ok +== +SELECT i, lag(row(1, arr)) OVER (ORDER BY i) FROM t ORDER BY i; +-- +ok +== +SELECT i, count(*) OVER (PARTITION BY row(1, arr)) FROM t ORDER BY i; +-- +ok +== +SELECT list(DISTINCT row(1, arr) ORDER BY row(1, arr)) FROM t; +-- +ok +== +SELECT DISTINCT [row(1, [1, 2]::INT[2])]; +-- +ok +== +SELECT DISTINCT [row('a', [1]::INT[1]), row('b', [2]::INT[1])]::TUPLE(VARCHAR, INT[1])[2]; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/nested/list/any_list.test b/parser/testdata/corpus/sql/types/nested/list/any_list.test index 12b3eac3..7d5a1a08 100644 --- a/parser/testdata/corpus/sql/types/nested/list/any_list.test +++ b/parser/testdata/corpus/sql/types/nested/list/any_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/any_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 1=ALL([1, 2, 3]); diff --git a/parser/testdata/corpus/sql/types/nested/list/array.test b/parser/testdata/corpus/sql/types/nested/list/array.test index bc8f5773..dace61fc 100644 --- a/parser/testdata/corpus/sql/types/nested/list/array.test +++ b/parser/testdata/corpus/sql/types/nested/list/array.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ARRAY[1,2], ARRAY[NULL], ARRAY['hello', 'world'], ARRAY[] diff --git a/parser/testdata/corpus/sql/types/nested/list/array_agg.test b/parser/testdata/corpus/sql/types/nested/list/array_agg.test index c46aedea..1155e8e1 100644 --- a/parser/testdata/corpus/sql/types/nested/list/array_agg.test +++ b/parser/testdata/corpus/sql/types/nested/list/array_agg.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/array_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ARRAY_AGG(NULL), ARRAY_AGG(42) diff --git a/parser/testdata/corpus/sql/types/nested/list/internal_issue_2457.test b/parser/testdata/corpus/sql/types/nested/list/internal_issue_2457.test index 05a3bf69..2358cd78 100644 --- a/parser/testdata/corpus/sql/types/nested/list/internal_issue_2457.test +++ b/parser/testdata/corpus/sql/types/nested/list/internal_issue_2457.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/internal_issue_2457.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE t1 (i INT, l INT[]); diff --git a/parser/testdata/corpus/sql/types/nested/list/list_aggr_parameter.test b/parser/testdata/corpus/sql/types/nested/list/list_aggr_parameter.test index c8f71138..81609863 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_aggr_parameter.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_aggr_parameter.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_aggr_parameter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_aggr(list(i), 'quantile', 0.5) FROM range(1, 11) tbl(i); diff --git a/parser/testdata/corpus/sql/types/nested/list/list_aggregate_dict.test b/parser/testdata/corpus/sql/types/nested/list/list_aggregate_dict.test index 42e392f7..d8edff9b 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_aggregate_dict.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_aggregate_dict.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_aggregate_dict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit pragma force_compression='dictionary'; diff --git a/parser/testdata/corpus/sql/types/nested/list/list_aggregates.test b/parser/testdata/corpus/sql/types/nested/list/list_aggregates.test index 4d166b89..556d2306 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_aggregates.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select min(i::varchar), max(i::varchar) from range(10) tbl(i); diff --git a/parser/testdata/corpus/sql/types/nested/list/list_cast_child_offset.test b/parser/testdata/corpus/sql/types/nested/list/list_cast_child_offset.test index 2bebc51a..ea6243cb 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_cast_child_offset.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_cast_child_offset.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_cast_child_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t(l) AS (VALUES ([['bad'], ['1', '2'], ['3', '4']]), ([['bad'], ['5', '6'], ['7', '8']])) diff --git a/parser/testdata/corpus/sql/types/nested/list/list_comparison_stale_positions.test b/parser/testdata/corpus/sql/types/nested/list/list_comparison_stale_positions.test index 6ee884b4..eb770841 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_comparison_stale_positions.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_comparison_stale_positions.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_comparison_stale_positions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t VALUES ([1, NULL]), ([1, 2]), ([1, NULL, 3]); @@ -15,10 +15,6 @@ SELECT l, l IS DISTINCT FROM [1, NULL, 3] FROM t -- ok == -DELETE FROM t --- -ok -== INSERT INTO t VALUES ([1, NULL, 3]), ([1, NULL]), ([1, 2]), ([1, NULL, 3]) -- ok diff --git a/parser/testdata/corpus/sql/types/nested/list/list_subquery.test b/parser/testdata/corpus/sql/types/nested/list/list_subquery.test index 87962dcf..e6bba55a 100644 --- a/parser/testdata/corpus/sql/types/nested/list/list_subquery.test +++ b/parser/testdata/corpus/sql/types/nested/list/list_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/list_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT [1, 2]) diff --git a/parser/testdata/corpus/sql/types/nested/list/nested_comparison_null_children.test b/parser/testdata/corpus/sql/types/nested/list/nested_comparison_null_children.test index b552f8ba..377c2aca 100644 --- a/parser/testdata/corpus/sql/types/nested/list/nested_comparison_null_children.test +++ b/parser/testdata/corpus/sql/types/nested/list/nested_comparison_null_children.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/nested_comparison_null_children.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE l(a INTEGER[], b INTEGER[]); diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_extract.test b/parser/testdata/corpus/sql/types/nested/list/test_list_extract.test index cf347338..1b1ca636 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_extract.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_extract.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LIST_EXTRACT(NULL, 1) diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_functions_with_null_structs.test b/parser/testdata/corpus/sql/types/nested/list/test_list_functions_with_null_structs.test index 1f51b9a2..e064ce94 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_functions_with_null_structs.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_functions_with_null_structs.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_functions_with_null_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct_data(str STRUCT(val VARCHAR)[]); diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_index.test b/parser/testdata/corpus/sql/types/nested/list/test_list_index.test index 75009b82..141cc36e 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_index.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_index.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a[1] FROM (VALUES (LIST_VALUE())) tbl(a) diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_slice.test b/parser/testdata/corpus/sql/types/nested/list/test_list_slice.test index b994feca..57d04886 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_slice.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_slice.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_slice.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE listdata ( diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_negative_step.test b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_negative_step.test index 000bda32..fc9f97f6 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_negative_step.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_negative_step.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_slice_negative_step.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list_slice([1,2,3,4,5], 1, 3, -1); diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_numeric_limits.test b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_numeric_limits.test index 61979504..38c829c3 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_numeric_limits.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_numeric_limits.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_slice_numeric_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ([1,2,3,4,5,6])[-9223372036854775808:5]; diff --git a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_step.test b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_step.test index bedaaaa6..ca459851 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_list_slice_step.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_list_slice_step.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_list_slice_step.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT ([1,2,3,4,5,6])[-10:-10]; diff --git a/parser/testdata/corpus/sql/types/nested/list/test_nested_list.test b/parser/testdata/corpus/sql/types/nested/list/test_nested_list.test index 2d74a959..74720263 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_nested_list.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_nested_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_nested_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [{'i': 1,'j': [2, 3]}, NULL, {'i': 1, 'j': [2, 3]}]; diff --git a/parser/testdata/corpus/sql/types/nested/list/test_scalar_list.test b/parser/testdata/corpus/sql/types/nested/list/test_scalar_list.test index 84ca3b72..3a73f251 100644 --- a/parser/testdata/corpus/sql/types/nested/list/test_scalar_list.test +++ b/parser/testdata/corpus/sql/types/nested/list/test_scalar_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/list/test_scalar_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT LIST_VALUE('hello') diff --git a/parser/testdata/corpus/sql/types/nested/map/map_error.test b/parser/testdata/corpus/sql/types/nested/map/map_error.test index 47fc1451..eaa1198a 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_error.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_error.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP(list_value(NULL, NULL, NULL, NULL, NULL), list_value(10, 9, 10, 11, 13)) diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column.test index 9a7b5309..f849a0bc 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (list STRUCT(a INT, b VARCHAR)[]); diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column_null_entry.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column_null_entry.test index 9b7dcf04..e79298f2 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column_null_entry.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/column_null_entry.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/column_null_entry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO t1 VALUES (ARRAY[(10, NULL), (7,'g')]) diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/data_types.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/data_types.test index 11314cd2..24786ae4 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/data_types.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/data_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/data_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table string_key as select MAP_FROM_ENTRIES(ARRAY[('a', 'x'), ('b', 'y')]) col; diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/dictionary_vector.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/dictionary_vector.test index a05c0936..4d3b5f94 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/dictionary_vector.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/dictionary_vector.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/dictionary_vector.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 as select diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/empty.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/empty.test index 1d99d137..5c497250 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/empty.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/empty.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/empty.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT map_from_entries(); diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/invalid.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/invalid.test index d3453e7a..660b1fc0 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/invalid.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/invalid.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/invalid.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT map_from_entries(ARRAY[(1,2), (3,4)], ARRAY[(5,6), (7,8)]); diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/nested.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/nested.test index 5d23a6b4..a28ce089 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/nested.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/nested.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP_FROM_ENTRIES(ARRAY[([1,2], 2), ([3,4], 4)]); diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null.test index a2dc4233..1865d094 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP_FROM_ENTRIES(NULL); diff --git a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null_entry.test b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null_entry.test index 82cc2f72..ab0474f5 100644 --- a/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null_entry.test +++ b/parser/testdata/corpus/sql/types/nested/map/map_from_entries/null_entry.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/map_from_entries/null_entry.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP_FROM_ENTRIES(ARRAY[NULL, (1, 'x'), NULL, (2, 'y')]); diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map.test b/parser/testdata/corpus/sql/types/nested/map/test_map.test index 0c9fe090..8d1ec153 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP(list_value(1, 2, 3), list_value(10, 9, 8)) diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_and_lambdas.test b/parser/testdata/corpus/sql/types/nested/map/test_map_and_lambdas.test index 1f6cc146..003a3979 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_and_lambdas.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_and_lambdas.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_and_lambdas.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE i AS SELECT str_split('my yay', ' ') AS l, range AS i FROM range(3); diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_cardinality.test b/parser/testdata/corpus/sql/types/nested/map/test_map_cardinality.test index fcb24d10..3749c706 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_cardinality.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_cardinality.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_cardinality.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select cardinality(NULL) diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_concat.test b/parser/testdata/corpus/sql/types/nested/map/test_map_concat.test index 622d5111..3fac823e 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_concat.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_concat.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_concat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select map_concat(map([3,4,5], ['a', 'b', 'c']), map([1], ['d'])); diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_constant.test b/parser/testdata/corpus/sql/types/nested/map/test_map_constant.test index 16173727..a1124a21 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_constant.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_constant.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_constant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP {}; diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_contains.test b/parser/testdata/corpus/sql/types/nested/map/test_map_contains.test index 31284b49..2b1a1c7b 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_contains.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_contains.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT map_contains_entry(map([1,2,3],[4,5,6]), 2, 5) AS res; diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_entries.test b/parser/testdata/corpus/sql/types/nested/map/test_map_entries.test index 8bec0f50..1b8168ff 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_entries.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_entries.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_entries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select map_entries(MAP()) diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_keys.test b/parser/testdata/corpus/sql/types/nested/map/test_map_keys.test index 0c4e4822..10dbe55c 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_keys.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_keys.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select map_keys(MAP([],[])); diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_nested_keys.test b/parser/testdata/corpus/sql/types/nested/map/test_map_nested_keys.test index cea4e5ca..00fc789c 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_nested_keys.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_nested_keys.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_nested_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MAP( diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript.test b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript.test index 3248755f..0e96a307 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_subscript.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select m[1] from (select MAP(LIST_VALUE(1, 2, 3, 4),LIST_VALUE(10, 9, 8, 7)) as m) as T diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_composite.test b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_composite.test index 64b3bf93..2506a201 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_composite.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_composite.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_subscript_composite.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select m[[2,0]] from (select MAP(LIST_VALUE([0], [1], [2,0], [3]),LIST_VALUE(10, 9, 8, 7)) as m) as T diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_from_column.test b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_from_column.test index 0512e3cd..505fda72 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_from_column.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_from_column.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_subscript_from_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t1 ( diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_vector_types.test b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_vector_types.test index c3882817..e137b0b7 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_vector_types.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_subscript_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT true as equal diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_where.test b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_where.test index 9f8e4c32..58a4879b 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_where.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_subscript_where.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_subscript_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into t1 diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_values.test b/parser/testdata/corpus/sql/types/nested/map/test_map_values.test index a5c38e3c..330f68cd 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_values.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_values.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select map_values(MAP([],[])); diff --git a/parser/testdata/corpus/sql/types/nested/map/test_map_vector_types.test b/parser/testdata/corpus/sql/types/nested/map/test_map_vector_types.test index e712d1a1..332db9d6 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_map_vector_types.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_map_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_map_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create macro input() as table diff --git a/parser/testdata/corpus/sql/types/nested/map/test_null_map_interaction.test b/parser/testdata/corpus/sql/types/nested/map/test_null_map_interaction.test index dc903cf9..bd724fd5 100644 --- a/parser/testdata/corpus/sql/types/nested/map/test_null_map_interaction.test +++ b/parser/testdata/corpus/sql/types/nested/map/test_null_map_interaction.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/map/test_null_map_interaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TYPEOF(MAP_KEYS(NULL::MAP(TEXT, BIGINT))); diff --git a/parser/testdata/corpus/sql/types/nested/nested_constant_comparison.test b/parser/testdata/corpus/sql/types/nested/nested_constant_comparison.test index 830d8bf2..00b5e2b0 100644 --- a/parser/testdata/corpus/sql/types/nested/nested_constant_comparison.test +++ b/parser/testdata/corpus/sql/types/nested/nested_constant_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/nested_constant_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1] IN ([1]), {'a': 1} IN ({'a': 1}), MAP {1: 2} IN (MAP {1: 2}), [1, 2]::INT[2] IN ([1, 2]::INT[2]) diff --git a/parser/testdata/corpus/sql/types/nested/nested_nested_types.test b/parser/testdata/corpus/sql/types/nested/nested_nested_types.test index 3567cceb..86a648c6 100644 --- a/parser/testdata/corpus/sql/types/nested/nested_nested_types.test +++ b/parser/testdata/corpus/sql/types/nested/nested_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/nested_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [{'i':1,'j':[2,3]},NULL] diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates.test b/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates.test index a478beb2..a53d5f38 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select min(struct_pack(i := i, j := i + 2)), max(struct_pack(i := i, j := i + 2)), first(struct_pack(i := i, j := i + 2)) from range(10) tbl(i); diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates_types.test b/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates_types.test index de06a77a..3f9877ac 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates_types.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_aggregates_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_aggregates_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE structs AS SELECT {'i': i::{type}} AS s FROM range(11) tbl(i) diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_dict.test b/parser/testdata/corpus/sql/types/nested/struct/struct_dict.test index 24aa28e3..02369a74 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_dict.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_dict.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_dict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {'i': 1, 'j': 2}; diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_is_null.test b/parser/testdata/corpus/sql/types/nested/struct/struct_is_null.test index 8c463b31..05f2c150 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_is_null.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_is_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_is_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (data struct(str varchar)[]); diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_of_lists_where.test b/parser/testdata/corpus/sql/types/nested/struct/struct_of_lists_where.test index 17adb467..adf20999 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_of_lists_where.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_of_lists_where.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_of_lists_where.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t2 (id int, v_map struct(key integer[], val decimal[]), k integer[]); diff --git a/parser/testdata/corpus/sql/types/nested/struct/struct_subquery.test b/parser/testdata/corpus/sql/types/nested/struct/struct_subquery.test index 75a2dfe8..622c9204 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/struct_subquery.test +++ b/parser/testdata/corpus/sql/types/nested/struct/struct_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/struct_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT {'a': 3}) diff --git a/parser/testdata/corpus/sql/types/nested/struct/test_struct.test b/parser/testdata/corpus/sql/types/nested/struct/test_struct.test index 8064357f..13ee52c0 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/test_struct.test +++ b/parser/testdata/corpus/sql/types/nested/struct/test_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/test_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT e, STRUCT_PACK(e) FROM struct_data ORDER BY e LIMIT 2 diff --git a/parser/testdata/corpus/sql/types/nested/struct/test_struct_keys.test b/parser/testdata/corpus/sql/types/nested/struct/test_struct_keys.test index dce88bf1..fe75b8b8 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/test_struct_keys.test +++ b/parser/testdata/corpus/sql/types/nested/struct/test_struct_keys.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/test_struct_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select struct_keys({a: 1, b: 2, c: 3, d: 4, e: 5}); diff --git a/parser/testdata/corpus/sql/types/nested/struct/test_struct_values.test b/parser/testdata/corpus/sql/types/nested/struct/test_struct_values.test index cb01a15c..127bc92e 100644 --- a/parser/testdata/corpus/sql/types/nested/struct/test_struct_values.test +++ b/parser/testdata/corpus/sql/types/nested/struct/test_struct_values.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/struct/test_struct_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select struct_values({a: 1, b: 'x', c: 3}); diff --git a/parser/testdata/corpus/sql/types/nested/test_deeply_nested_types.test b/parser/testdata/corpus/sql/types/nested/test_deeply_nested_types.test index b42ca920..bb5a7d0f 100644 --- a/parser/testdata/corpus/sql/types/nested/test_deeply_nested_types.test +++ b/parser/testdata/corpus/sql/types/nested/test_deeply_nested_types.test @@ -1,13 +1,13 @@ # source: test/sql/types/nested/test_deeply_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET max_expression_depth = 300000; -- ok == -SELECT list_contains(CAST(NULL AS INTEGER[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]), 1); +SELECT list_contains(CAST(NULL AS INTEGER[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]), NULL); -- ok == @@ -23,7 +23,11 @@ SELECT typeof(CAST(NULL AS INTEGER[][][][][])); -- ok == -SELECT list_contains(CAST(NULL AS VARCHAR[][][][][]), 'abc' COLLATE NOCASE); +SELECT list_contains(CAST(NULL AS VARCHAR[][][][][]), [[[['abc' COLLATE NOCASE]]]]); +-- +ok +== +SELECT list_contains([[[[['ABC']]]]]::VARCHAR[][][][][], [[[['abc' COLLATE NOCASE]]]]); -- ok == diff --git a/parser/testdata/corpus/sql/types/nested/unnest_range_plan.test b/parser/testdata/corpus/sql/types/nested/unnest_range_plan.test index 35ef74b2..068194bf 100644 --- a/parser/testdata/corpus/sql/types/nested/unnest_range_plan.test +++ b/parser/testdata/corpus/sql/types/nested/unnest_range_plan.test @@ -1,6 +1,6 @@ # source: test/sql/types/nested/unnest_range_plan.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * diff --git a/parser/testdata/corpus/sql/types/null/test_boolean_null.test b/parser/testdata/corpus/sql/types/null/test_boolean_null.test index e1e1a754..c09d8746 100644 --- a/parser/testdata/corpus/sql/types/null/test_boolean_null.test +++ b/parser/testdata/corpus/sql/types/null/test_boolean_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/null/test_boolean_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 0 AND 0, 0 AND 1, 1 AND 0, 1 AND 1, NULL AND 0, NULL AND 1, 0 AND NULL, 1 AND NULL, NULL AND NULL diff --git a/parser/testdata/corpus/sql/types/null/test_is_null.test b/parser/testdata/corpus/sql/types/null/test_is_null.test index 8d3fb79b..c33c9a67 100644 --- a/parser/testdata/corpus/sql/types/null/test_is_null.test +++ b/parser/testdata/corpus/sql/types/null/test_is_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/null/test_is_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (11, 1), (NULL, 2), (13, 3) diff --git a/parser/testdata/corpus/sql/types/null/test_null.test b/parser/testdata/corpus/sql/types/null/test_null.test index 6698050e..13ae9137 100644 --- a/parser/testdata/corpus/sql/types/null/test_null.test +++ b/parser/testdata/corpus/sql/types/null/test_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/null/test_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 3 + NULL diff --git a/parser/testdata/corpus/sql/types/null/test_null_aggr.test b/parser/testdata/corpus/sql/types/null/test_null_aggr.test index 2088af0b..9b331188 100644 --- a/parser/testdata/corpus/sql/types/null/test_null_aggr.test +++ b/parser/testdata/corpus/sql/types/null/test_null_aggr.test @@ -1,6 +1,6 @@ # source: test/sql/types/null/test_null_aggr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT SUM(a), MIN(a), MAX(a) FROM test diff --git a/parser/testdata/corpus/sql/types/null/test_null_cast.test b/parser/testdata/corpus/sql/types/null/test_null_cast.test index 258e728a..539642fd 100644 --- a/parser/testdata/corpus/sql/types/null/test_null_cast.test +++ b/parser/testdata/corpus/sql/types/null/test_null_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/null/test_null_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL::BIGINT::VARCHAR::INT[]::ROW(i INTEGER, k INTEGER)::DECIMAL(4,0) diff --git a/parser/testdata/corpus/sql/types/numeric/arithmetic_vector_types.test b/parser/testdata/corpus/sql/types/numeric/arithmetic_vector_types.test index 12617d8c..32a11423 100644 --- a/parser/testdata/corpus/sql/types/numeric/arithmetic_vector_types.test +++ b/parser/testdata/corpus/sql/types/numeric/arithmetic_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/arithmetic_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a + b FROM test_vector_types(NULL::INT, NULL::INT) t(a, b) diff --git a/parser/testdata/corpus/sql/types/numeric/bigint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/bigint_try_cast.test index 1411dafe..de058487 100644 --- a/parser/testdata/corpus/sql/types/numeric/bigint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/bigint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/bigint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bigints AS SELECT i::BIGINT i FROM (VALUES (-9223372036854775808), (0), (9223372036854775807)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/bool_casts.test b/parser/testdata/corpus/sql/types/numeric/bool_casts.test index 4a2ff414..d87edcce 100644 --- a/parser/testdata/corpus/sql/types/numeric/bool_casts.test +++ b/parser/testdata/corpus/sql/types/numeric/bool_casts.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/bool_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE booleans AS SELECT b::BOOLEAN b FROM (VALUES (NULL), (0), (1)) tbl(b) @@ -19,3 +19,7 @@ SELECT b::{type}::VARCHAR FROM booleans -- error: Parser Error: syntax error at or near "{" == +SELECT TRY_CAST(b AS {type})::bool FROM booleans +-- +error: Parser Error: syntax error at or near "{" +== diff --git a/parser/testdata/corpus/sql/types/numeric/combinations/decimal_combinations.test b/parser/testdata/corpus/sql/types/numeric/combinations/decimal_combinations.test index b1e9a7cf..c9c526f9 100644 --- a/parser/testdata/corpus/sql/types/numeric/combinations/decimal_combinations.test +++ b/parser/testdata/corpus/sql/types/numeric/combinations/decimal_combinations.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/combinations/decimal_combinations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tinyint_limits AS SELECT (-128)::TINYINT min, 127::TINYINT max diff --git a/parser/testdata/corpus/sql/types/numeric/combinations/usmallint_combinations.test b/parser/testdata/corpus/sql/types/numeric/combinations/usmallint_combinations.test index d6e9e0b1..45b861d6 100644 --- a/parser/testdata/corpus/sql/types/numeric/combinations/usmallint_combinations.test +++ b/parser/testdata/corpus/sql/types/numeric/combinations/usmallint_combinations.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/combinations/usmallint_combinations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof([100::USMALLINT, 10000::SMALLINT]); diff --git a/parser/testdata/corpus/sql/types/numeric/combinations/utinyint_combinations.test b/parser/testdata/corpus/sql/types/numeric/combinations/utinyint_combinations.test index 9ee549dd..4d60a9b5 100644 --- a/parser/testdata/corpus/sql/types/numeric/combinations/utinyint_combinations.test +++ b/parser/testdata/corpus/sql/types/numeric/combinations/utinyint_combinations.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/combinations/utinyint_combinations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select typeof([100::UTINYINT, 10000::SMALLINT]); diff --git a/parser/testdata/corpus/sql/types/numeric/float_precision.test b/parser/testdata/corpus/sql/types/numeric/float_precision.test index be4c3627..3cc040cc 100644 --- a/parser/testdata/corpus/sql/types/numeric/float_precision.test +++ b/parser/testdata/corpus/sql/types/numeric/float_precision.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/float_precision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(CAST(NULL AS FLOAT)); diff --git a/parser/testdata/corpus/sql/types/numeric/hugeint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/hugeint_try_cast.test index bb557aa5..21da5268 100644 --- a/parser/testdata/corpus/sql/types/numeric/hugeint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/hugeint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/hugeint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints AS SELECT i::HUGEINT i FROM (VALUES (-170141183460469231731687303715884105728), (0), (170141183460469231731687303715884105727)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/integer_try_cast.test b/parser/testdata/corpus/sql/types/numeric/integer_try_cast.test index f23d7704..500e59b3 100644 --- a/parser/testdata/corpus/sql/types/numeric/integer_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/integer_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/integer_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers AS SELECT i::INTEGER i FROM (VALUES (-2147483648), (0), (2147483647)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/smallint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/smallint_try_cast.test index b875634e..c74da628 100644 --- a/parser/testdata/corpus/sql/types/numeric/smallint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/smallint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/smallint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE smallints AS SELECT i::SMALLINT i FROM (VALUES (-32768), (0), (32767)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/test_empty_numeric.test b/parser/testdata/corpus/sql/types/numeric/test_empty_numeric.test index 4f963ffb..bdf9d870 100644 --- a/parser/testdata/corpus/sql/types/numeric/test_empty_numeric.test +++ b/parser/testdata/corpus/sql/types/numeric/test_empty_numeric.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/test_empty_numeric.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE numerics(i NUMERIC(), j NUMERIC) diff --git a/parser/testdata/corpus/sql/types/numeric/tinyint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/tinyint_try_cast.test index 7c4b3243..9918cc93 100644 --- a/parser/testdata/corpus/sql/types/numeric/tinyint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/tinyint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/tinyint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tinyints AS SELECT i::TINYINT i FROM (VALUES (-128), (0), (127)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/ubigint_arithmetic_casting.test b/parser/testdata/corpus/sql/types/numeric/ubigint_arithmetic_casting.test index 6055d1b6..ad3f59b0 100644 --- a/parser/testdata/corpus/sql/types/numeric/ubigint_arithmetic_casting.test +++ b/parser/testdata/corpus/sql/types/numeric/ubigint_arithmetic_casting.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/ubigint_arithmetic_casting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(1::UBIGINT + 1::TINYINT) diff --git a/parser/testdata/corpus/sql/types/numeric/ubigint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/ubigint_try_cast.test index c81ee66d..638e8bd0 100644 --- a/parser/testdata/corpus/sql/types/numeric/ubigint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/ubigint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/ubigint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ubigints AS SELECT i::UBIGINT i FROM (VALUES (0), (18446744073709551615)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/uhugeint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/uhugeint_try_cast.test index e105eae2..61381e05 100644 --- a/parser/testdata/corpus/sql/types/numeric/uhugeint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/uhugeint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/uhugeint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uhugeints AS SELECT i::UHUGEINT i FROM (VALUES (0::UHUGEINT), (1::UHUGEINT), ('340282366920938463463374607431768211455'::UHUGEINT)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/uinteger_try_cast.test b/parser/testdata/corpus/sql/types/numeric/uinteger_try_cast.test index a6cc89a1..cf047e16 100644 --- a/parser/testdata/corpus/sql/types/numeric/uinteger_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/uinteger_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/uinteger_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uintegers AS SELECT i::UINTEGER i FROM (VALUES (0), (4294967295)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/usmallint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/usmallint_try_cast.test index 9cfa08c5..9a1a3d6f 100644 --- a/parser/testdata/corpus/sql/types/numeric/usmallint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/usmallint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/usmallint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE usmallints AS SELECT i::USMALLINT i FROM (VALUES (0), (65535)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/numeric/utinyint_try_cast.test b/parser/testdata/corpus/sql/types/numeric/utinyint_try_cast.test index 39f3da8f..46d646a3 100644 --- a/parser/testdata/corpus/sql/types/numeric/utinyint_try_cast.test +++ b/parser/testdata/corpus/sql/types/numeric/utinyint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/numeric/utinyint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE utinyints AS SELECT i::UTINYINT i FROM (VALUES (0), (255)) tbl(i) diff --git a/parser/testdata/corpus/sql/types/string/test_big_strings.test b/parser/testdata/corpus/sql/types/string/test_big_strings.test index 7622e82d..97d82ee7 100644 --- a/parser/testdata/corpus/sql/types/string/test_big_strings.test +++ b/parser/testdata/corpus/sql/types/string/test_big_strings.test @@ -1,6 +1,6 @@ # source: test/sql/types/string/test_big_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('aaaaaaaaaa') diff --git a/parser/testdata/corpus/sql/types/string/test_unicode.test b/parser/testdata/corpus/sql/types/string/test_unicode.test index cf14f45b..9220ab70 100644 --- a/parser/testdata/corpus/sql/types/string/test_unicode.test +++ b/parser/testdata/corpus/sql/types/string/test_unicode.test @@ -1,6 +1,6 @@ # source: test/sql/types/string/test_unicode.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE emojis(id INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/types/struct/create_qualified_type_array.test b/parser/testdata/corpus/sql/types/struct/create_qualified_type_array.test index edb0bbe7..7a69e59e 100644 --- a/parser/testdata/corpus/sql/types/struct/create_qualified_type_array.test +++ b/parser/testdata/corpus/sql/types/struct/create_qualified_type_array.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/create_qualified_type_array.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create type u as struct (i int, j int); diff --git a/parser/testdata/corpus/sql/types/struct/create_type_struct.test b/parser/testdata/corpus/sql/types/struct/create_type_struct.test index 3068811e..dc0f33a3 100644 --- a/parser/testdata/corpus/sql/types/struct/create_type_struct.test +++ b/parser/testdata/corpus/sql/types/struct/create_type_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/create_type_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE app.item AS STRUCT ( diff --git a/parser/testdata/corpus/sql/types/struct/empty_struct.test b/parser/testdata/corpus/sql/types/struct/empty_struct.test index ede41073..1821ed2f 100644 --- a/parser/testdata/corpus/sql/types/struct/empty_struct.test +++ b/parser/testdata/corpus/sql/types/struct/empty_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/empty_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT row(), struct_pack() diff --git a/parser/testdata/corpus/sql/types/struct/empty_tuple_storage.test b/parser/testdata/corpus/sql/types/struct/empty_tuple_storage.test index c1befe5b..711914d9 100644 --- a/parser/testdata/corpus/sql/types/struct/empty_tuple_storage.test +++ b/parser/testdata/corpus/sql/types/struct/empty_tuple_storage.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/empty_tuple_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT [row()] l, CASE WHEN range % 2 = 0 THEN [row(), row()] END l2 FROM range(3000) diff --git a/parser/testdata/corpus/sql/types/struct/inet_struct_comparison.test b/parser/testdata/corpus/sql/types/struct/inet_struct_comparison.test index a11cf145..2a4967cb 100644 --- a/parser/testdata/corpus/sql/types/struct/inet_struct_comparison.test +++ b/parser/testdata/corpus/sql/types/struct/inet_struct_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/inet_struct_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(c0 INT, c1 INET); diff --git a/parser/testdata/corpus/sql/types/struct/nested_struct_projection_pushdown.test b/parser/testdata/corpus/sql/types/struct/nested_struct_projection_pushdown.test index 3200c51b..0a10bd2c 100644 --- a/parser/testdata/corpus/sql/types/struct/nested_struct_projection_pushdown.test +++ b/parser/testdata/corpus/sql/types/struct/nested_struct_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/nested_struct_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE test_structs( diff --git a/parser/testdata/corpus/sql/types/struct/nested_structs.test b/parser/testdata/corpus/sql/types/struct/nested_structs.test index 82eebb54..bcfb1bdb 100644 --- a/parser/testdata/corpus/sql/types/struct/nested_structs.test +++ b/parser/testdata/corpus/sql/types/struct/nested_structs.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/nested_structs.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(c ROW(i ROW(a INTEGER), j INTEGER)); diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct.test b/parser/testdata/corpus/sql/types/struct/remap_struct.test index 8a41941b..a3bad5b8 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT remap_struct({'i': 1, 'j': 2}, NULL::ROW(v2 INT), NULL, {'v2': NULL::INTEGER}); diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_constant_nested.test b/parser/testdata/corpus/sql/types/struct/remap_struct_constant_nested.test index 935289dd..6f859c54 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct_constant_nested.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_constant_nested.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct_constant_nested.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT remap_struct(struct_pack(id := id, m := MAP {1: 'a', 2: 'b'}), diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_duplicate_source.test b/parser/testdata/corpus/sql/types/struct/remap_struct_duplicate_source.test new file mode 100644 index 00000000..5b42be03 --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_duplicate_source.test @@ -0,0 +1,17 @@ +# source: test/sql/types/struct/remap_struct_duplicate_source.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT remap_struct({a: 1}, NULL::STRUCT(x INT, y BIGINT), {x:'a', y:'a'}, NULL); +-- +ok +== +SELECT remap_struct({a: 1.5::DECIMAL(4,1)}, NULL::STRUCT(x DECIMAL(38,2), y DECIMAL(4,1)), {x:'a', y:'a'}, NULL); +-- +ok +== +SELECT remap_struct({a: 1}, NULL::STRUCT(x INT, y INT), {x:'a', y:'a'}, NULL); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_in_list.test b/parser/testdata/corpus/sql/types/struct/remap_struct_in_list.test index 7b7dacab..039afcfe 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct_in_list.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_in_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct_in_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT remap_struct( diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_in_map.test b/parser/testdata/corpus/sql/types/struct/remap_struct_in_map.test index e4e5a373..6284723e 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct_in_map.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_in_map.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct_in_map.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT remap_struct( diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_list_source_name.test b/parser/testdata/corpus/sql/types/struct/remap_struct_list_source_name.test index d4d8d65b..89bc9174 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct_list_source_name.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_list_source_name.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct_list_source_name.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT remap_struct( diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_mapping_type.test b/parser/testdata/corpus/sql/types/struct/remap_struct_mapping_type.test new file mode 100644 index 00000000..adddf04e --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_mapping_type.test @@ -0,0 +1,17 @@ +# source: test/sql/types/struct/remap_struct_mapping_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT remap_struct({a: 1}, NULL::STRUCT(a INT), ['a'], NULL); +-- +ok +== +SELECT remap_struct({a: 1}, NULL::STRUCT(a INT), MAP {'a': 'a'}, NULL); +-- +ok +== +SELECT remap_struct({a: 1}, NULL::STRUCT(a INT), {a: 'a'}, NULL); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_nested_default.test b/parser/testdata/corpus/sql/types/struct/remap_struct_nested_default.test new file mode 100644 index 00000000..5263a4e1 --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_nested_default.test @@ -0,0 +1,17 @@ +# source: test/sql/types/struct/remap_struct_nested_default.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT remap_struct({a: 1}, NULL::STRUCT(a INT, s STRUCT(p INT, q INT)), {a:'a'}, {s: {q: 7, p: 5}}); +-- +ok +== +SELECT remap_struct(x, NULL::STRUCT(a INT, s STRUCT(p INT, q INT)), {a:'a'}, {s: {q: 7, p: 5}}) FROM (VALUES ({a: 1}), (NULL), ({a: 3})) t(x); +-- +ok +== +SELECT remap_struct({a: 1}, NULL::STRUCT(a INT, s STRUCT(p INT, q VARCHAR)), {a:'a'}, {s: {q: 'hello', p: 5}}); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/remap_struct_size.test b/parser/testdata/corpus/sql/types/struct/remap_struct_size.test index ba0fbeae..068270c8 100644 --- a/parser/testdata/corpus/sql/types/struct/remap_struct_size.test +++ b/parser/testdata/corpus/sql/types/struct/remap_struct_size.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/remap_struct_size.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE src(col1 STRUCT(i INT, j INT)[]); diff --git a/parser/testdata/corpus/sql/types/struct/struct_case.test b/parser/testdata/corpus/sql/types/struct/struct_case.test index 8eea4bea..49a16a6e 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_case.test +++ b/parser/testdata/corpus/sql/types/struct/struct_case.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_case.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CASE WHEN 1=1 THEN {'i': 1} ELSE {'i': 2} END diff --git a/parser/testdata/corpus/sql/types/struct/struct_case_insensitivity.test b/parser/testdata/corpus/sql/types/struct/struct_case_insensitivity.test index 5c84d7e4..58891fed 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_case_insensitivity.test +++ b/parser/testdata/corpus/sql/types/struct/struct_case_insensitivity.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_case_insensitivity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT ({'HELLO': 3}) col; diff --git a/parser/testdata/corpus/sql/types/struct/struct_cast.test b/parser/testdata/corpus/sql/types/struct/struct_cast.test index fa2fbb4e..896c4cd1 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_cast.test +++ b/parser/testdata/corpus/sql/types/struct/struct_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {'i': 1, 'j': 2}::ROW(i BIGINT, j VARCHAR); diff --git a/parser/testdata/corpus/sql/types/struct/struct_cast_parent_path_order.test b/parser/testdata/corpus/sql/types/struct/struct_cast_parent_path_order.test index 5cab5b75..73ea414a 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_cast_parent_path_order.test +++ b/parser/testdata/corpus/sql/types/struct/struct_cast_parent_path_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_cast_parent_path_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cast_parent(n STRUCT(x STRUCT(a INTEGER, b INTEGER))); diff --git a/parser/testdata/corpus/sql/types/struct/struct_cast_superset.test b/parser/testdata/corpus/sql/types/struct/struct_cast_superset.test index f164f889..718525f9 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_cast_superset.test +++ b/parser/testdata/corpus/sql/types/struct/struct_cast_superset.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_cast_superset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (s1 STRUCT(a INT, b INT)); diff --git a/parser/testdata/corpus/sql/types/struct/struct_comparison.test b/parser/testdata/corpus/sql/types/struct/struct_comparison.test index 755190b0..366a6772 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_comparison.test +++ b/parser/testdata/corpus/sql/types/struct/struct_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {'x': 1} < {'x': 2} diff --git a/parser/testdata/corpus/sql/types/struct/struct_concat.test b/parser/testdata/corpus/sql/types/struct/struct_concat.test index f97ef798..09ce0023 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_concat.test +++ b/parser/testdata/corpus/sql/types/struct/struct_concat.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_concat.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_concat({'a': 1}, {'b': NULL}, NULL::STRUCT(k INT), struct_pack( x := 'foobar'));; diff --git a/parser/testdata/corpus/sql/types/struct/struct_contains.test b/parser/testdata/corpus/sql/types/struct/struct_contains.test index a1c20448..66dd56f7 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_contains.test +++ b/parser/testdata/corpus/sql/types/struct/struct_contains.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_contains.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_contains(ROW(1, 2), 2); diff --git a/parser/testdata/corpus/sql/types/struct/struct_contains_types.test b/parser/testdata/corpus/sql/types/struct/struct_contains_types.test index 8302f65f..74fe545d 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_contains_types.test +++ b/parser/testdata/corpus/sql/types/struct/struct_contains_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_contains_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_contains((DATE '1970-01-02', 5), 1), struct_position((DATE '1970-01-02', 5), 1) diff --git a/parser/testdata/corpus/sql/types/struct/struct_cross_product.test b/parser/testdata/corpus/sql/types/struct/struct_cross_product.test index 77acf3b5..e4ec0908 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_cross_product.test +++ b/parser/testdata/corpus/sql/types/struct/struct_cross_product.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_cross_product.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE VIEW v1 AS SELECT * FROM (VALUES (1, {'a': {'a1': 3, 'a2': 7}, 'b': [1, 2, 3]}), (2, NULL), (3, {'a': NULL, 'b': [4, 5, NULL]})) tbl (a, b); diff --git a/parser/testdata/corpus/sql/types/struct/struct_different_names.test b/parser/testdata/corpus/sql/types/struct/struct_different_names.test index bf496c65..5317d771 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_different_names.test +++ b/parser/testdata/corpus/sql/types/struct/struct_different_names.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_different_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE wrong AS FROM (VALUES (ROW(3))); diff --git a/parser/testdata/corpus/sql/types/struct/struct_distinct.test b/parser/testdata/corpus/sql/types/struct/struct_distinct.test index f5a126a3..52b8d206 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_distinct.test +++ b/parser/testdata/corpus/sql/types/struct/struct_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {'x': 1::{type}} IS NOT DISTINCT FROM {'x': 2::{type}} diff --git a/parser/testdata/corpus/sql/types/struct/struct_equality_bug.test b/parser/testdata/corpus/sql/types/struct/struct_equality_bug.test index b66ae9f3..da014c1a 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_equality_bug.test +++ b/parser/testdata/corpus/sql/types/struct/struct_equality_bug.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_equality_bug.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers VALUES (1),(1),(3),(20),(20),(20); diff --git a/parser/testdata/corpus/sql/types/struct/struct_extract_variant.test b/parser/testdata/corpus/sql/types/struct/struct_extract_variant.test new file mode 100644 index 00000000..b9f49c8d --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/struct_extract_variant.test @@ -0,0 +1,37 @@ +# source: test/sql/types/struct/struct_extract_variant.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT struct_extract(1::VARIANT, 'a'); +-- +ok +== +SELECT struct_extract('{"a":1}'::JSON::VARIANT, 'a'); +-- +ok +== +SELECT struct_extract_at(1::VARIANT, 1); +-- +ok +== +SELECT struct_extract_at('{"a":1}'::JSON::VARIANT, 1); +-- +ok +== +SELECT struct_extract(NULL::VARIANT, 'a'); +-- +ok +== +SELECT struct_extract_at(NULL::VARIANT, 1); +-- +ok +== +SELECT variant_extract(1::VARIANT, 'a') IS NULL; +-- +ok +== +SELECT struct_extract({'a': 42}, 'a'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/struct_index.test b/parser/testdata/corpus/sql/types/struct/struct_index.test index 85644997..ebe65caf 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_index.test +++ b/parser/testdata/corpus/sql/types/struct/struct_index.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER PRIMARY KEY, c ROW(i ROW(a INTEGER), j INTEGER)); diff --git a/parser/testdata/corpus/sql/types/struct/struct_key_collation_and_combine.test b/parser/testdata/corpus/sql/types/struct/struct_key_collation_and_combine.test new file mode 100644 index 00000000..5dff5908 --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/struct_key_collation_and_combine.test @@ -0,0 +1,17 @@ +# source: test/sql/types/struct/struct_key_collation_and_combine.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT count(*) FROM (SELECT DISTINCT {'a': x COLLATE NOCASE, 'b': 1} FROM (VALUES ('A'), ('a'), ('b')) t(x)); +-- +ok +== +SELECT count(*) FROM (SELECT DISTINCT {'a': x, 'b': 1} FROM (VALUES ('A'), ('a'), ('b')) t(x)); +-- +ok +== +SELECT typeof([{'a': 1, 'b': 2}, {'c': 3::BIGINT, 'b': 4::BIGINT, 'd': 5}]); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/struct_named_cast.test b/parser/testdata/corpus/sql/types/struct/struct_named_cast.test index e098a1d6..315316e9 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_named_cast.test +++ b/parser/testdata/corpus/sql/types/struct/struct_named_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_named_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {'a': 42, 'b': 84}::STRUCT(b INT, a INT) diff --git a/parser/testdata/corpus/sql/types/struct/struct_null_members.test b/parser/testdata/corpus/sql/types/struct/struct_null_members.test index 7648cbee..988b3750 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_null_members.test +++ b/parser/testdata/corpus/sql/types/struct/struct_null_members.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_null_members.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT lhs.i, rhs.i, diff --git a/parser/testdata/corpus/sql/types/struct/struct_operations.test b/parser/testdata/corpus/sql/types/struct/struct_operations.test index 1678a9ea..8e4e6a3f 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_operations.test +++ b/parser/testdata/corpus/sql/types/struct/struct_operations.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_operations.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(id INTEGER, b ROW(i INTEGER, j INTEGER)); diff --git a/parser/testdata/corpus/sql/types/struct/struct_pack_list.test b/parser/testdata/corpus/sql/types/struct/struct_pack_list.test index 237d8048..1ebf3300 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_pack_list.test +++ b/parser/testdata/corpus/sql/types/struct/struct_pack_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_pack_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT a from (SELECT STRUCT_PACK(a := 42, b := 43) as a) as t diff --git a/parser/testdata/corpus/sql/types/struct/struct_position.test b/parser/testdata/corpus/sql/types/struct/struct_position.test index c8ce98f7..b8bdf90c 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_position.test +++ b/parser/testdata/corpus/sql/types/struct/struct_position.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_position.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_position(ROW(7, 2, 5), 7) diff --git a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown.test b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown.test index 29a974f7..a59b8e55 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown.test +++ b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_projection_pushdown.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE test_structs(id INT, s STRUCT(a integer, b bool)); diff --git a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_in_storage.test b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_in_storage.test index e5b33093..b67f64aa 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_in_storage.test +++ b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_in_storage.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_projection_pushdown_in_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_structs( diff --git a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_optimizer_bug.test b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_optimizer_bug.test index aee6dd8f..0f8a86de 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_optimizer_bug.test +++ b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_optimizer_bug.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_projection_pushdown_optimizer_bug.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl( diff --git a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_unnamed.test b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_unnamed.test index eb46e254..1bf01830 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_unnamed.test +++ b/parser/testdata/corpus/sql/types/struct/struct_projection_pushdown_unnamed.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_projection_pushdown_unnamed.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x[2].k diff --git a/parser/testdata/corpus/sql/types/struct/struct_search_physical_types.test b/parser/testdata/corpus/sql/types/struct/struct_search_physical_types.test index 0bbf14e4..09923c52 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_search_physical_types.test +++ b/parser/testdata/corpus/sql/types/struct/struct_search_physical_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_search_physical_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT struct_contains(row(1::{type}, 2::{type}), 2::{type}); diff --git a/parser/testdata/corpus/sql/types/struct/struct_stats.test b/parser/testdata/corpus/sql/types/struct/struct_stats.test index 8fdf7085..ef8232d9 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_stats.test +++ b/parser/testdata/corpus/sql/types/struct/struct_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s.child_stats.i.min, s.child_stats.j.min FROM (SELECT STATS({'i': 3, 'j': 4}) s) diff --git a/parser/testdata/corpus/sql/types/struct/struct_subquery.test b/parser/testdata/corpus/sql/types/struct/struct_subquery.test index 4803a0a1..edff8917 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_subquery.test +++ b/parser/testdata/corpus/sql/types/struct/struct_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT tbl.a['i'] + tbl.b['j'] FROM (VALUES ({'i': 1, 'j': 2})) tbl(b)) FROM (VALUES ({'i': 1, 'j': 2})) tbl(a); diff --git a/parser/testdata/corpus/sql/types/struct/struct_tables.test b/parser/testdata/corpus/sql/types/struct/struct_tables.test index e3184dd8..ec7f6196 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_tables.test +++ b/parser/testdata/corpus/sql/types/struct/struct_tables.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_tables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a(b ROW(i INTEGER, j INTEGER)); diff --git a/parser/testdata/corpus/sql/types/struct/struct_unnest_recursion.test b/parser/testdata/corpus/sql/types/struct/struct_unnest_recursion.test index 18cf96a5..43360e5e 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_unnest_recursion.test +++ b/parser/testdata/corpus/sql/types/struct/struct_unnest_recursion.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_unnest_recursion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT UNNEST ( ( '1,2,3,4,,6' , ( 1 ) ) ) , x x; diff --git a/parser/testdata/corpus/sql/types/struct/struct_updates.test b/parser/testdata/corpus/sql/types/struct/struct_updates.test index 9ea93d55..fc77852d 100644 --- a/parser/testdata/corpus/sql/types/struct/struct_updates.test +++ b/parser/testdata/corpus/sql/types/struct/struct_updates.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/struct_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO a VALUES ({'i': 1, 'j': 2}); diff --git a/parser/testdata/corpus/sql/types/struct/struct_variant_projection_pushdown.test b/parser/testdata/corpus/sql/types/struct/struct_variant_projection_pushdown.test new file mode 100644 index 00000000..83b7163e --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/struct_variant_projection_pushdown.test @@ -0,0 +1,41 @@ +# source: test/sql/types/struct/struct_variant_projection_pushdown.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT range AS id, {'p': range, 'v': {'k': range * 10, 'n': {'x': range}}::VARIANT} AS s FROM range(3); +-- +ok +== +SELECT id, x.v.k FROM (SELECT id, s AS x FROM t) ORDER BY id; +-- +ok +== +SELECT id, x.v.n.x FROM (SELECT id, s AS x FROM t) ORDER BY id; +-- +ok +== +SELECT id, x.v.k, x.v.n.x FROM (SELECT id, s AS x FROM t) ORDER BY id; +-- +ok +== +SELECT id, x.v, x.v.k FROM (SELECT id, s AS x FROM t WHERE id < 2) ORDER BY id; +-- +ok +== +SELECT id, x.v.k::INTEGER + 1 FROM (SELECT id, s AS x FROM t) ORDER BY id; +-- +ok +== +SELECT id FROM (SELECT id, s AS x FROM t) WHERE x.v.k::INTEGER > 5 ORDER BY id; +-- +ok +== +SELECT id, x.p, x.v.missing FROM (SELECT id, s AS x FROM t WHERE id < 2) ORDER BY id; +-- +ok +== +EXPLAIN SELECT x.v.k FROM (SELECT s AS x FROM t); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/test_tuple.test b/parser/testdata/corpus/sql/types/struct/test_tuple.test index 30313a0f..a3f74890 100644 --- a/parser/testdata/corpus/sql/types/struct/test_tuple.test +++ b/parser/testdata/corpus/sql/types/struct/test_tuple.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/test_tuple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(row(1, 'a')); diff --git a/parser/testdata/corpus/sql/types/struct/tuple_old_storage_attach.test b/parser/testdata/corpus/sql/types/struct/tuple_old_storage_attach.test new file mode 100644 index 00000000..3feb48cd --- /dev/null +++ b/parser/testdata/corpus/sql/types/struct/tuple_old_storage_attach.test @@ -0,0 +1,33 @@ +# source: test/sql/types/struct/tuple_old_storage_attach.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +ATTACH '{TEST_DIR}/tuple_v1_0_0.db' AS old +-- +ok +== +SELECT typeof(a), a FROM old.t ORDER BY ALL +-- +ok +== +SELECT typeof(s), s FROM old.e +-- +ok +== +INSERT INTO old.e VALUES ((2,)) +-- +ok +== +CREATE TABLE old.t2(a TUPLE(INTEGER)) +-- +ok +== +CREATE TABLE old.t2 AS SELECT (1, 2) AS a +-- +ok +== +ALTER TABLE old.e ADD COLUMN b TUPLE(INTEGER) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/struct/unnamed_struct_casts.test b/parser/testdata/corpus/sql/types/struct/unnamed_struct_casts.test index cf098aaf..73a93d82 100644 --- a/parser/testdata/corpus/sql/types/struct/unnamed_struct_casts.test +++ b/parser/testdata/corpus/sql/types/struct/unnamed_struct_casts.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnamed_struct_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select row(42, 'hello') union all select '{'': 42,'': hello}'; diff --git a/parser/testdata/corpus/sql/types/struct/unnamed_struct_comparison.test b/parser/testdata/corpus/sql/types/struct/unnamed_struct_comparison.test index 552bbd5f..dddb9d85 100644 --- a/parser/testdata/corpus/sql/types/struct/unnamed_struct_comparison.test +++ b/parser/testdata/corpus/sql/types/struct/unnamed_struct_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnamed_struct_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select a IS DISTINCT FROM b from VALUES ((NULL, 1, NULL), (5, 6, 7)) t(a, b); diff --git a/parser/testdata/corpus/sql/types/struct/unnamed_struct_mix.test b/parser/testdata/corpus/sql/types/struct/unnamed_struct_mix.test index 0d343c50..7a4a7d78 100644 --- a/parser/testdata/corpus/sql/types/struct/unnamed_struct_mix.test +++ b/parser/testdata/corpus/sql/types/struct/unnamed_struct_mix.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnamed_struct_mix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select [{ t:'abc', len:5 }, ('abc', 2)] diff --git a/parser/testdata/corpus/sql/types/struct/unnamed_struct_to_tuple.test b/parser/testdata/corpus/sql/types/struct/unnamed_struct_to_tuple.test index 182e2caa..3d831b80 100644 --- a/parser/testdata/corpus/sql/types/struct/unnamed_struct_to_tuple.test +++ b/parser/testdata/corpus/sql/types/struct/unnamed_struct_to_tuple.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnamed_struct_to_tuple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT s, m, typeof(s), typeof(m) FROM 'data/parquet-testing/empty_field_names.parquet' ORDER BY ALL diff --git a/parser/testdata/corpus/sql/types/struct/unnest_column_names.test b/parser/testdata/corpus/sql/types/struct/unnest_column_names.test index d5acc7da..9d6b8600 100644 --- a/parser/testdata/corpus/sql/types/struct/unnest_column_names.test +++ b/parser/testdata/corpus/sql/types/struct/unnest_column_names.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnest_column_names.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT unnest([{'a':{ 'aa': 42}, 'b':{'bb': 84}}], recursive := true, keep_parent_names := true); diff --git a/parser/testdata/corpus/sql/types/struct/unnest_struct.test b/parser/testdata/corpus/sql/types/struct/unnest_struct.test index ed36030c..b355daa1 100644 --- a/parser/testdata/corpus/sql/types/struct/unnest_struct.test +++ b/parser/testdata/corpus/sql/types/struct/unnest_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnest_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT UNNEST({'a': 42, 'b': 88}) diff --git a/parser/testdata/corpus/sql/types/struct/unnest_struct_mix.test b/parser/testdata/corpus/sql/types/struct/unnest_struct_mix.test index 8eed76f1..d0ae06cf 100644 --- a/parser/testdata/corpus/sql/types/struct/unnest_struct_mix.test +++ b/parser/testdata/corpus/sql/types/struct/unnest_struct_mix.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnest_struct_mix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl_structs AS SELECT {'a': 1, 'b': 2, 'c': 3} AS s; diff --git a/parser/testdata/corpus/sql/types/struct/unnest_struct_subquery.test b/parser/testdata/corpus/sql/types/struct/unnest_struct_subquery.test index c7b10e6f..debb20c3 100644 --- a/parser/testdata/corpus/sql/types/struct/unnest_struct_subquery.test +++ b/parser/testdata/corpus/sql/types/struct/unnest_struct_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/unnest_struct_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT UNNEST(a).a) FROM (VALUES ({'a': 42, 'b': 88})) t(a); diff --git a/parser/testdata/corpus/sql/types/struct/update_empty_row.test b/parser/testdata/corpus/sql/types/struct/update_empty_row.test index e0ff274c..288b412a 100644 --- a/parser/testdata/corpus/sql/types/struct/update_empty_row.test +++ b/parser/testdata/corpus/sql/types/struct/update_empty_row.test @@ -1,6 +1,6 @@ # source: test/sql/types/struct/update_empty_row.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE t0 SET (c0) = ROW(); diff --git a/parser/testdata/corpus/sql/types/test_date_cast.test b/parser/testdata/corpus/sql/types/test_date_cast.test index f86df9e0..80a07e50 100644 --- a/parser/testdata/corpus/sql/types/test_date_cast.test +++ b/parser/testdata/corpus/sql/types/test_date_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_date_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE df (x VARCHAR, y BIGINT); diff --git a/parser/testdata/corpus/sql/types/test_interval_negation_overflow.test b/parser/testdata/corpus/sql/types/test_interval_negation_overflow.test index 28615d07..a4e78755 100644 --- a/parser/testdata/corpus/sql/types/test_interval_negation_overflow.test +++ b/parser/testdata/corpus/sql/types/test_interval_negation_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_interval_negation_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TIME '12:00:00' - INTERVAL '-4611686018427387904 microseconds -4611686018427387904 microseconds'; diff --git a/parser/testdata/corpus/sql/types/test_null_type.test b/parser/testdata/corpus/sql/types/test_null_type.test index 4514aaba..69a242a8 100644 --- a/parser/testdata/corpus/sql/types/test_null_type.test +++ b/parser/testdata/corpus/sql/types/test_null_type.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_null_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table null_table (i "null") diff --git a/parser/testdata/corpus/sql/types/test_qualified_type_cast.test b/parser/testdata/corpus/sql/types/test_qualified_type_cast.test index 9b58690f..dd8d3191 100644 --- a/parser/testdata/corpus/sql/types/test_qualified_type_cast.test +++ b/parser/testdata/corpus/sql/types/test_qualified_type_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_qualified_type_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 'abc'::text; diff --git a/parser/testdata/corpus/sql/types/test_quotes.test b/parser/testdata/corpus/sql/types/test_quotes.test index 2e73c3bc..ef0f90ad 100644 --- a/parser/testdata/corpus/sql/types/test_quotes.test +++ b/parser/testdata/corpus/sql/types/test_quotes.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_quotes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t_defaults ( diff --git a/parser/testdata/corpus/sql/types/test_typeof.test b/parser/testdata/corpus/sql/types/test_typeof.test index 1f684745..c7897d7c 100644 --- a/parser/testdata/corpus/sql/types/test_typeof.test +++ b/parser/testdata/corpus/sql/types/test_typeof.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_typeof.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(1) diff --git a/parser/testdata/corpus/sql/types/test_user_type_errors_18452.test b/parser/testdata/corpus/sql/types/test_user_type_errors_18452.test index 70fc3ff7..ea0717b5 100644 --- a/parser/testdata/corpus/sql/types/test_user_type_errors_18452.test +++ b/parser/testdata/corpus/sql/types/test_user_type_errors_18452.test @@ -1,6 +1,6 @@ # source: test/sql/types/test_user_type_errors_18452.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE l AS X(0,0,0,0,0,0,0,0,0,0,0); diff --git a/parser/testdata/corpus/sql/types/time/test_time.test b/parser/testdata/corpus/sql/types/time/test_time.test index 6f8e8513..3edf2ba5 100644 --- a/parser/testdata/corpus/sql/types/time/test_time.test +++ b/parser/testdata/corpus/sql/types/time/test_time.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM times diff --git a/parser/testdata/corpus/sql/types/time/test_time_2411.test b/parser/testdata/corpus/sql/types/time/test_time_2411.test index 2fe2db9d..bfb20fa3 100644 --- a/parser/testdata/corpus/sql/types/time/test_time_2411.test +++ b/parser/testdata/corpus/sql/types/time/test_time_2411.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time_2411.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO times VALUES ('00:00:01') diff --git a/parser/testdata/corpus/sql/types/time/test_time_ns.test b/parser/testdata/corpus/sql/types/time/test_time_ns.test index 149fb705..37d9bf6e 100644 --- a/parser/testdata/corpus/sql/types/time/test_time_ns.test +++ b/parser/testdata/corpus/sql/types/time/test_time_ns.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time_ns.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '15:30:00.123456789'::TIME_NS; diff --git a/parser/testdata/corpus/sql/types/time/test_time_tz.test b/parser/testdata/corpus/sql/types/time/test_time_tz.test index b8d23d2b..9ac227bf 100644 --- a/parser/testdata/corpus/sql/types/time/test_time_tz.test +++ b/parser/testdata/corpus/sql/types/time/test_time_tz.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time_tz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select timetz '02:30:00'; diff --git a/parser/testdata/corpus/sql/types/time/test_time_tz_collate.test b/parser/testdata/corpus/sql/types/time/test_time_tz_collate.test index e6fa2aba..125e818d 100644 --- a/parser/testdata/corpus/sql/types/time/test_time_tz_collate.test +++ b/parser/testdata/corpus/sql/types/time/test_time_tz_collate.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time_tz_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT {comparison_type}'09:00:00+00:00'::TIMETZ) >{comparison_type}'09:01:00+01:00'::TIMETZ); diff --git a/parser/testdata/corpus/sql/types/time/test_time_tz_icu.test b/parser/testdata/corpus/sql/types/time/test_time_tz_icu.test index 50376db6..69379ac5 100644 --- a/parser/testdata/corpus/sql/types/time/test_time_tz_icu.test +++ b/parser/testdata/corpus/sql/types/time/test_time_tz_icu.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/test_time_tz_icu.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone='Asia/Singapore'; @@ -64,3 +64,11 @@ SELECT ('00:00:00'::TIMETZ = '00:00:00'::TIME::TIMETZ) AS same -- ok == +SELECT CAST(TIMESTAMPTZ '-infinity' AS TIMETZ); +-- +ok +== +SELECT TRY_CAST(TIMESTAMPTZ 'infinity' AS TIMETZ); +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/time/time_beyond_day.test b/parser/testdata/corpus/sql/types/time/time_beyond_day.test index 27190a4d..44a66f44 100644 --- a/parser/testdata/corpus/sql/types/time/time_beyond_day.test +++ b/parser/testdata/corpus/sql/types/time/time_beyond_day.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/time_beyond_day.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT make_time(23, 59, 60.5) @@ -15,3 +15,19 @@ SELECT make_time(23, 59, 60), make_time(12, 30, 60), '24:00:00'::TIME_NS, '23:59 -- ok == +SELECT make_time(23, 59, 60.999999) +-- +ok +== +SELECT make_time(23, 59, 60.000005) +-- +ok +== +SELECT make_time(1, 2, 59.9999999), make_time(1, 2, 3.5), make_time(23, 59, 59.9999996) +-- +ok +== +SELECT make_time(12, 30, 60.4), make_time(12, 30, 60.6) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/time/time_cast_trailing_text.test b/parser/testdata/corpus/sql/types/time/time_cast_trailing_text.test new file mode 100644 index 00000000..c91f2b2c --- /dev/null +++ b/parser/testdata/corpus/sql/types/time/time_cast_trailing_text.test @@ -0,0 +1,163 @@ +# source: test/sql/types/time/time_cast_trailing_text.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CAST('12:00:00xyz' AS TIME) +-- +ok +== +SELECT CAST('12:00:00+05:30xyz' AS TIMETZ) +-- +ok +== +SELECT CAST('12:00:00+05:30:15.5' AS TIMETZ) +-- +ok +== +SELECT CAST('12:00:00xyz' AS TIME_NS) +-- +ok +== +SELECT TIME '12:00:00xyz' +-- +ok +== +SELECT CAST('2024-01-01 12:00:00+05:30xyz' AS TIMESTAMPTZ) +-- +ok +== +SELECT CAST('2024-01-01 12:00:00+05:30:15.5' AS TIMESTAMPTZ) +-- +ok +== +SELECT TRY_CAST('12:00:00xyz' AS TIME), TRY_CAST('12:00:00+05:30xyz' AS TIMETZ), TRY_CAST('12:00:00+05:30:15.5' AS TIMETZ) +-- +ok +== +SELECT s, TRY_CAST(s AS TIME), TRY_CAST(s AS TIME_NS), TRY_CAST(s AS TIMETZ) FROM (VALUES + (1, '12:00:00 xyz'), + (2, '12:00:00a'), + (3, '12:00:00.5xyz'), + (4, '12:00:00.x'), + (5, '12:00:00.123456789xyz'), + (6, '12:00:00+05xyz'), + (7, '12:00:00+05:30 xyz'), + (8, '12:00:00+05:30:15xyz'), + (9, '12:00:00+05:30:15.5'), + (10, '12:00:00+05:30.5'), + (11, '11:xyz'), + (12, '12:00:00 12:00:00') +) v(i, s) ORDER BY i +-- +ok +== +SELECT i, TRY_CAST(s AS TIME), TRY_CAST(s AS TIME_NS), TRY_CAST(s AS TIMETZ) FROM (VALUES + (1, '12:00:00 '), + (2, ' 12:00:00 '), + (3, E'12:00:00\t'), + (4, E'12:00:00\n'), + (5, '12:00:00.5 '), + (6, '12:00:00.123456789 '), + (7, '12:00:00+05:30 '), + (8, E'12:00:00+05:30:15\t') +) v(i, s) ORDER BY i +-- +ok +== +SELECT s, TRY_CAST(s AS TIME), TRY_CAST(s AS TIME_NS), TRY_CAST(s AS TIMETZ) FROM (VALUES + (1, '11:'), + (2, '11:11:'), + (3, '1:2:3'), + (4, '12:30'), + (5, '24:00:00'), + (6, '12:00:00.'), + (7, '11/11/11'), + (8, '2024-01-01 12:00:00') +) v(i, s) ORDER BY i +-- +ok +== +SELECT s, TRY_CAST(s AS TIME), TRY_CAST(s AS TIME_NS), TRY_CAST(s AS TIMETZ) FROM (VALUES + (1, '12:00:00+05:30'), + (2, '12:00:00 +05:30'), + (3, '12:00:00-0530'), + (4, '12:00:00+05'), + (5, '12:00:00+05:30:15'), + (6, '12:00:00+15:59:59'), + (7, '12:00:00Z'), + (8, '12:00:00.5Z'), + (9, '12:00:00 Z '), + (10, '12:00:00.123456789+05:30'), + (11, '12:00:00+16:00'), + (12, '12:00:00+5'), + (13, '12:00:00z'), + (14, '12:00:00ZZ'), + (15, '12:00:00Z+01'), + (16, '12:00:00 UTC'), + (17, '12:00:00 Europe/Amsterdam') +) v(i, s) ORDER BY i +-- +ok +== +SELECT s, TRY_CAST(s AS TIME), TRY_CAST(s AS TIME_NS), TRY_CAST(s AS TIMESTAMP) FROM (VALUES + (1, '2024-01-01 12:00:00xyz'), + (2, '2024-01-01 12:00:00Z'), + (3, '2024-01-01 12:00:00+05:30'), + (4, '2024-01-01 12:00:00 xyz') +) v(i, s) ORDER BY i +-- +ok +== +CREATE TABLE times AS SELECT * FROM (VALUES (1, '12:00:00'), (2, NULL), (3, '12:00:00xyz'), (4, '13:30:00+01'), (5, '14:00:00 x')) v(i, s) +-- +ok +== +SELECT i, TRY_CAST(s AS TIME), TRY_CAST(s AS TIMETZ) FROM times ORDER BY i +-- +ok +== +SELECT CAST(s AS TIME) FROM times +-- +ok +== +SELECT CAST(s AS TIME) FROM times WHERE i IN (1, 2, 4) +-- +ok +== +COPY (SELECT s AS t FROM times ORDER BY i) TO '{TEST_DIR}/trailing_time.csv' (HEADER true) +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/trailing_time.csv', columns = {'t': 'TIME'}, header = true) +-- +ok +== +SELECT t FROM read_csv('{TEST_DIR}/trailing_time.csv', columns = {'t': 'TIME'}, header = true, ignore_errors = true) +-- +ok +== +SELECT * FROM read_csv('{TEST_DIR}/trailing_time.csv', columns = {'t': 'TIME'}, header = true, store_rejects = true) +-- +ok +== +SELECT line, column_name, error_type FROM reject_errors ORDER BY line +-- +ok +== +SELECT typeof(t) FROM read_csv('{TEST_DIR}/trailing_time.csv', header = true) LIMIT 1 +-- +ok +== +COPY (SELECT s AS t FROM times ORDER BY i) TO '{TEST_DIR}/trailing_time.json' +-- +ok +== +SELECT * FROM read_json('{TEST_DIR}/trailing_time.json', columns = {'t': 'TIME'}) +-- +ok +== +SELECT typeof(t) FROM read_json('{TEST_DIR}/trailing_time.json') LIMIT 1 +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/time/time_cast_trailing_text_icu.test b/parser/testdata/corpus/sql/types/time/time_cast_trailing_text_icu.test new file mode 100644 index 00000000..79be8df0 --- /dev/null +++ b/parser/testdata/corpus/sql/types/time/time_cast_trailing_text_icu.test @@ -0,0 +1,21 @@ +# source: test/sql/types/time/time_cast_trailing_text_icu.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SET TimeZone = 'Asia/Kolkata' +-- +ok +== +SELECT i, TRY_CAST(s AS TIMETZ) FROM (VALUES + (1, '12:00:00'), + (2, '12:00:00 '), + (3, '12:00:00+01 '), + (4, '12:00:00Z'), + (5, '12:00:00+05:30xyz'), + (6, '12:00:00+05:30:15.5'), + (7, '12:00:00 xyz') +) v(i, s) ORDER BY i +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/time/time_limits.test b/parser/testdata/corpus/sql/types/time/time_limits.test index 18db23d4..b6d6595b 100644 --- a/parser/testdata/corpus/sql/types/time/time_limits.test +++ b/parser/testdata/corpus/sql/types/time/time_limits.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/time_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select time '23:59:59.999999' diff --git a/parser/testdata/corpus/sql/types/time/time_parsing.test b/parser/testdata/corpus/sql/types/time/time_parsing.test index 0b8528ff..554ce68b 100644 --- a/parser/testdata/corpus/sql/types/time/time_parsing.test +++ b/parser/testdata/corpus/sql/types/time/time_parsing.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/time_parsing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '14:42:04'::TIME::VARCHAR @@ -51,23 +51,7 @@ SELECT '14-42-04'::TIME::VARCHAR -- ok == -SELECT '1:2'::VARIANT::TIME --- -ok -== -SELECT '123:4'::VARIANT::TIME --- -ok -== -SELECT '12:3'::VARIANT::TIME --- -ok -== -SELECT '11:22'::VARIANT::TIME --- -ok -== -SELECT '11:22:33'::VARIANT::TIME +SELECT typeof(column0) FROM read_csv('{TEST_DIR}/strict_time.csv', header = false, delim = '|', auto_type_candidates = ['TIME', 'VARCHAR']); -- ok == diff --git a/parser/testdata/corpus/sql/types/time/time_try_cast.test b/parser/testdata/corpus/sql/types/time/time_try_cast.test index cc48a591..8a1cfd79 100644 --- a/parser/testdata/corpus/sql/types/time/time_try_cast.test +++ b/parser/testdata/corpus/sql/types/time/time_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/time_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast('' as time) diff --git a/parser/testdata/corpus/sql/types/time/timetz_minmax_order.test b/parser/testdata/corpus/sql/types/time/timetz_minmax_order.test index 80e57893..491270f5 100644 --- a/parser/testdata/corpus/sql/types/time/timetz_minmax_order.test +++ b/parser/testdata/corpus/sql/types/time/timetz_minmax_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/time/timetz_minmax_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE z AS SELECT * FROM (VALUES (1,'10:00:00+05'::TIMETZ),(2,'09:00:00+00'::TIMETZ),(3,'07:00:00+00'::TIMETZ)) v(i,x); @@ -36,10 +36,6 @@ FROM z -- ok == -SET default_collation=nocase --- -ok -== SELECT list_max(['a', 'B']), list_aggr(['a', 'b'], 'string_agg', '-') -- ok diff --git a/parser/testdata/corpus/sql/types/timestamp/alternative_timestamp_casts.test b/parser/testdata/corpus/sql/types/timestamp/alternative_timestamp_casts.test index b2584270..330abab3 100644 --- a/parser/testdata/corpus/sql/types/timestamp/alternative_timestamp_casts.test +++ b/parser/testdata/corpus/sql/types/timestamp/alternative_timestamp_casts.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/alternative_timestamp_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT DATE '1992-01-01'::TIMESTAMP_MS diff --git a/parser/testdata/corpus/sql/types/timestamp/bc_timestamp.test b/parser/testdata/corpus/sql/types/timestamp/bc_timestamp.test index 13069cdd..10c6395e 100644 --- a/parser/testdata/corpus/sql/types/timestamp/bc_timestamp.test +++ b/parser/testdata/corpus/sql/types/timestamp/bc_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/bc_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '1969-01-01 01:03:20.45432'::TIMESTAMP::VARCHAR diff --git a/parser/testdata/corpus/sql/types/timestamp/infinity_cast_coverage.test b/parser/testdata/corpus/sql/types/timestamp/infinity_cast_coverage.test index 9a3c255b..af293b0a 100644 --- a/parser/testdata/corpus/sql/types/timestamp/infinity_cast_coverage.test +++ b/parser/testdata/corpus/sql/types/timestamp/infinity_cast_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/infinity_cast_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '{infinity_string}'::{base_type}::{target_type} == '{infinity_string}' diff --git a/parser/testdata/corpus/sql/types/timestamp/test_incorrect_timestamp.test b/parser/testdata/corpus/sql/types/timestamp/test_incorrect_timestamp.test index a031708c..4a424b2e 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_incorrect_timestamp.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_incorrect_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_incorrect_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamp(t TIMESTAMP) diff --git a/parser/testdata/corpus/sql/types/timestamp/test_infinite_time.test b/parser/testdata/corpus/sql/types/timestamp/test_infinite_time.test index bb29c386..8fb0135b 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_infinite_time.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_infinite_time.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_infinite_time.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '{str}'::{datatype}, '-{str}'::{datatype}; diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp.test index 340b8014..7ad74647 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT timestamp '2017-07-23 13:10:11'; diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_2411.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_2411.test index 4add8b07..f745803e 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_2411.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_2411.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_2411.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamp1(i TIMESTAMP) diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_auto_casting.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_auto_casting.test index 9e03e21f..b8e6237f 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_auto_casting.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_auto_casting.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_auto_casting.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE timestamps(ts_SEC TIMESTAMP_S, ts_MS TIMESTAMP_MS, ts TIMESTAMP, ts_NS TIMESTAMP_NS) diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_ms.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_ms.test index 0a727314..605abb3d 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_ms.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_ms.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_ms.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('2001-04-20 14:42:11.123' AS TIMESTAMP) a, CAST('2001-04-20 14:42:11.0' AS TIMESTAMP) b; diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_round_to_lower_precision_overflow.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_round_to_lower_precision_overflow.test new file mode 100644 index 00000000..68ddcd24 --- /dev/null +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_round_to_lower_precision_overflow.test @@ -0,0 +1,45 @@ +# source: test/sql/types/timestamp/test_timestamp_round_to_lower_precision_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT TIMESTAMP '294247-01-10 04:00:54.775806'::TIMESTAMP_S +-- +ok +== +SELECT TIMESTAMP '294247-01-10 04:00:54.775806'::TIMESTAMP_MS +-- +ok +== +SELECT TRY_CAST(TIMESTAMP '294247-01-10 04:00:54.775806' AS TIMESTAMP_S) IS NULL +-- +ok +== +SELECT TRY_CAST(TIMESTAMP '294247-01-10 04:00:54.775806' AS TIMESTAMP_S)::VARCHAR +-- +ok +== +SELECT TRY_CAST(TIMESTAMP '294247-01-10 04:00:54.775806' AS TIMESTAMP_MS) IS NULL +-- +ok +== +SELECT TIMESTAMP '294247-01-10 04:00:54.6'::TIMESTAMP_S::TIMESTAMPTZ +-- +ok +== +SELECT TIMESTAMP '294247-01-10 04:00:54'::TIMESTAMP_S::VARCHAR +-- +ok +== +SELECT TIMESTAMPTZ '294247-01-10 04:00:54.775806+00'::TIMESTAMP_S +-- +ok +== +SELECT TIMESTAMP_NS '2262-04-11 23:47:16.854775806'::TIMESTAMP::VARCHAR +-- +ok +== +SELECT TIMESTAMP_NS '2262-04-11 23:47:16.854775806'::TIMESTAMP_MS::VARCHAR +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_to_tz_cast.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_to_tz_cast.test index 7352bc82..07e0dec7 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_to_tz_cast.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_to_tz_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_to_tz_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table ts_{unit}_tbl_1 as from VALUES diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_types.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_types.test index 95d960bb..05287d76 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_types.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS timestamp (sec TIMESTAMP_S, milli TIMESTAMP_MS,micro TIMESTAMP_US, nano TIMESTAMP_NS ); diff --git a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_tz.test b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_tz.test index 641daaf3..47019791 100644 --- a/parser/testdata/corpus/sql/types/timestamp/test_timestamp_tz.test +++ b/parser/testdata/corpus/sql/types/timestamp/test_timestamp_tz.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/test_timestamp_tz.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select timestamptz '2021-11-15 02:30:00'; diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_limits.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_limits.test index 88bb8216..59a6e4df 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_limits.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_limits.test @@ -1,12 +1,20 @@ # source: test/sql/types/timestamp/timestamp_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select timestamp '1970-01-01'; -- ok == +select '290309-12-21 (BC) 19:59:05.224192'::timestamp +-- +ok +== +select '290309-12-21 (BC) 19:59:05.224192'::timestamp - interval (1) microsecond +-- +ok +== select '290309-12-22 (BC) 00:00:00'::timestamp -- ok diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_ms_timestamptz_mixing.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_ms_timestamptz_mixing.test index 7b26a7c3..24131f38 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_ms_timestamptz_mixing.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_ms_timestamptz_mixing.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_ms_timestamptz_mixing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(CASE WHEN true THEN CAST('2020-01-02 03:04:05.123' AS TIMESTAMP_MS) ELSE CAST('2020-01-02 03:04:05+00' AS TIMESTAMPTZ) END) diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_interval_add.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_interval_add.test new file mode 100644 index 00000000..de5964be --- /dev/null +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_interval_add.test @@ -0,0 +1,165 @@ +# source: test/sql/types/timestamp/timestamp_ns_interval_add.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS + INTERVAL 1 DAY; +-- +ok +== +SELECT typeof('2021-12-01'::TIMESTAMP_NS + INTERVAL 1 DAY), + typeof(INTERVAL 1 DAY + '2021-12-01'::TIMESTAMP_NS), + typeof('2021-12-01'::TIMESTAMP_NS - INTERVAL 1 DAY); +-- +ok +== +SELECT iv, '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS + iv FROM intervals; +-- +ok +== +SELECT iv, iv + '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS FROM intervals +WHERE iv + '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS IS DISTINCT FROM '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS + iv; +-- +ok +== +SELECT iv, '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS - iv FROM intervals; +-- +ok +== +SELECT iv, '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS - iv FROM intervals +WHERE '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS - iv IS DISTINCT FROM '2021-12-01 13:54:48.123456789'::TIMESTAMP_NS + (-iv); +-- +ok +== +SELECT iv, '1962-07-31 12:20:48.123456789'::TIMESTAMP_NS + iv FROM intervals; +-- +ok +== +SELECT '1962-07-31 12:20:48.000000001'::TIMESTAMP_NS + INTERVAL '-1 microsecond', + '1962-07-31 12:20:48.000000001'::TIMESTAMP_NS - INTERVAL '1 microsecond'; +-- +ok +== +SELECT '1999-12-31 16:00:00.000000001'::TIMESTAMP_NS + INTERVAL 2400 hours; +-- +ok +== +SELECT '2000-04-09 16:00:00.000000001'::TIMESTAMP_NS - INTERVAL 2400 hours; +-- +ok +== +SELECT '2000-01-31 01:02:03.123456789'::TIMESTAMP_NS + INTERVAL 1 month, + '2000-03-31 01:02:03.123456789'::TIMESTAMP_NS - INTERVAL 1 month; +-- +ok +== +SELECT '2000-01-31 01:02:03.123456789'::TIMESTAMP_NS + INTERVAL '-1 month 400 day', + '2000-01-31 01:02:03.123456789'::TIMESTAMP_NS - INTERVAL '1 month -400 day'; +-- +ok +== +SELECT make_timestamp_ns(1638366888123456789 + i * 1000000000) + INTERVAL 1 MONTH FROM range(3) t(i); +-- +ok +== +SELECT INTERVAL (-1) MICROSECOND + make_timestamp_ns(-234000000000000000 + i) FROM range(-1, 2) t(i); +-- +ok +== +SELECT make_timestamp_ns(-234000000000000000 + i) - INTERVAL 1 MICROSECOND FROM range(-1, 2) t(i); +-- +ok +== +SELECT NULL::TIMESTAMP_NS + INTERVAL 1 day, INTERVAL 1 day + NULL::TIMESTAMP_NS, NULL::TIMESTAMP_NS - INTERVAL 1 day, + '2021-12-01'::TIMESTAMP_NS + NULL::INTERVAL, NULL::INTERVAL + '2021-12-01'::TIMESTAMP_NS, '2021-12-01'::TIMESTAMP_NS - NULL::INTERVAL; +-- +ok +== +SELECT 'infinity'::TIMESTAMP_NS + INTERVAL '1 microsecond', + INTERVAL '1 microsecond' + 'infinity'::TIMESTAMP_NS, + 'infinity'::TIMESTAMP_NS - INTERVAL '1 day'; +-- +ok +== +SELECT '-infinity'::TIMESTAMP_NS + INTERVAL '1 microsecond', + INTERVAL '1 microsecond' + '-infinity'::TIMESTAMP_NS, + '-infinity'::TIMESTAMP_NS - INTERVAL '1 day'; +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806), make_timestamp_ns(-9223372036854775807::BIGINT - 1); +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806) + INTERVAL (-1) microsecond, + make_timestamp_ns(9223372036854775806) - INTERVAL 1 microsecond; +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806) + INTERVAL (-1) month, + make_timestamp_ns(9223372036854775806) - INTERVAL 1 month; +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806) + INTERVAL 1 microsecond; +-- +ok +== +SELECT INTERVAL 1 microsecond + make_timestamp_ns(9223372036854775806); +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806) + INTERVAL 1 day; +-- +ok +== +SELECT make_timestamp_ns(9223372036854775806) - INTERVAL (-1) microsecond; +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) + INTERVAL 1 microsecond, + make_timestamp_ns(-9223372036854775807::BIGINT - 1) - INTERVAL (-1) microsecond; +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) + INTERVAL 1 month, + make_timestamp_ns(-9223372036854775807::BIGINT - 1) - INTERVAL (-1) month; +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) + INTERVAL (-1) microsecond; +-- +ok +== +SELECT INTERVAL (-1) microsecond + make_timestamp_ns(-9223372036854775807::BIGINT - 1); +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) + INTERVAL (-1) month; +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) - INTERVAL 1 microsecond; +-- +ok +== +SELECT make_timestamp_ns(-9223372036854775807::BIGINT - 1) - INTERVAL 1 month; +-- +ok +== +SELECT '2000-01-01'::TIMESTAMP_NS + INTERVAL '9223372036854775807 microseconds'; +-- +ok +== +SELECT '2000-01-01'::TIMESTAMP_NS + INTERVAL '-9223372036854775807 microseconds'; +-- +ok +== +SELECT '2000-01-01'::TIMESTAMP_NS - INTERVAL '9223372036854775807 microseconds'; +-- +ok +== +SELECT TIMESTAMP_NS '2024-01-01 12:00:00' - INTERVAL '-4611686018427387904 microseconds -4611686018427387904 microseconds'; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_lower_bound.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_lower_bound.test index d8991eda..53903f83 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_lower_bound.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_ns_lower_bound.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_ns_lower_bound.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT epoch_ns(make_timestamp_ns(-9223372036854775807::BIGINT - 1)), diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_offset_boundaries.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_offset_boundaries.test index 67c7c90c..7c23482a 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_offset_boundaries.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_offset_boundaries.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_offset_boundaries.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('294247-01-10 04:00:54.775806-01' AS TIMESTAMPTZ) IS NULL diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_precision.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_precision.test index 638943a2..57d6c6a0 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_precision.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_precision.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_precision.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE ts_precision( diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_round_out_of_range.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_round_out_of_range.test index 25ebd402..313521cf 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_round_out_of_range.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_round_out_of_range.test @@ -1,16 +1,8 @@ # source: test/sql/types/timestamp/timestamp_round_out_of_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SELECT TIMESTAMP '294247-01-10 04:00:54.775806'::TIMESTAMP_S --- -ok -== -SELECT TIMESTAMP '294247-01-10 04:00:54.6'::TIMESTAMP_S::TIMESTAMPTZ --- -ok -== SELECT TRY_CAST(TIMESTAMP '294247-01-10 04:00:54.775806' AS TIMESTAMP_S)::VARCHAR, TRY_CAST(TIMESTAMP '294247-01-10 04:00:54.775806' AS TIMESTAMP_MS) -- ok diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_time_of_day_overflow.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_time_of_day_overflow.test index 287c7370..325e2aee 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_time_of_day_overflow.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_time_of_day_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_time_of_day_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT make_timestamp(-9223372036854775806)::TIME; diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_timezone_cast.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_timezone_cast.test index d667e5cd..a5b9bf1a 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_timezone_cast.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_timezone_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_timezone_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TIMESTAMP '2021-05-25 04:55:03.382494 UTC'; diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamp_try_cast.test b/parser/testdata/corpus/sql/types/timestamp/timestamp_try_cast.test index 75dfcdaf..6097b07a 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamp_try_cast.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamp_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/timestamp_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast('' as timestamp) diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_casts.test b/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_casts.test index 01318b81..032f4f17 100644 --- a/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_casts.test +++ b/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_casts.test @@ -1,16 +1,16 @@ # source: test/sql/types/timestamp/timestamptz_ns_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit -SELECT CAST(t AS TIMESTAMP_MS), CAST(t AS TIMESTAMP_S) +SELECT CAST(t AS TIMESTAMP), CAST(t AS TIMESTAMP_MS), CAST(t AS TIMESTAMP_S) FROM (VALUES (CAST('2020-01-02 03:04:05.123456789+00' AS TIMESTAMPTZ_NS)), (CAST('1969-12-31 23:59:59.123456789+00' AS TIMESTAMPTZ_NS)), (NULL::TIMESTAMPTZ_NS)) ts(t) -- ok == -SELECT CAST('infinity'::TIMESTAMPTZ_NS AS TIMESTAMP_MS) +SELECT CAST('infinity'::TIMESTAMPTZ_NS AS TIMESTAMP_MS), CAST('infinity'::TIMESTAMPTZ_NS AS TIMESTAMP) -- ok == diff --git a/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_timestamptz_comparison.test b/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_timestamptz_comparison.test new file mode 100644 index 00000000..85a43d1e --- /dev/null +++ b/parser/testdata/corpus/sql/types/timestamp/timestamptz_ns_timestamptz_comparison.test @@ -0,0 +1,46 @@ +# source: test/sql/types/timestamp/timestamptz_ns_timestamptz_comparison.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS SELECT * FROM (VALUES + (TIMESTAMP_NS '2026-10-12 12:34:56.123456789' AT TIME ZONE 'UTC', TIMESTAMPTZ '2026-10-12 12:34:56.123456+00'), + (TIMESTAMP_NS '2026-10-12 12:34:56.123456000' AT TIME ZONE 'UTC', TIMESTAMPTZ '2026-10-12 12:34:56.123456+00'), + (NULL, TIMESTAMPTZ '2026-10-12 00:00:00+00') +) v(tzns, tz); +-- +ok +== +SELECT tzns = tz, tzns < tz, tzns > tz, tz <= tzns FROM t ORDER BY ALL; +-- +ok +== +SELECT (TIMESTAMP_NS '2026-10-12 12:34:56.123456789' AT TIME ZONE 'UTC') < now(); +-- +ok +== +SELECT (TIMESTAMP_NS '2026-10-12 12:34:56.123456789' AT TIME ZONE 'UTC') + BETWEEN TIMESTAMPTZ '2026-10-01 00:00:00+00' AND TIMESTAMPTZ '2026-10-13 00:00:00+00'; +-- +ok +== +SELECT COALESCE(tzns, tz) AS c, typeof(c) FROM t ORDER BY ALL; +-- +ok +== +SELECT tz IN (tzns, TIMESTAMPTZ '2026-10-12 00:00:00+00') FROM t ORDER BY ALL; +-- +ok +== +SELECT typeof([tzns, tz]) FROM t LIMIT 1; +-- +ok +== +SELECT (TIMESTAMP_NS '2026-10-12 12:34:56.123456789' AT TIME ZONE 'UTC') < TIMESTAMPTZ '3000-01-01 00:00:00+00'; +-- +ok +== +SELECT (TIMESTAMP_NS '2026-10-12 12:34:56.123456789' AT TIME ZONE 'UTC') < 'infinity'::TIMESTAMPTZ; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/timestamp/utc_offset.test b/parser/testdata/corpus/sql/types/timestamp/utc_offset.test index d2554baf..7be39b1e 100644 --- a/parser/testdata/corpus/sql/types/timestamp/utc_offset.test +++ b/parser/testdata/corpus/sql/types/timestamp/utc_offset.test @@ -1,6 +1,6 @@ # source: test/sql/types/timestamp/utc_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '2025-01-01T08:00:00+08'::TIMESTAMP AS c; diff --git a/parser/testdata/corpus/sql/types/type/test_make_get_type.test b/parser/testdata/corpus/sql/types/type/test_make_get_type.test index 6d3ac8f3..444d4318 100644 --- a/parser/testdata/corpus/sql/types/type/test_make_get_type.test +++ b/parser/testdata/corpus/sql/types/type/test_make_get_type.test @@ -1,6 +1,6 @@ # source: test/sql/types/type/test_make_get_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT get_type(NULL); diff --git a/parser/testdata/corpus/sql/types/type/test_type_storage.test b/parser/testdata/corpus/sql/types/type/test_type_storage.test index b6b95c71..ff9113a0 100644 --- a/parser/testdata/corpus/sql/types/type/test_type_storage.test +++ b/parser/testdata/corpus/sql/types/type/test_type_storage.test @@ -1,6 +1,6 @@ # source: test/sql/types/type/test_type_storage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE T (v TYPE); diff --git a/parser/testdata/corpus/sql/types/type_constructor_error_location.test b/parser/testdata/corpus/sql/types/type_constructor_error_location.test index 294e9886..d62159ca 100644 --- a/parser/testdata/corpus/sql/types/type_constructor_error_location.test +++ b/parser/testdata/corpus/sql/types/type_constructor_error_location.test @@ -1,6 +1,6 @@ # source: test/sql/types/type_constructor_error_location.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL::DECIMAL(3, 4) diff --git a/parser/testdata/corpus/sql/types/type_constructors.test b/parser/testdata/corpus/sql/types/type_constructors.test index 0b7efa75..2b521e55 100644 --- a/parser/testdata/corpus/sql/types/type_constructors.test +++ b/parser/testdata/corpus/sql/types/type_constructors.test @@ -1,6 +1,6 @@ # source: test/sql/types/type_constructors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(NULL::DECIMAL), typeof(NULL::DECIMAL(10)), typeof(NULL::DECIMAL(10, 2)); diff --git a/parser/testdata/corpus/sql/types/type_expression_roundtrip.test b/parser/testdata/corpus/sql/types/type_expression_roundtrip.test index 68eefa2d..e2308704 100644 --- a/parser/testdata/corpus/sql/types/type_expression_roundtrip.test +++ b/parser/testdata/corpus/sql/types/type_expression_roundtrip.test @@ -1,6 +1,6 @@ # source: test/sql/types/type_expression_roundtrip.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TYPE pt AS STRUCT(x DOUBLE, y DOUBLE); diff --git a/parser/testdata/corpus/sql/types/type_literal.test b/parser/testdata/corpus/sql/types/type_literal.test index 7ac2a4da..7eb370c1 100644 --- a/parser/testdata/corpus/sql/types/type_literal.test +++ b/parser/testdata/corpus/sql/types/type_literal.test @@ -1,6 +1,6 @@ # source: test/sql/types/type_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT typeof(DECIMAL(4,2) '1.23'), DECIMAL(4,2) '1.23', typeof(STRUCT(a INTEGER) '{"a": 42}'); diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_aggregates.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_aggregates.test index b1eb1ff5..3b9c5e18 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_aggregates.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_aggregates.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_aggregates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE hugeints(g INTEGER, h UHUGEINT); diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_arithmetic.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_arithmetic.test index db851f18..ef4949fe 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_arithmetic.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT -(50::UHUGEINT) diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_auto_cast.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_auto_cast.test index ced22095..f53ee6de 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_auto_cast.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_auto_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_auto_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10000000000000000000::UHUGEINT + 100::TINYINT, 10000000000000000000::UHUGEINT + 100::SMALLINT, 10000000000000000000::UHUGEINT + 100::INTEGER, 10000000000000000000::UHUGEINT + 100::BIGINT; diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_conversion.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_conversion.test index 22852765..0b81a687 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_conversion.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '7'::UHUGEINT, '130'::UHUGEINT, '924829852'::UHUGEINT diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_exponent.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_exponent.test index 1d789e75..1092669c 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_exponent.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_exponent.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_exponent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '170141183460469231731687303715884105700e0'::UHUGEINT diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_functions.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_functions.test index d8a2f9fa..ffc45ae3 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_functions.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_functions.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_functions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select abs(1::UHUGEINT), abs('1329227995784915872903807060280344576'::UHUGEINT), abs(0::UHUGEINT) diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_null_value.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_null_value.test index 69fd26b2..a45f4557 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_null_value.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_null_value.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_null_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT NULL::UHUGEINT diff --git a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_ops.test b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_ops.test index 391d2d70..94c6a312 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_ops.test +++ b/parser/testdata/corpus/sql/types/uhugeint/test_uhugeint_ops.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/test_uhugeint_ops.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE uhugeints(h UHUGEINT); diff --git a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_literal.test b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_literal.test index 9f605fe2..3e8637b5 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_literal.test +++ b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_literal.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/uhugeint_literal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select 340282366920938463463374607431768211455 diff --git a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_multiply.test b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_multiply.test index 1c2315af..5f99ca2b 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_multiply.test +++ b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_multiply.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/uhugeint_multiply.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 251658240::UHUGEINT * 251658240::UHUGEINT diff --git a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_subtract_overflow.test b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_subtract_overflow.test new file mode 100644 index 00000000..cc903cf2 --- /dev/null +++ b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_subtract_overflow.test @@ -0,0 +1,72 @@ +# source: test/sql/types/uhugeint/uhugeint_subtract_overflow.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT 0::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT 1::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT 7::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT 18446744073709551615::UHUGEINT - 18446744073709551616::UHUGEINT +-- +ok +== +SELECT 18446744073709551616::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT 340282366920938463463374607431768211454::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT +-- +ok +== +SELECT TRY(0::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT) +-- +ok +== +SELECT 340282366920938463463374607431768211455::UHUGEINT - 340282366920938463463374607431768211455::UHUGEINT, + 340282366920938463463374607431768211455::UHUGEINT - 7::UHUGEINT, + 18446744073709551616::UHUGEINT - 1::UHUGEINT, + 340282366920938463463374607431768211455::UHUGEINT - 18446744073709551616::UHUGEINT +-- +ok +== +CREATE TABLE t(a UHUGEINT, b UHUGEINT); +-- +ok +== +INSERT INTO t VALUES (0, 0), (340282366920938463463374607431768211455, 340282366920938463463374607431768211455); +-- +ok +== +SELECT a - b FROM t +-- +ok +== +SELECT a - b FROM t WHERE a - b = 0 +-- +ok +== +SELECT count(*) FROM t WHERE a - b < 1 +-- +ok +== +SELECT count(*) FROM t WHERE a - b >= 1 +-- +ok +== +INSERT INTO t VALUES (7, 340282366920938463463374607431768211455); +-- +ok +== +SELECT TRY(a - b) FROM t ORDER BY ALL +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_try_cast.test b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_try_cast.test index 839dde80..e36c7cf0 100644 --- a/parser/testdata/corpus/sql/types/uhugeint/uhugeint_try_cast.test +++ b/parser/testdata/corpus/sql/types/uhugeint/uhugeint_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/uhugeint/uhugeint_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('340282366920938463463374607431768211456' AS UHUGEINT) diff --git a/parser/testdata/corpus/sql/types/union/struct_to_json_union.test b/parser/testdata/corpus/sql/types/union/struct_to_json_union.test index eb9e8aae..edb7b23e 100644 --- a/parser/testdata/corpus/sql/types/union/struct_to_json_union.test +++ b/parser/testdata/corpus/sql/types/union/struct_to_json_union.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/struct_to_json_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table union_tbl( diff --git a/parser/testdata/corpus/sql/types/union/struct_to_union.test b/parser/testdata/corpus/sql/types/union/struct_to_union.test index 9472939f..fa622648 100644 --- a/parser/testdata/corpus/sql/types/union/struct_to_union.test +++ b/parser/testdata/corpus/sql/types/union/struct_to_union.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/struct_to_union.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table union_tbl( diff --git a/parser/testdata/corpus/sql/types/union/struct_to_union_try_cast.test b/parser/testdata/corpus/sql/types/union/struct_to_union_try_cast.test index 4c7131ff..6ce71d9e 100644 --- a/parser/testdata/corpus/sql/types/union/struct_to_union_try_cast.test +++ b/parser/testdata/corpus/sql/types/union/struct_to_union_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/struct_to_union_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT try_cast({'tag': 5::UTINYINT, 'a': 1, 'b': NULL::VARCHAR} AS UNION(a INT, b VARCHAR)) @@ -31,3 +31,34 @@ SELECT cast(s AS UNION(a INT, b VARCHAR)) FROM (VALUES ({'tag': 0::UTINYINT, 'a' -- ok == +CREATE TABLE structs AS SELECT * FROM (VALUES + ({'tag': 7::UTINYINT, 'a': '2', 'b': NULL::VARCHAR}), + ({'tag': 0::UTINYINT, 'a': '3', 'b': 'y'}), + ({'tag': NULL::UTINYINT, 'a': '4', 'b': 'z'})) t(s) +-- +ok +== +SELECT s, try_cast(s AS UNION(a INT, b VARCHAR)) FROM structs +-- +ok +== +SELECT try_cast(s AS UNION(a INT, b VARCHAR)), s FROM structs +-- +ok +== +WITH RECURSIVE r(iter, n) AS ( + SELECT 0, 0 + UNION ALL + SELECT iter + 1, ( + SELECT count(*) FROM ( + SELECT DISTINCT try_cast(s AS UNION(a INTEGER, b VARCHAR)) + FROM (VALUES + ({'tag': 7::UTINYINT, 'a': '2', 'b': NULL::VARCHAR}), + ({'tag': 0::UTINYINT, 'a': '3', 'b': 'y'})) v(s)))::INTEGER + FROM r + WHERE iter < 2 +) +SELECT * FROM r ORDER BY iter +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/union/union_aggregate.test b/parser/testdata/corpus/sql/types/union/union_aggregate.test index 23e5ad90..de54e4ed 100644 --- a/parser/testdata/corpus/sql/types/union/union_aggregate.test +++ b/parser/testdata/corpus/sql/types/union/union_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (u UNION(num INT, str VARCHAR)); diff --git a/parser/testdata/corpus/sql/types/union/union_ambiguous.test b/parser/testdata/corpus/sql/types/union/union_ambiguous.test index 3785888d..f01bc69f 100644 --- a/parser/testdata/corpus/sql/types/union/union_ambiguous.test +++ b/parser/testdata/corpus/sql/types/union/union_ambiguous.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_ambiguous.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a UNION(b INT, b INT)); diff --git a/parser/testdata/corpus/sql/types/union/union_cast.test b/parser/testdata/corpus/sql/types/union/union_cast.test index dcade806..fcc5fea9 100644 --- a/parser/testdata/corpus/sql/types/union/union_cast.test +++ b/parser/testdata/corpus/sql/types/union/union_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl1(u UNION(i32 INT, str VARCHAR)); diff --git a/parser/testdata/corpus/sql/types/union/union_common_type.test b/parser/testdata/corpus/sql/types/union/union_common_type.test new file mode 100644 index 00000000..50e54c37 --- /dev/null +++ b/parser/testdata/corpus/sql/types/union/union_common_type.test @@ -0,0 +1,33 @@ +# source: test/sql/types/union/union_common_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT [union_value(a:=1), union_value(a:=2.5)]; +-- +ok +== +SELECT typeof([union_value(a:=1), union_value(a:=2.5)]); +-- +ok +== +SELECT union_value(a:=1) = union_value(a:=1.4), union_value(a:=1.4) = union_value(a:=1); +-- +ok +== +SELECT [union_value(a:=1), union_value(b:='x')]; +-- +ok +== +SELECT typeof([union_value(a:=1), union_value(b:='x')]); +-- +ok +== +SELECT [union_value(a:=3000000000), union_value(a:=1)]; +-- +ok +== +SELECT [union_value(a:=1), union_value(a:=2)]; +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/union/union_compare.test b/parser/testdata/corpus/sql/types/union/union_compare.test index f4d6ea97..c644f201 100644 --- a/parser/testdata/corpus/sql/types/union/union_compare.test +++ b/parser/testdata/corpus/sql/types/union/union_compare.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_compare.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table unions(u UNION(num INTEGER, str VARCHAR)); diff --git a/parser/testdata/corpus/sql/types/union/union_extract.test b/parser/testdata/corpus/sql/types/union/union_extract.test index e641438f..b091c0ca 100644 --- a/parser/testdata/corpus/sql/types/union/union_extract.test +++ b/parser/testdata/corpus/sql/types/union/union_extract.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_extract.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT union_extract(1, 'b'); diff --git a/parser/testdata/corpus/sql/types/union/union_join.test b/parser/testdata/corpus/sql/types/union/union_join.test index 3fa7228b..ea0586bc 100644 --- a/parser/testdata/corpus/sql/types/union/union_join.test +++ b/parser/testdata/corpus/sql/types/union/union_join.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_join.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1(id INT, a UNION(b INT, c VARCHAR)); diff --git a/parser/testdata/corpus/sql/types/union/union_limit_offset.test b/parser/testdata/corpus/sql/types/union/union_limit_offset.test index 5bb87d38..7c3251ea 100644 --- a/parser/testdata/corpus/sql/types/union/union_limit_offset.test +++ b/parser/testdata/corpus/sql/types/union/union_limit_offset.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_limit_offset.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO tbl1 VALUES (1), ('bar'), (2), ('foo'), (3), ('baz'); diff --git a/parser/testdata/corpus/sql/types/union/union_limits.test b/parser/testdata/corpus/sql/types/union/union_limits.test index d389214e..34eee197 100644 --- a/parser/testdata/corpus/sql/types/union/union_limits.test +++ b/parser/testdata/corpus/sql/types/union/union_limits.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_limits.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (u UNION( diff --git a/parser/testdata/corpus/sql/types/union/union_list.test b/parser/testdata/corpus/sql/types/union/union_list.test index 13c4cb66..d575c2d2 100644 --- a/parser/testdata/corpus/sql/types/union/union_list.test +++ b/parser/testdata/corpus/sql/types/union/union_list.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (union_list UNION(str VARCHAR, num INT)[]); diff --git a/parser/testdata/corpus/sql/types/union/union_list_empty_to_varchar.test b/parser/testdata/corpus/sql/types/union/union_list_empty_to_varchar.test index 02b6e7d9..c4f69302 100644 --- a/parser/testdata/corpus/sql/types/union/union_list_empty_to_varchar.test +++ b/parser/testdata/corpus/sql/types/union/union_list_empty_to_varchar.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_list_empty_to_varchar.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST(CAST([]::INTEGER[] AS UNION(i INTEGER)[]) AS VARCHAR) || 'x'; diff --git a/parser/testdata/corpus/sql/types/union/union_sort.test b/parser/testdata/corpus/sql/types/union/union_sort.test index 0b6c2214..a32f52d6 100644 --- a/parser/testdata/corpus/sql/types/union/union_sort.test +++ b/parser/testdata/corpus/sql/types/union/union_sort.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_sort.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (a UNION(a INT, b INT)); diff --git a/parser/testdata/corpus/sql/types/union/union_struct.test b/parser/testdata/corpus/sql/types/union/union_struct.test index 1764ed81..8adb8997 100644 --- a/parser/testdata/corpus/sql/types/union/union_struct.test +++ b/parser/testdata/corpus/sql/types/union/union_struct.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_struct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl1 (union_struct UNION(str VARCHAR, obj STRUCT(k VARCHAR, v INT))) diff --git a/parser/testdata/corpus/sql/types/union/union_tag.test b/parser/testdata/corpus/sql/types/union/union_tag.test index 26d48eda..f2c4a550 100644 --- a/parser/testdata/corpus/sql/types/union/union_tag.test +++ b/parser/testdata/corpus/sql/types/union/union_tag.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_tag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT union_tag(1); diff --git a/parser/testdata/corpus/sql/types/union/union_test.test b/parser/testdata/corpus/sql/types/union/union_test.test index 4447b5c8..c1e19932 100644 --- a/parser/testdata/corpus/sql/types/union/union_test.test +++ b/parser/testdata/corpus/sql/types/union/union_test.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(u UNION(i INTEGER, f FLOAT)); diff --git a/parser/testdata/corpus/sql/types/union/union_try_cast_member_failure.test b/parser/testdata/corpus/sql/types/union/union_try_cast_member_failure.test index c04e1cd5..ccec0378 100644 --- a/parser/testdata/corpus/sql/types/union/union_try_cast_member_failure.test +++ b/parser/testdata/corpus/sql/types/union/union_try_cast_member_failure.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_try_cast_member_failure.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT union_value(a := 'q' || i::VARCHAR)::UNION(a VARCHAR, b VARCHAR) u FROM range(3000) t(i); diff --git a/parser/testdata/corpus/sql/types/union/union_validity.test b/parser/testdata/corpus/sql/types/union/union_validity.test index d8215db4..ca544997 100644 --- a/parser/testdata/corpus/sql/types/union/union_validity.test +++ b/parser/testdata/corpus/sql/types/union/union_validity.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_validity.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (u UNION(a INT, b VARCHAR)); diff --git a/parser/testdata/corpus/sql/types/union/union_value.test b/parser/testdata/corpus/sql/types/union/union_value.test index 770974de..0066b6b6 100644 --- a/parser/testdata/corpus/sql/types/union/union_value.test +++ b/parser/testdata/corpus/sql/types/union/union_value.test @@ -1,6 +1,6 @@ # source: test/sql/types/union/union_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(u UNION(num INTEGER, str STRING)); diff --git a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_arithmetic.test b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_arithmetic.test index ec7a463a..9e92a628 100644 --- a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_arithmetic.test +++ b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/unsigned/test_unsigned_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE unsigned(a UTINYINT,b USMALLINT, c UINTEGER, d UBIGINT); diff --git a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_auto_cast.test b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_auto_cast.test index 3407513f..61b4fce8 100644 --- a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_auto_cast.test +++ b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_auto_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/unsigned/test_unsigned_auto_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 200::UTINYINT + 0.5 diff --git a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_conversion.test b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_conversion.test index 07dd1ddb..198e9285 100644 --- a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_conversion.test +++ b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_conversion.test @@ -1,6 +1,6 @@ # source: test/sql/types/unsigned/test_unsigned_conversion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '7'::UTINYINT, '130'::UTINYINT, '255'::UTINYINT diff --git a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_verify.test b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_verify.test index 94864ca4..da8c9e32 100644 --- a/parser/testdata/corpus/sql/types/unsigned/test_unsigned_verify.test +++ b/parser/testdata/corpus/sql/types/unsigned/test_unsigned_verify.test @@ -1,6 +1,6 @@ # source: test/sql/types/unsigned/test_unsigned_verify.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select []::uint16[] diff --git a/parser/testdata/corpus/sql/types/uuid/test_uuid_cast.test b/parser/testdata/corpus/sql/types/uuid/test_uuid_cast.test index 5978c134..a38e64ed 100644 --- a/parser/testdata/corpus/sql/types/uuid/test_uuid_cast.test +++ b/parser/testdata/corpus/sql/types/uuid/test_uuid_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/uuid/test_uuid_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast(try_cast('00112233-4455-6677-8899-aabbccddeeff'::UUID AS BLOB) as uuid) as test; diff --git a/parser/testdata/corpus/sql/types/uuid/test_uuid_uhugeint_cast.test b/parser/testdata/corpus/sql/types/uuid/test_uuid_uhugeint_cast.test index 171e84b7..052ed677 100644 --- a/parser/testdata/corpus/sql/types/uuid/test_uuid_uhugeint_cast.test +++ b/parser/testdata/corpus/sql/types/uuid/test_uuid_uhugeint_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/uuid/test_uuid_uhugeint_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT '00000000-0000-0000-0000-000000000000'::UUID::UHUGEINT; diff --git a/parser/testdata/corpus/sql/types/variant/debug_shred_empty_object.test b/parser/testdata/corpus/sql/types/variant/debug_shred_empty_object.test index f02cf5c5..0d9d2e38 100644 --- a/parser/testdata/corpus/sql/types/variant/debug_shred_empty_object.test +++ b/parser/testdata/corpus/sql/types/variant/debug_shred_empty_object.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/debug_shred_empty_object.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_verify_vector = 'shredded_vector'; diff --git a/parser/testdata/corpus/sql/types/variant/implicit_cast_from_variant.test b/parser/testdata/corpus/sql/types/variant/implicit_cast_from_variant.test index b102349b..6e7a6d43 100644 --- a/parser/testdata/corpus/sql/types/variant/implicit_cast_from_variant.test +++ b/parser/testdata/corpus/sql/types/variant/implicit_cast_from_variant.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/implicit_cast_from_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select [100::VARIANT, 1.2] diff --git a/parser/testdata/corpus/sql/types/variant/json_cast.test b/parser/testdata/corpus/sql/types/variant/json_cast.test index 3bbe8c35..07e24f08 100644 --- a/parser/testdata/corpus/sql/types/variant/json_cast.test +++ b/parser/testdata/corpus/sql/types/variant/json_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/json_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select '"test"'::JSON::VARIANT; diff --git a/parser/testdata/corpus/sql/types/variant/json_cast_depth.test b/parser/testdata/corpus/sql/types/variant/json_cast_depth.test new file mode 100644 index 00000000..dd72d9d0 --- /dev/null +++ b/parser/testdata/corpus/sql/types/variant/json_cast_depth.test @@ -0,0 +1,40 @@ +# source: test/sql/types/variant/json_cast_depth.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE deep_json AS SELECT + repeat('[', 50000) || '1' || repeat(']', 50000) AS arr, + repeat('{"k":', 50000) || '1' || repeat('}', 50000) AS obj, + '{"a": 1, "b": "x", "c": ' || repeat('[', 50000) || '1' || repeat(']', 50000) || '}' AS sib; +-- +ok +== +SELECT arr::JSON::VARIANT IS NOT NULL FROM deep_json; +-- +ok +== +SELECT obj::JSON::VARIANT IS NOT NULL FROM deep_json; +-- +ok +== +SELECT v::JSON::VARCHAR = repeat('[', 200) || '1' || repeat(']', 200) +FROM (SELECT (repeat('[', 200) || '1' || repeat(']', 200))::JSON::VARIANT v) +-- +ok +== +SELECT v::JSON::VARCHAR = repeat('{"k":', 200) || '1' || repeat('}', 200) +FROM (SELECT (repeat('{"k":', 200) || '1' || repeat('}', 200))::JSON::VARIANT v) +-- +ok +== +SELECT v::JSON::VARCHAR = repeat('{"k":[', 100) || '1' || repeat(']}', 100) +FROM (SELECT (repeat('{"k":[', 100) || '1' || repeat(']}', 100))::JSON::VARIANT v) +-- +ok +== +SELECT v.a::INTEGER, v.b::VARCHAR, v.c IS NOT NULL +FROM (SELECT sib::JSON::VARIANT v FROM deep_json) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/variant/json_cast_depth_thread.test b/parser/testdata/corpus/sql/types/variant/json_cast_depth_thread.test new file mode 100644 index 00000000..ef3b085a --- /dev/null +++ b/parser/testdata/corpus/sql/types/variant/json_cast_depth_thread.test @@ -0,0 +1,13 @@ +# source: test/sql/types/variant/json_cast_depth_thread.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE deep_thread_json AS SELECT repeat('[', 500) || '1' || repeat(']', 500) AS s; +-- +ok +== +SELECT s::JSON::VARIANT IS NOT NULL FROM deep_thread_json, range(3) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/variant/list_to_variant_null_after_value.test b/parser/testdata/corpus/sql/types/variant/list_to_variant_null_after_value.test index 966dabad..6e29f9bb 100644 --- a/parser/testdata/corpus/sql/types/variant/list_to_variant_null_after_value.test +++ b/parser/testdata/corpus/sql/types/variant/list_to_variant_null_after_value.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/list_to_variant_null_after_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE v AS SELECT ['hello world long string', NULL]::VARIANT v FROM range(3); diff --git a/parser/testdata/corpus/sql/types/variant/map_extract_variant_values.test b/parser/testdata/corpus/sql/types/variant/map_extract_variant_values.test index 42555e78..170bae27 100644 --- a/parser/testdata/corpus/sql/types/variant/map_extract_variant_values.test +++ b/parser/testdata/corpus/sql/types/variant/map_extract_variant_values.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/map_extract_variant_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tm AS SELECT i, MAP {'z': 'q'} m FROM range(10) t(i); diff --git a/parser/testdata/corpus/sql/types/variant/test_all_types.test b/parser/testdata/corpus/sql/types/variant/test_all_types.test index e3d3dd40..59c7d974 100644 --- a/parser/testdata/corpus/sql/types/variant/test_all_types.test +++ b/parser/testdata/corpus/sql/types/variant/test_all_types.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/test_all_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select struct_pack(*COLUMNS(*))::VARIANT::JSON from test_all_types(); diff --git a/parser/testdata/corpus/sql/types/variant/test_variant_list_copy_shredded.test b/parser/testdata/corpus/sql/types/variant/test_variant_list_copy_shredded.test index d63e4583..452dcd05 100644 --- a/parser/testdata/corpus/sql/types/variant/test_variant_list_copy_shredded.test +++ b/parser/testdata/corpus/sql/types/variant/test_variant_list_copy_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/test_variant_list_copy_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT [NULL::INT] x FROM range(3000); diff --git a/parser/testdata/corpus/sql/types/variant/tpch_test.test b/parser/testdata/corpus/sql/types/variant/tpch_test.test index 08486acc..361b35ee 100644 --- a/parser/testdata/corpus/sql/types/variant/tpch_test.test +++ b/parser/testdata/corpus/sql/types/variant/tpch_test.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/tpch_test.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit attach '{TEST_DIR}/tpch_sf0001_variant.db' as foo (STORAGE_VERSION 'v1.5.0'); diff --git a/parser/testdata/corpus/sql/types/variant/tpch_test_through_json.test b/parser/testdata/corpus/sql/types/variant/tpch_test_through_json.test index 18a7db97..c763ee8e 100644 --- a/parser/testdata/corpus/sql/types/variant/tpch_test_through_json.test +++ b/parser/testdata/corpus/sql/types/variant/tpch_test_through_json.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/tpch_test_through_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select count(*), diff --git a/parser/testdata/corpus/sql/types/variant/try_cast_from_variant.test b/parser/testdata/corpus/sql/types/variant/try_cast_from_variant.test index 59b2d931..af707e08 100644 --- a/parser/testdata/corpus/sql/types/variant/try_cast_from_variant.test +++ b/parser/testdata/corpus/sql/types/variant/try_cast_from_variant.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/try_cast_from_variant.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast('hello world'::variant as int) + 1; diff --git a/parser/testdata/corpus/sql/types/variant/try_cast_nested_list_writer.test b/parser/testdata/corpus/sql/types/variant/try_cast_nested_list_writer.test index 33d36a67..79d0cd33 100644 --- a/parser/testdata/corpus/sql/types/variant/try_cast_nested_list_writer.test +++ b/parser/testdata/corpus/sql/types/variant/try_cast_nested_list_writer.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/try_cast_nested_list_writer.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select try_cast([['bad'], ['2']]::variant as INTEGER[][]); diff --git a/parser/testdata/corpus/sql/types/variant/variant_binary_duplicate_keys.test b/parser/testdata/corpus/sql/types/variant/variant_binary_duplicate_keys.test index 44145785..b1e32a96 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_binary_duplicate_keys.test +++ b/parser/testdata/corpus/sql/types/variant/variant_binary_duplicate_keys.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_binary_duplicate_keys.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_bytes_to_variant('\x01\x01\x00\x01\x61\x02\x02\x00\x00\x00\x02\x04\x0C\x00\x0C\x01'::BLOB) diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_parameter_stats.test b/parser/testdata/corpus/sql/types/variant/variant_cast_parameter_stats.test index e515343f..a7b3b2f8 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_cast_parameter_stats.test +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_parameter_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_cast_parameter_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT concat('thisisastring', i) s FROM range(1000) t(i); diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_parent_path_order.test b/parser/testdata/corpus/sql/types/variant/variant_cast_parent_path_order.test index 34ad2474..8de53e20 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_cast_parent_path_order.test +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_parent_path_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_cast_parent_path_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cast_parent AS SELECT {'x': {'a': 1}::VARIANT} AS n; diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_stats.test b/parser/testdata/corpus/sql/types/variant/variant_cast_stats.test index 23ad317c..b8768711 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_cast_stats.test +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_stats.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_cast_stats.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT range n FROM range(10); diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_stats_json.test b/parser/testdata/corpus/sql/types/variant/variant_cast_stats_json.test index a5e65d55..18a3f9f7 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_cast_stats_json.test +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_stats_json.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_cast_stats_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_verify_stats=true; diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_type_null.test b/parser/testdata/corpus/sql/types/variant/variant_cast_type_null.test new file mode 100644 index 00000000..f94d69ff --- /dev/null +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_type_null.test @@ -0,0 +1,102 @@ +# source: test/sql/types/variant/variant_cast_type_null.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT CAST(v AS VARIANT) FROM (VALUES (NULL::TYPE), (NULL::TYPE)) t(v) +-- +ok +== +SELECT TRY_CAST(v AS VARIANT) FROM (VALUES (NULL::TYPE), (NULL::TYPE)) t(v) +-- +ok +== +SELECT CAST(NULL::TYPE AS VARIANT) +-- +ok +== +SELECT CAST(CASE WHEN i > 10 THEN make_type('INTEGER') ELSE NULL END AS VARIANT) FROM range(3) t(i) +-- +ok +== +SELECT CAST(v AS VARIANT) FROM (VALUES (make_type('INTEGER')), (NULL::TYPE)) t(v) +-- +ok +== +SELECT CAST(make_type('INTEGER') AS VARIANT) +-- +ok +== +SELECT TRY_CAST(make_type('INTEGER') AS VARIANT) +-- +ok +== +SELECT TRY_CAST(v AS VARIANT) FROM (VALUES (make_type('INTEGER')), (NULL::TYPE), (make_type('VARCHAR'))) t(v) +-- +ok +== +SELECT CAST(union_value(i := 42)::UNION(i INTEGER, t TYPE) AS UNION(i BIGINT, t VARIANT)) +-- +ok +== +SELECT CAST(union_value(t := NULL::TYPE)::UNION(i INTEGER, t TYPE) AS UNION(i BIGINT, t VARIANT)) +-- +ok +== +SELECT CAST(union_value(t := make_type('INTEGER'))::UNION(i INTEGER, t TYPE) AS UNION(i BIGINT, t VARIANT)) +-- +ok +== +SELECT TRY_CAST(union_value(t := make_type('INTEGER'))::UNION(i INTEGER, t TYPE) AS UNION(i BIGINT, t VARIANT)) FROM range(2) +-- +ok +== +WITH input(id, u) AS ( + VALUES + (1, union_value(i := 42)::UNION(i INTEGER, t TYPE)), + (2, union_value(t := NULL::TYPE)::UNION(i INTEGER, t TYPE)), + (3, union_value(t := make_type('INTEGER'))::UNION(i INTEGER, t TYPE)) +), converted AS ( + SELECT id, TRY_CAST(u AS UNION(i BIGINT, t VARIANT)) AS v FROM input +) +SELECT id, v IS NULL, union_tag(v)::VARCHAR FROM converted ORDER BY id +-- +ok +== +SELECT CAST(v AS VARIANT) FROM (VALUES (NULL::TYPE[]), (NULL::TYPE[])) t(v) +-- +ok +== +SELECT CAST(v AS VARIANT) FROM (VALUES (NULL::STRUCT(a TYPE)), (NULL::STRUCT(a TYPE))) t(v) +-- +ok +== +SELECT CAST([NULL::TYPE] AS VARIANT) +-- +ok +== +SELECT CAST(v AS VARIANT) FROM (VALUES (union_value(t := NULL::TYPE)::UNION(i INTEGER, t TYPE))) t(v) +-- +ok +== +SELECT CAST([NULL::TYPE] AS VARIANT[]) +-- +ok +== +SELECT CAST(row(NULL::TYPE) AS STRUCT(a VARIANT)) +-- +ok +== +SELECT histogram(x::UNION(i BIGINT, t VARIANT), [union_value(i := 10)::UNION(i BIGINT, t VARIANT)]) +FROM (VALUES (union_value(i := 5)::UNION(i INTEGER, t TYPE)), (union_value(i := 42)::UNION(i INTEGER, t TYPE))) t(x) +-- +ok +== +SELECT 42::VARIANT, 'hello'::VARIANT, [1, 2]::VARIANT +-- +ok +== +SELECT CAST(v AS VARIANT) FROM (VALUES (row(1)), (NULL::STRUCT(a INTEGER))) t(v) +-- +ok +== diff --git a/parser/testdata/corpus/sql/types/variant/variant_cast_tz_from_string.test b/parser/testdata/corpus/sql/types/variant/variant_cast_tz_from_string.test index 88af4739..0daa8fb7 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_cast_tz_from_string.test +++ b/parser/testdata/corpus/sql/types/variant/variant_cast_tz_from_string.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_cast_tz_from_string.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT CAST('garbage'::VARIANT AS {target}) diff --git a/parser/testdata/corpus/sql/types/variant/variant_casts.test b/parser/testdata/corpus/sql/types/variant/variant_casts.test index fb486908..547463ca 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_casts.test +++ b/parser/testdata/corpus/sql/types/variant/variant_casts.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE struct AS SELECT {'a': 42, 'b': 84} s diff --git a/parser/testdata/corpus/sql/types/variant/variant_decimal_arithmetic.test b/parser/testdata/corpus/sql/types/variant/variant_decimal_arithmetic.test index cea660f2..a146d503 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_decimal_arithmetic.test +++ b/parser/testdata/corpus/sql/types/variant/variant_decimal_arithmetic.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_decimal_arithmetic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT 10.0 % (2.0)::VARIANT; diff --git a/parser/testdata/corpus/sql/types/variant/variant_distinct.test b/parser/testdata/corpus/sql/types/variant/variant_distinct.test index 77e6781e..12b14e30 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_distinct.test +++ b/parser/testdata/corpus/sql/types/variant/variant_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT [1]::VARIANT IS NOT DISTINCT FROM [2] diff --git a/parser/testdata/corpus/sql/types/variant/variant_extract_json_cast_shredded.test b/parser/testdata/corpus/sql/types/variant/variant_extract_json_cast_shredded.test index 1252c1ec..da0600f4 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_extract_json_cast_shredded.test +++ b/parser/testdata/corpus/sql/types/variant/variant_extract_json_cast_shredded.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_extract_json_cast_shredded.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ATTACH '__TEST_DIR__/variant_extract_json_cast.db' AS shred (STORAGE_VERSION 'v1.5.0'); @@ -25,7 +25,3 @@ SELECT variant_extract(v, 's')::VARCHAR, variant_extract(v, 'b')::BOOLEAN, varia -- ok == -SET disabled_optimizers = 'unused_columns'; --- -ok -== diff --git a/parser/testdata/corpus/sql/types/variant/variant_icu_casts.test b/parser/testdata/corpus/sql/types/variant/variant_icu_casts.test index cb08272e..fde40122 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_icu_casts.test +++ b/parser/testdata/corpus/sql/types/variant/variant_icu_casts.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_icu_casts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET TimeZone = 'Europe/Berlin'; diff --git a/parser/testdata/corpus/sql/types/variant/variant_map_to_variant_filter.test b/parser/testdata/corpus/sql/types/variant/variant_map_to_variant_filter.test index 83f24c38..c83ecd7a 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_map_to_variant_filter.test +++ b/parser/testdata/corpus/sql/types/variant/variant_map_to_variant_filter.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_map_to_variant_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT i, MAP{'k': i::VARIANT} AS m FROM range(2) t(i); diff --git a/parser/testdata/corpus/sql/types/variant/variant_object_key_order.test b/parser/testdata/corpus/sql/types/variant/variant_object_key_order.test index 958e74a7..696c1368 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_object_key_order.test +++ b/parser/testdata/corpus/sql/types/variant/variant_object_key_order.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_object_key_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_typeof(v), CAST(v AS VARCHAR), CAST(variant_keys(v) AS VARCHAR), v = {'l': [42], 'o': {'x': 42}}::VARIANT diff --git a/parser/testdata/corpus/sql/types/variant/variant_object_key_order_json.test b/parser/testdata/corpus/sql/types/variant/variant_object_key_order_json.test index 4f9e5d51..a5f56aa8 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_object_key_order_json.test +++ b/parser/testdata/corpus/sql/types/variant/variant_object_key_order_json.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_object_key_order_json.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_typeof(v), CAST(v AS VARCHAR), CAST(v AS JSON), CAST(variant_keys(v) AS VARCHAR) diff --git a/parser/testdata/corpus/sql/types/variant/variant_stats_merge_decimal.test b/parser/testdata/corpus/sql/types/variant/variant_stats_merge_decimal.test index c515e410..58268679 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_stats_merge_decimal.test +++ b/parser/testdata/corpus/sql/types/variant/variant_stats_merge_decimal.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_stats_merge_decimal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT v::VARCHAR FROM (SELECT i::DECIMAL(4,1)::VARIANT v FROM range(2) r(i) UNION ALL SELECT i::DECIMAL(9,3)::VARIANT FROM range(2) r(i)) ORDER BY 1 diff --git a/parser/testdata/corpus/sql/types/variant/variant_struct_cast_parent_projection.test b/parser/testdata/corpus/sql/types/variant/variant_struct_cast_parent_projection.test index d67e8866..badf5f1c 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_struct_cast_parent_projection.test +++ b/parser/testdata/corpus/sql/types/variant/variant_struct_cast_parent_projection.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_struct_cast_parent_projection.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT n.x::STRUCT(a BIGINT), n.x.a FROM cast_parent; diff --git a/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery.test b/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery.test index 96c9fefa..147f5638 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery.test +++ b/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_struct_field_subquery.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery_cast_parent.test b/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery_cast_parent.test index 172afbc0..6de92ac1 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery_cast_parent.test +++ b/parser/testdata/corpus/sql/types/variant/variant_struct_field_subquery_cast_parent.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_struct_field_subquery_cast_parent.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO cast_parent VALUES ({'x': {'a': 2}::VARIANT}); diff --git a/parser/testdata/corpus/sql/types/variant/variant_to_array_try_cast.test b/parser/testdata/corpus/sql/types/variant/variant_to_array_try_cast.test index 508c7ed0..514a926d 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_to_array_try_cast.test +++ b/parser/testdata/corpus/sql/types/variant/variant_to_array_try_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_to_array_try_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT TRY_CAST('hello'::VARIANT AS INT[2]); diff --git a/parser/testdata/corpus/sql/types/variant/variant_to_json_null.test b/parser/testdata/corpus/sql/types/variant/variant_to_json_null.test index 3d379c46..1f7da099 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_to_json_null.test +++ b/parser/testdata/corpus/sql/types/variant/variant_to_json_null.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_to_json_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (v::VARIANT::JSON) IS NULL, (v::VARIANT::JSON)::VARCHAR FROM (VALUES (NULL::INTEGER), (7)) t(v); diff --git a/parser/testdata/corpus/sql/types/variant/variant_to_map_cast.test b/parser/testdata/corpus/sql/types/variant/variant_to_map_cast.test index bc192bd9..73ae04a1 100644 --- a/parser/testdata/corpus/sql/types/variant/variant_to_map_cast.test +++ b/parser/testdata/corpus/sql/types/variant/variant_to_map_cast.test @@ -1,6 +1,6 @@ # source: test/sql/types/variant/variant_to_map_cast.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(TRY_CAST(MAP{'k': i}::VARIANT AS MAP(VARCHAR, TINYINT))) FROM range(129) t(i) diff --git a/parser/testdata/corpus/sql/unnest/list_constant_reference.test b/parser/testdata/corpus/sql/unnest/list_constant_reference.test index c74a25bf..165daa4a 100644 --- a/parser/testdata/corpus/sql/unnest/list_constant_reference.test +++ b/parser/testdata/corpus/sql/unnest/list_constant_reference.test @@ -1,6 +1,6 @@ # source: test/sql/unnest/list_constant_reference.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT list(k ORDER BY id, n) diff --git a/parser/testdata/corpus/sql/update/compact_update_allocation.test b/parser/testdata/corpus/sql/update/compact_update_allocation.test index 15ec1922..8d28cb07 100644 --- a/parser/testdata/corpus/sql/update/compact_update_allocation.test +++ b/parser/testdata/corpus/sql/update/compact_update_allocation.test @@ -1,6 +1,6 @@ # source: test/sql/update/compact_update_allocation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mem_test (a INTEGER, b INTEGER, c INTEGER, d VARCHAR) diff --git a/parser/testdata/corpus/sql/update/force_update_to_del_and_insert.test b/parser/testdata/corpus/sql/update/force_update_to_del_and_insert.test index b6eeed95..f966f95f 100644 --- a/parser/testdata/corpus/sql/update/force_update_to_del_and_insert.test +++ b/parser/testdata/corpus/sql/update/force_update_to_del_and_insert.test @@ -1,6 +1,6 @@ # source: test/sql/update/force_update_to_del_and_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT current_setting('force_update_to_del_and_insert') diff --git a/parser/testdata/corpus/sql/update/issue_22392.test b/parser/testdata/corpus/sql/update/issue_22392.test index 605555e1..9416ea09 100644 --- a/parser/testdata/corpus/sql/update/issue_22392.test +++ b/parser/testdata/corpus/sql/update/issue_22392.test @@ -1,6 +1,6 @@ # source: test/sql/update/issue_22392.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t (k INTEGER PRIMARY KEY, v INTEGER); diff --git a/parser/testdata/corpus/sql/update/null_update_merge.test b/parser/testdata/corpus/sql/update/null_update_merge.test index 7c53a291..ac5b2ecf 100644 --- a/parser/testdata/corpus/sql/update/null_update_merge.test +++ b/parser/testdata/corpus/sql/update/null_update_merge.test @@ -1,6 +1,6 @@ # source: test/sql/update/null_update_merge.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id INTEGER, a INTEGER); diff --git a/parser/testdata/corpus/sql/update/null_update_merge_transaction.test b/parser/testdata/corpus/sql/update/null_update_merge_transaction.test index 25ea8b07..135b4af2 100644 --- a/parser/testdata/corpus/sql/update/null_update_merge_transaction.test +++ b/parser/testdata/corpus/sql/update/null_update_merge_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/update/null_update_merge_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a=CASE WHEN a IS NULL THEN 1 ELSE NULL END diff --git a/parser/testdata/corpus/sql/update/string_update_null_heap.test b/parser/testdata/corpus/sql/update/string_update_null_heap.test index 54f77e77..c5857967 100644 --- a/parser/testdata/corpus/sql/update/string_update_null_heap.test +++ b/parser/testdata/corpus/sql/update/string_update_null_heap.test @@ -1,6 +1,6 @@ # source: test/sql/update/string_update_null_heap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (id INTEGER, s VARCHAR); diff --git a/parser/testdata/corpus/sql/update/string_update_transaction_local_7348.test b/parser/testdata/corpus/sql/update/string_update_transaction_local_7348.test index 1a2582a7..dc6495b1 100644 --- a/parser/testdata/corpus/sql/update/string_update_transaction_local_7348.test +++ b/parser/testdata/corpus/sql/update/string_update_transaction_local_7348.test @@ -1,6 +1,6 @@ # source: test/sql/update/string_update_transaction_local_7348.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1(a VARCHAR(256) PRIMARY KEY, b INTEGER); diff --git a/parser/testdata/corpus/sql/update/test_big_string_update.test b/parser/testdata/corpus/sql/update/test_big_string_update.test index ba7ce93c..29bacc2a 100644 --- a/parser/testdata/corpus/sql/update/test_big_string_update.test +++ b/parser/testdata/corpus/sql/update/test_big_string_update.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_big_string_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('abcdefghijklmnopqrstuvwxyz') diff --git a/parser/testdata/corpus/sql/update/test_cascading_updates.test b/parser/testdata/corpus/sql/update/test_cascading_updates.test index ca18c641..c81f26af 100644 --- a/parser/testdata/corpus/sql/update/test_cascading_updates.test +++ b/parser/testdata/corpus/sql/update/test_cascading_updates.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_cascading_updates.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers(id INTEGER, val INTEGER); diff --git a/parser/testdata/corpus/sql/update/test_multiple_assignment.test b/parser/testdata/corpus/sql/update/test_multiple_assignment.test index 2ffb0c86..5a027ee1 100644 --- a/parser/testdata/corpus/sql/update/test_multiple_assignment.test +++ b/parser/testdata/corpus/sql/update/test_multiple_assignment.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_multiple_assignment.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (key INT, fruit VARCHAR, cost INT); diff --git a/parser/testdata/corpus/sql/update/test_null_update.test b/parser/testdata/corpus/sql/update/test_null_update.test index 3a0f32be..b6d9c045 100644 --- a/parser/testdata/corpus/sql/update/test_null_update.test +++ b/parser/testdata/corpus/sql/update/test_null_update.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_null_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (1), (2), (3), (NULL) diff --git a/parser/testdata/corpus/sql/update/test_repeated_string_update.test b/parser/testdata/corpus/sql/update/test_repeated_string_update.test index 00985738..e5d22215 100644 --- a/parser/testdata/corpus/sql/update/test_repeated_string_update.test +++ b/parser/testdata/corpus/sql/update/test_repeated_string_update.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_repeated_string_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('hello'), ('world') diff --git a/parser/testdata/corpus/sql/update/test_stress_update_issue_19688.test b/parser/testdata/corpus/sql/update/test_stress_update_issue_19688.test index 5a61bedb..f1faabe6 100644 --- a/parser/testdata/corpus/sql/update/test_stress_update_issue_19688.test +++ b/parser/testdata/corpus/sql/update/test_stress_update_issue_19688.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_stress_update_issue_19688.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DROP TABLE IF EXISTS test_stress_update_issue_19688 diff --git a/parser/testdata/corpus/sql/update/test_string_update.test b/parser/testdata/corpus/sql/update/test_string_update.test index 4c58700c..874489fc 100644 --- a/parser/testdata/corpus/sql/update/test_string_update.test +++ b/parser/testdata/corpus/sql/update/test_string_update.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_string_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit DELETE FROM test WHERE a='hello'; diff --git a/parser/testdata/corpus/sql/update/test_string_update_many_strings.test b/parser/testdata/corpus/sql/update/test_string_update_many_strings.test index 034a3803..29800c7c 100644 --- a/parser/testdata/corpus/sql/update/test_string_update_many_strings.test +++ b/parser/testdata/corpus/sql/update/test_string_update_many_strings.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_string_update_many_strings.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('a'), ('b'), ('c'), (NULL) diff --git a/parser/testdata/corpus/sql/update/test_string_update_null.test b/parser/testdata/corpus/sql/update/test_string_update_null.test index 5372a6ac..010dae3d 100644 --- a/parser/testdata/corpus/sql/update/test_string_update_null.test +++ b/parser/testdata/corpus/sql/update/test_string_update_null.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_string_update_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a=NULL where a='world'; diff --git a/parser/testdata/corpus/sql/update/test_string_update_rollback.test b/parser/testdata/corpus/sql/update/test_string_update_rollback.test index e07ad241..2002cfc3 100644 --- a/parser/testdata/corpus/sql/update/test_string_update_rollback.test +++ b/parser/testdata/corpus/sql/update/test_string_update_rollback.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_string_update_rollback.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a='test2' WHERE a='test'; diff --git a/parser/testdata/corpus/sql/update/test_string_update_rollback_null.test b/parser/testdata/corpus/sql/update/test_string_update_rollback_null.test index 5b4aa990..a8c0ba26 100644 --- a/parser/testdata/corpus/sql/update/test_string_update_rollback_null.test +++ b/parser/testdata/corpus/sql/update/test_string_update_rollback_null.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_string_update_rollback_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES ('test'), ('world') diff --git a/parser/testdata/corpus/sql/update/test_update.test b/parser/testdata/corpus/sql/update/test_update.test index dd4b5022..4f93daf7 100644 --- a/parser/testdata/corpus/sql/update/test_update.test +++ b/parser/testdata/corpus/sql/update/test_update.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM test WHERE a=3 diff --git a/parser/testdata/corpus/sql/update/test_update_delete_same_tuple.test b/parser/testdata/corpus/sql/update/test_update_delete_same_tuple.test index b3cef733..08f78157 100644 --- a/parser/testdata/corpus/sql/update/test_update_delete_same_tuple.test +++ b/parser/testdata/corpus/sql/update/test_update_delete_same_tuple.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_delete_same_tuple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (1), (2), (3); diff --git a/parser/testdata/corpus/sql/update/test_update_from.test b/parser/testdata/corpus/sql/update/test_update_from.test index 8d3b4066..b20415ac 100644 --- a/parser/testdata/corpus/sql/update/test_update_from.test +++ b/parser/testdata/corpus/sql/update/test_update_from.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_from.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE src (a INTEGER); @@ -59,14 +59,6 @@ UPDATE test SET a=s.a FROM src s -- ok == -SELECT count(*) FROM test --- -ok -== -SELECT a IN (2, 7) FROM test --- -ok -== CREATE TABLE terms(docid INTEGER, term INTEGER); -- ok diff --git a/parser/testdata/corpus/sql/update/test_update_issue_3170.test b/parser/testdata/corpus/sql/update/test_update_issue_3170.test index d3d51862..ff6962f5 100644 --- a/parser/testdata/corpus/sql/update/test_update_issue_3170.test +++ b/parser/testdata/corpus/sql/update/test_update_issue_3170.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_issue_3170.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE student(id INTEGER, name VARCHAR, PRIMARY KEY(id)); diff --git a/parser/testdata/corpus/sql/update/test_update_many_updaters.test b/parser/testdata/corpus/sql/update/test_update_many_updaters.test index 79a59c37..41f0f321 100644 --- a/parser/testdata/corpus/sql/update/test_update_many_updaters.test +++ b/parser/testdata/corpus/sql/update/test_update_many_updaters.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_many_updaters.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a=4 WHERE a=1 diff --git a/parser/testdata/corpus/sql/update/test_update_many_updaters_nulls.test b/parser/testdata/corpus/sql/update/test_update_many_updaters_nulls.test index b51082c1..f08a9edf 100644 --- a/parser/testdata/corpus/sql/update/test_update_many_updaters_nulls.test +++ b/parser/testdata/corpus/sql/update/test_update_many_updaters_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_many_updaters_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE test SET a=NULL WHERE a=1 diff --git a/parser/testdata/corpus/sql/update/test_update_mix.test b/parser/testdata/corpus/sql/update/test_update_mix.test index e1b83eec..cf001858 100644 --- a/parser/testdata/corpus/sql/update/test_update_mix.test +++ b/parser/testdata/corpus/sql/update/test_update_mix.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_mix.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO test VALUES (4), (5), (6); diff --git a/parser/testdata/corpus/sql/update/test_update_same_value.test b/parser/testdata/corpus/sql/update/test_update_same_value.test index 0b59ea1a..f5aa18de 100644 --- a/parser/testdata/corpus/sql/update/test_update_same_value.test +++ b/parser/testdata/corpus/sql/update/test_update_same_value.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_same_value.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM test WHERE a=4 diff --git a/parser/testdata/corpus/sql/update/test_update_with_non_regular_type.test b/parser/testdata/corpus/sql/update/test_update_with_non_regular_type.test index 8ce28fe2..382b6fda 100644 --- a/parser/testdata/corpus/sql/update/test_update_with_non_regular_type.test +++ b/parser/testdata/corpus/sql/update/test_update_with_non_regular_type.test @@ -1,6 +1,6 @@ # source: test/sql/update/test_update_with_non_regular_type.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id VARCHAR, new_id VARCHAR, tags VARCHAR[], g GEOMETRY); diff --git a/parser/testdata/corpus/sql/update/update_after_commit.test b/parser/testdata/corpus/sql/update/update_after_commit.test index 9956164b..2e66a91f 100644 --- a/parser/testdata/corpus/sql/update/update_after_commit.test +++ b/parser/testdata/corpus/sql/update/update_after_commit.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_after_commit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE a (b int); diff --git a/parser/testdata/corpus/sql/update/update_default.test b/parser/testdata/corpus/sql/update/update_default.test index fdaf69d1..09ac33ea 100644 --- a/parser/testdata/corpus/sql/update/update_default.test +++ b/parser/testdata/corpus/sql/update/update_default.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE t1 SET c0 = DEFAULT; diff --git a/parser/testdata/corpus/sql/update/update_delete_wal.test b/parser/testdata/corpus/sql/update/update_delete_wal.test index 5cc1a60e..fb6ed57a 100644 --- a/parser/testdata/corpus/sql/update/update_delete_wal.test +++ b/parser/testdata/corpus/sql/update/update_delete_wal.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_delete_wal.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table test (id bigint primary key, c1 text); diff --git a/parser/testdata/corpus/sql/update/update_error_suggestions.test b/parser/testdata/corpus/sql/update/update_error_suggestions.test index 8390af80..8b8ed76b 100644 --- a/parser/testdata/corpus/sql/update/update_error_suggestions.test +++ b/parser/testdata/corpus/sql/update/update_error_suggestions.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_error_suggestions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(mycol INTEGER) diff --git a/parser/testdata/corpus/sql/update/update_from_multi_match.test b/parser/testdata/corpus/sql/update/update_from_multi_match.test deleted file mode 100644 index 93ef3a12..00000000 --- a/parser/testdata/corpus/sql/update/update_from_multi_match.test +++ /dev/null @@ -1,245 +0,0 @@ -# source: test/sql/update/update_from_multi_match.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 -# generated by cmd/regenerate - do not edit - -INSERT INTO t VALUES (1, 0); --- -ok -== -CREATE TABLE s (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO s VALUES (1, 10), (1, 20), (1, 30); --- -ok -== -UPDATE t SET v = s.v FROM s WHERE t.id = s.id; --- -ok -== -SELECT v IN (10, 20, 30) FROM t; --- -ok -== -CREATE TABLE t2 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t2 SELECT i, -1 FROM range(1, 2000) tbl(i); --- -ok -== -CREATE TABLE s2 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO s2 SELECT i, i * 10 FROM range(1, 2000) tbl(i); --- -ok -== -INSERT INTO s2 SELECT i, i * 100 FROM range(1, 2000) tbl(i); --- -ok -== -UPDATE t2 SET v = s2.v FROM s2 WHERE t2.id = s2.id; --- -ok -== -SELECT count(*) FROM t2 WHERE v = id * 10 OR v = id * 100; --- -ok -== -SELECT count(*) FROM t2 WHERE v = -1; --- -ok -== -CREATE TABLE t3 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t3 VALUES (1, 0), (2, 0); --- -ok -== -CREATE TABLE s3 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO s3 VALUES (1, 11), (1, 12), (2, 21), (2, 22); --- -ok -== -UPDATE t3 SET v = s3.v FROM s3 WHERE t3.id = s3.id RETURNING id; --- -ok -== -CREATE TABLE tcnt (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO tcnt VALUES (1, 0); --- -ok -== -CREATE TABLE scnt (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO scnt VALUES (1, 10), (1, 20), (1, 30); --- -ok -== -UPDATE tcnt SET v = scnt.v FROM scnt WHERE tcnt.id = scnt.id; --- -ok -== -CREATE TABLE tcnt2 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO tcnt2 VALUES (1, 0), (2, 0); --- -ok -== -CREATE TABLE scnt2 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO scnt2 VALUES (1, 11), (1, 12), (2, 21), (2, 22); --- -ok -== -UPDATE tcnt2 SET v = scnt2.v FROM scnt2 WHERE tcnt2.id = scnt2.id; --- -ok -== -UPDATE tcnt2 SET v = v + 1; --- -ok -== -CREATE TABLE t_self (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t_self VALUES (1, 5), (1, 6), (2, 7); --- -ok -== -UPDATE t_self SET v = o.v FROM t_self o WHERE t_self.id = o.id; --- -ok -== -SELECT count(*) FROM t_self; --- -ok -== -CREATE TABLE t5 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t5 SELECT i, -1 FROM range(1, 2000) tbl(i); --- -ok -== -CREATE TABLE s5 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO s5 SELECT i, i * 10 FROM range(1, 2000) tbl(i); --- -ok -== -INSERT INTO s5 SELECT i, i * 100 FROM range(1, 2000) tbl(i); --- -ok -== -UPDATE t5 SET v = s5.v FROM s5 WHERE t5.id = s5.id; --- -ok -== -SELECT count(*) FROM t5; --- -ok -== -SELECT count(*) FROM t5 WHERE v = id * 10 OR v = id * 100; --- -ok -== -CREATE TABLE t6 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO t6 VALUES (1, 100); --- -ok -== -CREATE TABLE s6 (id INTEGER, v INTEGER); --- -ok -== -INSERT INTO s6 VALUES (2, 1), (3, 2); --- -ok -== -UPDATE t6 SET v = s6.v FROM s6 WHERE t6.id = s6.id; --- -ok -== -SELECT v FROM t6; --- -ok -== -CREATE TABLE t4 (id INTEGER, v INTEGER[]); --- -ok -== -INSERT INTO t4 VALUES (1, [0]); --- -ok -== -CREATE TABLE s4 (id INTEGER, v INTEGER[]); --- -ok -== -INSERT INTO s4 VALUES (1, [10]), (1, [20]); --- -ok -== -UPDATE t4 SET v = s4.v FROM s4 WHERE t4.id = s4.id; --- -ok -== -SELECT count(*) FROM t4; --- -ok -== -SELECT len(v) FROM t4; --- -ok -== -CREATE TABLE target_pk (id INTEGER PRIMARY KEY, value INTEGER); --- -ok -== -INSERT INTO target_pk VALUES (1, 0), (2, 0); --- -ok -== -CREATE TABLE source_dup (id INTEGER, value INTEGER); --- -ok -== -INSERT INTO source_dup VALUES (1, 10), (1, 11), (2, 20), (2, 21); --- -ok -== -UPDATE target_pk SET value = source_dup.value FROM source_dup WHERE target_pk.id = source_dup.id RETURNING id; --- -ok -== -SELECT count(*) FROM target_pk WHERE (id = 1 AND value IN (10, 11)) OR (id = 2 AND value IN (20, 21)); --- -ok -== diff --git a/parser/testdata/corpus/sql/update/update_join_nulls.test b/parser/testdata/corpus/sql/update/update_join_nulls.test index aa4e56aa..87675e53 100644 --- a/parser/testdata/corpus/sql/update/update_join_nulls.test +++ b/parser/testdata/corpus/sql/update/update_join_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_join_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(table_id BIGINT, val BOOLEAN); diff --git a/parser/testdata/corpus/sql/update/update_null_integers.test b/parser/testdata/corpus/sql/update/update_null_integers.test index c8409f14..94211cfc 100644 --- a/parser/testdata/corpus/sql/update/update_null_integers.test +++ b/parser/testdata/corpus/sql/update/update_null_integers.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_null_integers.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t(i int, j int); diff --git a/parser/testdata/corpus/sql/update/update_query_node.test b/parser/testdata/corpus/sql/update/update_query_node.test index ec34bb19..6dcbd827 100644 --- a/parser/testdata/corpus/sql/update/update_query_node.test +++ b/parser/testdata/corpus/sql/update/update_query_node.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_query_node.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit UPDATE t SET a = 10 WHERE a = 1; diff --git a/parser/testdata/corpus/sql/update/update_string_null_merge_dict_fsst.test b/parser/testdata/corpus/sql/update/update_string_null_merge_dict_fsst.test index e794427c..7adc9fd7 100644 --- a/parser/testdata/corpus/sql/update/update_string_null_merge_dict_fsst.test +++ b/parser/testdata/corpus/sql/update/update_string_null_merge_dict_fsst.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_string_null_merge_dict_fsst.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t as select case when i = 0 or i = 2 then NULL else 'value_' || (i % 50) end s from range(5000) t(i) diff --git a/parser/testdata/corpus/sql/update/update_tuple.test b/parser/testdata/corpus/sql/update/update_tuple.test index 583b4050..5cb19a70 100644 --- a/parser/testdata/corpus/sql/update/update_tuple.test +++ b/parser/testdata/corpus/sql/update/update_tuple.test @@ -1,6 +1,6 @@ # source: test/sql/update/update_tuple.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (a INT, b INT, c INT, d INT, e VARCHAR); diff --git a/parser/testdata/corpus/sql/upsert/concurrent_insert_or_replace.test b/parser/testdata/corpus/sql/upsert/concurrent_insert_or_replace.test index e6f02b56..826559af 100644 --- a/parser/testdata/corpus/sql/upsert/concurrent_insert_or_replace.test +++ b/parser/testdata/corpus/sql/upsert/concurrent_insert_or_replace.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/concurrent_insert_or_replace.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE SCHEMA IF NOT EXISTS schema__test diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/generated_column.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/generated_column.test index 35882ea0..9433b9e6 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/generated_column.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/issue_20952_non_pk_index_column.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/issue_20952_non_pk_index_column.test index 4fbb12eb..b7ff702c 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/issue_20952_non_pk_index_column.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/issue_20952_non_pk_index_column.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/issue_20952_non_pk_index_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table t( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/pk_and_non_unique_index.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/pk_and_non_unique_index.test index 79c7696c..f479ce6b 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/pk_and_non_unique_index.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/pk_and_non_unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/pk_and_non_unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/returning.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/returning.test index 09ed5765..3d14a188 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/returning.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/returning.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table foo( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/returning_nothing.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/returning_nothing.test index 537c28d0..2c364cd7 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/returning_nothing.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/returning_nothing.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/returning_nothing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bug ( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_and_non_unique_index.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_and_non_unique_index.test index ffb9f88b..a75c5506 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_and_non_unique_index.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_and_non_unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/unique_and_non_unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_constraint.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_constraint.test index 1fdda937..b3c5ae73 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_constraint.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_constraint.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/unique_constraint.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl( diff --git a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_index.test b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_index.test index 81f1a339..e49be281 100644 --- a/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_index.test +++ b/parser/testdata/corpus/sql/upsert/insert_or_replace/unique_index.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/insert_or_replace/unique_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl(a INT, b INT, c INT); diff --git a/parser/testdata/corpus/sql/upsert/minimal_reproducable_example.test b/parser/testdata/corpus/sql/upsert/minimal_reproducable_example.test index 2006a46e..34131503 100644 --- a/parser/testdata/corpus/sql/upsert/minimal_reproducable_example.test +++ b/parser/testdata/corpus/sql/upsert/minimal_reproducable_example.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/minimal_reproducable_example.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl( diff --git a/parser/testdata/corpus/sql/upsert/no_complex_default.test b/parser/testdata/corpus/sql/upsert/no_complex_default.test index 990b2620..7c76c15f 100644 --- a/parser/testdata/corpus/sql/upsert/no_complex_default.test +++ b/parser/testdata/corpus/sql/upsert/no_complex_default.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/no_complex_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl (a integer default 3); diff --git a/parser/testdata/corpus/sql/upsert/on_conflict_null_unique_key.test b/parser/testdata/corpus/sql/upsert/on_conflict_null_unique_key.test new file mode 100644 index 00000000..bb732718 --- /dev/null +++ b/parser/testdata/corpus/sql/upsert/on_conflict_null_unique_key.test @@ -0,0 +1,77 @@ +# source: test/sql/upsert/on_conflict_null_unique_key.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE n2(u INT UNIQUE, w INT); +-- +ok +== +INSERT INTO n2 VALUES (NULL,1),(NULL,2) ON CONFLICT DO NOTHING; +-- +ok +== +INSERT OR IGNORE INTO n2 VALUES (NULL,3),(NULL,4); +-- +ok +== +SELECT count(*) FROM n2; +-- +ok +== +INSERT INTO n2 VALUES (1,10),(1,11),(NULL,5) ON CONFLICT DO NOTHING; +-- +ok +== +SELECT count(*) FROM n2 WHERE u = 1; +-- +ok +== +SELECT count(*) FROM n2 WHERE u IS NULL; +-- +ok +== +CREATE TABLE c(a INT, b INT, UNIQUE(a, b)); +-- +ok +== +INSERT INTO c VALUES (1,NULL),(1,NULL),(2,3),(2,3) ON CONFLICT DO NOTHING; +-- +ok +== +SELECT a, count(*) FROM c GROUP BY a ORDER BY a; +-- +ok +== +CREATE TABLE pk(i INT PRIMARY KEY, v INT); +-- +ok +== +EXPLAIN INSERT INTO pk VALUES (1, 1) ON CONFLICT DO NOTHING; +-- +ok +== +CREATE TABLE nn(i INT NOT NULL UNIQUE, v INT); +-- +ok +== +EXPLAIN INSERT INTO nn VALUES (1, 1) ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO nn VALUES (1, 1), (1, 2), (2, 3) ON CONFLICT DO NOTHING; +-- +ok +== +SELECT count(*) FROM nn; +-- +ok +== +CREATE TABLE nu(i INT UNIQUE, v INT); +-- +ok +== +EXPLAIN INSERT INTO nu VALUES (1, 1) ON CONFLICT DO NOTHING; +-- +ok +== diff --git a/parser/testdata/corpus/sql/upsert/postgres/composite_key.test b/parser/testdata/corpus/sql/upsert/postgres/composite_key.test index f448f379..c52a55a4 100644 --- a/parser/testdata/corpus/sql/upsert/postgres/composite_key.test +++ b/parser/testdata/corpus/sql/upsert/postgres/composite_key.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/postgres/composite_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table insertconflicttest( diff --git a/parser/testdata/corpus/sql/upsert/postgres/non_spurious_duplicate_violation.test b/parser/testdata/corpus/sql/upsert/postgres/non_spurious_duplicate_violation.test index ffe1e4e7..c1ba1a6d 100644 --- a/parser/testdata/corpus/sql/upsert/postgres/non_spurious_duplicate_violation.test +++ b/parser/testdata/corpus/sql/upsert/postgres/non_spurious_duplicate_violation.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/postgres/non_spurious_duplicate_violation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table insertconflicttest( diff --git a/parser/testdata/corpus/sql/upsert/postgres/planner_preprocessing.test b/parser/testdata/corpus/sql/upsert/postgres/planner_preprocessing.test index 7e8b3dc5..e4c065c3 100644 --- a/parser/testdata/corpus/sql/upsert/postgres/planner_preprocessing.test +++ b/parser/testdata/corpus/sql/upsert/postgres/planner_preprocessing.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/postgres/planner_preprocessing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table cities ( diff --git a/parser/testdata/corpus/sql/upsert/postgres/single_key.test b/parser/testdata/corpus/sql/upsert/postgres/single_key.test index c3f7b836..82a3a15e 100644 --- a/parser/testdata/corpus/sql/upsert/postgres/single_key.test +++ b/parser/testdata/corpus/sql/upsert/postgres/single_key.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/postgres/single_key.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table insertconflicttest( diff --git a/parser/testdata/corpus/sql/upsert/test_big_insert.test b/parser/testdata/corpus/sql/upsert/test_big_insert.test index cddbacbe..295ecbf1 100644 --- a/parser/testdata/corpus/sql/upsert/test_big_insert.test +++ b/parser/testdata/corpus/sql/upsert/test_big_insert.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/test_big_insert.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE integers( diff --git a/parser/testdata/corpus/sql/upsert/test_big_insert_no_vector_verification.test b/parser/testdata/corpus/sql/upsert/test_big_insert_no_vector_verification.test index 69347c83..de6c4628 100644 --- a/parser/testdata/corpus/sql/upsert/test_big_insert_no_vector_verification.test +++ b/parser/testdata/corpus/sql/upsert/test_big_insert_no_vector_verification.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/test_big_insert_no_vector_verification.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit INSERT INTO integers(i, j) diff --git a/parser/testdata/corpus/sql/upsert/test_generated_column.test b/parser/testdata/corpus/sql/upsert/test_generated_column.test index 8dfe65b3..ad8bbc8b 100644 --- a/parser/testdata/corpus/sql/upsert/test_generated_column.test +++ b/parser/testdata/corpus/sql/upsert/test_generated_column.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/test_generated_column.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 ( diff --git a/parser/testdata/corpus/sql/upsert/test_problematic_conditional_do_update.test b/parser/testdata/corpus/sql/upsert/test_problematic_conditional_do_update.test index 4d501158..c53aadf5 100644 --- a/parser/testdata/corpus/sql/upsert/test_problematic_conditional_do_update.test +++ b/parser/testdata/corpus/sql/upsert/test_problematic_conditional_do_update.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/test_problematic_conditional_do_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE users ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_aliased.test b/parser/testdata/corpus/sql/upsert/upsert_aliased.test index d64d5198..5e13b1f8 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_aliased.test +++ b/parser/testdata/corpus/sql/upsert/upsert_aliased.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_aliased.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_basic.test b/parser/testdata/corpus/sql/upsert/upsert_basic.test index 9524ee33..38dadb05 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_basic.test +++ b/parser/testdata/corpus/sql/upsert/upsert_basic.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_basic.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl( diff --git a/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type.test b/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type.test new file mode 100644 index 00000000..6a809163 --- /dev/null +++ b/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type.test @@ -0,0 +1,353 @@ +# source: test/sql/upsert/upsert_conflict_key_type.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t1 (k VARCHAR PRIMARY KEY); +-- +ok +== +INSERT INTO t1 SELECT 1 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT k FROM t1 ORDER BY k +-- +ok +== +CREATE TABLE t2 (k INTEGER PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t2 VALUES (1, 0); +-- +ok +== +INSERT OR IGNORE INTO t2 SELECT 1.4, 7; +-- +ok +== +INSERT OR IGNORE INTO t2 BY NAME SELECT 7 AS n, 1.4 AS k; +-- +ok +== +INSERT INTO t2 (k) SELECT 1.4 ON CONFLICT (k) DO NOTHING; +-- +ok +== +INSERT INTO t2 SELECT 1.4, 7 ON CONFLICT (k) DO UPDATE SET n = excluded.k * 10; +-- +ok +== +INSERT OR REPLACE INTO t2 SELECT 2.3, 8; +-- +ok +== +INSERT OR REPLACE INTO t2 SELECT 0.9, 9; +-- +ok +== +SELECT * FROM t2 ORDER BY k +-- +ok +== +PREPARE upsert_t2 AS INSERT INTO t2 SELECT $1, 20 ON CONFLICT (k) DO UPDATE SET n = excluded.n WHERE excluded.k = 1 RETURNING k, n; +-- +ok +== +EXECUTE upsert_t2(1.4); +-- +ok +== +EXECUTE upsert_t2(2.4); +-- +ok +== +SELECT k, n FROM t2 WHERE k = 2 +-- +ok +== +INSERT INTO t2 SELECT 3.1, 1 UNION ALL SELECT 3.2, 2 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT count(*) FROM t2 WHERE k = 3 +-- +ok +== +CREATE TABLE t3 (k VARCHAR PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t3 VALUES ('2', 0); +-- +ok +== +INSERT INTO t3 SELECT 2.0::DOUBLE, 1 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t3 SELECT '2', 2 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT * FROM t3 ORDER BY k +-- +ok +== +CREATE TABLE t4 (k VARCHAR PRIMARY KEY DEFAULT 3.0::DOUBLE, n INTEGER); +-- +ok +== +INSERT INTO t4 VALUES ('3', 0); +-- +ok +== +INSERT INTO t4 (n) SELECT 1 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t4 (n) VALUES (2) ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t4 DEFAULT VALUES ON CONFLICT DO NOTHING; +-- +ok +== +SELECT * FROM t4 ORDER BY k +-- +ok +== +CREATE TABLE t5 (a INTEGER, b VARCHAR, c DATE UNIQUE, n INTEGER, PRIMARY KEY (a, b)); +-- +ok +== +INSERT INTO t5 VALUES (1, '1', DATE '2000-01-01', 0); +-- +ok +== +INSERT INTO t5 SELECT 1.2, 1, NULL, 1 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t5 SELECT 2, '2', TIMESTAMP '2000-01-01 10:00:00', 2 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t5 SELECT 1.2, 1, NULL, 3 ON CONFLICT (a, b) DO UPDATE SET n = excluded.n; +-- +ok +== +SELECT * FROM t5 ORDER BY a +-- +ok +== +CREATE TABLE t8 (k VARCHAR COLLATE NOCASE PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t8 VALUES ('A', 0); +-- +ok +== +INSERT INTO t8 SELECT 'a', 1 UNION ALL SELECT 'A', 1 ON CONFLICT DO UPDATE SET n = excluded.n; +-- +ok +== +INSERT INTO t8 SELECT 'b'::BLOB, 2 UNION ALL SELECT 'B'::BLOB, 2 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT OR IGNORE INTO t8 SELECT 'c', 3 UNION ALL SELECT 'C', 3; +-- +ok +== +INSERT OR REPLACE INTO t8 SELECT 'd', 4 UNION ALL SELECT 'D', 4; +-- +ok +== +INSERT INTO t8 SELECT 'Q', 5 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT lower(k), n FROM t8 ORDER BY n +-- +ok +== +SELECT k FROM t8 WHERE n IN (1, 5) ORDER BY n +-- +ok +== +PREPARE upsert_t8 AS INSERT INTO t8 SELECT $1, 6 ON CONFLICT DO UPDATE SET n = excluded.n RETURNING k, n; +-- +ok +== +EXECUTE upsert_t8('q'); +-- +ok +== +SELECT count(*) FROM t8 +-- +ok +== +CREATE TABLE t8b (k VARCHAR COLLATE NOACCENT UNIQUE); +-- +ok +== +INSERT INTO t8b SELECT 'é' UNION ALL SELECT 'e' ON CONFLICT DO NOTHING; +-- +ok +== +SELECT count(*) FROM t8b +-- +ok +== +CREATE TABLE t8c (a INTEGER, b VARCHAR COLLATE NOCASE, n INTEGER, PRIMARY KEY (a, b)); +-- +ok +== +INSERT INTO t8c SELECT 1.4, 'X', 1 UNION ALL SELECT 1, 'x', 1 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT a, lower(b) FROM t8c +-- +ok +== +CREATE TABLE t8e (k VARCHAR PRIMARY KEY); +-- +ok +== +INSERT INTO t8e VALUES ('B'); +-- +ok +== +INSERT INTO t8e SELECT 'A' COLLATE NOCASE UNION ALL SELECT 'a' COLLATE NOCASE ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t8e SELECT 'b' COLLATE NOCASE ON CONFLICT DO NOTHING; +-- +ok +== +SELECT k FROM t8e ORDER BY k::BLOB +-- +ok +== +CREATE TABLE t8f (k VARCHAR PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t8f VALUES ('B', 0); +-- +ok +== +INSERT INTO t8f SELECT 'A' COLLATE "binary", 1 UNION ALL SELECT 'a' COLLATE "binary", 1 ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t8f SELECT 'b' COLLATE "binary", 2 ON CONFLICT DO UPDATE SET n = excluded.n RETURNING k, n; +-- +ok +== +SELECT lower(k), n FROM t8f ORDER BY n +-- +ok +== +PREPARE upsert_t8f AS INSERT INTO t8f SELECT $1::VARCHAR, 3 ON CONFLICT DO UPDATE SET n = t8f.n + 1 RETURNING k, n; +-- +ok +== +EXECUTE upsert_t8f('x'); +-- +ok +== +CREATE TABLE t8d (k TIMETZ PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t8d VALUES ('12:00:00+00', 0); +-- +ok +== +INSERT INTO t8d SELECT '13:00:00+01', 1 UNION ALL SELECT '12:00:00+00', 2 ON CONFLICT DO UPDATE SET n = excluded.n; +-- +ok +== +INSERT INTO t8d SELECT '14:00:00+02', 3 UNION ALL SELECT '15:00:00+03', 4 ON CONFLICT DO NOTHING; +-- +ok +== +SELECT k::VARCHAR, n FROM t8d ORDER BY n +-- +ok +== +CREATE TYPE mood AS ENUM ('sad', 'ok'); +-- +ok +== +CREATE TABLE t6 (k mood PRIMARY KEY, n INTEGER); +-- +ok +== +INSERT INTO t6 VALUES ('ok', 0); +-- +ok +== +INSERT INTO t6 SELECT 'ok', 1 ON CONFLICT DO UPDATE SET n = excluded.n; +-- +ok +== +SELECT * FROM t6 +-- +ok +== +CREATE TABLE t6b (a INTEGER, k mood, n INTEGER, PRIMARY KEY (a, k)); +-- +ok +== +INSERT INTO t6b VALUES (1, 'ok', 0); +-- +ok +== +INSERT INTO t6b SELECT 1.4, 'ok', 1 ON CONFLICT DO UPDATE SET n = excluded.n; +-- +ok +== +SELECT * FROM t6b +-- +ok +== +CREATE TABLE t7 (k empty_enum UNIQUE); +-- +ok +== +INSERT INTO t7 VALUES (NULL) ON CONFLICT DO NOTHING; +-- +ok +== +INSERT INTO t7 SELECT NULL ON CONFLICT DO NOTHING; +-- +ok +== +SELECT count(*) FROM t7 +-- +ok +== +INSERT INTO t2 SELECT 'x', 1 ON CONFLICT DO NOTHING; +-- +ok +== +CREATE TABLE t_prepared_returning (k VARCHAR PRIMARY KEY, n INTEGER); +-- +ok +== +PREPARE upsert_returning AS INSERT INTO t_prepared_returning SELECT $1::VARCHAR, 3 ON CONFLICT DO UPDATE SET n = t_prepared_returning.n + 1 RETURNING k, n; +-- +ok +== +EXECUTE upsert_returning('x'); +-- +ok +== diff --git a/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type_json.test b/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type_json.test new file mode 100644 index 00000000..19ba74b5 --- /dev/null +++ b/parser/testdata/corpus/sql/upsert/upsert_conflict_key_type_json.test @@ -0,0 +1,29 @@ +# source: test/sql/upsert/upsert_conflict_key_type_json.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t9 (k JSON PRIMARY KEY); +-- +ok +== +INSERT INTO t9 VALUES ('1'); +-- +ok +== +CREATE TYPE s.JSON AS INTEGER; +-- +ok +== +SET search_path = 's,main'; +-- +ok +== +INSERT INTO t9 SELECT '1.4' ON CONFLICT DO NOTHING; +-- +ok +== +SELECT k FROM t9 ORDER BY k +-- +ok +== diff --git a/parser/testdata/corpus/sql/upsert/upsert_conflict_target.test b/parser/testdata/corpus/sql/upsert/upsert_conflict_target.test index 51b849d3..d8e6f22c 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_conflict_target.test +++ b/parser/testdata/corpus/sql/upsert/upsert_conflict_target.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_conflict_target.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE tbl (a INT, b INT, c INT, PRIMARY KEY (a, b)); diff --git a/parser/testdata/corpus/sql/upsert/upsert_conflict_target_index.test b/parser/testdata/corpus/sql/upsert/upsert_conflict_target_index.test index 1bfff585..a936a8c8 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_conflict_target_index.test +++ b/parser/testdata/corpus/sql/upsert/upsert_conflict_target_index.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_conflict_target_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table index_tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_coverage.test b/parser/testdata/corpus/sql/upsert/upsert_coverage.test index 4f270955..5d02b2ab 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_coverage.test +++ b/parser/testdata/corpus/sql/upsert/upsert_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (a INT, b INT UNIQUE, c INT UNIQUE, d INT UNIQUE); diff --git a/parser/testdata/corpus/sql/upsert/upsert_default.test b/parser/testdata/corpus/sql/upsert/upsert_default.test index 7a968ebd..bd82c6dc 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_default.test +++ b/parser/testdata/corpus/sql/upsert/upsert_default.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_default.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_default_expressions.test b/parser/testdata/corpus/sql/upsert/upsert_default_expressions.test index 444a85f9..f84085cf 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_default_expressions.test +++ b/parser/testdata/corpus/sql/upsert/upsert_default_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_default_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_default_value_causes_conflict.test b/parser/testdata/corpus/sql/upsert/upsert_default_value_causes_conflict.test index 1979d18e..43a00ffa 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_default_value_causes_conflict.test +++ b/parser/testdata/corpus/sql/upsert/upsert_default_value_causes_conflict.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_default_value_causes_conflict.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_default_values.test b/parser/testdata/corpus/sql/upsert/upsert_default_values.test index 3650f1b9..dee0f1ec 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_default_values.test +++ b/parser/testdata/corpus/sql/upsert/upsert_default_values.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_default_values.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_distinct_bug.test b/parser/testdata/corpus/sql/upsert/upsert_distinct_bug.test index c0d9c6cf..ca2badea 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_distinct_bug.test +++ b/parser/testdata/corpus/sql/upsert/upsert_distinct_bug.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_distinct_bug.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test_table_raw(id VARCHAR, name VARCHAR); diff --git a/parser/testdata/corpus/sql/upsert/upsert_duplicates_issue.test b/parser/testdata/corpus/sql/upsert/upsert_duplicates_issue.test index 06c673a3..834c6b42 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_duplicates_issue.test +++ b/parser/testdata/corpus/sql/upsert/upsert_duplicates_issue.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_duplicates_issue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tmp_edges(from_v VARCHAR, to_v VARCHAR, PRIMARY KEY(from_v, to_v)); diff --git a/parser/testdata/corpus/sql/upsert/upsert_excluded_references.test b/parser/testdata/corpus/sql/upsert/upsert_excluded_references.test index 86112da5..52b3e305 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_excluded_references.test +++ b/parser/testdata/corpus/sql/upsert/upsert_excluded_references.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_excluded_references.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_explicit_index.test b/parser/testdata/corpus/sql/upsert/upsert_explicit_index.test index d324c793..50d06ada 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_explicit_index.test +++ b/parser/testdata/corpus/sql/upsert/upsert_explicit_index.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_explicit_index.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl (i INT, j INT); diff --git a/parser/testdata/corpus/sql/upsert/upsert_global_mixed_conflicts.test b/parser/testdata/corpus/sql/upsert/upsert_global_mixed_conflicts.test index b2713f9f..dc0a1361 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_global_mixed_conflicts.test +++ b/parser/testdata/corpus/sql/upsert/upsert_global_mixed_conflicts.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_global_mixed_conflicts.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_inner_conflict_do_nothing.test b/parser/testdata/corpus/sql/upsert/upsert_inner_conflict_do_nothing.test index cd3bd5fe..c3b6e529 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_inner_conflict_do_nothing.test +++ b/parser/testdata/corpus/sql/upsert/upsert_inner_conflict_do_nothing.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_inner_conflict_do_nothing.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl( diff --git a/parser/testdata/corpus/sql/upsert/upsert_lambda.test b/parser/testdata/corpus/sql/upsert/upsert_lambda.test index 11ffaa67..ce62ca01 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_lambda.test +++ b/parser/testdata/corpus/sql/upsert/upsert_lambda.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_lambda.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE foo ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_local_no_tuples.test b/parser/testdata/corpus/sql/upsert/upsert_local_no_tuples.test index 53355aea..a7a221ac 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_local_no_tuples.test +++ b/parser/testdata/corpus/sql/upsert/upsert_local_no_tuples.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_local_no_tuples.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_multiple_constraints.test b/parser/testdata/corpus/sql/upsert/upsert_multiple_constraints.test index da1cdd3c..dd75bfa0 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_multiple_constraints.test +++ b/parser/testdata/corpus/sql/upsert/upsert_multiple_constraints.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_multiple_constraints.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE IF NOT EXISTS tbl (id INTEGER PRIMARY KEY, uniq INTEGER, UNIQUE(uniq)); diff --git a/parser/testdata/corpus/sql/upsert/upsert_order_coverage.test b/parser/testdata/corpus/sql/upsert/upsert_order_coverage.test index d55eb74c..0efe97f3 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_order_coverage.test +++ b/parser/testdata/corpus/sql/upsert/upsert_order_coverage.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_order_coverage.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl( diff --git a/parser/testdata/corpus/sql/upsert/upsert_partial_update.test b/parser/testdata/corpus/sql/upsert/upsert_partial_update.test index 79d1179b..582fa28d 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_partial_update.test +++ b/parser/testdata/corpus/sql/upsert/upsert_partial_update.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_partial_update.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl (a integer primary key, b integer); diff --git a/parser/testdata/corpus/sql/upsert/upsert_returning.test b/parser/testdata/corpus/sql/upsert/upsert_returning.test index 6437c03e..9c3bca8f 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_returning.test +++ b/parser/testdata/corpus/sql/upsert/upsert_returning.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_returning.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE users ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_set_expressions.test b/parser/testdata/corpus/sql/upsert/upsert_set_expressions.test index c8c9cdea..9197c0ee 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_set_expressions.test +++ b/parser/testdata/corpus/sql/upsert/upsert_set_expressions.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_set_expressions.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit insert into tbl VALUES diff --git a/parser/testdata/corpus/sql/upsert/upsert_shorthand.test b/parser/testdata/corpus/sql/upsert/upsert_shorthand.test index 6a4a8971..8dbf48ad 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_shorthand.test +++ b/parser/testdata/corpus/sql/upsert/upsert_shorthand.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_shorthand.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tbl (a integer, b integer unique); diff --git a/parser/testdata/corpus/sql/upsert/upsert_transaction.test b/parser/testdata/corpus/sql/upsert/upsert_transaction.test index ae003b6f..8020a6e0 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_transaction.test +++ b/parser/testdata/corpus/sql/upsert/upsert_transaction.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_transaction.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl ( diff --git a/parser/testdata/corpus/sql/upsert/upsert_unique_null.test b/parser/testdata/corpus/sql/upsert/upsert_unique_null.test index bd08e1c0..91567dc2 100644 --- a/parser/testdata/corpus/sql/upsert/upsert_unique_null.test +++ b/parser/testdata/corpus/sql/upsert/upsert_unique_null.test @@ -1,6 +1,6 @@ # source: test/sql/upsert/upsert_unique_null.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create or replace table tbl ( diff --git a/parser/testdata/corpus/sql/vacuum/test_analyze.test b/parser/testdata/corpus/sql/vacuum/test_analyze.test index 5884e2d4..e7fc7e30 100644 --- a/parser/testdata/corpus/sql/vacuum/test_analyze.test +++ b/parser/testdata/corpus/sql/vacuum/test_analyze.test @@ -1,6 +1,6 @@ # source: test/sql/vacuum/test_analyze.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit ANALYZE; diff --git a/parser/testdata/corpus/sql/vacuum/vacuum_nested_types.test b/parser/testdata/corpus/sql/vacuum/vacuum_nested_types.test index 81f24a4b..089eb146 100644 --- a/parser/testdata/corpus/sql/vacuum/vacuum_nested_types.test +++ b/parser/testdata/corpus/sql/vacuum/vacuum_nested_types.test @@ -1,6 +1,6 @@ # source: test/sql/vacuum/vacuum_nested_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE test (x INT[], y AS (x || [100])); diff --git a/parser/testdata/corpus/sql/variables/test_variable_syntax.test b/parser/testdata/corpus/sql/variables/test_variable_syntax.test index 346da921..204d9204 100644 --- a/parser/testdata/corpus/sql/variables/test_variable_syntax.test +++ b/parser/testdata/corpus/sql/variables/test_variable_syntax.test @@ -1,6 +1,6 @@ # source: test/sql/variables/test_variable_syntax.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET VARIABLE animal = 'duck' diff --git a/parser/testdata/corpus/sql/variables/test_variables.test b/parser/testdata/corpus/sql/variables/test_variables.test index bf55e0df..b0b06a5e 100644 --- a/parser/testdata/corpus/sql/variables/test_variables.test +++ b/parser/testdata/corpus/sql/variables/test_variables.test @@ -1,6 +1,6 @@ # source: test/sql/variables/test_variables.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT GETVARIABLE('animal') @@ -59,3 +59,11 @@ SELECT GETVARIABLE('xxx') -- ok == +SET VARIABLE qualified = a.b.c +-- +ok +== +SELECT GETVARIABLE('qualified') +-- +ok +== diff --git a/parser/testdata/corpus/sql/variant/variant_comparator.test b/parser/testdata/corpus/sql/variant/variant_comparator.test index 30e70fb1..737c0187 100644 --- a/parser/testdata/corpus/sql/variant/variant_comparator.test +++ b/parser/testdata/corpus/sql/variant/variant_comparator.test @@ -1,6 +1,6 @@ # source: test/sql/variant/variant_comparator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT v::INT FROM (VALUES (-123), (5), (-1), (100), (0)) t(v) diff --git a/parser/testdata/corpus/sql/variant/variant_nested_arrays.test b/parser/testdata/corpus/sql/variant/variant_nested_arrays.test index 2aa2f99c..7a6491ed 100644 --- a/parser/testdata/corpus/sql/variant/variant_nested_arrays.test +++ b/parser/testdata/corpus/sql/variant/variant_nested_arrays.test @@ -1,6 +1,6 @@ # source: test/sql/variant/variant_nested_arrays.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT variant_to_parquet_variant( diff --git a/parser/testdata/corpus/sql/vector_types/list_vector_types.test b/parser/testdata/corpus/sql/vector_types/list_vector_types.test index 7a3e75c1..b2f79004 100644 --- a/parser/testdata/corpus/sql/vector_types/list_vector_types.test +++ b/parser/testdata/corpus/sql/vector_types/list_vector_types.test @@ -1,6 +1,6 @@ # source: test/sql/vector_types/list_vector_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT * FROM test_vector_types(NULL::INT[], all_flat={all_flat}); diff --git a/parser/testdata/corpus/sql/vector_types/vector_types_errors.test b/parser/testdata/corpus/sql/vector_types/vector_types_errors.test index fea62083..bf96205c 100644 --- a/parser/testdata/corpus/sql/vector_types/vector_types_errors.test +++ b/parser/testdata/corpus/sql/vector_types/vector_types_errors.test @@ -1,6 +1,6 @@ # source: test/sql/vector_types/vector_types_errors.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit FROM test_vector_types(NULL::VARIANT); diff --git a/parser/testdata/corpus/sql/window/parallel_collection_combine.test b/parser/testdata/corpus/sql/window/parallel_collection_combine.test index 8df5fd96..f04f6c40 100644 --- a/parser/testdata/corpus/sql/window/parallel_collection_combine.test +++ b/parser/testdata/corpus/sql/window/parallel_collection_combine.test @@ -1,6 +1,6 @@ # source: test/sql/window/parallel_collection_combine.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE collection_input AS diff --git a/parser/testdata/corpus/sql/window/segment_tree_leaf_batches.test b/parser/testdata/corpus/sql/window/segment_tree_leaf_batches.test index f76187c7..b03fb204 100644 --- a/parser/testdata/corpus/sql/window/segment_tree_leaf_batches.test +++ b/parser/testdata/corpus/sql/window/segment_tree_leaf_batches.test @@ -1,6 +1,6 @@ # source: test/sql/window/segment_tree_leaf_batches.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO triangular(n) AS n * (n + 1) // 2 diff --git a/parser/testdata/corpus/sql/window/test_basic_window.test b/parser/testdata/corpus/sql/window/test_basic_window.test index d1919f8a..7b15e657 100644 --- a/parser/testdata/corpus/sql/window/test_basic_window.test +++ b/parser/testdata/corpus/sql/window/test_basic_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_basic_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT x, MAX(x) OVER none FROM (VALUES (1)) t(x); diff --git a/parser/testdata/corpus/sql/window/test_boundary_expr.test b/parser/testdata/corpus/sql/window/test_boundary_expr.test index ffb972ab..23792bc2 100644 --- a/parser/testdata/corpus/sql/window/test_boundary_expr.test +++ b/parser/testdata/corpus/sql/window/test_boundary_expr.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_boundary_expr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tenk1 ( unique1 int4, unique2 int4, two int4, four int4, ten int4, twenty int4, hundred int4, thousand int4, twothousand int4, fivethous int4, tenthous int4, odd int4, even int4, stringu1 string, stringu2 string, string4 string ) diff --git a/parser/testdata/corpus/sql/window/test_constant_orderby.test b/parser/testdata/corpus/sql/window/test_constant_orderby.test index f2dd44fd..d6670004 100644 --- a/parser/testdata/corpus/sql/window/test_constant_orderby.test +++ b/parser/testdata/corpus/sql/window/test_constant_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_constant_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_cume_dist_orderby.test b/parser/testdata/corpus/sql/window/test_cume_dist_orderby.test index b4cbf405..5c01993b 100644 --- a/parser/testdata/corpus/sql/window/test_cume_dist_orderby.test +++ b/parser/testdata/corpus/sql/window/test_cume_dist_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_cume_dist_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_dense_rank.test b/parser/testdata/corpus/sql/window/test_dense_rank.test index 8c5dd77c..b9df3c55 100644 --- a/parser/testdata/corpus/sql/window/test_dense_rank.test +++ b/parser/testdata/corpus/sql/window/test_dense_rank.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_dense_rank.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t AS ( diff --git a/parser/testdata/corpus/sql/window/test_dense_rank_empty_union_branch.test b/parser/testdata/corpus/sql/window/test_dense_rank_empty_union_branch.test new file mode 100644 index 00000000..682f3bef --- /dev/null +++ b/parser/testdata/corpus/sql/window/test_dense_rank_empty_union_branch.test @@ -0,0 +1,26 @@ +# source: test/sql/window/test_dense_rank_empty_union_branch.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT dense_rank() OVER () FROM (SELECT * FROM range(0) UNION ALL SELECT * FROM range(5)); +-- +ok +== +SELECT dense_rank() OVER () FROM (SELECT * FROM range(1) WHERE range > 0 UNION ALL SELECT * FROM range(3)); +-- +ok +== +SELECT rank() OVER (ORDER BY i), percent_rank() OVER (ORDER BY i) +FROM (SELECT * FROM range(0) t(i) UNION ALL SELECT * FROM range(3) t(i)); +-- +ok +== +CREATE TABLE b AS SELECT * FROM range(3) t(i); +-- +ok +== +SELECT dense_rank() OVER () FROM (SELECT * FROM a UNION ALL SELECT * FROM b); +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/test_duplicate_partition.test b/parser/testdata/corpus/sql/window/test_duplicate_partition.test index 186120b5..c9671fa9 100644 --- a/parser/testdata/corpus/sql/window/test_duplicate_partition.test +++ b/parser/testdata/corpus/sql/window/test_duplicate_partition.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_duplicate_partition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE src(a INTEGER, b INTEGER, v INTEGER); diff --git a/parser/testdata/corpus/sql/window/test_empty_frames.test b/parser/testdata/corpus/sql/window/test_empty_frames.test index e38bd357..b49b7789 100644 --- a/parser/testdata/corpus/sql/window/test_empty_frames.test +++ b/parser/testdata/corpus/sql/window/test_empty_frames.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_empty_frames.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t1 (id INTEGER, ch CHAR(1)) ; diff --git a/parser/testdata/corpus/sql/window/test_evil_window.test b/parser/testdata/corpus/sql/window/test_evil_window.test index 057c1d31..6b25e9e8 100644 --- a/parser/testdata/corpus/sql/window/test_evil_window.test +++ b/parser/testdata/corpus/sql/window/test_evil_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_evil_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select * diff --git a/parser/testdata/corpus/sql/window/test_fill_logical_range.test b/parser/testdata/corpus/sql/window/test_fill_logical_range.test new file mode 100644 index 00000000..1ca08bb7 --- /dev/null +++ b/parser/testdata/corpus/sql/window/test_fill_logical_range.test @@ -0,0 +1,53 @@ +# source: test/sql/window/test_fill_logical_range.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, TIME '01:00:00'), (1, TIME '00:01:00'), (100, NULL)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, TIME '23:00:00'), (1, TIME '23:59:00'), (2, NULL)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, TIME_NS '01:00:00'), (1, TIME_NS '00:01:00'), (100, NULL)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, 0::DECIMAL(9,9)), (1, 0.9::DECIMAL(9,9)), (2, NULL)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, 0::DECIMAL(38,0)), (1, 90000000000000000000000000000000000000::DECIMAL(38,0)), (2, NULL)) t(k, v) ORDER BY k +-- +ok +== +CREATE TABLE ts AS SELECT k, fill(v) OVER (ORDER BY k) f FROM (VALUES (0, '200000-01-01'::TIMESTAMP_S), (1, '290000-01-01'::TIMESTAMP_S), (3, NULL)) t(k, v); +-- +ok +== +SELECT k, f FROM ts ORDER BY k +-- +ok +== +CREATE TABLE tms AS SELECT k, fill(v) OVER (ORDER BY k) f FROM (VALUES (0, '200000-01-01'::TIMESTAMP_MS), (1, '290000-01-01'::TIMESTAMP_MS), (3, NULL)) t(k, v); +-- +ok +== +SELECT k, f FROM tms ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, 0), (1, NULL), (2, 9223372036854775807)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, 9223372036854775806), (1, NULL), (2, 9223372036854775807)) t(k, v) ORDER BY k +-- +ok +== +SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, TIME '01:00:00'), (1, NULL), (2, TIME '03:00:00'), (3, NULL)) t(k, v) ORDER BY k +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/test_fill_orderby.test b/parser/testdata/corpus/sql/window/test_fill_orderby.test index 31f1e9f1..fc176a31 100644 --- a/parser/testdata/corpus/sql/window/test_fill_orderby.test +++ b/parser/testdata/corpus/sql/window/test_fill_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_fill_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select fill(i order by 10-i, i * i) over (order by i) from range(3) tbl(i); diff --git a/parser/testdata/corpus/sql/window/test_fill_physical_types.test b/parser/testdata/corpus/sql/window/test_fill_physical_types.test index 19b1168c..21580e62 100644 --- a/parser/testdata/corpus/sql/window/test_fill_physical_types.test +++ b/parser/testdata/corpus/sql/window/test_fill_physical_types.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_fill_physical_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, fill(CASE WHEN i = 1 THEN NULL ELSE i END::{type}) OVER (ORDER BY i::{type}) AS filled diff --git a/parser/testdata/corpus/sql/window/test_fill_prefix_order.test b/parser/testdata/corpus/sql/window/test_fill_prefix_order.test index 5419103a..07c6280c 100644 --- a/parser/testdata/corpus/sql/window/test_fill_prefix_order.test +++ b/parser/testdata/corpus/sql/window/test_fill_prefix_order.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_fill_prefix_order.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT k, fill(v ORDER BY k) OVER (ORDER BY k, i) FROM (VALUES (0, 1, 1), (1, 2, NULL), (2, 3, 3)) t(k, i, v) ORDER BY k; diff --git a/parser/testdata/corpus/sql/window/test_ignore_nulls.test b/parser/testdata/corpus/sql/window/test_ignore_nulls.test index b7eff052..533d5bc6 100644 --- a/parser/testdata/corpus/sql/window/test_ignore_nulls.test +++ b/parser/testdata/corpus/sql/window/test_ignore_nulls.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_ignore_nulls.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE issue2549 AS SELECT * FROM (VALUES diff --git a/parser/testdata/corpus/sql/window/test_invalid_window.test b/parser/testdata/corpus/sql/window/test_invalid_window.test index 8ef7a714..496c1ffc 100644 --- a/parser/testdata/corpus/sql/window/test_invalid_window.test +++ b/parser/testdata/corpus/sql/window/test_invalid_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_invalid_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT depname, min(salary) OVER (PARTITION BY depname ORDER BY salary, empno) m1 FROM empsalary GROUP BY m1 ORDER BY depname, empno diff --git a/parser/testdata/corpus/sql/window/test_last_ignore_nulls_large_partition.test b/parser/testdata/corpus/sql/window/test_last_ignore_nulls_large_partition.test index dc4614d2..5e0ad1ec 100644 --- a/parser/testdata/corpus/sql/window/test_last_ignore_nulls_large_partition.test +++ b/parser/testdata/corpus/sql/window/test_last_ignore_nulls_large_partition.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_last_ignore_nulls_large_partition.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(x), count(*) FILTER (x IS DISTINCT FROM m) FROM ( diff --git a/parser/testdata/corpus/sql/window/test_lead_lag.test b/parser/testdata/corpus/sql/window/test_lead_lag.test index 82405a82..affff874 100644 --- a/parser/testdata/corpus/sql/window/test_lead_lag.test +++ b/parser/testdata/corpus/sql/window/test_lead_lag.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_lead_lag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select c1, lead(c1, 2) over (order by c0 rows between 2 preceding and 4 preceding) as b diff --git a/parser/testdata/corpus/sql/window/test_lead_lag_offset_overflow.test b/parser/testdata/corpus/sql/window/test_lead_lag_offset_overflow.test index 0c4dcfef..51be8906 100644 --- a/parser/testdata/corpus/sql/window/test_lead_lag_offset_overflow.test +++ b/parser/testdata/corpus/sql/window/test_lead_lag_offset_overflow.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_lead_lag_offset_overflow.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(*) = {rows}, count(l) FROM (SELECT {fun}(i, ({offset})::BIGINT) OVER () AS l FROM range({rows}) t(i)) diff --git a/parser/testdata/corpus/sql/window/test_leadlag_orderby.test b/parser/testdata/corpus/sql/window/test_leadlag_orderby.test index 5f244fc6..bc7559a6 100644 --- a/parser/testdata/corpus/sql/window/test_leadlag_orderby.test +++ b/parser/testdata/corpus/sql/window/test_leadlag_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_leadlag_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_list_window.test b/parser/testdata/corpus/sql/window/test_list_window.test index 581a6fec..4fd06d9d 100644 --- a/parser/testdata/corpus/sql/window/test_list_window.test +++ b/parser/testdata/corpus/sql/window/test_list_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_list_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE list_extract_test(i INTEGER, g INTEGER); diff --git a/parser/testdata/corpus/sql/window/test_mad_window.test b/parser/testdata/corpus/sql/window/test_mad_window.test index c46d015b..d4236c21 100644 --- a/parser/testdata/corpus/sql/window/test_mad_window.test +++ b/parser/testdata/corpus/sql/window/test_mad_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_mad_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table mads as select range r from range(20) union all values (NULL), (NULL), (NULL); diff --git a/parser/testdata/corpus/sql/window/test_mode_window.test b/parser/testdata/corpus/sql/window/test_mode_window.test index 4da12e56..29dd39e4 100644 --- a/parser/testdata/corpus/sql/window/test_mode_window.test +++ b/parser/testdata/corpus/sql/window/test_mode_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_mode_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table modes as select range r from range(10) union all values (NULL), (NULL), (NULL); diff --git a/parser/testdata/corpus/sql/window/test_mode_window_varlen.test b/parser/testdata/corpus/sql/window/test_mode_window_varlen.test index ff5c3922..d837f5db 100644 --- a/parser/testdata/corpus/sql/window/test_mode_window_varlen.test +++ b/parser/testdata/corpus/sql/window/test_mode_window_varlen.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_mode_window_varlen.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE modes_str AS diff --git a/parser/testdata/corpus/sql/window/test_naive_aggregation.test b/parser/testdata/corpus/sql/window/test_naive_aggregation.test index d42dd29d..200fe9a4 100644 --- a/parser/testdata/corpus/sql/window/test_naive_aggregation.test +++ b/parser/testdata/corpus/sql/window/test_naive_aggregation.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_naive_aggregation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_window_mode=separate diff --git a/parser/testdata/corpus/sql/window/test_negative_range.test b/parser/testdata/corpus/sql/window/test_negative_range.test index 3c75764e..6dfe2f6a 100644 --- a/parser/testdata/corpus/sql/window/test_negative_range.test +++ b/parser/testdata/corpus/sql/window/test_negative_range.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_negative_range.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE OR REPLACE TABLE issue10855(i INTEGER, v FLOAT); diff --git a/parser/testdata/corpus/sql/window/test_no_default_window_spec.test b/parser/testdata/corpus/sql/window/test_no_default_window_spec.test index 605ad036..78cee5c8 100644 --- a/parser/testdata/corpus/sql/window/test_no_default_window_spec.test +++ b/parser/testdata/corpus/sql/window/test_no_default_window_spec.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_no_default_window_spec.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table tenk1d(ten int4, four int4) diff --git a/parser/testdata/corpus/sql/window/test_nthvalue.test b/parser/testdata/corpus/sql/window/test_nthvalue.test index d63af73e..e4d9fa0f 100644 --- a/parser/testdata/corpus/sql/window/test_nthvalue.test +++ b/parser/testdata/corpus/sql/window/test_nthvalue.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_nthvalue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE empsalary (depname varchar, empno bigint, salary int, enroll_date date); diff --git a/parser/testdata/corpus/sql/window/test_ntile.test b/parser/testdata/corpus/sql/window/test_ntile.test index e9a6907e..6e8cf8be 100644 --- a/parser/testdata/corpus/sql/window/test_ntile.test +++ b/parser/testdata/corpus/sql/window/test_ntile.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_ntile.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE Scoreboard(TeamName VARCHAR, Player VARCHAR, Score INTEGER); diff --git a/parser/testdata/corpus/sql/window/test_order_by_all.test b/parser/testdata/corpus/sql/window/test_order_by_all.test index f8b76b3b..45429aaf 100644 --- a/parser/testdata/corpus/sql/window/test_order_by_all.test +++ b/parser/testdata/corpus/sql/window/test_order_by_all.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_order_by_all.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, j, ROW_NUMBER() OVER (ORDER BY ALL) AS rn diff --git a/parser/testdata/corpus/sql/window/test_parallel_group_cleanup.test b/parser/testdata/corpus/sql/window/test_parallel_group_cleanup.test index a83eeeb4..403d9d80 100644 --- a/parser/testdata/corpus/sql/window/test_parallel_group_cleanup.test +++ b/parser/testdata/corpus/sql/window/test_parallel_group_cleanup.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_parallel_group_cleanup.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE cleanup_input AS diff --git a/parser/testdata/corpus/sql/window/test_partition_constant_arguments.test b/parser/testdata/corpus/sql/window/test_partition_constant_arguments.test index 26fdadb7..f6d2a18d 100644 --- a/parser/testdata/corpus/sql/window/test_partition_constant_arguments.test +++ b/parser/testdata/corpus/sql/window/test_partition_constant_arguments.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_partition_constant_arguments.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT i, diff --git a/parser/testdata/corpus/sql/window/test_quantile_skip_list.test b/parser/testdata/corpus/sql/window/test_quantile_skip_list.test index b79bd7ff..7a0b6705 100644 --- a/parser/testdata/corpus/sql/window/test_quantile_skip_list.test +++ b/parser/testdata/corpus/sql/window/test_quantile_skip_list.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_quantile_skip_list.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SET debug_window_mode='window'; diff --git a/parser/testdata/corpus/sql/window/test_quantile_window.test b/parser/testdata/corpus/sql/window/test_quantile_window.test index 32e33fcd..7a789630 100644 --- a/parser/testdata/corpus/sql/window/test_quantile_window.test +++ b/parser/testdata/corpus/sql/window/test_quantile_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_quantile_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table quantiles as select range r from range(10) union all values (NULL), (NULL), (NULL); diff --git a/parser/testdata/corpus/sql/window/test_range_optimisation.test b/parser/testdata/corpus/sql/window/test_range_optimisation.test index e9c82f03..39db58b2 100644 --- a/parser/testdata/corpus/sql/window/test_range_optimisation.test +++ b/parser/testdata/corpus/sql/window/test_range_optimisation.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_range_optimisation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE rides ( diff --git a/parser/testdata/corpus/sql/window/test_rank.test b/parser/testdata/corpus/sql/window/test_rank.test index 06916e03..8285d470 100644 --- a/parser/testdata/corpus/sql/window/test_rank.test +++ b/parser/testdata/corpus/sql/window/test_rank.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_rank.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH t AS ( diff --git a/parser/testdata/corpus/sql/window/test_rank_orderby.test b/parser/testdata/corpus/sql/window/test_rank_orderby.test index 5f0232df..7d4fc581 100644 --- a/parser/testdata/corpus/sql/window/test_rank_orderby.test +++ b/parser/testdata/corpus/sql/window/test_rank_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_rank_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_rownumber_orderby.test b/parser/testdata/corpus/sql/window/test_rownumber_orderby.test index 4c0c64b7..d78b94eb 100644 --- a/parser/testdata/corpus/sql/window/test_rownumber_orderby.test +++ b/parser/testdata/corpus/sql/window/test_rownumber_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_rownumber_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_scalar_window.test b/parser/testdata/corpus/sql/window/test_scalar_window.test index 2b89c561..17aad34f 100644 --- a/parser/testdata/corpus/sql/window/test_scalar_window.test +++ b/parser/testdata/corpus/sql/window/test_scalar_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_scalar_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT row_number() OVER () diff --git a/parser/testdata/corpus/sql/window/test_single_following_frame.test b/parser/testdata/corpus/sql/window/test_single_following_frame.test index ce09a83e..79b27da8 100644 --- a/parser/testdata/corpus/sql/window/test_single_following_frame.test +++ b/parser/testdata/corpus/sql/window/test_single_following_frame.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_single_following_frame.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) OVER (ORDER BY x {framing} 1 FOLLOWING) diff --git a/parser/testdata/corpus/sql/window/test_split_partition_heap.test b/parser/testdata/corpus/sql/window/test_split_partition_heap.test index bdbbc508..3ba46e0b 100644 --- a/parser/testdata/corpus/sql/window/test_split_partition_heap.test +++ b/parser/testdata/corpus/sql/window/test_split_partition_heap.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_split_partition_heap.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table partsupp as select uuid()::varchar as c5 from range(8000); diff --git a/parser/testdata/corpus/sql/window/test_streaming_lead_lag.test b/parser/testdata/corpus/sql/window/test_streaming_lead_lag.test index e1bbec88..dcb32aa0 100644 --- a/parser/testdata/corpus/sql/window/test_streaming_lead_lag.test +++ b/parser/testdata/corpus/sql/window/test_streaming_lead_lag.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_streaming_lead_lag.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit EXPLAIN @@ -168,3 +168,19 @@ FROM t; -- ok == +SELECT lag(i, CAST('a' AS BIGINT)) OVER () FROM ints; +-- +ok +== +SELECT lead(i, 1, CAST('a' AS BIGINT)) OVER () FROM ints; +-- +ok +== +INSERT INTO ints VALUES (0), (1), (2); +-- +ok +== +SELECT lag(i, 1 // 0) OVER () FROM ints WHERE i > 10; +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/test_streaming_nthvalue.test b/parser/testdata/corpus/sql/window/test_streaming_nthvalue.test index 4ca527c0..10b2a232 100644 --- a/parser/testdata/corpus/sql/window/test_streaming_nthvalue.test +++ b/parser/testdata/corpus/sql/window/test_streaming_nthvalue.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_streaming_nthvalue.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit explain select nth_value(i, 1) over () @@ -53,3 +53,11 @@ QUALIFY n IS NOT NULL; -- ok == +SELECT nth_value(i, 1 // 0) OVER () FROM ints; +-- +ok +== +SELECT nth_value(i, 1 // 0) OVER () FROM ints WHERE i > 10; +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/test_streaming_window.test b/parser/testdata/corpus/sql/window/test_streaming_window.test index c41b4c21..1291027c 100644 --- a/parser/testdata/corpus/sql/window/test_streaming_window.test +++ b/parser/testdata/corpus/sql/window/test_streaming_window.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_streaming_window.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers (i int, j int) diff --git a/parser/testdata/corpus/sql/window/test_streaming_window_distinct.test b/parser/testdata/corpus/sql/window/test_streaming_window_distinct.test index 3c5cd658..2b524c16 100644 --- a/parser/testdata/corpus/sql/window/test_streaming_window_distinct.test +++ b/parser/testdata/corpus/sql/window/test_streaming_window_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_streaming_window_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit explain diff --git a/parser/testdata/corpus/sql/window/test_thread_count.test b/parser/testdata/corpus/sql/window/test_thread_count.test index 40b11cab..2589c258 100644 --- a/parser/testdata/corpus/sql/window/test_thread_count.test +++ b/parser/testdata/corpus/sql/window/test_thread_count.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_thread_count.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select row_number() over () diff --git a/parser/testdata/corpus/sql/window/test_tpcc_results.test b/parser/testdata/corpus/sql/window/test_tpcc_results.test index 6a0e413a..ab87d557 100644 --- a/parser/testdata/corpus/sql/window/test_tpcc_results.test +++ b/parser/testdata/corpus/sql/window/test_tpcc_results.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_tpcc_results.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select diff --git a/parser/testdata/corpus/sql/window/test_tpcds_q49.test b/parser/testdata/corpus/sql/window/test_tpcds_q49.test index ea8c951e..836d8e2a 100644 --- a/parser/testdata/corpus/sql/window/test_tpcds_q49.test +++ b/parser/testdata/corpus/sql/window/test_tpcds_q49.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_tpcds_q49.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table wintest( item integer, return_ratio numeric, currency_ratio numeric) diff --git a/parser/testdata/corpus/sql/window/test_value_exclude.test b/parser/testdata/corpus/sql/window/test_value_exclude.test index 6a1f74a2..b39bd7e1 100644 --- a/parser/testdata/corpus/sql/window/test_value_exclude.test +++ b/parser/testdata/corpus/sql/window/test_value_exclude.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_value_exclude.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH src(id, v) AS ( diff --git a/parser/testdata/corpus/sql/window/test_value_orderby.test b/parser/testdata/corpus/sql/window/test_value_orderby.test index 26f0cd84..020c002c 100644 --- a/parser/testdata/corpus/sql/window/test_value_orderby.test +++ b/parser/testdata/corpus/sql/window/test_value_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_value_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_volatile_independence.test b/parser/testdata/corpus/sql/window/test_volatile_independence.test index 3c3a126d..3db49b66 100644 --- a/parser/testdata/corpus/sql/window/test_volatile_independence.test +++ b/parser/testdata/corpus/sql/window/test_volatile_independence.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_volatile_independence.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT diff --git a/parser/testdata/corpus/sql/window/test_wide_orderby.test b/parser/testdata/corpus/sql/window/test_wide_orderby.test index bf9e9d72..7e5492e1 100644 --- a/parser/testdata/corpus/sql/window/test_wide_orderby.test +++ b/parser/testdata/corpus/sql/window/test_wide_orderby.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_wide_orderby.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA debug_force_external={forced} diff --git a/parser/testdata/corpus/sql/window/test_window_agg_stats_propagation.test b/parser/testdata/corpus/sql/window/test_window_agg_stats_propagation.test index d9628af4..2165eaa5 100644 --- a/parser/testdata/corpus/sql/window/test_window_agg_stats_propagation.test +++ b/parser/testdata/corpus/sql/window/test_window_agg_stats_propagation.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_agg_stats_propagation.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE bt AS SELECT * FROM (VALUES (1)) AS v(id); diff --git a/parser/testdata/corpus/sql/window/test_window_aggregate_macro.test b/parser/testdata/corpus/sql/window/test_window_aggregate_macro.test index aa56d8f4..92d6aa52 100644 --- a/parser/testdata/corpus/sql/window/test_window_aggregate_macro.test +++ b/parser/testdata/corpus/sql/window/test_window_aggregate_macro.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_aggregate_macro.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE MACRO tinyint_min(a) as cast(min(a) as tinyint); diff --git a/parser/testdata/corpus/sql/window/test_window_binding.test b/parser/testdata/corpus/sql/window/test_window_binding.test index f898d840..c8f0f8a1 100644 --- a/parser/testdata/corpus/sql/window/test_window_binding.test +++ b/parser/testdata/corpus/sql/window/test_window_binding.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_binding.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT MIN(a) OVER (PARTITION BY i ORDER BY i) FROM integers diff --git a/parser/testdata/corpus/sql/window/test_window_binding_ctes.test b/parser/testdata/corpus/sql/window/test_window_binding_ctes.test index 9414eb37..0ce748bf 100644 --- a/parser/testdata/corpus/sql/window/test_window_binding_ctes.test +++ b/parser/testdata/corpus/sql/window/test_window_binding_ctes.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_binding_ctes.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select i, lag(i) over named_window from (values (1), (2), (3)) as t (i) window named_window as (order by i); diff --git a/parser/testdata/corpus/sql/window/test_window_bool.test b/parser/testdata/corpus/sql/window/test_window_bool.test index c686e5f3..2c9cde23 100644 --- a/parser/testdata/corpus/sql/window/test_window_bool.test +++ b/parser/testdata/corpus/sql/window/test_window_bool.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_bool.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a as select range%2==0 j, range::integer AS i from range(1, 5, 1) diff --git a/parser/testdata/corpus/sql/window/test_window_clause.test b/parser/testdata/corpus/sql/window/test_window_clause.test index 724022f7..9ba901c0 100644 --- a/parser/testdata/corpus/sql/window/test_window_clause.test +++ b/parser/testdata/corpus/sql/window/test_window_clause.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_clause.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table integers as select range i from range(0,16); diff --git a/parser/testdata/corpus/sql/window/test_window_clause_scope.test b/parser/testdata/corpus/sql/window/test_window_clause_scope.test index 48764185..7bbf14ae 100644 --- a/parser/testdata/corpus/sql/window/test_window_clause_scope.test +++ b/parser/testdata/corpus/sql/window/test_window_clause_scope.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_clause_scope.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT (SELECT 1), sum(1) OVER w WINDOW w AS (ORDER BY 1) diff --git a/parser/testdata/corpus/sql/window/test_window_constant_aggregate.test b/parser/testdata/corpus/sql/window/test_window_constant_aggregate.test index ed8f9c48..dd00bd97 100644 --- a/parser/testdata/corpus/sql/window/test_window_constant_aggregate.test +++ b/parser/testdata/corpus/sql/window/test_window_constant_aggregate.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_constant_aggregate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT part, id, sum(val) OVER(PARTITION BY part ORDER BY id), lead(val) OVER(PARTITION BY part ORDER BY id) diff --git a/parser/testdata/corpus/sql/window/test_window_constant_allocator.test b/parser/testdata/corpus/sql/window/test_window_constant_allocator.test index c66efa78..272ebb8f 100644 --- a/parser/testdata/corpus/sql/window/test_window_constant_allocator.test +++ b/parser/testdata/corpus/sql/window/test_window_constant_allocator.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_constant_allocator.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit WITH cte AS ( diff --git a/parser/testdata/corpus/sql/window/test_window_cse.test b/parser/testdata/corpus/sql/window/test_window_cse.test index e755b0c4..a58a34ad 100644 --- a/parser/testdata/corpus/sql/window/test_window_cse.test +++ b/parser/testdata/corpus/sql/window/test_window_cse.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_cse.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE eventlog AS diff --git a/parser/testdata/corpus/sql/window/test_window_dbplyr.test b/parser/testdata/corpus/sql/window/test_window_dbplyr.test index f7300064..3253cf7f 100644 --- a/parser/testdata/corpus/sql/window/test_window_dbplyr.test +++ b/parser/testdata/corpus/sql/window/test_window_dbplyr.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_dbplyr.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE dbplyr_052 (x INTEGER, g DOUBLE, w int) diff --git a/parser/testdata/corpus/sql/window/test_window_distinct.test b/parser/testdata/corpus/sql/window/test_window_distinct.test index e5519a8a..925ee620 100644 --- a/parser/testdata/corpus/sql/window/test_window_distinct.test +++ b/parser/testdata/corpus/sql/window/test_window_distinct.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_distinct.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(DISTINCT 42) OVER () diff --git a/parser/testdata/corpus/sql/window/test_window_exclude_state_destructor.test b/parser/testdata/corpus/sql/window/test_window_exclude_state_destructor.test index ea4aab9b..4a8ec912 100644 --- a/parser/testdata/corpus/sql/window/test_window_exclude_state_destructor.test +++ b/parser/testdata/corpus/sql/window/test_window_exclude_state_destructor.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_exclude_state_destructor.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT count(x) FROM ( diff --git a/parser/testdata/corpus/sql/window/test_window_filter.test b/parser/testdata/corpus/sql/window/test_window_filter.test index 62d5b72a..847c4975 100644 --- a/parser/testdata/corpus/sql/window/test_window_filter.test +++ b/parser/testdata/corpus/sql/window/test_window_filter.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_filter.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE testing AS diff --git a/parser/testdata/corpus/sql/window/test_window_finalize_race.test b/parser/testdata/corpus/sql/window/test_window_finalize_race.test index c7e5be38..97351779 100644 --- a/parser/testdata/corpus/sql/window/test_window_finalize_race.test +++ b/parser/testdata/corpus/sql/window/test_window_finalize_race.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_finalize_race.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA threads=2 diff --git a/parser/testdata/corpus/sql/window/test_window_fusion.test b/parser/testdata/corpus/sql/window/test_window_fusion.test index e6f946c8..e4ca1e6e 100644 --- a/parser/testdata/corpus/sql/window/test_window_fusion.test +++ b/parser/testdata/corpus/sql/window/test_window_fusion.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_fusion.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table lineitem ( diff --git a/parser/testdata/corpus/sql/window/test_window_interval.test b/parser/testdata/corpus/sql/window/test_window_interval.test index ccdcdf20..40e8dd61 100644 --- a/parser/testdata/corpus/sql/window/test_window_interval.test +++ b/parser/testdata/corpus/sql/window/test_window_interval.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_interval.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a as select case when range%2==0 then interval '1 year' else interval '2 years' end j, range::integer AS i from range(1, 5, 1) diff --git a/parser/testdata/corpus/sql/window/test_window_order_collate.test b/parser/testdata/corpus/sql/window/test_window_order_collate.test index 9feaeaf5..6d707307 100644 --- a/parser/testdata/corpus/sql/window/test_window_order_collate.test +++ b/parser/testdata/corpus/sql/window/test_window_order_collate.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_order_collate.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit select diff --git a/parser/testdata/corpus/sql/window/test_window_rows.test b/parser/testdata/corpus/sql/window/test_window_rows.test index cd175af8..e2916351 100644 --- a/parser/testdata/corpus/sql/window/test_window_rows.test +++ b/parser/testdata/corpus/sql/window/test_window_rows.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_rows.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE t3(a TEXT, b TEXT, c INTEGER); diff --git a/parser/testdata/corpus/sql/window/test_window_segment_tree_error.test b/parser/testdata/corpus/sql/window/test_window_segment_tree_error.test index d533f110..800ca74d 100644 --- a/parser/testdata/corpus/sql/window/test_window_segment_tree_error.test +++ b/parser/testdata/corpus/sql/window/test_window_segment_tree_error.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_segment_tree_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT max(x) FROM ( diff --git a/parser/testdata/corpus/sql/window/test_window_string_agg.test b/parser/testdata/corpus/sql/window/test_window_string_agg.test index ce496aaa..89a06efb 100644 --- a/parser/testdata/corpus/sql/window/test_window_string_agg.test +++ b/parser/testdata/corpus/sql/window/test_window_string_agg.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_string_agg.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a as select range%3 j, range::varchar AS s, case when range%3=0 then '-' else '|' end sep from range(1, 7, 1) diff --git a/parser/testdata/corpus/sql/window/test_window_tpcds.test b/parser/testdata/corpus/sql/window/test_window_tpcds.test index b9f14854..de1076c1 100644 --- a/parser/testdata/corpus/sql/window/test_window_tpcds.test +++ b/parser/testdata/corpus/sql/window/test_window_tpcds.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_tpcds.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE item(i_category VARCHAR, i_brand VARCHAR, i_price INTEGER) diff --git a/parser/testdata/corpus/sql/window/test_window_types.test b/parser/testdata/corpus/sql/window/test_window_types.test index 98677798..f34403a1 100644 --- a/parser/testdata/corpus/sql/window/test_window_types.test +++ b/parser/testdata/corpus/sql/window/test_window_types.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_types.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit create table a as select range%3::{type} j, range::{type} AS i from range(1, 7, 1) diff --git a/parser/testdata/corpus/sql/window/test_window_unnest_error.test b/parser/testdata/corpus/sql/window/test_window_unnest_error.test index dcb19060..b02f5740 100644 --- a/parser/testdata/corpus/sql/window/test_window_unnest_error.test +++ b/parser/testdata/corpus/sql/window/test_window_unnest_error.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_unnest_error.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE tbl AS SELECT 42 AS i; diff --git a/parser/testdata/corpus/sql/window/test_window_value_edges.test b/parser/testdata/corpus/sql/window/test_window_value_edges.test index 1d9351b4..9e8f16ea 100644 --- a/parser/testdata/corpus/sql/window/test_window_value_edges.test +++ b/parser/testdata/corpus/sql/window/test_window_value_edges.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_value_edges.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE value_edges(i INTEGER, peer INTEGER, v INTEGER); diff --git a/parser/testdata/corpus/sql/window/test_window_wisconsin.test b/parser/testdata/corpus/sql/window/test_window_wisconsin.test index c747315a..743247a0 100644 --- a/parser/testdata/corpus/sql/window/test_window_wisconsin.test +++ b/parser/testdata/corpus/sql/window/test_window_wisconsin.test @@ -1,6 +1,6 @@ # source: test/sql/window/test_window_wisconsin.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit SELECT COUNT(*) OVER () FROM tenk1 diff --git a/parser/testdata/corpus/sql/window/window_distinct_build_oom.test b/parser/testdata/corpus/sql/window/window_distinct_build_oom.test new file mode 100644 index 00000000..047019c8 --- /dev/null +++ b/parser/testdata/corpus/sql/window/window_distinct_build_oom.test @@ -0,0 +1,28 @@ +# source: test/sql/window/window_distinct_build_oom.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +CREATE TABLE t AS + SELECT p, j, lpad((p * 521 + j)::VARCHAR, 20, '0') AS s + FROM range(257) parts(p), range(521) rows(j); +-- +ok +== +SELECT sum(length(x)) +FROM ( + SELECT string_agg(DISTINCT s, '|') OVER (PARTITION BY p ORDER BY j ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) AS x + FROM t +); +-- +ok +== +SELECT sum(length(x)) +FROM ( + SELECT string_agg(DISTINCT s, '|') OVER (PARTITION BY p ORDER BY j ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) AS x + FROM t + WHERE p < 8 +); +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/window_distinct_memory_limit.test b/parser/testdata/corpus/sql/window/window_distinct_memory_limit.test index 76efa782..48ece98b 100644 --- a/parser/testdata/corpus/sql/window/window_distinct_memory_limit.test +++ b/parser/testdata/corpus/sql/window/window_distinct_memory_limit.test @@ -1,6 +1,6 @@ # source: test/sql/window/window_distinct_memory_limit.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit PRAGMA memory_limit='64MB' diff --git a/parser/testdata/corpus/sql/window/window_expression_comparison.test b/parser/testdata/corpus/sql/window/window_expression_comparison.test index ea9ede29..ee54683f 100644 --- a/parser/testdata/corpus/sql/window/window_expression_comparison.test +++ b/parser/testdata/corpus/sql/window/window_expression_comparison.test @@ -1,6 +1,6 @@ # source: test/sql/window/window_expression_comparison.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE window_input(p INTEGER, q INTEGER, v INTEGER); diff --git a/parser/testdata/corpus/sql/window/window_fallible_scalarized_aggregate.test b/parser/testdata/corpus/sql/window/window_fallible_scalarized_aggregate.test new file mode 100644 index 00000000..2b00d461 --- /dev/null +++ b/parser/testdata/corpus/sql/window/window_fallible_scalarized_aggregate.test @@ -0,0 +1,15 @@ +# source: test/sql/window/window_fallible_scalarized_aggregate.test +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 +# generated by cmd/regenerate - do not edit + +SELECT bitstring_agg(coalesce(v, 5), 1, 3) OVER (ROWS BETWEEN CURRENT ROW AND CURRENT ROW) AS b +FROM (VALUES (1), (2)) t(v); +-- +ok +== +SELECT bitstring_agg(v, 1, 3) OVER (ROWS BETWEEN CURRENT ROW AND CURRENT ROW) +FROM (VALUES (1), (5)) t(v); +-- +ok +== diff --git a/parser/testdata/corpus/sql/window/window_mtcars.test b/parser/testdata/corpus/sql/window/window_mtcars.test index 7fb9641a..6fa4f48e 100644 --- a/parser/testdata/corpus/sql/window/window_mtcars.test +++ b/parser/testdata/corpus/sql/window/window_mtcars.test @@ -1,6 +1,6 @@ # source: test/sql/window/window_mtcars.test -# pin: d54cbbe3df17e8e5ce68312f483b4155836112aa -# oracle: v2.0.0 +# pin: 8d78114e90a53823803660bf821f6073ac87da8c +# oracle: v2.0.1 # generated by cmd/regenerate - do not edit CREATE TABLE mtcars (mpg DECIMAL, cyl INTEGER, disp DECIMAL, hp INTEGER, drat DECIMAL, wt DECIMAL, qsec DECIMAL, vs INTEGER, am INTEGER, gear INTEGER, carb INTEGER); From f704f5e036f5337032cbe6592b1aee7e48781d5f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 13:56:06 +0000 Subject: [PATCH 4/4] Re-sweep serialize goldens against v2.0.1, add v2.0.1 tests and docs The v2.0.1 json_serialize_sql output adds is_legacy_function_call to function and window expressions, and only the outermost call of an AT TIME ZONE chain carries a location. The corpus SELECT sweep is now 34,901 match, 0 mismatch, 118 skipped. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LuRZ4HRrRLBPqxCRMFCvAX --- PLAN.md | 5 +- README.md | 4 +- internal/serialize/serialize.go | 2 + parser/stmt_v201_test.go | 53 + parser/testdata/serialize/README.md | 6 +- parser/testdata/serialize/goldens.jsonl | 5500 ++++++++++++----------- parser/transform_expr.go | 10 +- 7 files changed, 2963 insertions(+), 2617 deletions(-) create mode 100644 parser/stmt_v201_test.go diff --git a/PLAN.md b/PLAN.md index 81e67e11..80a0b5ce 100644 --- a/PLAN.md +++ b/PLAN.md @@ -418,7 +418,10 @@ darkwing/ backtracking), race-clean parallel corpus run. 7. **Pin advance to v2.0.0 final** — re-vendor grammar, re-derive corpus expectations, review diffs; this rehearses the § Regeneration workflow - that every later DuckDB release will use. + that every later DuckDB release will use. Exercised again for v2.0.1 + (2026-12): `.` lexes as an operator unless a digit follows, dotted + names, arrow/JSON operator chains, CREATE INDEX CONCURRENTLY, scoped + SET/RESET TIME ZONE, nested qualified names and SHOW EXTERNAL RESOURCES. 8. **sqlc integration** (in the sqlc repo, separate effort) — new `internal/engine/duckdb`: catalog defaults, `convert.go` (darkwing AST → `sql/ast`), `reserved.go` from darkwing's keyword table, parameter diff --git a/README.md b/README.md index 4a28c5be..d0297f65 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ to packrat), and `cmd/difftest` mutates corpus seeds and diffs darkwing's verdicts against the pinned CLI (run nightly in CI while the nightly artifact matches the pin). -Next: advancing the pin to the v2.0.0 tag when it lands (milestone 7), -then sqlc integration. +The pin tracks DuckDB releases (currently v2.0.1, see +`internal/grammar/README.md`). Next: sqlc integration. ``` $ go run ./cmd/debug-parse 'SELECT 1' diff --git a/internal/serialize/serialize.go b/internal/serialize/serialize.go index 21fb86ba..24655685 100644 --- a/internal/serialize/serialize.go +++ b/internal/serialize/serialize.go @@ -568,6 +568,7 @@ func expr(e ast.Expr) map[string]any { base["export_state"] = x.ExportState base["arguments"] = functionArguments(x.Arguments) base["qualified_name"] = map[string]any{"path": qualifiedPath(x.Catalog, x.Schema, x.Qualification, x.FunctionName)} + base["is_legacy_function_call"] = false // set only when deserializing pre-2.0 plans locate(base, x.Span) case *ast.OperatorExpression: base["class"] = "OPERATOR" @@ -700,6 +701,7 @@ func expr(e ast.Expr) map[string]any { base["arg_orders"] = orderList(x.ArgOrders) base["arguments"] = functionArguments(x.Arguments) base["qualified_name"] = map[string]any{"path": qualifiedPath(x.Catalog, x.Schema, x.Qualification, x.FunctionName)} + base["is_legacy_function_call"] = false // set only when deserializing pre-2.0 plans locate(base, x.Span) default: panic(fmt.Sprintf("serialize: unknown expression %T", e)) diff --git a/parser/stmt_v201_test.go b/parser/stmt_v201_test.go new file mode 100644 index 00000000..3427e852 --- /dev/null +++ b/parser/stmt_v201_test.go @@ -0,0 +1,53 @@ +// stmt_v201_test.go: syntax added or changed by the DuckDB v2.0.1 pin. +// Every verdict and message was checked against the pinned v2.0.1 CLI. +package parser + +import ( + "testing" + + "github.com/sqlc-dev/darkwing/ast" +) + +func TestErrorsV201(t *testing.T) { + tests := []struct{ sql, msg string }{ + {"SELECT 'a' SIMILAR TO 'b' ESCAPE 'c'", "ESCAPE clause is not supported with SIMILAR TO and regular expression match operators"}, + {"SELECT 'a' ~ 'b' ESCAPE 'c'", "ESCAPE clause is not supported with SIMILAR TO and regular expression match operators"}, + {"SELECT * FROM range(10) TABLESAMPLE bernoulli(10%) REPEATABLE (9223372036854775808)", "REPEATABLE seed 9223372036854775808 is out of range, the maximum is 9223372036854775807"}, + {"SELECT * FROM range(10) USING SAMPLE 10% (bernoulli, 9223372036854775808)", "REPEATABLE seed 9223372036854775808 is out of range, the maximum is 9223372036854775807"}, + } + for _, tt := range tests { + if msg := parseErr(t, tt.sql); msg != "Parser Error: "+tt.msg && msg != tt.msg { + t.Errorf("Parse(%q): message = %q, want %q", tt.sql, msg, tt.msg) + } + } +} + +func TestAcceptsV201(t *testing.T) { + for _, sql := range []string{ + "SET LOCAL TIME ZONE 'UTC'", // NotImplemented post-parse + "SET SESSION TIME ZONE 'UTC'", + "RESET TIME ZONE", + "RESET SESSION TIME ZONE", + "SELECT * FROM (a JOIN b USING (x))", + "DROP INDEX a.b.c.d", + "SELECT list_transform([1], x -> x + 1)", // Binder rejects the deprecated arrow + "SELECT x -> 'a' ->> 'b' FROM t", + } { + parseOne(t, sql) + } +} + +func TestShapesV201(t *testing.T) { + idx := createInfo[*ast.CreateIndexInfo](t, "CREATE INDEX CONCURRENTLY i ON t (a)") + if !idx.Concurrently { + t.Errorf("CONCURRENTLY not recorded: %+v", idx) + } + set := parseAs[*ast.SetStatement](t, "SET SESSION TIME ZONE 'UTC'") + if set.Name != "timezone" || set.Scope != ast.SetScopeSession { + t.Errorf("set = %+v", set) + } + reset := parseAs[*ast.ResetStatement](t, "RESET SESSION TIME ZONE") + if reset.Name != "timezone" || reset.Scope != ast.SetScopeSession { + t.Errorf("reset = %+v", reset) + } +} diff --git a/parser/testdata/serialize/README.md b/parser/testdata/serialize/README.md index 55d8db53..8518f181 100644 --- a/parser/testdata/serialize/README.md +++ b/parser/testdata/serialize/README.md @@ -25,9 +25,9 @@ DARKWING_DUCKDB=/path/to/duckdb-cli go run ./cmd/serialize-diff -corpus The pinned binary is the one recorded in `internal/grammar/README.md`; goldens, grammar and corpus expectations must come from the same pin. -At the v2.0.0 pin (milestone 7) the full sweep covers 31,618 -SELECT-subset statements: 31,515 match, 0 mismatch, 103 skipped +At the v2.0.1 pin the full sweep covers 35,019 +SELECT-subset statements: 34,901 match, 0 mismatch, 118 skipped (statements the pinned binary itself refuses to serialize, e.g. PIVOT-with-enum-discovery forms that upstream turns into multi-statement plans, or literals it prints as bare Infinity tokens). The goldens hold -2,626 of the matching statements (every 12th). +2,908 of the matching statements (every 12th). diff --git a/parser/testdata/serialize/goldens.jsonl b/parser/testdata/serialize/goldens.jsonl index daee7a7e..cabd7d04 100644 --- a/parser/testdata/serialize/goldens.jsonl +++ b/parser/testdata/serialize/goldens.jsonl @@ -1,2626 +1,2908 @@ -{"sql":"SELECT c0 FROM generate_series(0, 0, NULL) t3(c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t3","sample":null,"query_location":15,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["c0"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0 FROM generate_series(0, 0, NULL) t3(c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t3","sample":null,"query_location":15,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["c0"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT 1 LIMIT CAST('NaN' AS REAL)%;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"STRING","text":"NaN"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_distance('asdf', [42]::INTEGER[1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"array_distance","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"asdf"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["array_distance"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select array_pop_front(i) from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"array_pop_front","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["array_pop_front"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bitstring_agg(i, 0, (100 + random())::BIGINT) FROM range(10) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]}}}],"qualified_name":{"path":["+"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["bitstring_agg"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":58,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT any_value(NULL ORDER BY c38 ASC) FROM t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["c38"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["any_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c1, #2 FROM integers GROUP BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c1"]},{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":11,"query_location_length":2,"index":2}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_extract('hello world', CAST(NULL AS json)) AS c1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c1","query_location":7,"query_location_length":47,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[],"qualified_name":{"path":["json"]}}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS TIMESTAMP WITH TIME ZONE[]) FROM integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":24,"catalog":"","schema":"","type_name":"TIMESTAMP WITH TIME ZONE","children":[],"qualified_name":{"path":["TIMESTAMP WITH TIME ZONE"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cume_dist() OVER (ROWS \n\tBETWEEN UNBOUNDED PRECEDING \n\tAND regr_sxx(6311, 8320 \n\t\tORDER BY 1726 ASC NULLS FIRST, \n\t\t\t10101, \n\t\t\t(946 BETWEEN 2053 AND 182) DESC NULLS LAST)\n\t\tFILTER (WHERE 118) PRECEDING\n\t)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_CUME_DIST","alias":"","query_location":7,"query_location_length":205,"function_name":"cume_dist","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"EXPR_PRECEDING_ROWS","start_expr":null,"end_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":133,"function_name":"regr_sxx","schema":"","filter":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":3,"literal":{"kind":"INTEGER","text":"118"}},"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1726"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10101"}}},{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":140,"query_location_length":20,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":3,"literal":{"kind":"INTEGER","text":"946"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2053"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":3,"literal":{"kind":"INTEGER","text":"182"}}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6311"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":4,"literal":{"kind":"INTEGER","text":"8320"}}}],"qualified_name":{"path":["regr_sxx"]}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["cume_dist"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM repeat(42, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["repeat"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_weeks(#4) \nFROM all_types AS t43(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41, c42) \nWHERE c9","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"to_weeks","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":16,"query_location_length":2,"index":4}}],"qualified_name":{"path":["to_weeks"]}}],"from_table":{"type":"BASE_TABLE","alias":"t43","sample":null,"query_location":26,"query_location_length":217,"schema_name":"","table_name":"all_types","column_name_alias":["c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","c11","c12","c13","c14","c15","c16","c17","c18","c19","c20","c21","c22","c23","c24","c25","c26","c27","c28","c29","c30","c31","c32","c33","c34","c35","c36","c37","c38","c39","c40","c41","c42"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":2,"column_names":["c9"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT subq_0.c4 AS c1 FROM (SELECT ref_5.varchar_array AS c4, ref_2.usmallint AS c5 FROM main.all_types AS ref_0 INNER JOIN main.all_types AS ref_1 ON ((ref_1.\"varchar\" !~~* ref_0.\"varchar\")) LEFT JOIN main.all_types AS ref_2 RIGHT JOIN main.all_types AS ref_3 ON ((ref_2.\"bigint\" = ref_3.\"bigint\")) ON ((ref_0.timestamp_tz = ref_2.timestamp_tz)) INNER JOIN main.all_types AS ref_4 ON ((ref_3.dec_18_6 IS NOT NULL)) INNER JOIN main.all_types AS ref_5 ON ((ref_3.\"varchar\" ^@ ref_1.\"varchar\")) WHERE EXISTS(SELECT ref_5.blob AS c0, ref_3.ubigint AS c1 FROM main.all_types AS ref_6 WHERE (ref_2.\"varchar\" !~~* ref_4.\"varchar\") LIMIT 120)) AS subq_0 WHERE EXISTS(SELECT ref_7.\"map\" AS c0, subq_0.c5 AS c1 FROM main.all_types AS ref_7 WHERE (ref_7.\"varchar\" ~~~ ref_7.\"varchar\") LIMIT 118)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":7,"query_location_length":9,"column_names":["subq_0","c4"]}],"from_table":{"type":"SUBQUERY","alias":"subq_0","sample":null,"query_location":28,"query_location_length":609,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c4","query_location":36,"query_location_length":19,"column_names":["ref_5","varchar_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c5","query_location":63,"query_location_length":15,"column_names":["ref_2","usmallint"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":417,"query_location_length":76,"left":{"type":"JOIN","alias":"","sample":null,"query_location":348,"query_location_length":68,"left":{"type":"JOIN","alias":"","sample":null,"query_location":193,"query_location_length":154,"left":{"type":"JOIN","alias":"","sample":null,"query_location":114,"query_location_length":78,"left":{"type":"BASE_TABLE","alias":"ref_0","sample":null,"query_location":90,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"right":{"type":"BASE_TABLE","alias":"ref_1","sample":null,"query_location":125,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":20,"function_name":"!~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":15,"column_names":["ref_1","varchar"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":15,"column_names":["ref_0","varchar"]}}],"qualified_name":{"path":["!~~*"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"JOIN","alias":"","sample":null,"query_location":227,"query_location_length":73,"left":{"type":"BASE_TABLE","alias":"ref_2","sample":null,"query_location":203,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"right":{"type":"BASE_TABLE","alias":"ref_3","sample":null,"query_location":238,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":267,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":267,"query_location_length":14,"column_names":["ref_2","bigint"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":284,"query_location_length":14,"column_names":["ref_3","bigint"]}},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":306,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":306,"query_location_length":18,"column_names":["ref_0","timestamp_tz"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":327,"query_location_length":18,"column_names":["ref_2","timestamp_tz"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"ref_4","sample":null,"query_location":359,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":403,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":388,"query_location_length":14,"column_names":["ref_3","dec_18_6"]}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"ref_5","sample":null,"query_location":428,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":457,"query_location_length":34,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":457,"query_location_length":15,"column_names":["ref_3","varchar"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":476,"query_location_length":15,"column_names":["ref_1","varchar"]}}],"qualified_name":{"path":["^@"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":500,"query_location_length":136,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":632,"query_location_length":3,"literal":{"kind":"INTEGER","text":"120"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":514,"query_location_length":10,"column_names":["ref_5","blob"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":532,"query_location_length":13,"column_names":["ref_3","ubigint"]}],"from_table":{"type":"BASE_TABLE","alias":"ref_6","sample":null,"query_location":557,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":604,"query_location_length":20,"function_name":"!~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":588,"query_location_length":15,"column_names":["ref_2","varchar"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":609,"query_location_length":15,"column_names":["ref_4","varchar"]}}],"qualified_name":{"path":["!~~*"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":654,"query_location_length":132,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":782,"query_location_length":3,"literal":{"kind":"INTEGER","text":"118"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":668,"query_location_length":11,"column_names":["ref_7","map"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":687,"query_location_length":9,"column_names":["subq_0","c5"]}],"from_table":{"type":"BASE_TABLE","alias":"ref_7","sample":null,"query_location":708,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":755,"query_location_length":19,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":739,"query_location_length":15,"column_names":["ref_7","varchar"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":759,"query_location_length":15,"column_names":["ref_7","varchar"]}}],"qualified_name":{"path":["~~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (*COLUMNS(*) IS NULL) FROM v00;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":8,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":17,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":3,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT reservoir_quantile(1, 1 ORDER BY 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"reservoir_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["reservoir_quantile"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM (SELECT 1) t1(c0) JOIN t0 ON c1 BETWEEN c0 AND 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":30,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":14,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"condition":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":46,"query_location_length":16,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["c1"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["c0"]},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 0 c0 FROM t1 GROUP BY ALL HAVING c0 \u003c ALL(SELECT 0 FROM ((SELECT 2) UNION (SELECT 2)) t2 WHERE substr('b', 1, c0) GROUP BY ALL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c0","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":40,"query_location_length":94,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":63,"query_location_length":29,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":18,"function_name":"substr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["substr"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["c0"]},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}]},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t0.*, min(1 ORDER BY ALL) FROM (VALUES ('1')) t0(c0) GROUP BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":4,"relation_name":"t0","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":19,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":38,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SHOW","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"__show_tables_expanded","query":null,"show_type":"SHOW_SPECIAL","catalog_name":"","schema_name":"","qualified_name":{"path":["__show_tables_expanded"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (t1 JOIN t1 t2 USING (c0)), (SELECT 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":44,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":23,"query_location_length":5,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["c0"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":42,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4294967295::DOUBLE::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"INTEGER","text":"4294967295"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid c2 FROM t0 GROUP BY ALL ORDER BY (t0.rowid, c2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":14,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":8,"column_names":["t0","rowid"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["c2"]}}],"qualified_name":{"path":["row"]}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c2","query_location":7,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c1 FROM ((SELECT 1 AS c1) UNION (SELECT id AS c1 FROM t0 limit 1)) A where c1 IN (1, 2, 3, 4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c1"]}],"from_table":{"type":"SUBQUERY","alias":"A","sample":null,"query_location":15,"query_location_length":58,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":47,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":2,"column_names":["c1"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE 8 WHEN(0 IS DISTINCT FROM 0) THEN 2 END;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":44,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}},"right":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":19,"query_location_length":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM t1 t2(c1) NATURAL INNER JOIN t0, t2 t1(c0) WHERE t2.c2 \u003e= c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":47,"left":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"t1","column_name_alias":["c1"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":47,"query_location_length":9,"schema_name":"","table_name":"t2","column_name_alias":["c0"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":63,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":5,"column_names":["t2","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":2,"column_names":["c0"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM (SELECT 1) t0(c0) WHERE (SELECT (SELECT c0));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":14,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":38,"query_location_length":20,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":46,"query_location_length":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '-9223372036854775807' MICROSECONDS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":22,"literal":{"kind":"STRING","text":"-9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_microseconds"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM t2 WHERE currval('t0') BETWEEN TRY_CAST(0 AS TIMESTAMP WITH TIME ZONE) AND 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":37,"query_location_length":53,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":13,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"STRING","text":"t0"}}}],"qualified_name":{"path":["currval"]}},"lower":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":39,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":24,"catalog":"","schema":"","type_name":"TIMESTAMP WITH TIME ZONE","children":[],"qualified_name":{"path":["TIMESTAMP WITH TIME ZONE"]}}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (WITH RECURSIVE t1 AS (SELECT 1 UNION SELECT 1 FROM t1 WHERE c2 \u003c 3) SELECT 2 FROM t1) FROM (SELECT 1 c2) t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":86,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t1","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":68,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":2,"column_names":["c2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":99,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c2","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM (SELECT 1 ORDER BY ALL LIMIT 514322393620248226) USING SAMPLE SYSTEM (36%);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":18,"literal":{"kind":"INTEGER","text":"514322393620248226"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":36.0},"is_percentage":true,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nextval('s0');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"s0"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT decode('\\xC2\\xA3'::BLOB)::VARCHAR ILIKE '£';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":10,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"literal":{"kind":"STRING","text":"\\xC2\\xA3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"STRING","text":"£"}}}],"qualified_name":{"path":["~~*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT upper(decode('\\xc1\\x81'::BLOB)::VARCHAR);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":24,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"\\xc1\\x81"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["upper"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON ('string') 'x' AS c02;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":8,"literal":{"kind":"STRING","text":"string"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c02","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM v00 WHERE concat(c01 IS NOT NULL, 'string') SIMILAR TO 'string';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":19,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":33,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":35,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["c01"]}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":8,"literal":{"kind":"STRING","text":"string"}}}],"qualified_name":{"path":["concat"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":8,"literal":{"kind":"STRING","text":"string"}}}],"qualified_name":{"path":["regexp_full_match"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bitstring_agg(\"{small_type}\") FROM all_types;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":14,"column_names":["{small_type}"]}}],"qualified_name":{"path":["bitstring_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":9,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT subtract(\n\tCAST(main.all_types.\"interval\" AS INTERVAL), \n\tCAST(to_days(CAST(main.all_types.\"int\" AS INTEGER)) AS INTERVAL))\nFROM main.all_types ","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":123,"function_name":"subtract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":43,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":25,"column_names":["main","all_types","interval"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":64,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":46,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":37,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":20,"column_names":["main","all_types","int"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["subtract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":136,"query_location_length":14,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM\n t AS ref_2,\n LATERAL (SELECT (SELECT NULL\n FROM (SELECT * FROM t AS ref_5,\n LATERAL (SELECT ref_5.ps_supplycost AS c0,\n ref_2.n_name AS c1) AS alias1) AS alias2) AS alias3) AS alias4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":236,"left":{"type":"BASE_TABLE","alias":"ref_2","sample":null,"query_location":18,"query_location_length":10,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"alias4","sample":null,"query_location":42,"query_location_length":193,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"alias3","query_location":50,"query_location_length":174,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"SUBQUERY","alias":"alias2","sample":null,"query_location":77,"query_location_length":136,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":85,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":87,"query_location_length":125,"left":{"type":"BASE_TABLE","alias":"ref_5","sample":null,"query_location":92,"query_location_length":10,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"alias1","sample":null,"query_location":126,"query_location_length":76,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":134,"query_location_length":19,"column_names":["ref_5","ps_supplycost"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":183,"query_location_length":12,"column_names":["ref_2","n_name"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH all_types AS (\n\tselect * exclude(small_enum, medium_enum, large_enum) from test_all_types()\n)\nSELECT lag(c16, COLUMNS(*)) OVER (ROWS BETWEEN 1768 FOLLOWING AND UNBOUNDED FOLLOWING) \nFROM all_types AS t42(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"all_types","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":28,"query_location_length":46,"relation_name":"","exclude_list":["small_enum","medium_enum","large_enum"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":80,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAG","alias":"","query_location":106,"query_location_length":79,"function_name":"lag","schema":"","catalog":"","partitions":[],"orders":[],"start":"EXPR_FOLLOWING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1768"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":3,"column_names":["c16"]}},{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":123,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["lag"]}}],"from_table":{"type":"BASE_TABLE","alias":"t42","sample":null,"query_location":192,"query_location_length":212,"schema_name":"","table_name":"all_types","column_name_alias":["c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","c11","c12","c13","c14","c15","c16","c17","c18","c19","c20","c21","c22","c23","c24","c25","c26","c27","c28","c29","c30","c31","c32","c33","c34","c35","c36","c37","c38","c39","c40","c41"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(combine_aggr(s)) FROM (SELECT approx_count_distinct('v' || (i % 500)::VARCHAR) EXPORT_STATE AS s FROM range(5000) r(i) GROUP BY i % 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":38,"query_location_length":112,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":46,"query_location_length":61,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":25,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}}],"qualified_name":{"path":["%"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["approx_count_distinct"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":118,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(to_aggregate_state({'precision': 10, 'registers': list_resize([]::UTINYINT[], 1024, 56)}, 'approx_count_distinct', ['BIGINT']));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":136,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":126,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":69,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"precision","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"precision","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"registers","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"registers","query_location":66,"query_location_length":37,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1024"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":2,"literal":{"kind":"INTEGER","text":"56"}}}],"qualified_name":{"path":["list_resize"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":23,"literal":{"kind":"STRING","text":"approx_count_distinct"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(approx_quantile(d, 0.5) EXPORT_STATE) = approx_quantile(d, 0.5) FROM (SELECT range / 100.0 AS d FROM range(1000)) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":72,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":36,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}}}],"qualified_name":{"path":["finalize"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":85,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"d","query_location":93,"query_location_length":13,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"100.0"}}}],"qualified_name":{"path":["/"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":117,"query_location_length":11,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(to_aggregate_state(\n {'count': 2::UBIGINT, 'min': 0.0::DOUBLE, 'max': 1.0::DOUBLE,\n 'centroids': [{'mean': 0.0::DOUBLE, 'weight': 1e308::DOUBLE}, {'mean': 1.0::DOUBLE, 'weight': 1e308::DOUBLE}]},\n 'approx_quantile', ['DOUBLE', 'FLOAT'], [NULL, 0.5::FLOAT]\n));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":277,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":267,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":177,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"count","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"count","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"name":"min","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"min","query_location":72,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"max","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"max","query_location":92,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"centroids","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"centroids","query_location":120,"query_location_length":96,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":46,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"mean","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"mean","query_location":133,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"weight","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"weight","query_location":158,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":160,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"query_location_length":46,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"mean","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"mean","query_location":181,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":183,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"weight","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"weight","query_location":206,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":208,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":17,"literal":{"kind":"STRING","text":"approx_quantile"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":242,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":243,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":253,"query_location_length":7,"literal":{"kind":"STRING","text":"FLOAT"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":263,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":264,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":273,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":275,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (approx_top_k(x, 1) EXPORT_STATE)::STRUCT(k UBIGINT, \"values\" STRUCT(\"value\" VARCHAR, \"count\" UBIGINT)[], \"filter\" UBIGINT[]).k FROM (VALUES ('a'), ('a'), ('b')) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":127,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":92,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":31,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["approx_top_k"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":90,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"k","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"values","query_location":69,"query_location_length":42,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":40,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"count","query_location":101,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"filter","query_location":122,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"literal":{"kind":"STRING","text":"k"}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":140,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT arg_min(a, b) EXPORT_STATE FROM (SELECT 1 a, 1 b WHERE false) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["arg_min"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":39,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (arg_min(a, b) EXPORT_STATE)::STRUCT(arg INTEGER[], \"by\" INTEGER[]) FROM (VALUES ([1, 2], [10]), ([3], [5])) t(a, b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":39,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":26,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["arg_min"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":37,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"arg","query_location":48,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"by","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":80,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_bool_and([*COLUMNS(*)]) FROM (SELECT finalize(arg_min(COLUMNS(*), COLUMNS(*)) EXPORT_STATE) = min(COLUMNS(*)) FROM test_all_types());","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"list_bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":22,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_bool_and"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":41,"query_location_length":103,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":72,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":54,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":44,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":74,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":86,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["arg_min"]}}}],"qualified_name":{"path":["finalize"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":15,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":118,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["min"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":127,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(bool_and(NULL) EXPORT_STATE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":27,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["bool_and"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bool_or(v) EXPORT_STATE FROM (VALUES (NULL::bool)) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["bool_or"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":36,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"bool","children":[],"qualified_name":{"path":["bool"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT combine(to_aggregate_state(1::BIGINT, 'count', ['ANY']),\n to_aggregate_state(1::BIGINT, 'count_star', []));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":120,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":47,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"count"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":47,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":12,"literal":{"kind":"STRING","text":"count_star"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["combine"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (last(d) EXPORT_STATE)::STRUCT(value DECIMAL(4,1)) FROM (VALUES (1.5), (4.2)) t(d);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":28,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":26,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":44,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":63,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(f), finalize(l) FROM first_state ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":11,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":11,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":11,"schema_name":"","table_name":"first_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["first_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(list(i) EXPORT_STATE) FROM (VALUES (1), (NULL), (3)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, list_sort(list(d)) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":18,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["list"]}}}],"qualified_name":{"path":["list_sort"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min(v) EXPORT_STATE FROM (SELECT NULL::varchar AS v WHERE false) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":32,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof((min(v) EXPORT_STATE)::BLOB) FROM (VALUES ('\\xAA\\xBB'::BLOB)) t(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":19,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":48,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":10,"literal":{"kind":"STRING","text":"\\xAA\\xBB"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(list(i ORDER BY i ASC NULLS FIRST) EXPORT_STATE) FROM (VALUES (1), (NULL), (2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":47,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":70,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(list(l ORDER BY k) EXPORT_STATE)\nFROM (VALUES (3, [3]), (1, [1, 2]), (2, NULL)) t(k, l);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":31,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["list"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","l"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(to_aggregate_state(\n (SELECT list(x ORDER BY y) EXPORT_STATE FROM (VALUES (10, 1), (30, 3), (20, 2)) t(x, y))::STRUCT(v0 INTEGER, v1 INTEGER)[],\n 'list', ['INTEGER'], [NULL], [{'column': 1, 'order': 'ASC NULLS LAST'}]\n));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":235,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":225,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":34,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":40,"query_location_length":88,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":31,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["y"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":85,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":30,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v0","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"v1","query_location":152,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":197,"query_location_length":42,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":198,"query_location_length":40,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column","query_location":209,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"order","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"order","query_location":221,"query_location_length":16,"literal":{"kind":"STRING","text":"ASC NULLS LAST"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(combine(product(2.0::double) EXPORT_STATE, product(3.0::double) EXPORT_STATE));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":87,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":77,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":33,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["product"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":33,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["product"]}}}],"qualified_name":{"path":["combine"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(sum(1::SMALLINT) EXPORT_STATE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":29,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["sum"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(avg(TIME '12:00:00' ) EXPORT_STATE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":34,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"12:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["avg"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (any_value(42) export_state)::struct(\"value\" integer);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":25,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":26,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["any_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":23,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(regr_intercept(1.0, 2.0) EXPORT_STATE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":37,"function_name":"regr_intercept","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["regr_intercept"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select finalize(combine_aggr(state)) from states where false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":19,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["state"]}}],"qualified_name":{"path":["combine_aggr"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":6,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH states AS (\n SELECT sum(v) EXPORT_STATE AS s FROM (VALUES (1), (2)) t(v)\n)\nSELECT finalize(combine_aggr(s, -1)) FROM states;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"states","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":28,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":58,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":19,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["combine_aggr"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":6,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT samp_state::STRUCT(count UBIGINT, meanx DECIMAL(18,2), meany DECIMAL(18,2), co_moment DOUBLE) FROM covar_state;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":83,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["samp_state"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":81,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"count","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"meanx","query_location":47,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}},{"class":"TYPE","type":"TYPE","alias":"meany","query_location":68,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}},{"class":"TYPE","type":"TYPE","alias":"co_moment","query_location":93,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"query_location_length":11,"schema_name":"","table_name":"covar_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["covar_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(to_aggregate_state([{'v0': 3}, {'v0': 1}], 'list', ['BIGINT'], NULL, [{'column': 0, 'order': 'ASC NULLS FIRST'}]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":123,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":113,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v0","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v0","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":41,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"order","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"order","query_location":109,"query_location_length":17,"literal":{"kind":"STRING","text":"ASC NULLS FIRST"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(skewness(d) EXPORT_STATE) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":34,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":24,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["skewness"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_cont(d, 0.5) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(quantile_cont(d, 0.5) EXPORT_STATE) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":44,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":34,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(quantile_disc({'a': d, 'b': d::VARCHAR}, 0.5) EXPORT_STATE) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":58,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":36,"query_location_length":1,"column_names":["d"]}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":45,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, quantile_cont(d, [0.25, 0.75]) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":30,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(string_agg(d, '-') EXPORT_STATE) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":41,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":31,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["string_agg"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, string_agg(d, '-') || '-' || string_agg(d, '-') FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":47,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":18,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["string_agg"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":18,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["string_agg"]}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT var_pop(d) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"var_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["var_pop"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regr_r2(d, d+1) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"regr_r2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["regr_r2"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (regr_count(1, 2) export_state)::ubigint","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":29,"function_name":"regr_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["regr_count"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"ubigint","children":[],"qualified_name":{"path":["ubigint"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(avg(d) EXPORT_STATE)::integer, finalize(count(d) EXPORT_STATE), finalize(first(d) EXPORT_STATE), finalize(last(d) EXPORT_STATE), finalize(min(d) EXPORT_STATE), finalize(max(d) EXPORT_STATE), finalize(kurtosis(d) EXPORT_STATE), finalize(kurtosis_pop(d) EXPORT_STATE) FROM (SELECT NULL::integer d);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":19,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["avg"]}}}],"qualified_name":{"path":["finalize"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":31,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":21,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["count"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":31,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":21,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["first"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":30,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":154,"query_location_length":19,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["min"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":19,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["max"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":207,"query_location_length":34,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":216,"query_location_length":24,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":38,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":252,"query_location_length":28,"function_name":"kurtosis_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis_pop"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":287,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"d","query_location":299,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":301,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, bit_and(d), bit_or(d), bit_xor(d) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":10,"function_name":"bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_and"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_or"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":10,"function_name":"bit_xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_xor"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT st.n, st.mean, st.m2, st.m3, st.m4\nFROM (SELECT (kurtosis(d) EXPORT_STATE)::STRUCT(n UBIGINT, mean DOUBLE, m2 DOUBLE, m3 DOUBLE, m4 DOUBLE) st FROM dummy);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["st","n"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["st","mean"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["st","m2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["st","m3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":5,"column_names":["st","m4"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":47,"query_location_length":114,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"st","query_location":81,"query_location_length":65,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":24,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":63,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"n","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"mean","query_location":106,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m2","query_location":117,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m3","query_location":128,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m4","query_location":139,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":155,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(avg_state)::integer, finalize(count_state), finalize(min_state), finalize(max_state), finalize(first_state), finalize(last_state) FROM state ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":9,"column_names":["avg_state"]}}],"qualified_name":{"path":["finalize"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":21,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":11,"column_names":["count_state"]}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":9,"column_names":["min_state"]}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":9,"column_names":["max_state"]}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":21,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":11,"column_names":["first_state"]}}],"qualified_name":{"path":["finalize"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":20,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":10,"column_names":["last_state"]}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":154,"query_location_length":5,"schema_name":"","table_name":"state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_aggregate_state(s1, g::VARCHAR, ['DOUBLE']) FROM '{TEST_DIR}/avg_state.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["s1"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":30,"schema_name":"","table_name":"{TEST_DIR}/avg_state.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/avg_state.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_aggregate_state(0::HUGEINT, 'sum', [42]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"STRING","text":"sum"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(to_aggregate_state([{'v0': 1}], 'approx_top_k', ['INTEGER', 'BIGINT'], NULL, [{'column': 0, 'order': 'ASC NULLS FIRST'}]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":131,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":121,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v0","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":14,"literal":{"kind":"STRING","text":"approx_top_k"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":41,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"order","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"order","query_location":117,"query_location_length":17,"literal":{"kind":"STRING","text":"ASC NULLS FIRST"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_aggregate_state(0::BIGINT, 'count', ['ANY', 'ANY']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":7,"literal":{"kind":"STRING","text":"count"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["to_aggregate_state"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(max({'a': v}) EXPORT_STATE) FROM (VALUES (3), (1), (5)) t(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":26,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":26,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["max"]}}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":49,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT approx_quantile(x, 0.5), typeof(approx_quantile(x, 0.5)), approx_quantile(x, [0.5]), quantile_cont(x, 0.5)\nFROM (VALUES (1.5::DECIMAL(4,1)), (2.5), (3.5)) v(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":31,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":25,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["approx_quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":119,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":131,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":133,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT approx_top_k([skewed_groups], 5) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":13,"column_names":["skewed_groups"]}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["approx_top_k"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT arg_max(arg, val, 2 ORDER BY arg) FROM t1 GROUP BY val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"arg_max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["arg"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["arg"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["arg_max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["val"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT arg_max_nulls_last(val, val, 4) FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"arg_max_nulls_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["arg_max_nulls_last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT avg(x) FROM (VALUES (INTERVAL 1 DAY), (INTERVAL 0 DAY), (INTERVAL 1 MONTH)) v(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":19,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT equi_width_bins(0, 1724, 10, true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1724"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT equi_width_bins(0.0, 90.0, 5, true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"90.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select equi_width_bins(0.0, 3.974, 10, true) AS boundaries;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"boundaries","query_location":7,"query_location_length":37,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"3.974"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT equi_width_bins(timestamp '1992-01-01 01:23:37.999', timestamp '1992-01-01 01:53:21.3', 4, true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":96,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:23:37.999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:53:21.3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT equi_width_bins(TIMESTAMP '2000-01-01', TIMESTAMP '2000-01-01 00:00:00.000001', 1000000, false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01 00:00:00.000001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["equi_width_bins"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k, bitstring_agg(idx)\nFROM t1_v\nJOIN el_ids USING (el)\nGROUP BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["idx"]}}],"qualified_name":{"path":["bitstring_agg"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":4,"schema_name":"","table_name":"t1_v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1_v"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":6,"schema_name":"","table_name":"el_ids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["el_ids"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["el"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT length(max(s)) FROM (SELECT repeat('y', CASE WHEN i % 2 = 0 THEN 50000 ELSE 10 END) AS s FROM range(41) t(i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]}}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":27,"query_location_length":89,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":35,"query_location_length":55,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"y"}}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":47,"query_location_length":42,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"INTEGER","text":"50000"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}}],"qualified_name":{"path":["repeat"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":101,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":2,"literal":{"kind":"INTEGER","text":"41"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT histogram_exact(r, [0, 1, 2, 3]) FROM range(4) t(r);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"histogram_exact","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["histogram_exact"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["r"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM histogram_values(integers, i%2, technique := 'sample')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"histogram_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":8,"column_names":["integers"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}},{"name":"technique","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"technique","query_location":59,"query_location_length":8,"literal":{"kind":"STRING","text":"sample"}}}],"qualified_name":{"path":["histogram_values"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lttb(x::DOUBLE, y::DOUBLE, 100 ORDER BY x)\nFROM (SELECT i AS x, i::DOUBLE AS y FROM range(4) t(i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"lttb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["y"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["lttb"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":55,"query_location_length":50,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":63,"query_location_length":1,"column_names":["i"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"y","query_location":72,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":91,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lttb(ts, y, 3 ORDER BY ts)\nFROM (\n VALUES\n (TIMESTAMPTZ '2020-01-01 00:00:00+00', 0::DOUBLE),\n (TIMESTAMPTZ '2020-01-01 01:00:00+00', 1::DOUBLE),\n (TIMESTAMPTZ '2020-01-01 02:00:00+00', 2::DOUBLE),\n (TIMESTAMPTZ '2020-01-01 03:00:00+00', 3::DOUBLE),\n (TIMESTAMPTZ '2020-01-01 04:00:00+00', 4::DOUBLE)\n) t(ts, y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"lttb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["ts"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["lttb"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":39,"query_location_length":308,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":100,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":120,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 01:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":159,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":179,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 02:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":218,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":220,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":238,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 03:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":238,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":277,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":279,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":297,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 04:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":297,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":336,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":335,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":338,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["ts","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(st) FROM lttb_states","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["st"]}}],"qualified_name":{"path":["finalize"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":11,"schema_name":"","table_name":"lttb_states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lttb_states"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH d(i, v) AS (\n\tVALUES (1, 'nan'::DOUBLE), (2, 'nan'::DOUBLE), (3, 1.0), (4, 1.0), (5, 'nan'::DOUBLE)\n)\nSELECT i, mode(v) OVER (ORDER BY i ROWS BETWEEN 2 PRECEDING AND CURRENT ROW)::VARCHAR\nFROM d\nORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"d","value":{"aliases":["i","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"nan"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"STRING","text":"nan"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":5,"literal":{"kind":"STRING","text":"nan"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["i"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":183,"query_location_length":9,"child":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":117,"query_location_length":66,"function_name":"mode","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":185,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":198,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT mode(v ORDER BY nextval('mode_rewrite_order_seq'))\nFROM (VALUES ('b'), ('a')) tbl(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":33,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":24,"literal":{"kind":"STRING","text":"mode_rewrite_order_seq"}}}],"qualified_name":{"path":["nextval"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":63,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), COUNT(s), COUNT(DISTINCT s) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AVG(s) FROM strings GROUP BY g ORDER BY g","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(1, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAX(1, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AVG(1, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::INTEGER % 3 AS g, ANY_VALUE(i ORDER BY 5-i) FROM five GROUP BY 1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":14,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":25,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["any_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":4,"schema_name":"","table_name":"five","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i % 3 AS g, ANY_VALUE(s ORDER BY 5-i), ANY_VALUE(l ORDER BY 5-i), ANY_VALUE(r ORDER BY 5-i)\nFROM five_complex\nGROUP BY 1\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":25,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["any_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":25,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["any_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":25,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["any_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":12,"schema_name":"","table_name":"five_complex","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_complex"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE\n\t WHEN ( approx_quantile between (true_quantile - 100) and (true_quantile + 100) )\n\t\t THEN TRUE\n\t\t ELSE FALSE\n\t END\n\t FROM (SELECT approx_quantile(r, 1.0) as approx_quantile ,quantile(r, 1.0) as true_quantile FROM quantile) AS T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":124,"case_checks":[{"when_expr":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":55,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":15,"column_names":["approx_quantile"]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["-"]}},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["+"]}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":140,"query_location_length":100,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"approx_quantile","query_location":148,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}}],"qualified_name":{"path":["approx_quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"true_quantile","query_location":192,"query_location_length":16,"function_name":"quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}}],"qualified_name":{"path":["quantile"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":231,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT approx_quantile(col, [0.5, 0.4, 0.1]) AS percentile \nFROM VALUES (0), (1), (2), (10) AS tab(col);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"percentile","query_location":7,"query_location_length":37,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["col"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["approx_quantile"]}}],"from_table":{"type":"SUBQUERY","alias":"tab","sample":null,"query_location":65,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["col"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE\n\t WHEN (approx_quantile between (true_quantile - (sumr * 0.01)) and (true_quantile + (sumr * 0.01)))\n\t\t THEN TRUE\n\t\t ELSE FALSE\n\t END\n\t FROM (SELECT approx_quantile(r, 0.9) as approx_quantile, quantile(r, 0.9) as true_quantile, SUM(r) as sumr from quantile) AS T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":142,"case_checks":[{"when_expr":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":37,"query_location_length":75,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":15,"column_names":["approx_quantile"]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["sumr"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.01"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["-"]}},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":4,"column_names":["sumr"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.01"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["+"]}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":158,"query_location_length":116,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"approx_quantile","query_location":166,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["approx_quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"true_quantile","query_location":210,"query_location_length":16,"function_name":"quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"sumr","query_location":245,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":249,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":265,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT reservoir_quantile(r, [0.5, 'nan'::DOUBLE]) from quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"reservoir_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"nan"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["reservoir_quantile"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT approx_quantile(1.55::DECIMAL(18,2), 0.5), typeof(approx_quantile(1.55::DECIMAL(18,2), 0.5));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.55"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":49,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":41,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.55"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT approx_quantile(t, 0.5) FROM (VALUES (TIMESTAMP '2020-01-01'), (TIMESTAMP '2020-01-02'), (TIMESTAMP '2020-01-03')) v(t)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":36,"query_location_length":85,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-03"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["t"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT( t),approx_count_distinct(t) from timestamp","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":24,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["approx_count_distinct"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select argmax(NULL,NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"argmax","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["argmax"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select argmin(name,salary),argmax(name,salary) from names;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"argmin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["argmin"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":19,"function_name":"argmax","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["argmax"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":5,"schema_name":"","table_name":"names","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["names"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select arg_min_null(i,i) from range (100) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"arg_min_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["arg_min_null"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":30,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select arg_min_null(a,b) over ( partition by a%2) from args;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":42,"function_name":"arg_min_null","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["arg_min_null"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"args","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["args"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AVG(1, 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT histogram(n::double, [10, 20, 30, 40]) FROM obs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["histogram"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":3,"schema_name":"","table_name":"obs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["obs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT histogram([n], [[x] for x in [10, 20, 30, 40, 50]]) FROM obs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":35,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list_value"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}}],"qualified_name":{"path":["histogram"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":3,"schema_name":"","table_name":"obs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["obs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT BIT_AND(b) FROM bits","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bit_and"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT BIT_OR('111010'::BIT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"111010"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["bit_or"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT BITSTRING_AGG(i) FROM tinyints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bitstring_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bit_count(BITSTRING_AGG(i)) FROM ints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":16,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bitstring_agg"]}}}],"qualified_name":{"path":["bit_count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT BITSTRING_AGG(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["bitstring_agg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bit_length(bitstring_agg(v, (-128)::TINYINT, 127::TINYINT)) FROM bt;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"bit_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":47,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-128"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["bitstring_agg"]}}}],"qualified_name":{"path":["bit_length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":2,"schema_name":"","table_name":"bt","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bt"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bool_or(True) FROM range(100) tbl(i) WHERE 1=0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["bool_or"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":26,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select corr(v, v2) over (partition by k)\n from aggr;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":8,"query_location_length":33,"function_name":"corr","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["k"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["corr"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), COUNT(a.*), COUNT(b.*), COUNT(b.id) FROM b FULL OUTER JOIN a ON a.id = b.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":23,"query_location_length":3,"relation_name":"a","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":35,"query_location_length":3,"relation_name":"b","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":11,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["b","id"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":60,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":4,"column_names":["a","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["b","id"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(r.*) FILTER (WHERE l.id \u003e 2) FROM l LEFT JOIN r ON l.id = r.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"count","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":32,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":13,"query_location_length":3,"relation_name":"r","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":26,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":4,"column_names":["r","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.id, count(r.*), count(s.*) FROM l LEFT JOIN r ON l.id = r.id LEFT JOIN s ON l.id = s.id GROUP BY l.id ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["l","id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":19,"query_location_length":3,"relation_name":"r","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":3,"relation_name":"s","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":70,"query_location_length":26,"left":{"type":"JOIN","alias":"","sample":null,"query_location":43,"query_location_length":26,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["r","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["s","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":4,"column_names":["l","id"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(st.*) FROM (SELECT {'x': 1, 'y': 2} AS st) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":13,"query_location_length":4,"relation_name":"st","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"st","query_location":32,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(* RENAME (y AS z)) FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":13,"query_location_length":17,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"","schema":"","table":"","column":"y"},"value":"z"}]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COVAR_POP(nextval('seqx'),nextval('seqy'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"covar_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"literal":{"kind":"STRING","text":"seqx"}}}],"qualified_name":{"path":["nextval"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":6,"literal":{"kind":"STRING","text":"seqy"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["covar_pop"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select entropy(k) from aggr ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"entropy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["entropy"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ARG_MIN(i, grp) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["grp"]}}],"qualified_name":{"path":["arg_min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(b) FROM tbl WHERE a=0 GROUP BY b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["first"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select histogram(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["histogram"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select histogram(name) from names;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["name"]}}],"qualified_name":{"path":["histogram"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":5,"schema_name":"","table_name":"names","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["names"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT histogram(DISTINCT e) FILTER (WHERE g \u003c 3)::VARCHAR FROM hist_data;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"histogram","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":43,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["histogram"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":9,"schema_name":"","table_name":"hist_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hist_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAX(MAX(1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["max"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select kurtosis()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["kurtosis"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select kurtosis(v2) over (partition by v)\n from aggr;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":34,"function_name":"kurtosis","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["kurtosis"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LAST(dt::TIMESTAMPTZ), LAST(t::TIMETZ) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":2,"column_names":["dt"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["last"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":15,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"qualified_name":{"path":["last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LAST(b) FROM tbl WHERE a=0 GROUP BY b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select mad(x) from (values ('294247-01-10'::date), ('290309-12-22 (BC)'::date)) tbl(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["mad"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":19,"query_location_length":60,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":19,"literal":{"kind":"STRING","text":"290309-12-22 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT median(r::integer)::VARCHAR FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["median"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MEDIAN(ttz::TIMETZ)\nFROM (VALUES \n\t('00:00:00-09'),\n\t('00:00:00-08'),\n\t('00:00:00-07'),\n\t('00:00:00-06'),\n\t('00:00:00-05'),\n\t('00:00:00-04'),\n\t('00:00:00-03'),\n\t('00:00:00-02'),\n\t('00:00:00-01'),\n\t('00:00:00+00'),\n) tbl(ttz);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["ttz"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"qualified_name":{"path":["median"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":32,"query_location_length":190,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-09"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-08"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-07"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-06"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-04"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-03"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-02"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00-01"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":13,"literal":{"kind":"STRING","text":"00:00:00+00"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["ttz"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select k, mode(v)\n from aggr\n group by k\n order by k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":7,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select k, v, mode(v) over (partition by k)\n from timestamps\n order by k, v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":29,"function_name":"mode","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["k"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(i ORDER BY i, i DESC, i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"dest\", mode() WITHIN GROUP (ORDER BY \"arr_delay\") AS \"median_delay\"\nFROM \"flights\"\nGROUP BY \"dest\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["dest"]},{"class":"FUNCTION","type":"FUNCTION","alias":"median_delay","query_location":15,"query_location_length":42,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":11,"column_names":["arr_delay"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["mode"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":9,"schema_name":"","table_name":"flights","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["flights"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":6,"column_names":["dest"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT percentile_disc(CAST('NaN' AS REAL)) WITHIN GROUP (ORDER BY 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"STRING","text":"NaN"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT year, LIST(val), STRING_AGG(val::VARCHAR, ',') FROM timeseries GROUP BY year ORDER BY year;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["year"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["year"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":9,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["list"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":29,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["val"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":10,"schema_name":"","table_name":"timeseries","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timeseries"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":4,"column_names":["year"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select product(i) from integers group by i%2 order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["product"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_cont(r, 0.25), quantile_cont(r, 0.5), quantile_cont(r, 0.75) from quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}}],"qualified_name":{"path":["quantile_cont"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":22,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_cont(r, -1.1) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-1.1"}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_cont(t, 0.5) FROM (VALUES (9223372036854775794::BIGINT), (9223372036854775796::BIGINT)) tbl(t)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":34,"query_location_length":69,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775794"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775796"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["t"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_cont(1, [0.25, 0.5, 0.75]) FROM quantiles","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_cont"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_disc(case when r is null then null else {'i': r} end, 0.5) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":21,"query_location_length":47,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":33,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["r"]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":62,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_disc(NULL::VARCHAR, 0.1)\nFROM range(0,100) tbl(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":46,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_disc(r, -1.1) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-1.1"}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT mod(r,10) as g, quantile_disc(r, [0.1, 0.5, 0.9]) FROM quantiles GROUP BY 1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":9,"function_name":"mod","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["mod"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":33,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_disc(r, [-0.1, 0.5, 0.9]) FROM quantiles","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_avgx()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"regr_avgx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["regr_avgx"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_slope(1,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"regr_slope","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regr_slope"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_sxx(2e230*i, 0) from range(5) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"regr_sxx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"2e230"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["regr_sxx"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":33,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_intercept(NULL,NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"regr_intercept","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["regr_intercept"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_avgx(v, v2) from aggr ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"regr_avgx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["regr_avgx"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regr_slope(v, v2) over (partition by k)\n from aggr;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":8,"query_location_length":39,"function_name":"regr_slope","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["k"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["regr_slope"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL as a, NULL as b, 1 as id UNION SELECT CAST('00:00:00' AS TIME) as a, CAST('12:34:56' AS TIME) as b, 2 as id ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":50,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":81,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":10,"literal":{"kind":"STRING","text":"12:34:56"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT\n count(*) FILTER (WHERE i \u003c= 5) as lte_five,\n count(*) FILTER (WHERE i % 2 = 1) as odds,\n count(*) as total_rows\nFROM generate_series(1,11) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"lte_five","query_location":11,"query_location_length":30,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":34,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"odds","query_location":59,"query_location_length":33,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"total_rows","query_location":106,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":134,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select skewness(k), skewness(v), skewness(v2) from aggr","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["skewness"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":11,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["skewness"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":12,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["skewness"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select round(stddev_pop(val), 1) from stddev_test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":15,"function_name":"stddev_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["stddev_pop"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":11,"schema_name":"","table_name":"stddev_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stddev_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select grp, sum(val), round(var_pop(val), 2), min(val) from stddev_test where val is not null group by grp order by grp","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":3,"column_names":["grp"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["grp"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":22,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":12,"function_name":"var_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["var_pop"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":11,"schema_name":"","table_name":"stddev_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stddev_test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":82,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["val"]}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["grp"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT STRING_AGG('a', 'b', 'c')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT STRING_AGG(x ORDER BY x DESC), STRING_AGG(x,'|' ORDER BY x DESC) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["string_agg"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":33,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT first(DISTINCT i ORDER BY random() * i)\nFROM (VALUES \n\t(900),\n\t(2600),\n\t(2100),\n\t(2100),\n\t(1800)\n\t) AS t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":12,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["*"]}}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":52,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"INTEGER","text":"900"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2600"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1800"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(n ORDER BY ABS(n))::BIGINT FROM doubles;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["abs"]}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(i) FROM range(-9007199254740992, -9007199254738944) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":19,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":17,"literal":{"kind":"INTEGER","text":"-9007199254740992"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":17,"literal":{"kind":"INTEGER","text":"-9007199254738944"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM (SELECT DISTINCT i, j FROM t1 LIMIT 15)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON (key) * FROM distinct_on_test ORDER BY key, v1, v2, v3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":3,"column_names":["key"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["key"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":2,"column_names":["v1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["v2"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":2,"column_names":["v3"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":25,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":16,"schema_name":"","table_name":"distinct_on_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_on_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON(i) i, j, k FROM integers ORDER BY i, j ASC, k DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}},{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["j"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(distinct value), GROUPING(course, type), course, type, COUNT(*), sum(distinct value), FROM students GROUP BY CUBE(course, type) ORDER BY all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]}},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":28,"query_location_length":22,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":4,"column_names":["type"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":4,"column_names":["type"]}],"group_sets":[[],[0],[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select course, count(*), sum(distinct value) from students group by (), course, () order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["course"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*), sum(distinct value), course, type\n from students\n group by grouping sets((3, 4), (4))\n order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"group_sets":[[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from (select distinct on (a) a, b from foo order by a, b desc) sub where b \u003c\u003e 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"sub","sample":null,"query_location":14,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["a"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["a"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":3,"schema_name":"","table_name":"foo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":82,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(DISTINCT s) FILTER (WHERE keep),\n string_agg(DISTINCT s, ',' ORDER BY s DESC) FILTER (WHERE keep)\nFROM distinct_rewrite_order;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"count","schema":"","filter":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":4,"column_names":["keep"]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":63,"function_name":"string_agg","schema":"","filter":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":4,"column_names":["keep"]},"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["s"]}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"query_location_length":22,"schema_name":"","table_name":"distinct_rewrite_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_order"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT course, type, finalize(sum(DISTINCT value) EXPORT_STATE), GROUPING(course), GROUPING(type)\nFROM distinct_rewrite_grouping_sets\nGROUP BY CUBE(course, type)\nORDER BY GROUPING(course), GROUPING(type), course, type NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":171,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":6,"column_names":["course"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":189,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":4,"column_names":["type"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":6,"column_names":["course"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":4,"column_names":["type"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":42,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":32,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":65,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":6,"column_names":["course"]}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":83,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["type"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":30,"schema_name":"","table_name":"distinct_rewrite_grouping_sets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_grouping_sets"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":4,"column_names":["type"]}],"group_sets":[[],[0],[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT a, b FROM test ORDER BY a, b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON (1) i, j FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON (integers.i) i, j FROM integers ORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":10,"column_names":["integers","i"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM (VALUES (1,1,2),(1,1,3)) AS t(key1,key2,v)\nSELECT DISTINCT ON (COLUMNS(* EXCLUDE (v))) * ORDER BY key1, key2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"STAR","type":"STAR","alias":"","query_location":76,"query_location_length":13,"relation_name":"","exclude_list":["v"],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":4,"column_names":["key1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":4,"column_names":["key2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":92,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":5,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["key1","key2","v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT i % 2 FROM integers WHERE i\u003c3 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":42,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n\tcount(distinct i) FILTER (WHERE i \u003e= 20)\nfrom tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":40,"function_name":"count","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":40,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT first(x), last(x), any_value(x)\nFROM (VALUES (NULL::INTEGER[]), ([1, 2]), ([3])) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["last"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["any_value"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (g+i)%2, SUM(i), SUM(g) FROM integers GROUP BY g, i ORDER BY 1 NULLS FIRST, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, SUM(i) FROM integers GROUP BY ALL ORDER BY g","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(a), COUNT(*), AVG(a) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, i + 10 FROM integers GROUP BY i ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i % 2 AS k, SUM(i) FROM integers WHERE i IS NOT NULL GROUP BY k HAVING i%2\u003e0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":48,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":78,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n v4,\n TRY(v5 / v5) AS result\nFROM v3\nGROUP BY v4\nHAVING (\n SELECT SUM(v5)\n FROM v3\n WHERE v5 IS NOT NULL\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["v4"]},{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"result","query_location":19,"query_location_length":12,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":7,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["v5"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["v5"]}}],"qualified_name":{"path":["/"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":2,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["v4"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":69,"query_location_length":59,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["v5"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":2,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":115,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":2,"column_names":["v5"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k, LEAST(v, 21) as c, SUM(v) FROM r2l3r4l5i4i2l3v\nGROUP BY k, c\nORDER BY 2, 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":10,"query_location_length":12,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}}],"qualified_name":{"path":["least"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":15,"schema_name":"","table_name":"r2l3r4l5i4i2l3v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r2l3r4l5i4i2l3v"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["c"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LENGTH(NULL::VARCHAR) FROM t0 GROUP BY NULL::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select course, count(*) from students group by cube (cube (course)) order by 1, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":13,"function_name":"cube","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":6,"column_names":["course"]}}],"qualified_name":{"path":["cube"]}}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT GROUPING(course), GROUPING(type), course, type, COUNT(*) FROM students GROUP BY CUBE(course, type) HAVING GROUPING(course)=0 ORDER BY 1, 2, 3, 4, 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["course"]}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":25,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["type"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":4,"column_names":["type"]}],"group_sets":[[],[0],[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":18,"left":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":113,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":6,"column_names":["course"]}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from students group by ();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[],"group_sets":[[]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*), course, type\n from students\n group by grouping sets(course, ()), grouping sets(type)\n order by 1, 2, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["type"]}],"group_sets":[[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(DISTINCT g) FROM (SELECT grouping(c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11) g FROM t GROUP BY CUBE (c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":30,"query_location_length":119,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"g","query_location":38,"query_location_length":47,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":2,"column_names":["c0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["c1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":2,"column_names":["c2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["c3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["c4"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":2,"column_names":["c5"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":2,"column_names":["c6"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":2,"column_names":["c7"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":2,"column_names":["c8"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":2,"column_names":["c9"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["c10"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["c11"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":2,"column_names":["c0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":2,"column_names":["c1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":2,"column_names":["c2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":2,"column_names":["c3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":2,"column_names":["c4"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":2,"column_names":["c5"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":2,"column_names":["c6"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":2,"column_names":["c7"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":2,"column_names":["c8"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":2,"column_names":["c9"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":3,"column_names":["c10"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":3,"column_names":["c11"]}],"group_sets":[[],[0],[0,1],[0,1,2],[0,1,2,3],[0,1,2,3,4],[0,1,2,3,4,5],[0,1,2,3,4,5,6],[0,1,2,3,4,5,6,7],[0,1,2,3,4,5,6,7,8],[0,1,2,3,4,5,6,7,8,9],[0,1,2,3,4,5,6,7,8,9,10],[0,1,2,3,4,5,6,7,8,9,10,11],[0,1,2,3,4,5,6,7,8,9,11],[0,1,2,3,4,5,6,7,8,10],[0,1,2,3,4,5,6,7,8,10,11],[0,1,2,3,4,5,6,7,8,11],[0,1,2,3,4,5,6,7,9],[0,1,2,3,4,5,6,7,9,10],[0,1,2,3,4,5,6,7,9,10,11],[0,1,2,3,4,5,6,7,9,11],[0,1,2,3,4,5,6,7,10],[0,1,2,3,4,5,6,7,10,11],[0,1,2,3,4,5,6,7,11],[0,1,2,3,4,5,6,8],[0,1,2,3,4,5,6,8,9],[0,1,2,3,4,5,6,8,9,10],[0,1,2,3,4,5,6,8,9,10,11],[0,1,2,3,4,5,6,8,9,11],[0,1,2,3,4,5,6,8,10],[0,1,2,3,4,5,6,8,10,11],[0,1,2,3,4,5,6,8,11],[0,1,2,3,4,5,6,9],[0,1,2,3,4,5,6,9,10],[0,1,2,3,4,5,6,9,10,11],[0,1,2,3,4,5,6,9,11],[0,1,2,3,4,5,6,10],[0,1,2,3,4,5,6,10,11],[0,1,2,3,4,5,6,11],[0,1,2,3,4,5,7],[0,1,2,3,4,5,7,8],[0,1,2,3,4,5,7,8,9],[0,1,2,3,4,5,7,8,9,10],[0,1,2,3,4,5,7,8,9,10,11],[0,1,2,3,4,5,7,8,9,11],[0,1,2,3,4,5,7,8,10],[0,1,2,3,4,5,7,8,10,11],[0,1,2,3,4,5,7,8,11],[0,1,2,3,4,5,7,9],[0,1,2,3,4,5,7,9,10],[0,1,2,3,4,5,7,9,10,11],[0,1,2,3,4,5,7,9,11],[0,1,2,3,4,5,7,10],[0,1,2,3,4,5,7,10,11],[0,1,2,3,4,5,7,11],[0,1,2,3,4,5,8],[0,1,2,3,4,5,8,9],[0,1,2,3,4,5,8,9,10],[0,1,2,3,4,5,8,9,10,11],[0,1,2,3,4,5,8,9,11],[0,1,2,3,4,5,8,10],[0,1,2,3,4,5,8,10,11],[0,1,2,3,4,5,8,11],[0,1,2,3,4,5,9],[0,1,2,3,4,5,9,10],[0,1,2,3,4,5,9,10,11],[0,1,2,3,4,5,9,11],[0,1,2,3,4,5,10],[0,1,2,3,4,5,10,11],[0,1,2,3,4,5,11],[0,1,2,3,4,6],[0,1,2,3,4,6,7],[0,1,2,3,4,6,7,8],[0,1,2,3,4,6,7,8,9],[0,1,2,3,4,6,7,8,9,10],[0,1,2,3,4,6,7,8,9,10,11],[0,1,2,3,4,6,7,8,9,11],[0,1,2,3,4,6,7,8,10],[0,1,2,3,4,6,7,8,10,11],[0,1,2,3,4,6,7,8,11],[0,1,2,3,4,6,7,9],[0,1,2,3,4,6,7,9,10],[0,1,2,3,4,6,7,9,10,11],[0,1,2,3,4,6,7,9,11],[0,1,2,3,4,6,7,10],[0,1,2,3,4,6,7,10,11],[0,1,2,3,4,6,7,11],[0,1,2,3,4,6,8],[0,1,2,3,4,6,8,9],[0,1,2,3,4,6,8,9,10],[0,1,2,3,4,6,8,9,10,11],[0,1,2,3,4,6,8,9,11],[0,1,2,3,4,6,8,10],[0,1,2,3,4,6,8,10,11],[0,1,2,3,4,6,8,11],[0,1,2,3,4,6,9],[0,1,2,3,4,6,9,10],[0,1,2,3,4,6,9,10,11],[0,1,2,3,4,6,9,11],[0,1,2,3,4,6,10],[0,1,2,3,4,6,10,11],[0,1,2,3,4,6,11],[0,1,2,3,4,7],[0,1,2,3,4,7,8],[0,1,2,3,4,7,8,9],[0,1,2,3,4,7,8,9,10],[0,1,2,3,4,7,8,9,10,11],[0,1,2,3,4,7,8,9,11],[0,1,2,3,4,7,8,10],[0,1,2,3,4,7,8,10,11],[0,1,2,3,4,7,8,11],[0,1,2,3,4,7,9],[0,1,2,3,4,7,9,10],[0,1,2,3,4,7,9,10,11],[0,1,2,3,4,7,9,11],[0,1,2,3,4,7,10],[0,1,2,3,4,7,10,11],[0,1,2,3,4,7,11],[0,1,2,3,4,8],[0,1,2,3,4,8,9],[0,1,2,3,4,8,9,10],[0,1,2,3,4,8,9,10,11],[0,1,2,3,4,8,9,11],[0,1,2,3,4,8,10],[0,1,2,3,4,8,10,11],[0,1,2,3,4,8,11],[0,1,2,3,4,9],[0,1,2,3,4,9,10],[0,1,2,3,4,9,10,11],[0,1,2,3,4,9,11],[0,1,2,3,4,10],[0,1,2,3,4,10,11],[0,1,2,3,4,11],[0,1,2,3,5],[0,1,2,3,5,6],[0,1,2,3,5,6,7],[0,1,2,3,5,6,7,8],[0,1,2,3,5,6,7,8,9],[0,1,2,3,5,6,7,8,9,10],[0,1,2,3,5,6,7,8,9,10,11],[0,1,2,3,5,6,7,8,9,11],[0,1,2,3,5,6,7,8,10],[0,1,2,3,5,6,7,8,10,11],[0,1,2,3,5,6,7,8,11],[0,1,2,3,5,6,7,9],[0,1,2,3,5,6,7,9,10],[0,1,2,3,5,6,7,9,10,11],[0,1,2,3,5,6,7,9,11],[0,1,2,3,5,6,7,10],[0,1,2,3,5,6,7,10,11],[0,1,2,3,5,6,7,11],[0,1,2,3,5,6,8],[0,1,2,3,5,6,8,9],[0,1,2,3,5,6,8,9,10],[0,1,2,3,5,6,8,9,10,11],[0,1,2,3,5,6,8,9,11],[0,1,2,3,5,6,8,10],[0,1,2,3,5,6,8,10,11],[0,1,2,3,5,6,8,11],[0,1,2,3,5,6,9],[0,1,2,3,5,6,9,10],[0,1,2,3,5,6,9,10,11],[0,1,2,3,5,6,9,11],[0,1,2,3,5,6,10],[0,1,2,3,5,6,10,11],[0,1,2,3,5,6,11],[0,1,2,3,5,7],[0,1,2,3,5,7,8],[0,1,2,3,5,7,8,9],[0,1,2,3,5,7,8,9,10],[0,1,2,3,5,7,8,9,10,11],[0,1,2,3,5,7,8,9,11],[0,1,2,3,5,7,8,10],[0,1,2,3,5,7,8,10,11],[0,1,2,3,5,7,8,11],[0,1,2,3,5,7,9],[0,1,2,3,5,7,9,10],[0,1,2,3,5,7,9,10,11],[0,1,2,3,5,7,9,11],[0,1,2,3,5,7,10],[0,1,2,3,5,7,10,11],[0,1,2,3,5,7,11],[0,1,2,3,5,8],[0,1,2,3,5,8,9],[0,1,2,3,5,8,9,10],[0,1,2,3,5,8,9,10,11],[0,1,2,3,5,8,9,11],[0,1,2,3,5,8,10],[0,1,2,3,5,8,10,11],[0,1,2,3,5,8,11],[0,1,2,3,5,9],[0,1,2,3,5,9,10],[0,1,2,3,5,9,10,11],[0,1,2,3,5,9,11],[0,1,2,3,5,10],[0,1,2,3,5,10,11],[0,1,2,3,5,11],[0,1,2,3,6],[0,1,2,3,6,7],[0,1,2,3,6,7,8],[0,1,2,3,6,7,8,9],[0,1,2,3,6,7,8,9,10],[0,1,2,3,6,7,8,9,10,11],[0,1,2,3,6,7,8,9,11],[0,1,2,3,6,7,8,10],[0,1,2,3,6,7,8,10,11],[0,1,2,3,6,7,8,11],[0,1,2,3,6,7,9],[0,1,2,3,6,7,9,10],[0,1,2,3,6,7,9,10,11],[0,1,2,3,6,7,9,11],[0,1,2,3,6,7,10],[0,1,2,3,6,7,10,11],[0,1,2,3,6,7,11],[0,1,2,3,6,8],[0,1,2,3,6,8,9],[0,1,2,3,6,8,9,10],[0,1,2,3,6,8,9,10,11],[0,1,2,3,6,8,9,11],[0,1,2,3,6,8,10],[0,1,2,3,6,8,10,11],[0,1,2,3,6,8,11],[0,1,2,3,6,9],[0,1,2,3,6,9,10],[0,1,2,3,6,9,10,11],[0,1,2,3,6,9,11],[0,1,2,3,6,10],[0,1,2,3,6,10,11],[0,1,2,3,6,11],[0,1,2,3,7],[0,1,2,3,7,8],[0,1,2,3,7,8,9],[0,1,2,3,7,8,9,10],[0,1,2,3,7,8,9,10,11],[0,1,2,3,7,8,9,11],[0,1,2,3,7,8,10],[0,1,2,3,7,8,10,11],[0,1,2,3,7,8,11],[0,1,2,3,7,9],[0,1,2,3,7,9,10],[0,1,2,3,7,9,10,11],[0,1,2,3,7,9,11],[0,1,2,3,7,10],[0,1,2,3,7,10,11],[0,1,2,3,7,11],[0,1,2,3,8],[0,1,2,3,8,9],[0,1,2,3,8,9,10],[0,1,2,3,8,9,10,11],[0,1,2,3,8,9,11],[0,1,2,3,8,10],[0,1,2,3,8,10,11],[0,1,2,3,8,11],[0,1,2,3,9],[0,1,2,3,9,10],[0,1,2,3,9,10,11],[0,1,2,3,9,11],[0,1,2,3,10],[0,1,2,3,10,11],[0,1,2,3,11],[0,1,2,4],[0,1,2,4,5],[0,1,2,4,5,6],[0,1,2,4,5,6,7],[0,1,2,4,5,6,7,8],[0,1,2,4,5,6,7,8,9],[0,1,2,4,5,6,7,8,9,10],[0,1,2,4,5,6,7,8,9,10,11],[0,1,2,4,5,6,7,8,9,11],[0,1,2,4,5,6,7,8,10],[0,1,2,4,5,6,7,8,10,11],[0,1,2,4,5,6,7,8,11],[0,1,2,4,5,6,7,9],[0,1,2,4,5,6,7,9,10],[0,1,2,4,5,6,7,9,10,11],[0,1,2,4,5,6,7,9,11],[0,1,2,4,5,6,7,10],[0,1,2,4,5,6,7,10,11],[0,1,2,4,5,6,7,11],[0,1,2,4,5,6,8],[0,1,2,4,5,6,8,9],[0,1,2,4,5,6,8,9,10],[0,1,2,4,5,6,8,9,10,11],[0,1,2,4,5,6,8,9,11],[0,1,2,4,5,6,8,10],[0,1,2,4,5,6,8,10,11],[0,1,2,4,5,6,8,11],[0,1,2,4,5,6,9],[0,1,2,4,5,6,9,10],[0,1,2,4,5,6,9,10,11],[0,1,2,4,5,6,9,11],[0,1,2,4,5,6,10],[0,1,2,4,5,6,10,11],[0,1,2,4,5,6,11],[0,1,2,4,5,7],[0,1,2,4,5,7,8],[0,1,2,4,5,7,8,9],[0,1,2,4,5,7,8,9,10],[0,1,2,4,5,7,8,9,10,11],[0,1,2,4,5,7,8,9,11],[0,1,2,4,5,7,8,10],[0,1,2,4,5,7,8,10,11],[0,1,2,4,5,7,8,11],[0,1,2,4,5,7,9],[0,1,2,4,5,7,9,10],[0,1,2,4,5,7,9,10,11],[0,1,2,4,5,7,9,11],[0,1,2,4,5,7,10],[0,1,2,4,5,7,10,11],[0,1,2,4,5,7,11],[0,1,2,4,5,8],[0,1,2,4,5,8,9],[0,1,2,4,5,8,9,10],[0,1,2,4,5,8,9,10,11],[0,1,2,4,5,8,9,11],[0,1,2,4,5,8,10],[0,1,2,4,5,8,10,11],[0,1,2,4,5,8,11],[0,1,2,4,5,9],[0,1,2,4,5,9,10],[0,1,2,4,5,9,10,11],[0,1,2,4,5,9,11],[0,1,2,4,5,10],[0,1,2,4,5,10,11],[0,1,2,4,5,11],[0,1,2,4,6],[0,1,2,4,6,7],[0,1,2,4,6,7,8],[0,1,2,4,6,7,8,9],[0,1,2,4,6,7,8,9,10],[0,1,2,4,6,7,8,9,10,11],[0,1,2,4,6,7,8,9,11],[0,1,2,4,6,7,8,10],[0,1,2,4,6,7,8,10,11],[0,1,2,4,6,7,8,11],[0,1,2,4,6,7,9],[0,1,2,4,6,7,9,10],[0,1,2,4,6,7,9,10,11],[0,1,2,4,6,7,9,11],[0,1,2,4,6,7,10],[0,1,2,4,6,7,10,11],[0,1,2,4,6,7,11],[0,1,2,4,6,8],[0,1,2,4,6,8,9],[0,1,2,4,6,8,9,10],[0,1,2,4,6,8,9,10,11],[0,1,2,4,6,8,9,11],[0,1,2,4,6,8,10],[0,1,2,4,6,8,10,11],[0,1,2,4,6,8,11],[0,1,2,4,6,9],[0,1,2,4,6,9,10],[0,1,2,4,6,9,10,11],[0,1,2,4,6,9,11],[0,1,2,4,6,10],[0,1,2,4,6,10,11],[0,1,2,4,6,11],[0,1,2,4,7],[0,1,2,4,7,8],[0,1,2,4,7,8,9],[0,1,2,4,7,8,9,10],[0,1,2,4,7,8,9,10,11],[0,1,2,4,7,8,9,11],[0,1,2,4,7,8,10],[0,1,2,4,7,8,10,11],[0,1,2,4,7,8,11],[0,1,2,4,7,9],[0,1,2,4,7,9,10],[0,1,2,4,7,9,10,11],[0,1,2,4,7,9,11],[0,1,2,4,7,10],[0,1,2,4,7,10,11],[0,1,2,4,7,11],[0,1,2,4,8],[0,1,2,4,8,9],[0,1,2,4,8,9,10],[0,1,2,4,8,9,10,11],[0,1,2,4,8,9,11],[0,1,2,4,8,10],[0,1,2,4,8,10,11],[0,1,2,4,8,11],[0,1,2,4,9],[0,1,2,4,9,10],[0,1,2,4,9,10,11],[0,1,2,4,9,11],[0,1,2,4,10],[0,1,2,4,10,11],[0,1,2,4,11],[0,1,2,5],[0,1,2,5,6],[0,1,2,5,6,7],[0,1,2,5,6,7,8],[0,1,2,5,6,7,8,9],[0,1,2,5,6,7,8,9,10],[0,1,2,5,6,7,8,9,10,11],[0,1,2,5,6,7,8,9,11],[0,1,2,5,6,7,8,10],[0,1,2,5,6,7,8,10,11],[0,1,2,5,6,7,8,11],[0,1,2,5,6,7,9],[0,1,2,5,6,7,9,10],[0,1,2,5,6,7,9,10,11],[0,1,2,5,6,7,9,11],[0,1,2,5,6,7,10],[0,1,2,5,6,7,10,11],[0,1,2,5,6,7,11],[0,1,2,5,6,8],[0,1,2,5,6,8,9],[0,1,2,5,6,8,9,10],[0,1,2,5,6,8,9,10,11],[0,1,2,5,6,8,9,11],[0,1,2,5,6,8,10],[0,1,2,5,6,8,10,11],[0,1,2,5,6,8,11],[0,1,2,5,6,9],[0,1,2,5,6,9,10],[0,1,2,5,6,9,10,11],[0,1,2,5,6,9,11],[0,1,2,5,6,10],[0,1,2,5,6,10,11],[0,1,2,5,6,11],[0,1,2,5,7],[0,1,2,5,7,8],[0,1,2,5,7,8,9],[0,1,2,5,7,8,9,10],[0,1,2,5,7,8,9,10,11],[0,1,2,5,7,8,9,11],[0,1,2,5,7,8,10],[0,1,2,5,7,8,10,11],[0,1,2,5,7,8,11],[0,1,2,5,7,9],[0,1,2,5,7,9,10],[0,1,2,5,7,9,10,11],[0,1,2,5,7,9,11],[0,1,2,5,7,10],[0,1,2,5,7,10,11],[0,1,2,5,7,11],[0,1,2,5,8],[0,1,2,5,8,9],[0,1,2,5,8,9,10],[0,1,2,5,8,9,10,11],[0,1,2,5,8,9,11],[0,1,2,5,8,10],[0,1,2,5,8,10,11],[0,1,2,5,8,11],[0,1,2,5,9],[0,1,2,5,9,10],[0,1,2,5,9,10,11],[0,1,2,5,9,11],[0,1,2,5,10],[0,1,2,5,10,11],[0,1,2,5,11],[0,1,2,6],[0,1,2,6,7],[0,1,2,6,7,8],[0,1,2,6,7,8,9],[0,1,2,6,7,8,9,10],[0,1,2,6,7,8,9,10,11],[0,1,2,6,7,8,9,11],[0,1,2,6,7,8,10],[0,1,2,6,7,8,10,11],[0,1,2,6,7,8,11],[0,1,2,6,7,9],[0,1,2,6,7,9,10],[0,1,2,6,7,9,10,11],[0,1,2,6,7,9,11],[0,1,2,6,7,10],[0,1,2,6,7,10,11],[0,1,2,6,7,11],[0,1,2,6,8],[0,1,2,6,8,9],[0,1,2,6,8,9,10],[0,1,2,6,8,9,10,11],[0,1,2,6,8,9,11],[0,1,2,6,8,10],[0,1,2,6,8,10,11],[0,1,2,6,8,11],[0,1,2,6,9],[0,1,2,6,9,10],[0,1,2,6,9,10,11],[0,1,2,6,9,11],[0,1,2,6,10],[0,1,2,6,10,11],[0,1,2,6,11],[0,1,2,7],[0,1,2,7,8],[0,1,2,7,8,9],[0,1,2,7,8,9,10],[0,1,2,7,8,9,10,11],[0,1,2,7,8,9,11],[0,1,2,7,8,10],[0,1,2,7,8,10,11],[0,1,2,7,8,11],[0,1,2,7,9],[0,1,2,7,9,10],[0,1,2,7,9,10,11],[0,1,2,7,9,11],[0,1,2,7,10],[0,1,2,7,10,11],[0,1,2,7,11],[0,1,2,8],[0,1,2,8,9],[0,1,2,8,9,10],[0,1,2,8,9,10,11],[0,1,2,8,9,11],[0,1,2,8,10],[0,1,2,8,10,11],[0,1,2,8,11],[0,1,2,9],[0,1,2,9,10],[0,1,2,9,10,11],[0,1,2,9,11],[0,1,2,10],[0,1,2,10,11],[0,1,2,11],[0,1,3],[0,1,3,4],[0,1,3,4,5],[0,1,3,4,5,6],[0,1,3,4,5,6,7],[0,1,3,4,5,6,7,8],[0,1,3,4,5,6,7,8,9],[0,1,3,4,5,6,7,8,9,10],[0,1,3,4,5,6,7,8,9,10,11],[0,1,3,4,5,6,7,8,9,11],[0,1,3,4,5,6,7,8,10],[0,1,3,4,5,6,7,8,10,11],[0,1,3,4,5,6,7,8,11],[0,1,3,4,5,6,7,9],[0,1,3,4,5,6,7,9,10],[0,1,3,4,5,6,7,9,10,11],[0,1,3,4,5,6,7,9,11],[0,1,3,4,5,6,7,10],[0,1,3,4,5,6,7,10,11],[0,1,3,4,5,6,7,11],[0,1,3,4,5,6,8],[0,1,3,4,5,6,8,9],[0,1,3,4,5,6,8,9,10],[0,1,3,4,5,6,8,9,10,11],[0,1,3,4,5,6,8,9,11],[0,1,3,4,5,6,8,10],[0,1,3,4,5,6,8,10,11],[0,1,3,4,5,6,8,11],[0,1,3,4,5,6,9],[0,1,3,4,5,6,9,10],[0,1,3,4,5,6,9,10,11],[0,1,3,4,5,6,9,11],[0,1,3,4,5,6,10],[0,1,3,4,5,6,10,11],[0,1,3,4,5,6,11],[0,1,3,4,5,7],[0,1,3,4,5,7,8],[0,1,3,4,5,7,8,9],[0,1,3,4,5,7,8,9,10],[0,1,3,4,5,7,8,9,10,11],[0,1,3,4,5,7,8,9,11],[0,1,3,4,5,7,8,10],[0,1,3,4,5,7,8,10,11],[0,1,3,4,5,7,8,11],[0,1,3,4,5,7,9],[0,1,3,4,5,7,9,10],[0,1,3,4,5,7,9,10,11],[0,1,3,4,5,7,9,11],[0,1,3,4,5,7,10],[0,1,3,4,5,7,10,11],[0,1,3,4,5,7,11],[0,1,3,4,5,8],[0,1,3,4,5,8,9],[0,1,3,4,5,8,9,10],[0,1,3,4,5,8,9,10,11],[0,1,3,4,5,8,9,11],[0,1,3,4,5,8,10],[0,1,3,4,5,8,10,11],[0,1,3,4,5,8,11],[0,1,3,4,5,9],[0,1,3,4,5,9,10],[0,1,3,4,5,9,10,11],[0,1,3,4,5,9,11],[0,1,3,4,5,10],[0,1,3,4,5,10,11],[0,1,3,4,5,11],[0,1,3,4,6],[0,1,3,4,6,7],[0,1,3,4,6,7,8],[0,1,3,4,6,7,8,9],[0,1,3,4,6,7,8,9,10],[0,1,3,4,6,7,8,9,10,11],[0,1,3,4,6,7,8,9,11],[0,1,3,4,6,7,8,10],[0,1,3,4,6,7,8,10,11],[0,1,3,4,6,7,8,11],[0,1,3,4,6,7,9],[0,1,3,4,6,7,9,10],[0,1,3,4,6,7,9,10,11],[0,1,3,4,6,7,9,11],[0,1,3,4,6,7,10],[0,1,3,4,6,7,10,11],[0,1,3,4,6,7,11],[0,1,3,4,6,8],[0,1,3,4,6,8,9],[0,1,3,4,6,8,9,10],[0,1,3,4,6,8,9,10,11],[0,1,3,4,6,8,9,11],[0,1,3,4,6,8,10],[0,1,3,4,6,8,10,11],[0,1,3,4,6,8,11],[0,1,3,4,6,9],[0,1,3,4,6,9,10],[0,1,3,4,6,9,10,11],[0,1,3,4,6,9,11],[0,1,3,4,6,10],[0,1,3,4,6,10,11],[0,1,3,4,6,11],[0,1,3,4,7],[0,1,3,4,7,8],[0,1,3,4,7,8,9],[0,1,3,4,7,8,9,10],[0,1,3,4,7,8,9,10,11],[0,1,3,4,7,8,9,11],[0,1,3,4,7,8,10],[0,1,3,4,7,8,10,11],[0,1,3,4,7,8,11],[0,1,3,4,7,9],[0,1,3,4,7,9,10],[0,1,3,4,7,9,10,11],[0,1,3,4,7,9,11],[0,1,3,4,7,10],[0,1,3,4,7,10,11],[0,1,3,4,7,11],[0,1,3,4,8],[0,1,3,4,8,9],[0,1,3,4,8,9,10],[0,1,3,4,8,9,10,11],[0,1,3,4,8,9,11],[0,1,3,4,8,10],[0,1,3,4,8,10,11],[0,1,3,4,8,11],[0,1,3,4,9],[0,1,3,4,9,10],[0,1,3,4,9,10,11],[0,1,3,4,9,11],[0,1,3,4,10],[0,1,3,4,10,11],[0,1,3,4,11],[0,1,3,5],[0,1,3,5,6],[0,1,3,5,6,7],[0,1,3,5,6,7,8],[0,1,3,5,6,7,8,9],[0,1,3,5,6,7,8,9,10],[0,1,3,5,6,7,8,9,10,11],[0,1,3,5,6,7,8,9,11],[0,1,3,5,6,7,8,10],[0,1,3,5,6,7,8,10,11],[0,1,3,5,6,7,8,11],[0,1,3,5,6,7,9],[0,1,3,5,6,7,9,10],[0,1,3,5,6,7,9,10,11],[0,1,3,5,6,7,9,11],[0,1,3,5,6,7,10],[0,1,3,5,6,7,10,11],[0,1,3,5,6,7,11],[0,1,3,5,6,8],[0,1,3,5,6,8,9],[0,1,3,5,6,8,9,10],[0,1,3,5,6,8,9,10,11],[0,1,3,5,6,8,9,11],[0,1,3,5,6,8,10],[0,1,3,5,6,8,10,11],[0,1,3,5,6,8,11],[0,1,3,5,6,9],[0,1,3,5,6,9,10],[0,1,3,5,6,9,10,11],[0,1,3,5,6,9,11],[0,1,3,5,6,10],[0,1,3,5,6,10,11],[0,1,3,5,6,11],[0,1,3,5,7],[0,1,3,5,7,8],[0,1,3,5,7,8,9],[0,1,3,5,7,8,9,10],[0,1,3,5,7,8,9,10,11],[0,1,3,5,7,8,9,11],[0,1,3,5,7,8,10],[0,1,3,5,7,8,10,11],[0,1,3,5,7,8,11],[0,1,3,5,7,9],[0,1,3,5,7,9,10],[0,1,3,5,7,9,10,11],[0,1,3,5,7,9,11],[0,1,3,5,7,10],[0,1,3,5,7,10,11],[0,1,3,5,7,11],[0,1,3,5,8],[0,1,3,5,8,9],[0,1,3,5,8,9,10],[0,1,3,5,8,9,10,11],[0,1,3,5,8,9,11],[0,1,3,5,8,10],[0,1,3,5,8,10,11],[0,1,3,5,8,11],[0,1,3,5,9],[0,1,3,5,9,10],[0,1,3,5,9,10,11],[0,1,3,5,9,11],[0,1,3,5,10],[0,1,3,5,10,11],[0,1,3,5,11],[0,1,3,6],[0,1,3,6,7],[0,1,3,6,7,8],[0,1,3,6,7,8,9],[0,1,3,6,7,8,9,10],[0,1,3,6,7,8,9,10,11],[0,1,3,6,7,8,9,11],[0,1,3,6,7,8,10],[0,1,3,6,7,8,10,11],[0,1,3,6,7,8,11],[0,1,3,6,7,9],[0,1,3,6,7,9,10],[0,1,3,6,7,9,10,11],[0,1,3,6,7,9,11],[0,1,3,6,7,10],[0,1,3,6,7,10,11],[0,1,3,6,7,11],[0,1,3,6,8],[0,1,3,6,8,9],[0,1,3,6,8,9,10],[0,1,3,6,8,9,10,11],[0,1,3,6,8,9,11],[0,1,3,6,8,10],[0,1,3,6,8,10,11],[0,1,3,6,8,11],[0,1,3,6,9],[0,1,3,6,9,10],[0,1,3,6,9,10,11],[0,1,3,6,9,11],[0,1,3,6,10],[0,1,3,6,10,11],[0,1,3,6,11],[0,1,3,7],[0,1,3,7,8],[0,1,3,7,8,9],[0,1,3,7,8,9,10],[0,1,3,7,8,9,10,11],[0,1,3,7,8,9,11],[0,1,3,7,8,10],[0,1,3,7,8,10,11],[0,1,3,7,8,11],[0,1,3,7,9],[0,1,3,7,9,10],[0,1,3,7,9,10,11],[0,1,3,7,9,11],[0,1,3,7,10],[0,1,3,7,10,11],[0,1,3,7,11],[0,1,3,8],[0,1,3,8,9],[0,1,3,8,9,10],[0,1,3,8,9,10,11],[0,1,3,8,9,11],[0,1,3,8,10],[0,1,3,8,10,11],[0,1,3,8,11],[0,1,3,9],[0,1,3,9,10],[0,1,3,9,10,11],[0,1,3,9,11],[0,1,3,10],[0,1,3,10,11],[0,1,3,11],[0,1,4],[0,1,4,5],[0,1,4,5,6],[0,1,4,5,6,7],[0,1,4,5,6,7,8],[0,1,4,5,6,7,8,9],[0,1,4,5,6,7,8,9,10],[0,1,4,5,6,7,8,9,10,11],[0,1,4,5,6,7,8,9,11],[0,1,4,5,6,7,8,10],[0,1,4,5,6,7,8,10,11],[0,1,4,5,6,7,8,11],[0,1,4,5,6,7,9],[0,1,4,5,6,7,9,10],[0,1,4,5,6,7,9,10,11],[0,1,4,5,6,7,9,11],[0,1,4,5,6,7,10],[0,1,4,5,6,7,10,11],[0,1,4,5,6,7,11],[0,1,4,5,6,8],[0,1,4,5,6,8,9],[0,1,4,5,6,8,9,10],[0,1,4,5,6,8,9,10,11],[0,1,4,5,6,8,9,11],[0,1,4,5,6,8,10],[0,1,4,5,6,8,10,11],[0,1,4,5,6,8,11],[0,1,4,5,6,9],[0,1,4,5,6,9,10],[0,1,4,5,6,9,10,11],[0,1,4,5,6,9,11],[0,1,4,5,6,10],[0,1,4,5,6,10,11],[0,1,4,5,6,11],[0,1,4,5,7],[0,1,4,5,7,8],[0,1,4,5,7,8,9],[0,1,4,5,7,8,9,10],[0,1,4,5,7,8,9,10,11],[0,1,4,5,7,8,9,11],[0,1,4,5,7,8,10],[0,1,4,5,7,8,10,11],[0,1,4,5,7,8,11],[0,1,4,5,7,9],[0,1,4,5,7,9,10],[0,1,4,5,7,9,10,11],[0,1,4,5,7,9,11],[0,1,4,5,7,10],[0,1,4,5,7,10,11],[0,1,4,5,7,11],[0,1,4,5,8],[0,1,4,5,8,9],[0,1,4,5,8,9,10],[0,1,4,5,8,9,10,11],[0,1,4,5,8,9,11],[0,1,4,5,8,10],[0,1,4,5,8,10,11],[0,1,4,5,8,11],[0,1,4,5,9],[0,1,4,5,9,10],[0,1,4,5,9,10,11],[0,1,4,5,9,11],[0,1,4,5,10],[0,1,4,5,10,11],[0,1,4,5,11],[0,1,4,6],[0,1,4,6,7],[0,1,4,6,7,8],[0,1,4,6,7,8,9],[0,1,4,6,7,8,9,10],[0,1,4,6,7,8,9,10,11],[0,1,4,6,7,8,9,11],[0,1,4,6,7,8,10],[0,1,4,6,7,8,10,11],[0,1,4,6,7,8,11],[0,1,4,6,7,9],[0,1,4,6,7,9,10],[0,1,4,6,7,9,10,11],[0,1,4,6,7,9,11],[0,1,4,6,7,10],[0,1,4,6,7,10,11],[0,1,4,6,7,11],[0,1,4,6,8],[0,1,4,6,8,9],[0,1,4,6,8,9,10],[0,1,4,6,8,9,10,11],[0,1,4,6,8,9,11],[0,1,4,6,8,10],[0,1,4,6,8,10,11],[0,1,4,6,8,11],[0,1,4,6,9],[0,1,4,6,9,10],[0,1,4,6,9,10,11],[0,1,4,6,9,11],[0,1,4,6,10],[0,1,4,6,10,11],[0,1,4,6,11],[0,1,4,7],[0,1,4,7,8],[0,1,4,7,8,9],[0,1,4,7,8,9,10],[0,1,4,7,8,9,10,11],[0,1,4,7,8,9,11],[0,1,4,7,8,10],[0,1,4,7,8,10,11],[0,1,4,7,8,11],[0,1,4,7,9],[0,1,4,7,9,10],[0,1,4,7,9,10,11],[0,1,4,7,9,11],[0,1,4,7,10],[0,1,4,7,10,11],[0,1,4,7,11],[0,1,4,8],[0,1,4,8,9],[0,1,4,8,9,10],[0,1,4,8,9,10,11],[0,1,4,8,9,11],[0,1,4,8,10],[0,1,4,8,10,11],[0,1,4,8,11],[0,1,4,9],[0,1,4,9,10],[0,1,4,9,10,11],[0,1,4,9,11],[0,1,4,10],[0,1,4,10,11],[0,1,4,11],[0,1,5],[0,1,5,6],[0,1,5,6,7],[0,1,5,6,7,8],[0,1,5,6,7,8,9],[0,1,5,6,7,8,9,10],[0,1,5,6,7,8,9,10,11],[0,1,5,6,7,8,9,11],[0,1,5,6,7,8,10],[0,1,5,6,7,8,10,11],[0,1,5,6,7,8,11],[0,1,5,6,7,9],[0,1,5,6,7,9,10],[0,1,5,6,7,9,10,11],[0,1,5,6,7,9,11],[0,1,5,6,7,10],[0,1,5,6,7,10,11],[0,1,5,6,7,11],[0,1,5,6,8],[0,1,5,6,8,9],[0,1,5,6,8,9,10],[0,1,5,6,8,9,10,11],[0,1,5,6,8,9,11],[0,1,5,6,8,10],[0,1,5,6,8,10,11],[0,1,5,6,8,11],[0,1,5,6,9],[0,1,5,6,9,10],[0,1,5,6,9,10,11],[0,1,5,6,9,11],[0,1,5,6,10],[0,1,5,6,10,11],[0,1,5,6,11],[0,1,5,7],[0,1,5,7,8],[0,1,5,7,8,9],[0,1,5,7,8,9,10],[0,1,5,7,8,9,10,11],[0,1,5,7,8,9,11],[0,1,5,7,8,10],[0,1,5,7,8,10,11],[0,1,5,7,8,11],[0,1,5,7,9],[0,1,5,7,9,10],[0,1,5,7,9,10,11],[0,1,5,7,9,11],[0,1,5,7,10],[0,1,5,7,10,11],[0,1,5,7,11],[0,1,5,8],[0,1,5,8,9],[0,1,5,8,9,10],[0,1,5,8,9,10,11],[0,1,5,8,9,11],[0,1,5,8,10],[0,1,5,8,10,11],[0,1,5,8,11],[0,1,5,9],[0,1,5,9,10],[0,1,5,9,10,11],[0,1,5,9,11],[0,1,5,10],[0,1,5,10,11],[0,1,5,11],[0,1,6],[0,1,6,7],[0,1,6,7,8],[0,1,6,7,8,9],[0,1,6,7,8,9,10],[0,1,6,7,8,9,10,11],[0,1,6,7,8,9,11],[0,1,6,7,8,10],[0,1,6,7,8,10,11],[0,1,6,7,8,11],[0,1,6,7,9],[0,1,6,7,9,10],[0,1,6,7,9,10,11],[0,1,6,7,9,11],[0,1,6,7,10],[0,1,6,7,10,11],[0,1,6,7,11],[0,1,6,8],[0,1,6,8,9],[0,1,6,8,9,10],[0,1,6,8,9,10,11],[0,1,6,8,9,11],[0,1,6,8,10],[0,1,6,8,10,11],[0,1,6,8,11],[0,1,6,9],[0,1,6,9,10],[0,1,6,9,10,11],[0,1,6,9,11],[0,1,6,10],[0,1,6,10,11],[0,1,6,11],[0,1,7],[0,1,7,8],[0,1,7,8,9],[0,1,7,8,9,10],[0,1,7,8,9,10,11],[0,1,7,8,9,11],[0,1,7,8,10],[0,1,7,8,10,11],[0,1,7,8,11],[0,1,7,9],[0,1,7,9,10],[0,1,7,9,10,11],[0,1,7,9,11],[0,1,7,10],[0,1,7,10,11],[0,1,7,11],[0,1,8],[0,1,8,9],[0,1,8,9,10],[0,1,8,9,10,11],[0,1,8,9,11],[0,1,8,10],[0,1,8,10,11],[0,1,8,11],[0,1,9],[0,1,9,10],[0,1,9,10,11],[0,1,9,11],[0,1,10],[0,1,10,11],[0,1,11],[0,2],[0,2,3],[0,2,3,4],[0,2,3,4,5],[0,2,3,4,5,6],[0,2,3,4,5,6,7],[0,2,3,4,5,6,7,8],[0,2,3,4,5,6,7,8,9],[0,2,3,4,5,6,7,8,9,10],[0,2,3,4,5,6,7,8,9,10,11],[0,2,3,4,5,6,7,8,9,11],[0,2,3,4,5,6,7,8,10],[0,2,3,4,5,6,7,8,10,11],[0,2,3,4,5,6,7,8,11],[0,2,3,4,5,6,7,9],[0,2,3,4,5,6,7,9,10],[0,2,3,4,5,6,7,9,10,11],[0,2,3,4,5,6,7,9,11],[0,2,3,4,5,6,7,10],[0,2,3,4,5,6,7,10,11],[0,2,3,4,5,6,7,11],[0,2,3,4,5,6,8],[0,2,3,4,5,6,8,9],[0,2,3,4,5,6,8,9,10],[0,2,3,4,5,6,8,9,10,11],[0,2,3,4,5,6,8,9,11],[0,2,3,4,5,6,8,10],[0,2,3,4,5,6,8,10,11],[0,2,3,4,5,6,8,11],[0,2,3,4,5,6,9],[0,2,3,4,5,6,9,10],[0,2,3,4,5,6,9,10,11],[0,2,3,4,5,6,9,11],[0,2,3,4,5,6,10],[0,2,3,4,5,6,10,11],[0,2,3,4,5,6,11],[0,2,3,4,5,7],[0,2,3,4,5,7,8],[0,2,3,4,5,7,8,9],[0,2,3,4,5,7,8,9,10],[0,2,3,4,5,7,8,9,10,11],[0,2,3,4,5,7,8,9,11],[0,2,3,4,5,7,8,10],[0,2,3,4,5,7,8,10,11],[0,2,3,4,5,7,8,11],[0,2,3,4,5,7,9],[0,2,3,4,5,7,9,10],[0,2,3,4,5,7,9,10,11],[0,2,3,4,5,7,9,11],[0,2,3,4,5,7,10],[0,2,3,4,5,7,10,11],[0,2,3,4,5,7,11],[0,2,3,4,5,8],[0,2,3,4,5,8,9],[0,2,3,4,5,8,9,10],[0,2,3,4,5,8,9,10,11],[0,2,3,4,5,8,9,11],[0,2,3,4,5,8,10],[0,2,3,4,5,8,10,11],[0,2,3,4,5,8,11],[0,2,3,4,5,9],[0,2,3,4,5,9,10],[0,2,3,4,5,9,10,11],[0,2,3,4,5,9,11],[0,2,3,4,5,10],[0,2,3,4,5,10,11],[0,2,3,4,5,11],[0,2,3,4,6],[0,2,3,4,6,7],[0,2,3,4,6,7,8],[0,2,3,4,6,7,8,9],[0,2,3,4,6,7,8,9,10],[0,2,3,4,6,7,8,9,10,11],[0,2,3,4,6,7,8,9,11],[0,2,3,4,6,7,8,10],[0,2,3,4,6,7,8,10,11],[0,2,3,4,6,7,8,11],[0,2,3,4,6,7,9],[0,2,3,4,6,7,9,10],[0,2,3,4,6,7,9,10,11],[0,2,3,4,6,7,9,11],[0,2,3,4,6,7,10],[0,2,3,4,6,7,10,11],[0,2,3,4,6,7,11],[0,2,3,4,6,8],[0,2,3,4,6,8,9],[0,2,3,4,6,8,9,10],[0,2,3,4,6,8,9,10,11],[0,2,3,4,6,8,9,11],[0,2,3,4,6,8,10],[0,2,3,4,6,8,10,11],[0,2,3,4,6,8,11],[0,2,3,4,6,9],[0,2,3,4,6,9,10],[0,2,3,4,6,9,10,11],[0,2,3,4,6,9,11],[0,2,3,4,6,10],[0,2,3,4,6,10,11],[0,2,3,4,6,11],[0,2,3,4,7],[0,2,3,4,7,8],[0,2,3,4,7,8,9],[0,2,3,4,7,8,9,10],[0,2,3,4,7,8,9,10,11],[0,2,3,4,7,8,9,11],[0,2,3,4,7,8,10],[0,2,3,4,7,8,10,11],[0,2,3,4,7,8,11],[0,2,3,4,7,9],[0,2,3,4,7,9,10],[0,2,3,4,7,9,10,11],[0,2,3,4,7,9,11],[0,2,3,4,7,10],[0,2,3,4,7,10,11],[0,2,3,4,7,11],[0,2,3,4,8],[0,2,3,4,8,9],[0,2,3,4,8,9,10],[0,2,3,4,8,9,10,11],[0,2,3,4,8,9,11],[0,2,3,4,8,10],[0,2,3,4,8,10,11],[0,2,3,4,8,11],[0,2,3,4,9],[0,2,3,4,9,10],[0,2,3,4,9,10,11],[0,2,3,4,9,11],[0,2,3,4,10],[0,2,3,4,10,11],[0,2,3,4,11],[0,2,3,5],[0,2,3,5,6],[0,2,3,5,6,7],[0,2,3,5,6,7,8],[0,2,3,5,6,7,8,9],[0,2,3,5,6,7,8,9,10],[0,2,3,5,6,7,8,9,10,11],[0,2,3,5,6,7,8,9,11],[0,2,3,5,6,7,8,10],[0,2,3,5,6,7,8,10,11],[0,2,3,5,6,7,8,11],[0,2,3,5,6,7,9],[0,2,3,5,6,7,9,10],[0,2,3,5,6,7,9,10,11],[0,2,3,5,6,7,9,11],[0,2,3,5,6,7,10],[0,2,3,5,6,7,10,11],[0,2,3,5,6,7,11],[0,2,3,5,6,8],[0,2,3,5,6,8,9],[0,2,3,5,6,8,9,10],[0,2,3,5,6,8,9,10,11],[0,2,3,5,6,8,9,11],[0,2,3,5,6,8,10],[0,2,3,5,6,8,10,11],[0,2,3,5,6,8,11],[0,2,3,5,6,9],[0,2,3,5,6,9,10],[0,2,3,5,6,9,10,11],[0,2,3,5,6,9,11],[0,2,3,5,6,10],[0,2,3,5,6,10,11],[0,2,3,5,6,11],[0,2,3,5,7],[0,2,3,5,7,8],[0,2,3,5,7,8,9],[0,2,3,5,7,8,9,10],[0,2,3,5,7,8,9,10,11],[0,2,3,5,7,8,9,11],[0,2,3,5,7,8,10],[0,2,3,5,7,8,10,11],[0,2,3,5,7,8,11],[0,2,3,5,7,9],[0,2,3,5,7,9,10],[0,2,3,5,7,9,10,11],[0,2,3,5,7,9,11],[0,2,3,5,7,10],[0,2,3,5,7,10,11],[0,2,3,5,7,11],[0,2,3,5,8],[0,2,3,5,8,9],[0,2,3,5,8,9,10],[0,2,3,5,8,9,10,11],[0,2,3,5,8,9,11],[0,2,3,5,8,10],[0,2,3,5,8,10,11],[0,2,3,5,8,11],[0,2,3,5,9],[0,2,3,5,9,10],[0,2,3,5,9,10,11],[0,2,3,5,9,11],[0,2,3,5,10],[0,2,3,5,10,11],[0,2,3,5,11],[0,2,3,6],[0,2,3,6,7],[0,2,3,6,7,8],[0,2,3,6,7,8,9],[0,2,3,6,7,8,9,10],[0,2,3,6,7,8,9,10,11],[0,2,3,6,7,8,9,11],[0,2,3,6,7,8,10],[0,2,3,6,7,8,10,11],[0,2,3,6,7,8,11],[0,2,3,6,7,9],[0,2,3,6,7,9,10],[0,2,3,6,7,9,10,11],[0,2,3,6,7,9,11],[0,2,3,6,7,10],[0,2,3,6,7,10,11],[0,2,3,6,7,11],[0,2,3,6,8],[0,2,3,6,8,9],[0,2,3,6,8,9,10],[0,2,3,6,8,9,10,11],[0,2,3,6,8,9,11],[0,2,3,6,8,10],[0,2,3,6,8,10,11],[0,2,3,6,8,11],[0,2,3,6,9],[0,2,3,6,9,10],[0,2,3,6,9,10,11],[0,2,3,6,9,11],[0,2,3,6,10],[0,2,3,6,10,11],[0,2,3,6,11],[0,2,3,7],[0,2,3,7,8],[0,2,3,7,8,9],[0,2,3,7,8,9,10],[0,2,3,7,8,9,10,11],[0,2,3,7,8,9,11],[0,2,3,7,8,10],[0,2,3,7,8,10,11],[0,2,3,7,8,11],[0,2,3,7,9],[0,2,3,7,9,10],[0,2,3,7,9,10,11],[0,2,3,7,9,11],[0,2,3,7,10],[0,2,3,7,10,11],[0,2,3,7,11],[0,2,3,8],[0,2,3,8,9],[0,2,3,8,9,10],[0,2,3,8,9,10,11],[0,2,3,8,9,11],[0,2,3,8,10],[0,2,3,8,10,11],[0,2,3,8,11],[0,2,3,9],[0,2,3,9,10],[0,2,3,9,10,11],[0,2,3,9,11],[0,2,3,10],[0,2,3,10,11],[0,2,3,11],[0,2,4],[0,2,4,5],[0,2,4,5,6],[0,2,4,5,6,7],[0,2,4,5,6,7,8],[0,2,4,5,6,7,8,9],[0,2,4,5,6,7,8,9,10],[0,2,4,5,6,7,8,9,10,11],[0,2,4,5,6,7,8,9,11],[0,2,4,5,6,7,8,10],[0,2,4,5,6,7,8,10,11],[0,2,4,5,6,7,8,11],[0,2,4,5,6,7,9],[0,2,4,5,6,7,9,10],[0,2,4,5,6,7,9,10,11],[0,2,4,5,6,7,9,11],[0,2,4,5,6,7,10],[0,2,4,5,6,7,10,11],[0,2,4,5,6,7,11],[0,2,4,5,6,8],[0,2,4,5,6,8,9],[0,2,4,5,6,8,9,10],[0,2,4,5,6,8,9,10,11],[0,2,4,5,6,8,9,11],[0,2,4,5,6,8,10],[0,2,4,5,6,8,10,11],[0,2,4,5,6,8,11],[0,2,4,5,6,9],[0,2,4,5,6,9,10],[0,2,4,5,6,9,10,11],[0,2,4,5,6,9,11],[0,2,4,5,6,10],[0,2,4,5,6,10,11],[0,2,4,5,6,11],[0,2,4,5,7],[0,2,4,5,7,8],[0,2,4,5,7,8,9],[0,2,4,5,7,8,9,10],[0,2,4,5,7,8,9,10,11],[0,2,4,5,7,8,9,11],[0,2,4,5,7,8,10],[0,2,4,5,7,8,10,11],[0,2,4,5,7,8,11],[0,2,4,5,7,9],[0,2,4,5,7,9,10],[0,2,4,5,7,9,10,11],[0,2,4,5,7,9,11],[0,2,4,5,7,10],[0,2,4,5,7,10,11],[0,2,4,5,7,11],[0,2,4,5,8],[0,2,4,5,8,9],[0,2,4,5,8,9,10],[0,2,4,5,8,9,10,11],[0,2,4,5,8,9,11],[0,2,4,5,8,10],[0,2,4,5,8,10,11],[0,2,4,5,8,11],[0,2,4,5,9],[0,2,4,5,9,10],[0,2,4,5,9,10,11],[0,2,4,5,9,11],[0,2,4,5,10],[0,2,4,5,10,11],[0,2,4,5,11],[0,2,4,6],[0,2,4,6,7],[0,2,4,6,7,8],[0,2,4,6,7,8,9],[0,2,4,6,7,8,9,10],[0,2,4,6,7,8,9,10,11],[0,2,4,6,7,8,9,11],[0,2,4,6,7,8,10],[0,2,4,6,7,8,10,11],[0,2,4,6,7,8,11],[0,2,4,6,7,9],[0,2,4,6,7,9,10],[0,2,4,6,7,9,10,11],[0,2,4,6,7,9,11],[0,2,4,6,7,10],[0,2,4,6,7,10,11],[0,2,4,6,7,11],[0,2,4,6,8],[0,2,4,6,8,9],[0,2,4,6,8,9,10],[0,2,4,6,8,9,10,11],[0,2,4,6,8,9,11],[0,2,4,6,8,10],[0,2,4,6,8,10,11],[0,2,4,6,8,11],[0,2,4,6,9],[0,2,4,6,9,10],[0,2,4,6,9,10,11],[0,2,4,6,9,11],[0,2,4,6,10],[0,2,4,6,10,11],[0,2,4,6,11],[0,2,4,7],[0,2,4,7,8],[0,2,4,7,8,9],[0,2,4,7,8,9,10],[0,2,4,7,8,9,10,11],[0,2,4,7,8,9,11],[0,2,4,7,8,10],[0,2,4,7,8,10,11],[0,2,4,7,8,11],[0,2,4,7,9],[0,2,4,7,9,10],[0,2,4,7,9,10,11],[0,2,4,7,9,11],[0,2,4,7,10],[0,2,4,7,10,11],[0,2,4,7,11],[0,2,4,8],[0,2,4,8,9],[0,2,4,8,9,10],[0,2,4,8,9,10,11],[0,2,4,8,9,11],[0,2,4,8,10],[0,2,4,8,10,11],[0,2,4,8,11],[0,2,4,9],[0,2,4,9,10],[0,2,4,9,10,11],[0,2,4,9,11],[0,2,4,10],[0,2,4,10,11],[0,2,4,11],[0,2,5],[0,2,5,6],[0,2,5,6,7],[0,2,5,6,7,8],[0,2,5,6,7,8,9],[0,2,5,6,7,8,9,10],[0,2,5,6,7,8,9,10,11],[0,2,5,6,7,8,9,11],[0,2,5,6,7,8,10],[0,2,5,6,7,8,10,11],[0,2,5,6,7,8,11],[0,2,5,6,7,9],[0,2,5,6,7,9,10],[0,2,5,6,7,9,10,11],[0,2,5,6,7,9,11],[0,2,5,6,7,10],[0,2,5,6,7,10,11],[0,2,5,6,7,11],[0,2,5,6,8],[0,2,5,6,8,9],[0,2,5,6,8,9,10],[0,2,5,6,8,9,10,11],[0,2,5,6,8,9,11],[0,2,5,6,8,10],[0,2,5,6,8,10,11],[0,2,5,6,8,11],[0,2,5,6,9],[0,2,5,6,9,10],[0,2,5,6,9,10,11],[0,2,5,6,9,11],[0,2,5,6,10],[0,2,5,6,10,11],[0,2,5,6,11],[0,2,5,7],[0,2,5,7,8],[0,2,5,7,8,9],[0,2,5,7,8,9,10],[0,2,5,7,8,9,10,11],[0,2,5,7,8,9,11],[0,2,5,7,8,10],[0,2,5,7,8,10,11],[0,2,5,7,8,11],[0,2,5,7,9],[0,2,5,7,9,10],[0,2,5,7,9,10,11],[0,2,5,7,9,11],[0,2,5,7,10],[0,2,5,7,10,11],[0,2,5,7,11],[0,2,5,8],[0,2,5,8,9],[0,2,5,8,9,10],[0,2,5,8,9,10,11],[0,2,5,8,9,11],[0,2,5,8,10],[0,2,5,8,10,11],[0,2,5,8,11],[0,2,5,9],[0,2,5,9,10],[0,2,5,9,10,11],[0,2,5,9,11],[0,2,5,10],[0,2,5,10,11],[0,2,5,11],[0,2,6],[0,2,6,7],[0,2,6,7,8],[0,2,6,7,8,9],[0,2,6,7,8,9,10],[0,2,6,7,8,9,10,11],[0,2,6,7,8,9,11],[0,2,6,7,8,10],[0,2,6,7,8,10,11],[0,2,6,7,8,11],[0,2,6,7,9],[0,2,6,7,9,10],[0,2,6,7,9,10,11],[0,2,6,7,9,11],[0,2,6,7,10],[0,2,6,7,10,11],[0,2,6,7,11],[0,2,6,8],[0,2,6,8,9],[0,2,6,8,9,10],[0,2,6,8,9,10,11],[0,2,6,8,9,11],[0,2,6,8,10],[0,2,6,8,10,11],[0,2,6,8,11],[0,2,6,9],[0,2,6,9,10],[0,2,6,9,10,11],[0,2,6,9,11],[0,2,6,10],[0,2,6,10,11],[0,2,6,11],[0,2,7],[0,2,7,8],[0,2,7,8,9],[0,2,7,8,9,10],[0,2,7,8,9,10,11],[0,2,7,8,9,11],[0,2,7,8,10],[0,2,7,8,10,11],[0,2,7,8,11],[0,2,7,9],[0,2,7,9,10],[0,2,7,9,10,11],[0,2,7,9,11],[0,2,7,10],[0,2,7,10,11],[0,2,7,11],[0,2,8],[0,2,8,9],[0,2,8,9,10],[0,2,8,9,10,11],[0,2,8,9,11],[0,2,8,10],[0,2,8,10,11],[0,2,8,11],[0,2,9],[0,2,9,10],[0,2,9,10,11],[0,2,9,11],[0,2,10],[0,2,10,11],[0,2,11],[0,3],[0,3,4],[0,3,4,5],[0,3,4,5,6],[0,3,4,5,6,7],[0,3,4,5,6,7,8],[0,3,4,5,6,7,8,9],[0,3,4,5,6,7,8,9,10],[0,3,4,5,6,7,8,9,10,11],[0,3,4,5,6,7,8,9,11],[0,3,4,5,6,7,8,10],[0,3,4,5,6,7,8,10,11],[0,3,4,5,6,7,8,11],[0,3,4,5,6,7,9],[0,3,4,5,6,7,9,10],[0,3,4,5,6,7,9,10,11],[0,3,4,5,6,7,9,11],[0,3,4,5,6,7,10],[0,3,4,5,6,7,10,11],[0,3,4,5,6,7,11],[0,3,4,5,6,8],[0,3,4,5,6,8,9],[0,3,4,5,6,8,9,10],[0,3,4,5,6,8,9,10,11],[0,3,4,5,6,8,9,11],[0,3,4,5,6,8,10],[0,3,4,5,6,8,10,11],[0,3,4,5,6,8,11],[0,3,4,5,6,9],[0,3,4,5,6,9,10],[0,3,4,5,6,9,10,11],[0,3,4,5,6,9,11],[0,3,4,5,6,10],[0,3,4,5,6,10,11],[0,3,4,5,6,11],[0,3,4,5,7],[0,3,4,5,7,8],[0,3,4,5,7,8,9],[0,3,4,5,7,8,9,10],[0,3,4,5,7,8,9,10,11],[0,3,4,5,7,8,9,11],[0,3,4,5,7,8,10],[0,3,4,5,7,8,10,11],[0,3,4,5,7,8,11],[0,3,4,5,7,9],[0,3,4,5,7,9,10],[0,3,4,5,7,9,10,11],[0,3,4,5,7,9,11],[0,3,4,5,7,10],[0,3,4,5,7,10,11],[0,3,4,5,7,11],[0,3,4,5,8],[0,3,4,5,8,9],[0,3,4,5,8,9,10],[0,3,4,5,8,9,10,11],[0,3,4,5,8,9,11],[0,3,4,5,8,10],[0,3,4,5,8,10,11],[0,3,4,5,8,11],[0,3,4,5,9],[0,3,4,5,9,10],[0,3,4,5,9,10,11],[0,3,4,5,9,11],[0,3,4,5,10],[0,3,4,5,10,11],[0,3,4,5,11],[0,3,4,6],[0,3,4,6,7],[0,3,4,6,7,8],[0,3,4,6,7,8,9],[0,3,4,6,7,8,9,10],[0,3,4,6,7,8,9,10,11],[0,3,4,6,7,8,9,11],[0,3,4,6,7,8,10],[0,3,4,6,7,8,10,11],[0,3,4,6,7,8,11],[0,3,4,6,7,9],[0,3,4,6,7,9,10],[0,3,4,6,7,9,10,11],[0,3,4,6,7,9,11],[0,3,4,6,7,10],[0,3,4,6,7,10,11],[0,3,4,6,7,11],[0,3,4,6,8],[0,3,4,6,8,9],[0,3,4,6,8,9,10],[0,3,4,6,8,9,10,11],[0,3,4,6,8,9,11],[0,3,4,6,8,10],[0,3,4,6,8,10,11],[0,3,4,6,8,11],[0,3,4,6,9],[0,3,4,6,9,10],[0,3,4,6,9,10,11],[0,3,4,6,9,11],[0,3,4,6,10],[0,3,4,6,10,11],[0,3,4,6,11],[0,3,4,7],[0,3,4,7,8],[0,3,4,7,8,9],[0,3,4,7,8,9,10],[0,3,4,7,8,9,10,11],[0,3,4,7,8,9,11],[0,3,4,7,8,10],[0,3,4,7,8,10,11],[0,3,4,7,8,11],[0,3,4,7,9],[0,3,4,7,9,10],[0,3,4,7,9,10,11],[0,3,4,7,9,11],[0,3,4,7,10],[0,3,4,7,10,11],[0,3,4,7,11],[0,3,4,8],[0,3,4,8,9],[0,3,4,8,9,10],[0,3,4,8,9,10,11],[0,3,4,8,9,11],[0,3,4,8,10],[0,3,4,8,10,11],[0,3,4,8,11],[0,3,4,9],[0,3,4,9,10],[0,3,4,9,10,11],[0,3,4,9,11],[0,3,4,10],[0,3,4,10,11],[0,3,4,11],[0,3,5],[0,3,5,6],[0,3,5,6,7],[0,3,5,6,7,8],[0,3,5,6,7,8,9],[0,3,5,6,7,8,9,10],[0,3,5,6,7,8,9,10,11],[0,3,5,6,7,8,9,11],[0,3,5,6,7,8,10],[0,3,5,6,7,8,10,11],[0,3,5,6,7,8,11],[0,3,5,6,7,9],[0,3,5,6,7,9,10],[0,3,5,6,7,9,10,11],[0,3,5,6,7,9,11],[0,3,5,6,7,10],[0,3,5,6,7,10,11],[0,3,5,6,7,11],[0,3,5,6,8],[0,3,5,6,8,9],[0,3,5,6,8,9,10],[0,3,5,6,8,9,10,11],[0,3,5,6,8,9,11],[0,3,5,6,8,10],[0,3,5,6,8,10,11],[0,3,5,6,8,11],[0,3,5,6,9],[0,3,5,6,9,10],[0,3,5,6,9,10,11],[0,3,5,6,9,11],[0,3,5,6,10],[0,3,5,6,10,11],[0,3,5,6,11],[0,3,5,7],[0,3,5,7,8],[0,3,5,7,8,9],[0,3,5,7,8,9,10],[0,3,5,7,8,9,10,11],[0,3,5,7,8,9,11],[0,3,5,7,8,10],[0,3,5,7,8,10,11],[0,3,5,7,8,11],[0,3,5,7,9],[0,3,5,7,9,10],[0,3,5,7,9,10,11],[0,3,5,7,9,11],[0,3,5,7,10],[0,3,5,7,10,11],[0,3,5,7,11],[0,3,5,8],[0,3,5,8,9],[0,3,5,8,9,10],[0,3,5,8,9,10,11],[0,3,5,8,9,11],[0,3,5,8,10],[0,3,5,8,10,11],[0,3,5,8,11],[0,3,5,9],[0,3,5,9,10],[0,3,5,9,10,11],[0,3,5,9,11],[0,3,5,10],[0,3,5,10,11],[0,3,5,11],[0,3,6],[0,3,6,7],[0,3,6,7,8],[0,3,6,7,8,9],[0,3,6,7,8,9,10],[0,3,6,7,8,9,10,11],[0,3,6,7,8,9,11],[0,3,6,7,8,10],[0,3,6,7,8,10,11],[0,3,6,7,8,11],[0,3,6,7,9],[0,3,6,7,9,10],[0,3,6,7,9,10,11],[0,3,6,7,9,11],[0,3,6,7,10],[0,3,6,7,10,11],[0,3,6,7,11],[0,3,6,8],[0,3,6,8,9],[0,3,6,8,9,10],[0,3,6,8,9,10,11],[0,3,6,8,9,11],[0,3,6,8,10],[0,3,6,8,10,11],[0,3,6,8,11],[0,3,6,9],[0,3,6,9,10],[0,3,6,9,10,11],[0,3,6,9,11],[0,3,6,10],[0,3,6,10,11],[0,3,6,11],[0,3,7],[0,3,7,8],[0,3,7,8,9],[0,3,7,8,9,10],[0,3,7,8,9,10,11],[0,3,7,8,9,11],[0,3,7,8,10],[0,3,7,8,10,11],[0,3,7,8,11],[0,3,7,9],[0,3,7,9,10],[0,3,7,9,10,11],[0,3,7,9,11],[0,3,7,10],[0,3,7,10,11],[0,3,7,11],[0,3,8],[0,3,8,9],[0,3,8,9,10],[0,3,8,9,10,11],[0,3,8,9,11],[0,3,8,10],[0,3,8,10,11],[0,3,8,11],[0,3,9],[0,3,9,10],[0,3,9,10,11],[0,3,9,11],[0,3,10],[0,3,10,11],[0,3,11],[0,4],[0,4,5],[0,4,5,6],[0,4,5,6,7],[0,4,5,6,7,8],[0,4,5,6,7,8,9],[0,4,5,6,7,8,9,10],[0,4,5,6,7,8,9,10,11],[0,4,5,6,7,8,9,11],[0,4,5,6,7,8,10],[0,4,5,6,7,8,10,11],[0,4,5,6,7,8,11],[0,4,5,6,7,9],[0,4,5,6,7,9,10],[0,4,5,6,7,9,10,11],[0,4,5,6,7,9,11],[0,4,5,6,7,10],[0,4,5,6,7,10,11],[0,4,5,6,7,11],[0,4,5,6,8],[0,4,5,6,8,9],[0,4,5,6,8,9,10],[0,4,5,6,8,9,10,11],[0,4,5,6,8,9,11],[0,4,5,6,8,10],[0,4,5,6,8,10,11],[0,4,5,6,8,11],[0,4,5,6,9],[0,4,5,6,9,10],[0,4,5,6,9,10,11],[0,4,5,6,9,11],[0,4,5,6,10],[0,4,5,6,10,11],[0,4,5,6,11],[0,4,5,7],[0,4,5,7,8],[0,4,5,7,8,9],[0,4,5,7,8,9,10],[0,4,5,7,8,9,10,11],[0,4,5,7,8,9,11],[0,4,5,7,8,10],[0,4,5,7,8,10,11],[0,4,5,7,8,11],[0,4,5,7,9],[0,4,5,7,9,10],[0,4,5,7,9,10,11],[0,4,5,7,9,11],[0,4,5,7,10],[0,4,5,7,10,11],[0,4,5,7,11],[0,4,5,8],[0,4,5,8,9],[0,4,5,8,9,10],[0,4,5,8,9,10,11],[0,4,5,8,9,11],[0,4,5,8,10],[0,4,5,8,10,11],[0,4,5,8,11],[0,4,5,9],[0,4,5,9,10],[0,4,5,9,10,11],[0,4,5,9,11],[0,4,5,10],[0,4,5,10,11],[0,4,5,11],[0,4,6],[0,4,6,7],[0,4,6,7,8],[0,4,6,7,8,9],[0,4,6,7,8,9,10],[0,4,6,7,8,9,10,11],[0,4,6,7,8,9,11],[0,4,6,7,8,10],[0,4,6,7,8,10,11],[0,4,6,7,8,11],[0,4,6,7,9],[0,4,6,7,9,10],[0,4,6,7,9,10,11],[0,4,6,7,9,11],[0,4,6,7,10],[0,4,6,7,10,11],[0,4,6,7,11],[0,4,6,8],[0,4,6,8,9],[0,4,6,8,9,10],[0,4,6,8,9,10,11],[0,4,6,8,9,11],[0,4,6,8,10],[0,4,6,8,10,11],[0,4,6,8,11],[0,4,6,9],[0,4,6,9,10],[0,4,6,9,10,11],[0,4,6,9,11],[0,4,6,10],[0,4,6,10,11],[0,4,6,11],[0,4,7],[0,4,7,8],[0,4,7,8,9],[0,4,7,8,9,10],[0,4,7,8,9,10,11],[0,4,7,8,9,11],[0,4,7,8,10],[0,4,7,8,10,11],[0,4,7,8,11],[0,4,7,9],[0,4,7,9,10],[0,4,7,9,10,11],[0,4,7,9,11],[0,4,7,10],[0,4,7,10,11],[0,4,7,11],[0,4,8],[0,4,8,9],[0,4,8,9,10],[0,4,8,9,10,11],[0,4,8,9,11],[0,4,8,10],[0,4,8,10,11],[0,4,8,11],[0,4,9],[0,4,9,10],[0,4,9,10,11],[0,4,9,11],[0,4,10],[0,4,10,11],[0,4,11],[0,5],[0,5,6],[0,5,6,7],[0,5,6,7,8],[0,5,6,7,8,9],[0,5,6,7,8,9,10],[0,5,6,7,8,9,10,11],[0,5,6,7,8,9,11],[0,5,6,7,8,10],[0,5,6,7,8,10,11],[0,5,6,7,8,11],[0,5,6,7,9],[0,5,6,7,9,10],[0,5,6,7,9,10,11],[0,5,6,7,9,11],[0,5,6,7,10],[0,5,6,7,10,11],[0,5,6,7,11],[0,5,6,8],[0,5,6,8,9],[0,5,6,8,9,10],[0,5,6,8,9,10,11],[0,5,6,8,9,11],[0,5,6,8,10],[0,5,6,8,10,11],[0,5,6,8,11],[0,5,6,9],[0,5,6,9,10],[0,5,6,9,10,11],[0,5,6,9,11],[0,5,6,10],[0,5,6,10,11],[0,5,6,11],[0,5,7],[0,5,7,8],[0,5,7,8,9],[0,5,7,8,9,10],[0,5,7,8,9,10,11],[0,5,7,8,9,11],[0,5,7,8,10],[0,5,7,8,10,11],[0,5,7,8,11],[0,5,7,9],[0,5,7,9,10],[0,5,7,9,10,11],[0,5,7,9,11],[0,5,7,10],[0,5,7,10,11],[0,5,7,11],[0,5,8],[0,5,8,9],[0,5,8,9,10],[0,5,8,9,10,11],[0,5,8,9,11],[0,5,8,10],[0,5,8,10,11],[0,5,8,11],[0,5,9],[0,5,9,10],[0,5,9,10,11],[0,5,9,11],[0,5,10],[0,5,10,11],[0,5,11],[0,6],[0,6,7],[0,6,7,8],[0,6,7,8,9],[0,6,7,8,9,10],[0,6,7,8,9,10,11],[0,6,7,8,9,11],[0,6,7,8,10],[0,6,7,8,10,11],[0,6,7,8,11],[0,6,7,9],[0,6,7,9,10],[0,6,7,9,10,11],[0,6,7,9,11],[0,6,7,10],[0,6,7,10,11],[0,6,7,11],[0,6,8],[0,6,8,9],[0,6,8,9,10],[0,6,8,9,10,11],[0,6,8,9,11],[0,6,8,10],[0,6,8,10,11],[0,6,8,11],[0,6,9],[0,6,9,10],[0,6,9,10,11],[0,6,9,11],[0,6,10],[0,6,10,11],[0,6,11],[0,7],[0,7,8],[0,7,8,9],[0,7,8,9,10],[0,7,8,9,10,11],[0,7,8,9,11],[0,7,8,10],[0,7,8,10,11],[0,7,8,11],[0,7,9],[0,7,9,10],[0,7,9,10,11],[0,7,9,11],[0,7,10],[0,7,10,11],[0,7,11],[0,8],[0,8,9],[0,8,9,10],[0,8,9,10,11],[0,8,9,11],[0,8,10],[0,8,10,11],[0,8,11],[0,9],[0,9,10],[0,9,10,11],[0,9,11],[0,10],[0,10,11],[0,11],[1],[1,2],[1,2,3],[1,2,3,4],[1,2,3,4,5],[1,2,3,4,5,6],[1,2,3,4,5,6,7],[1,2,3,4,5,6,7,8],[1,2,3,4,5,6,7,8,9],[1,2,3,4,5,6,7,8,9,10],[1,2,3,4,5,6,7,8,9,10,11],[1,2,3,4,5,6,7,8,9,11],[1,2,3,4,5,6,7,8,10],[1,2,3,4,5,6,7,8,10,11],[1,2,3,4,5,6,7,8,11],[1,2,3,4,5,6,7,9],[1,2,3,4,5,6,7,9,10],[1,2,3,4,5,6,7,9,10,11],[1,2,3,4,5,6,7,9,11],[1,2,3,4,5,6,7,10],[1,2,3,4,5,6,7,10,11],[1,2,3,4,5,6,7,11],[1,2,3,4,5,6,8],[1,2,3,4,5,6,8,9],[1,2,3,4,5,6,8,9,10],[1,2,3,4,5,6,8,9,10,11],[1,2,3,4,5,6,8,9,11],[1,2,3,4,5,6,8,10],[1,2,3,4,5,6,8,10,11],[1,2,3,4,5,6,8,11],[1,2,3,4,5,6,9],[1,2,3,4,5,6,9,10],[1,2,3,4,5,6,9,10,11],[1,2,3,4,5,6,9,11],[1,2,3,4,5,6,10],[1,2,3,4,5,6,10,11],[1,2,3,4,5,6,11],[1,2,3,4,5,7],[1,2,3,4,5,7,8],[1,2,3,4,5,7,8,9],[1,2,3,4,5,7,8,9,10],[1,2,3,4,5,7,8,9,10,11],[1,2,3,4,5,7,8,9,11],[1,2,3,4,5,7,8,10],[1,2,3,4,5,7,8,10,11],[1,2,3,4,5,7,8,11],[1,2,3,4,5,7,9],[1,2,3,4,5,7,9,10],[1,2,3,4,5,7,9,10,11],[1,2,3,4,5,7,9,11],[1,2,3,4,5,7,10],[1,2,3,4,5,7,10,11],[1,2,3,4,5,7,11],[1,2,3,4,5,8],[1,2,3,4,5,8,9],[1,2,3,4,5,8,9,10],[1,2,3,4,5,8,9,10,11],[1,2,3,4,5,8,9,11],[1,2,3,4,5,8,10],[1,2,3,4,5,8,10,11],[1,2,3,4,5,8,11],[1,2,3,4,5,9],[1,2,3,4,5,9,10],[1,2,3,4,5,9,10,11],[1,2,3,4,5,9,11],[1,2,3,4,5,10],[1,2,3,4,5,10,11],[1,2,3,4,5,11],[1,2,3,4,6],[1,2,3,4,6,7],[1,2,3,4,6,7,8],[1,2,3,4,6,7,8,9],[1,2,3,4,6,7,8,9,10],[1,2,3,4,6,7,8,9,10,11],[1,2,3,4,6,7,8,9,11],[1,2,3,4,6,7,8,10],[1,2,3,4,6,7,8,10,11],[1,2,3,4,6,7,8,11],[1,2,3,4,6,7,9],[1,2,3,4,6,7,9,10],[1,2,3,4,6,7,9,10,11],[1,2,3,4,6,7,9,11],[1,2,3,4,6,7,10],[1,2,3,4,6,7,10,11],[1,2,3,4,6,7,11],[1,2,3,4,6,8],[1,2,3,4,6,8,9],[1,2,3,4,6,8,9,10],[1,2,3,4,6,8,9,10,11],[1,2,3,4,6,8,9,11],[1,2,3,4,6,8,10],[1,2,3,4,6,8,10,11],[1,2,3,4,6,8,11],[1,2,3,4,6,9],[1,2,3,4,6,9,10],[1,2,3,4,6,9,10,11],[1,2,3,4,6,9,11],[1,2,3,4,6,10],[1,2,3,4,6,10,11],[1,2,3,4,6,11],[1,2,3,4,7],[1,2,3,4,7,8],[1,2,3,4,7,8,9],[1,2,3,4,7,8,9,10],[1,2,3,4,7,8,9,10,11],[1,2,3,4,7,8,9,11],[1,2,3,4,7,8,10],[1,2,3,4,7,8,10,11],[1,2,3,4,7,8,11],[1,2,3,4,7,9],[1,2,3,4,7,9,10],[1,2,3,4,7,9,10,11],[1,2,3,4,7,9,11],[1,2,3,4,7,10],[1,2,3,4,7,10,11],[1,2,3,4,7,11],[1,2,3,4,8],[1,2,3,4,8,9],[1,2,3,4,8,9,10],[1,2,3,4,8,9,10,11],[1,2,3,4,8,9,11],[1,2,3,4,8,10],[1,2,3,4,8,10,11],[1,2,3,4,8,11],[1,2,3,4,9],[1,2,3,4,9,10],[1,2,3,4,9,10,11],[1,2,3,4,9,11],[1,2,3,4,10],[1,2,3,4,10,11],[1,2,3,4,11],[1,2,3,5],[1,2,3,5,6],[1,2,3,5,6,7],[1,2,3,5,6,7,8],[1,2,3,5,6,7,8,9],[1,2,3,5,6,7,8,9,10],[1,2,3,5,6,7,8,9,10,11],[1,2,3,5,6,7,8,9,11],[1,2,3,5,6,7,8,10],[1,2,3,5,6,7,8,10,11],[1,2,3,5,6,7,8,11],[1,2,3,5,6,7,9],[1,2,3,5,6,7,9,10],[1,2,3,5,6,7,9,10,11],[1,2,3,5,6,7,9,11],[1,2,3,5,6,7,10],[1,2,3,5,6,7,10,11],[1,2,3,5,6,7,11],[1,2,3,5,6,8],[1,2,3,5,6,8,9],[1,2,3,5,6,8,9,10],[1,2,3,5,6,8,9,10,11],[1,2,3,5,6,8,9,11],[1,2,3,5,6,8,10],[1,2,3,5,6,8,10,11],[1,2,3,5,6,8,11],[1,2,3,5,6,9],[1,2,3,5,6,9,10],[1,2,3,5,6,9,10,11],[1,2,3,5,6,9,11],[1,2,3,5,6,10],[1,2,3,5,6,10,11],[1,2,3,5,6,11],[1,2,3,5,7],[1,2,3,5,7,8],[1,2,3,5,7,8,9],[1,2,3,5,7,8,9,10],[1,2,3,5,7,8,9,10,11],[1,2,3,5,7,8,9,11],[1,2,3,5,7,8,10],[1,2,3,5,7,8,10,11],[1,2,3,5,7,8,11],[1,2,3,5,7,9],[1,2,3,5,7,9,10],[1,2,3,5,7,9,10,11],[1,2,3,5,7,9,11],[1,2,3,5,7,10],[1,2,3,5,7,10,11],[1,2,3,5,7,11],[1,2,3,5,8],[1,2,3,5,8,9],[1,2,3,5,8,9,10],[1,2,3,5,8,9,10,11],[1,2,3,5,8,9,11],[1,2,3,5,8,10],[1,2,3,5,8,10,11],[1,2,3,5,8,11],[1,2,3,5,9],[1,2,3,5,9,10],[1,2,3,5,9,10,11],[1,2,3,5,9,11],[1,2,3,5,10],[1,2,3,5,10,11],[1,2,3,5,11],[1,2,3,6],[1,2,3,6,7],[1,2,3,6,7,8],[1,2,3,6,7,8,9],[1,2,3,6,7,8,9,10],[1,2,3,6,7,8,9,10,11],[1,2,3,6,7,8,9,11],[1,2,3,6,7,8,10],[1,2,3,6,7,8,10,11],[1,2,3,6,7,8,11],[1,2,3,6,7,9],[1,2,3,6,7,9,10],[1,2,3,6,7,9,10,11],[1,2,3,6,7,9,11],[1,2,3,6,7,10],[1,2,3,6,7,10,11],[1,2,3,6,7,11],[1,2,3,6,8],[1,2,3,6,8,9],[1,2,3,6,8,9,10],[1,2,3,6,8,9,10,11],[1,2,3,6,8,9,11],[1,2,3,6,8,10],[1,2,3,6,8,10,11],[1,2,3,6,8,11],[1,2,3,6,9],[1,2,3,6,9,10],[1,2,3,6,9,10,11],[1,2,3,6,9,11],[1,2,3,6,10],[1,2,3,6,10,11],[1,2,3,6,11],[1,2,3,7],[1,2,3,7,8],[1,2,3,7,8,9],[1,2,3,7,8,9,10],[1,2,3,7,8,9,10,11],[1,2,3,7,8,9,11],[1,2,3,7,8,10],[1,2,3,7,8,10,11],[1,2,3,7,8,11],[1,2,3,7,9],[1,2,3,7,9,10],[1,2,3,7,9,10,11],[1,2,3,7,9,11],[1,2,3,7,10],[1,2,3,7,10,11],[1,2,3,7,11],[1,2,3,8],[1,2,3,8,9],[1,2,3,8,9,10],[1,2,3,8,9,10,11],[1,2,3,8,9,11],[1,2,3,8,10],[1,2,3,8,10,11],[1,2,3,8,11],[1,2,3,9],[1,2,3,9,10],[1,2,3,9,10,11],[1,2,3,9,11],[1,2,3,10],[1,2,3,10,11],[1,2,3,11],[1,2,4],[1,2,4,5],[1,2,4,5,6],[1,2,4,5,6,7],[1,2,4,5,6,7,8],[1,2,4,5,6,7,8,9],[1,2,4,5,6,7,8,9,10],[1,2,4,5,6,7,8,9,10,11],[1,2,4,5,6,7,8,9,11],[1,2,4,5,6,7,8,10],[1,2,4,5,6,7,8,10,11],[1,2,4,5,6,7,8,11],[1,2,4,5,6,7,9],[1,2,4,5,6,7,9,10],[1,2,4,5,6,7,9,10,11],[1,2,4,5,6,7,9,11],[1,2,4,5,6,7,10],[1,2,4,5,6,7,10,11],[1,2,4,5,6,7,11],[1,2,4,5,6,8],[1,2,4,5,6,8,9],[1,2,4,5,6,8,9,10],[1,2,4,5,6,8,9,10,11],[1,2,4,5,6,8,9,11],[1,2,4,5,6,8,10],[1,2,4,5,6,8,10,11],[1,2,4,5,6,8,11],[1,2,4,5,6,9],[1,2,4,5,6,9,10],[1,2,4,5,6,9,10,11],[1,2,4,5,6,9,11],[1,2,4,5,6,10],[1,2,4,5,6,10,11],[1,2,4,5,6,11],[1,2,4,5,7],[1,2,4,5,7,8],[1,2,4,5,7,8,9],[1,2,4,5,7,8,9,10],[1,2,4,5,7,8,9,10,11],[1,2,4,5,7,8,9,11],[1,2,4,5,7,8,10],[1,2,4,5,7,8,10,11],[1,2,4,5,7,8,11],[1,2,4,5,7,9],[1,2,4,5,7,9,10],[1,2,4,5,7,9,10,11],[1,2,4,5,7,9,11],[1,2,4,5,7,10],[1,2,4,5,7,10,11],[1,2,4,5,7,11],[1,2,4,5,8],[1,2,4,5,8,9],[1,2,4,5,8,9,10],[1,2,4,5,8,9,10,11],[1,2,4,5,8,9,11],[1,2,4,5,8,10],[1,2,4,5,8,10,11],[1,2,4,5,8,11],[1,2,4,5,9],[1,2,4,5,9,10],[1,2,4,5,9,10,11],[1,2,4,5,9,11],[1,2,4,5,10],[1,2,4,5,10,11],[1,2,4,5,11],[1,2,4,6],[1,2,4,6,7],[1,2,4,6,7,8],[1,2,4,6,7,8,9],[1,2,4,6,7,8,9,10],[1,2,4,6,7,8,9,10,11],[1,2,4,6,7,8,9,11],[1,2,4,6,7,8,10],[1,2,4,6,7,8,10,11],[1,2,4,6,7,8,11],[1,2,4,6,7,9],[1,2,4,6,7,9,10],[1,2,4,6,7,9,10,11],[1,2,4,6,7,9,11],[1,2,4,6,7,10],[1,2,4,6,7,10,11],[1,2,4,6,7,11],[1,2,4,6,8],[1,2,4,6,8,9],[1,2,4,6,8,9,10],[1,2,4,6,8,9,10,11],[1,2,4,6,8,9,11],[1,2,4,6,8,10],[1,2,4,6,8,10,11],[1,2,4,6,8,11],[1,2,4,6,9],[1,2,4,6,9,10],[1,2,4,6,9,10,11],[1,2,4,6,9,11],[1,2,4,6,10],[1,2,4,6,10,11],[1,2,4,6,11],[1,2,4,7],[1,2,4,7,8],[1,2,4,7,8,9],[1,2,4,7,8,9,10],[1,2,4,7,8,9,10,11],[1,2,4,7,8,9,11],[1,2,4,7,8,10],[1,2,4,7,8,10,11],[1,2,4,7,8,11],[1,2,4,7,9],[1,2,4,7,9,10],[1,2,4,7,9,10,11],[1,2,4,7,9,11],[1,2,4,7,10],[1,2,4,7,10,11],[1,2,4,7,11],[1,2,4,8],[1,2,4,8,9],[1,2,4,8,9,10],[1,2,4,8,9,10,11],[1,2,4,8,9,11],[1,2,4,8,10],[1,2,4,8,10,11],[1,2,4,8,11],[1,2,4,9],[1,2,4,9,10],[1,2,4,9,10,11],[1,2,4,9,11],[1,2,4,10],[1,2,4,10,11],[1,2,4,11],[1,2,5],[1,2,5,6],[1,2,5,6,7],[1,2,5,6,7,8],[1,2,5,6,7,8,9],[1,2,5,6,7,8,9,10],[1,2,5,6,7,8,9,10,11],[1,2,5,6,7,8,9,11],[1,2,5,6,7,8,10],[1,2,5,6,7,8,10,11],[1,2,5,6,7,8,11],[1,2,5,6,7,9],[1,2,5,6,7,9,10],[1,2,5,6,7,9,10,11],[1,2,5,6,7,9,11],[1,2,5,6,7,10],[1,2,5,6,7,10,11],[1,2,5,6,7,11],[1,2,5,6,8],[1,2,5,6,8,9],[1,2,5,6,8,9,10],[1,2,5,6,8,9,10,11],[1,2,5,6,8,9,11],[1,2,5,6,8,10],[1,2,5,6,8,10,11],[1,2,5,6,8,11],[1,2,5,6,9],[1,2,5,6,9,10],[1,2,5,6,9,10,11],[1,2,5,6,9,11],[1,2,5,6,10],[1,2,5,6,10,11],[1,2,5,6,11],[1,2,5,7],[1,2,5,7,8],[1,2,5,7,8,9],[1,2,5,7,8,9,10],[1,2,5,7,8,9,10,11],[1,2,5,7,8,9,11],[1,2,5,7,8,10],[1,2,5,7,8,10,11],[1,2,5,7,8,11],[1,2,5,7,9],[1,2,5,7,9,10],[1,2,5,7,9,10,11],[1,2,5,7,9,11],[1,2,5,7,10],[1,2,5,7,10,11],[1,2,5,7,11],[1,2,5,8],[1,2,5,8,9],[1,2,5,8,9,10],[1,2,5,8,9,10,11],[1,2,5,8,9,11],[1,2,5,8,10],[1,2,5,8,10,11],[1,2,5,8,11],[1,2,5,9],[1,2,5,9,10],[1,2,5,9,10,11],[1,2,5,9,11],[1,2,5,10],[1,2,5,10,11],[1,2,5,11],[1,2,6],[1,2,6,7],[1,2,6,7,8],[1,2,6,7,8,9],[1,2,6,7,8,9,10],[1,2,6,7,8,9,10,11],[1,2,6,7,8,9,11],[1,2,6,7,8,10],[1,2,6,7,8,10,11],[1,2,6,7,8,11],[1,2,6,7,9],[1,2,6,7,9,10],[1,2,6,7,9,10,11],[1,2,6,7,9,11],[1,2,6,7,10],[1,2,6,7,10,11],[1,2,6,7,11],[1,2,6,8],[1,2,6,8,9],[1,2,6,8,9,10],[1,2,6,8,9,10,11],[1,2,6,8,9,11],[1,2,6,8,10],[1,2,6,8,10,11],[1,2,6,8,11],[1,2,6,9],[1,2,6,9,10],[1,2,6,9,10,11],[1,2,6,9,11],[1,2,6,10],[1,2,6,10,11],[1,2,6,11],[1,2,7],[1,2,7,8],[1,2,7,8,9],[1,2,7,8,9,10],[1,2,7,8,9,10,11],[1,2,7,8,9,11],[1,2,7,8,10],[1,2,7,8,10,11],[1,2,7,8,11],[1,2,7,9],[1,2,7,9,10],[1,2,7,9,10,11],[1,2,7,9,11],[1,2,7,10],[1,2,7,10,11],[1,2,7,11],[1,2,8],[1,2,8,9],[1,2,8,9,10],[1,2,8,9,10,11],[1,2,8,9,11],[1,2,8,10],[1,2,8,10,11],[1,2,8,11],[1,2,9],[1,2,9,10],[1,2,9,10,11],[1,2,9,11],[1,2,10],[1,2,10,11],[1,2,11],[1,3],[1,3,4],[1,3,4,5],[1,3,4,5,6],[1,3,4,5,6,7],[1,3,4,5,6,7,8],[1,3,4,5,6,7,8,9],[1,3,4,5,6,7,8,9,10],[1,3,4,5,6,7,8,9,10,11],[1,3,4,5,6,7,8,9,11],[1,3,4,5,6,7,8,10],[1,3,4,5,6,7,8,10,11],[1,3,4,5,6,7,8,11],[1,3,4,5,6,7,9],[1,3,4,5,6,7,9,10],[1,3,4,5,6,7,9,10,11],[1,3,4,5,6,7,9,11],[1,3,4,5,6,7,10],[1,3,4,5,6,7,10,11],[1,3,4,5,6,7,11],[1,3,4,5,6,8],[1,3,4,5,6,8,9],[1,3,4,5,6,8,9,10],[1,3,4,5,6,8,9,10,11],[1,3,4,5,6,8,9,11],[1,3,4,5,6,8,10],[1,3,4,5,6,8,10,11],[1,3,4,5,6,8,11],[1,3,4,5,6,9],[1,3,4,5,6,9,10],[1,3,4,5,6,9,10,11],[1,3,4,5,6,9,11],[1,3,4,5,6,10],[1,3,4,5,6,10,11],[1,3,4,5,6,11],[1,3,4,5,7],[1,3,4,5,7,8],[1,3,4,5,7,8,9],[1,3,4,5,7,8,9,10],[1,3,4,5,7,8,9,10,11],[1,3,4,5,7,8,9,11],[1,3,4,5,7,8,10],[1,3,4,5,7,8,10,11],[1,3,4,5,7,8,11],[1,3,4,5,7,9],[1,3,4,5,7,9,10],[1,3,4,5,7,9,10,11],[1,3,4,5,7,9,11],[1,3,4,5,7,10],[1,3,4,5,7,10,11],[1,3,4,5,7,11],[1,3,4,5,8],[1,3,4,5,8,9],[1,3,4,5,8,9,10],[1,3,4,5,8,9,10,11],[1,3,4,5,8,9,11],[1,3,4,5,8,10],[1,3,4,5,8,10,11],[1,3,4,5,8,11],[1,3,4,5,9],[1,3,4,5,9,10],[1,3,4,5,9,10,11],[1,3,4,5,9,11],[1,3,4,5,10],[1,3,4,5,10,11],[1,3,4,5,11],[1,3,4,6],[1,3,4,6,7],[1,3,4,6,7,8],[1,3,4,6,7,8,9],[1,3,4,6,7,8,9,10],[1,3,4,6,7,8,9,10,11],[1,3,4,6,7,8,9,11],[1,3,4,6,7,8,10],[1,3,4,6,7,8,10,11],[1,3,4,6,7,8,11],[1,3,4,6,7,9],[1,3,4,6,7,9,10],[1,3,4,6,7,9,10,11],[1,3,4,6,7,9,11],[1,3,4,6,7,10],[1,3,4,6,7,10,11],[1,3,4,6,7,11],[1,3,4,6,8],[1,3,4,6,8,9],[1,3,4,6,8,9,10],[1,3,4,6,8,9,10,11],[1,3,4,6,8,9,11],[1,3,4,6,8,10],[1,3,4,6,8,10,11],[1,3,4,6,8,11],[1,3,4,6,9],[1,3,4,6,9,10],[1,3,4,6,9,10,11],[1,3,4,6,9,11],[1,3,4,6,10],[1,3,4,6,10,11],[1,3,4,6,11],[1,3,4,7],[1,3,4,7,8],[1,3,4,7,8,9],[1,3,4,7,8,9,10],[1,3,4,7,8,9,10,11],[1,3,4,7,8,9,11],[1,3,4,7,8,10],[1,3,4,7,8,10,11],[1,3,4,7,8,11],[1,3,4,7,9],[1,3,4,7,9,10],[1,3,4,7,9,10,11],[1,3,4,7,9,11],[1,3,4,7,10],[1,3,4,7,10,11],[1,3,4,7,11],[1,3,4,8],[1,3,4,8,9],[1,3,4,8,9,10],[1,3,4,8,9,10,11],[1,3,4,8,9,11],[1,3,4,8,10],[1,3,4,8,10,11],[1,3,4,8,11],[1,3,4,9],[1,3,4,9,10],[1,3,4,9,10,11],[1,3,4,9,11],[1,3,4,10],[1,3,4,10,11],[1,3,4,11],[1,3,5],[1,3,5,6],[1,3,5,6,7],[1,3,5,6,7,8],[1,3,5,6,7,8,9],[1,3,5,6,7,8,9,10],[1,3,5,6,7,8,9,10,11],[1,3,5,6,7,8,9,11],[1,3,5,6,7,8,10],[1,3,5,6,7,8,10,11],[1,3,5,6,7,8,11],[1,3,5,6,7,9],[1,3,5,6,7,9,10],[1,3,5,6,7,9,10,11],[1,3,5,6,7,9,11],[1,3,5,6,7,10],[1,3,5,6,7,10,11],[1,3,5,6,7,11],[1,3,5,6,8],[1,3,5,6,8,9],[1,3,5,6,8,9,10],[1,3,5,6,8,9,10,11],[1,3,5,6,8,9,11],[1,3,5,6,8,10],[1,3,5,6,8,10,11],[1,3,5,6,8,11],[1,3,5,6,9],[1,3,5,6,9,10],[1,3,5,6,9,10,11],[1,3,5,6,9,11],[1,3,5,6,10],[1,3,5,6,10,11],[1,3,5,6,11],[1,3,5,7],[1,3,5,7,8],[1,3,5,7,8,9],[1,3,5,7,8,9,10],[1,3,5,7,8,9,10,11],[1,3,5,7,8,9,11],[1,3,5,7,8,10],[1,3,5,7,8,10,11],[1,3,5,7,8,11],[1,3,5,7,9],[1,3,5,7,9,10],[1,3,5,7,9,10,11],[1,3,5,7,9,11],[1,3,5,7,10],[1,3,5,7,10,11],[1,3,5,7,11],[1,3,5,8],[1,3,5,8,9],[1,3,5,8,9,10],[1,3,5,8,9,10,11],[1,3,5,8,9,11],[1,3,5,8,10],[1,3,5,8,10,11],[1,3,5,8,11],[1,3,5,9],[1,3,5,9,10],[1,3,5,9,10,11],[1,3,5,9,11],[1,3,5,10],[1,3,5,10,11],[1,3,5,11],[1,3,6],[1,3,6,7],[1,3,6,7,8],[1,3,6,7,8,9],[1,3,6,7,8,9,10],[1,3,6,7,8,9,10,11],[1,3,6,7,8,9,11],[1,3,6,7,8,10],[1,3,6,7,8,10,11],[1,3,6,7,8,11],[1,3,6,7,9],[1,3,6,7,9,10],[1,3,6,7,9,10,11],[1,3,6,7,9,11],[1,3,6,7,10],[1,3,6,7,10,11],[1,3,6,7,11],[1,3,6,8],[1,3,6,8,9],[1,3,6,8,9,10],[1,3,6,8,9,10,11],[1,3,6,8,9,11],[1,3,6,8,10],[1,3,6,8,10,11],[1,3,6,8,11],[1,3,6,9],[1,3,6,9,10],[1,3,6,9,10,11],[1,3,6,9,11],[1,3,6,10],[1,3,6,10,11],[1,3,6,11],[1,3,7],[1,3,7,8],[1,3,7,8,9],[1,3,7,8,9,10],[1,3,7,8,9,10,11],[1,3,7,8,9,11],[1,3,7,8,10],[1,3,7,8,10,11],[1,3,7,8,11],[1,3,7,9],[1,3,7,9,10],[1,3,7,9,10,11],[1,3,7,9,11],[1,3,7,10],[1,3,7,10,11],[1,3,7,11],[1,3,8],[1,3,8,9],[1,3,8,9,10],[1,3,8,9,10,11],[1,3,8,9,11],[1,3,8,10],[1,3,8,10,11],[1,3,8,11],[1,3,9],[1,3,9,10],[1,3,9,10,11],[1,3,9,11],[1,3,10],[1,3,10,11],[1,3,11],[1,4],[1,4,5],[1,4,5,6],[1,4,5,6,7],[1,4,5,6,7,8],[1,4,5,6,7,8,9],[1,4,5,6,7,8,9,10],[1,4,5,6,7,8,9,10,11],[1,4,5,6,7,8,9,11],[1,4,5,6,7,8,10],[1,4,5,6,7,8,10,11],[1,4,5,6,7,8,11],[1,4,5,6,7,9],[1,4,5,6,7,9,10],[1,4,5,6,7,9,10,11],[1,4,5,6,7,9,11],[1,4,5,6,7,10],[1,4,5,6,7,10,11],[1,4,5,6,7,11],[1,4,5,6,8],[1,4,5,6,8,9],[1,4,5,6,8,9,10],[1,4,5,6,8,9,10,11],[1,4,5,6,8,9,11],[1,4,5,6,8,10],[1,4,5,6,8,10,11],[1,4,5,6,8,11],[1,4,5,6,9],[1,4,5,6,9,10],[1,4,5,6,9,10,11],[1,4,5,6,9,11],[1,4,5,6,10],[1,4,5,6,10,11],[1,4,5,6,11],[1,4,5,7],[1,4,5,7,8],[1,4,5,7,8,9],[1,4,5,7,8,9,10],[1,4,5,7,8,9,10,11],[1,4,5,7,8,9,11],[1,4,5,7,8,10],[1,4,5,7,8,10,11],[1,4,5,7,8,11],[1,4,5,7,9],[1,4,5,7,9,10],[1,4,5,7,9,10,11],[1,4,5,7,9,11],[1,4,5,7,10],[1,4,5,7,10,11],[1,4,5,7,11],[1,4,5,8],[1,4,5,8,9],[1,4,5,8,9,10],[1,4,5,8,9,10,11],[1,4,5,8,9,11],[1,4,5,8,10],[1,4,5,8,10,11],[1,4,5,8,11],[1,4,5,9],[1,4,5,9,10],[1,4,5,9,10,11],[1,4,5,9,11],[1,4,5,10],[1,4,5,10,11],[1,4,5,11],[1,4,6],[1,4,6,7],[1,4,6,7,8],[1,4,6,7,8,9],[1,4,6,7,8,9,10],[1,4,6,7,8,9,10,11],[1,4,6,7,8,9,11],[1,4,6,7,8,10],[1,4,6,7,8,10,11],[1,4,6,7,8,11],[1,4,6,7,9],[1,4,6,7,9,10],[1,4,6,7,9,10,11],[1,4,6,7,9,11],[1,4,6,7,10],[1,4,6,7,10,11],[1,4,6,7,11],[1,4,6,8],[1,4,6,8,9],[1,4,6,8,9,10],[1,4,6,8,9,10,11],[1,4,6,8,9,11],[1,4,6,8,10],[1,4,6,8,10,11],[1,4,6,8,11],[1,4,6,9],[1,4,6,9,10],[1,4,6,9,10,11],[1,4,6,9,11],[1,4,6,10],[1,4,6,10,11],[1,4,6,11],[1,4,7],[1,4,7,8],[1,4,7,8,9],[1,4,7,8,9,10],[1,4,7,8,9,10,11],[1,4,7,8,9,11],[1,4,7,8,10],[1,4,7,8,10,11],[1,4,7,8,11],[1,4,7,9],[1,4,7,9,10],[1,4,7,9,10,11],[1,4,7,9,11],[1,4,7,10],[1,4,7,10,11],[1,4,7,11],[1,4,8],[1,4,8,9],[1,4,8,9,10],[1,4,8,9,10,11],[1,4,8,9,11],[1,4,8,10],[1,4,8,10,11],[1,4,8,11],[1,4,9],[1,4,9,10],[1,4,9,10,11],[1,4,9,11],[1,4,10],[1,4,10,11],[1,4,11],[1,5],[1,5,6],[1,5,6,7],[1,5,6,7,8],[1,5,6,7,8,9],[1,5,6,7,8,9,10],[1,5,6,7,8,9,10,11],[1,5,6,7,8,9,11],[1,5,6,7,8,10],[1,5,6,7,8,10,11],[1,5,6,7,8,11],[1,5,6,7,9],[1,5,6,7,9,10],[1,5,6,7,9,10,11],[1,5,6,7,9,11],[1,5,6,7,10],[1,5,6,7,10,11],[1,5,6,7,11],[1,5,6,8],[1,5,6,8,9],[1,5,6,8,9,10],[1,5,6,8,9,10,11],[1,5,6,8,9,11],[1,5,6,8,10],[1,5,6,8,10,11],[1,5,6,8,11],[1,5,6,9],[1,5,6,9,10],[1,5,6,9,10,11],[1,5,6,9,11],[1,5,6,10],[1,5,6,10,11],[1,5,6,11],[1,5,7],[1,5,7,8],[1,5,7,8,9],[1,5,7,8,9,10],[1,5,7,8,9,10,11],[1,5,7,8,9,11],[1,5,7,8,10],[1,5,7,8,10,11],[1,5,7,8,11],[1,5,7,9],[1,5,7,9,10],[1,5,7,9,10,11],[1,5,7,9,11],[1,5,7,10],[1,5,7,10,11],[1,5,7,11],[1,5,8],[1,5,8,9],[1,5,8,9,10],[1,5,8,9,10,11],[1,5,8,9,11],[1,5,8,10],[1,5,8,10,11],[1,5,8,11],[1,5,9],[1,5,9,10],[1,5,9,10,11],[1,5,9,11],[1,5,10],[1,5,10,11],[1,5,11],[1,6],[1,6,7],[1,6,7,8],[1,6,7,8,9],[1,6,7,8,9,10],[1,6,7,8,9,10,11],[1,6,7,8,9,11],[1,6,7,8,10],[1,6,7,8,10,11],[1,6,7,8,11],[1,6,7,9],[1,6,7,9,10],[1,6,7,9,10,11],[1,6,7,9,11],[1,6,7,10],[1,6,7,10,11],[1,6,7,11],[1,6,8],[1,6,8,9],[1,6,8,9,10],[1,6,8,9,10,11],[1,6,8,9,11],[1,6,8,10],[1,6,8,10,11],[1,6,8,11],[1,6,9],[1,6,9,10],[1,6,9,10,11],[1,6,9,11],[1,6,10],[1,6,10,11],[1,6,11],[1,7],[1,7,8],[1,7,8,9],[1,7,8,9,10],[1,7,8,9,10,11],[1,7,8,9,11],[1,7,8,10],[1,7,8,10,11],[1,7,8,11],[1,7,9],[1,7,9,10],[1,7,9,10,11],[1,7,9,11],[1,7,10],[1,7,10,11],[1,7,11],[1,8],[1,8,9],[1,8,9,10],[1,8,9,10,11],[1,8,9,11],[1,8,10],[1,8,10,11],[1,8,11],[1,9],[1,9,10],[1,9,10,11],[1,9,11],[1,10],[1,10,11],[1,11],[2],[2,3],[2,3,4],[2,3,4,5],[2,3,4,5,6],[2,3,4,5,6,7],[2,3,4,5,6,7,8],[2,3,4,5,6,7,8,9],[2,3,4,5,6,7,8,9,10],[2,3,4,5,6,7,8,9,10,11],[2,3,4,5,6,7,8,9,11],[2,3,4,5,6,7,8,10],[2,3,4,5,6,7,8,10,11],[2,3,4,5,6,7,8,11],[2,3,4,5,6,7,9],[2,3,4,5,6,7,9,10],[2,3,4,5,6,7,9,10,11],[2,3,4,5,6,7,9,11],[2,3,4,5,6,7,10],[2,3,4,5,6,7,10,11],[2,3,4,5,6,7,11],[2,3,4,5,6,8],[2,3,4,5,6,8,9],[2,3,4,5,6,8,9,10],[2,3,4,5,6,8,9,10,11],[2,3,4,5,6,8,9,11],[2,3,4,5,6,8,10],[2,3,4,5,6,8,10,11],[2,3,4,5,6,8,11],[2,3,4,5,6,9],[2,3,4,5,6,9,10],[2,3,4,5,6,9,10,11],[2,3,4,5,6,9,11],[2,3,4,5,6,10],[2,3,4,5,6,10,11],[2,3,4,5,6,11],[2,3,4,5,7],[2,3,4,5,7,8],[2,3,4,5,7,8,9],[2,3,4,5,7,8,9,10],[2,3,4,5,7,8,9,10,11],[2,3,4,5,7,8,9,11],[2,3,4,5,7,8,10],[2,3,4,5,7,8,10,11],[2,3,4,5,7,8,11],[2,3,4,5,7,9],[2,3,4,5,7,9,10],[2,3,4,5,7,9,10,11],[2,3,4,5,7,9,11],[2,3,4,5,7,10],[2,3,4,5,7,10,11],[2,3,4,5,7,11],[2,3,4,5,8],[2,3,4,5,8,9],[2,3,4,5,8,9,10],[2,3,4,5,8,9,10,11],[2,3,4,5,8,9,11],[2,3,4,5,8,10],[2,3,4,5,8,10,11],[2,3,4,5,8,11],[2,3,4,5,9],[2,3,4,5,9,10],[2,3,4,5,9,10,11],[2,3,4,5,9,11],[2,3,4,5,10],[2,3,4,5,10,11],[2,3,4,5,11],[2,3,4,6],[2,3,4,6,7],[2,3,4,6,7,8],[2,3,4,6,7,8,9],[2,3,4,6,7,8,9,10],[2,3,4,6,7,8,9,10,11],[2,3,4,6,7,8,9,11],[2,3,4,6,7,8,10],[2,3,4,6,7,8,10,11],[2,3,4,6,7,8,11],[2,3,4,6,7,9],[2,3,4,6,7,9,10],[2,3,4,6,7,9,10,11],[2,3,4,6,7,9,11],[2,3,4,6,7,10],[2,3,4,6,7,10,11],[2,3,4,6,7,11],[2,3,4,6,8],[2,3,4,6,8,9],[2,3,4,6,8,9,10],[2,3,4,6,8,9,10,11],[2,3,4,6,8,9,11],[2,3,4,6,8,10],[2,3,4,6,8,10,11],[2,3,4,6,8,11],[2,3,4,6,9],[2,3,4,6,9,10],[2,3,4,6,9,10,11],[2,3,4,6,9,11],[2,3,4,6,10],[2,3,4,6,10,11],[2,3,4,6,11],[2,3,4,7],[2,3,4,7,8],[2,3,4,7,8,9],[2,3,4,7,8,9,10],[2,3,4,7,8,9,10,11],[2,3,4,7,8,9,11],[2,3,4,7,8,10],[2,3,4,7,8,10,11],[2,3,4,7,8,11],[2,3,4,7,9],[2,3,4,7,9,10],[2,3,4,7,9,10,11],[2,3,4,7,9,11],[2,3,4,7,10],[2,3,4,7,10,11],[2,3,4,7,11],[2,3,4,8],[2,3,4,8,9],[2,3,4,8,9,10],[2,3,4,8,9,10,11],[2,3,4,8,9,11],[2,3,4,8,10],[2,3,4,8,10,11],[2,3,4,8,11],[2,3,4,9],[2,3,4,9,10],[2,3,4,9,10,11],[2,3,4,9,11],[2,3,4,10],[2,3,4,10,11],[2,3,4,11],[2,3,5],[2,3,5,6],[2,3,5,6,7],[2,3,5,6,7,8],[2,3,5,6,7,8,9],[2,3,5,6,7,8,9,10],[2,3,5,6,7,8,9,10,11],[2,3,5,6,7,8,9,11],[2,3,5,6,7,8,10],[2,3,5,6,7,8,10,11],[2,3,5,6,7,8,11],[2,3,5,6,7,9],[2,3,5,6,7,9,10],[2,3,5,6,7,9,10,11],[2,3,5,6,7,9,11],[2,3,5,6,7,10],[2,3,5,6,7,10,11],[2,3,5,6,7,11],[2,3,5,6,8],[2,3,5,6,8,9],[2,3,5,6,8,9,10],[2,3,5,6,8,9,10,11],[2,3,5,6,8,9,11],[2,3,5,6,8,10],[2,3,5,6,8,10,11],[2,3,5,6,8,11],[2,3,5,6,9],[2,3,5,6,9,10],[2,3,5,6,9,10,11],[2,3,5,6,9,11],[2,3,5,6,10],[2,3,5,6,10,11],[2,3,5,6,11],[2,3,5,7],[2,3,5,7,8],[2,3,5,7,8,9],[2,3,5,7,8,9,10],[2,3,5,7,8,9,10,11],[2,3,5,7,8,9,11],[2,3,5,7,8,10],[2,3,5,7,8,10,11],[2,3,5,7,8,11],[2,3,5,7,9],[2,3,5,7,9,10],[2,3,5,7,9,10,11],[2,3,5,7,9,11],[2,3,5,7,10],[2,3,5,7,10,11],[2,3,5,7,11],[2,3,5,8],[2,3,5,8,9],[2,3,5,8,9,10],[2,3,5,8,9,10,11],[2,3,5,8,9,11],[2,3,5,8,10],[2,3,5,8,10,11],[2,3,5,8,11],[2,3,5,9],[2,3,5,9,10],[2,3,5,9,10,11],[2,3,5,9,11],[2,3,5,10],[2,3,5,10,11],[2,3,5,11],[2,3,6],[2,3,6,7],[2,3,6,7,8],[2,3,6,7,8,9],[2,3,6,7,8,9,10],[2,3,6,7,8,9,10,11],[2,3,6,7,8,9,11],[2,3,6,7,8,10],[2,3,6,7,8,10,11],[2,3,6,7,8,11],[2,3,6,7,9],[2,3,6,7,9,10],[2,3,6,7,9,10,11],[2,3,6,7,9,11],[2,3,6,7,10],[2,3,6,7,10,11],[2,3,6,7,11],[2,3,6,8],[2,3,6,8,9],[2,3,6,8,9,10],[2,3,6,8,9,10,11],[2,3,6,8,9,11],[2,3,6,8,10],[2,3,6,8,10,11],[2,3,6,8,11],[2,3,6,9],[2,3,6,9,10],[2,3,6,9,10,11],[2,3,6,9,11],[2,3,6,10],[2,3,6,10,11],[2,3,6,11],[2,3,7],[2,3,7,8],[2,3,7,8,9],[2,3,7,8,9,10],[2,3,7,8,9,10,11],[2,3,7,8,9,11],[2,3,7,8,10],[2,3,7,8,10,11],[2,3,7,8,11],[2,3,7,9],[2,3,7,9,10],[2,3,7,9,10,11],[2,3,7,9,11],[2,3,7,10],[2,3,7,10,11],[2,3,7,11],[2,3,8],[2,3,8,9],[2,3,8,9,10],[2,3,8,9,10,11],[2,3,8,9,11],[2,3,8,10],[2,3,8,10,11],[2,3,8,11],[2,3,9],[2,3,9,10],[2,3,9,10,11],[2,3,9,11],[2,3,10],[2,3,10,11],[2,3,11],[2,4],[2,4,5],[2,4,5,6],[2,4,5,6,7],[2,4,5,6,7,8],[2,4,5,6,7,8,9],[2,4,5,6,7,8,9,10],[2,4,5,6,7,8,9,10,11],[2,4,5,6,7,8,9,11],[2,4,5,6,7,8,10],[2,4,5,6,7,8,10,11],[2,4,5,6,7,8,11],[2,4,5,6,7,9],[2,4,5,6,7,9,10],[2,4,5,6,7,9,10,11],[2,4,5,6,7,9,11],[2,4,5,6,7,10],[2,4,5,6,7,10,11],[2,4,5,6,7,11],[2,4,5,6,8],[2,4,5,6,8,9],[2,4,5,6,8,9,10],[2,4,5,6,8,9,10,11],[2,4,5,6,8,9,11],[2,4,5,6,8,10],[2,4,5,6,8,10,11],[2,4,5,6,8,11],[2,4,5,6,9],[2,4,5,6,9,10],[2,4,5,6,9,10,11],[2,4,5,6,9,11],[2,4,5,6,10],[2,4,5,6,10,11],[2,4,5,6,11],[2,4,5,7],[2,4,5,7,8],[2,4,5,7,8,9],[2,4,5,7,8,9,10],[2,4,5,7,8,9,10,11],[2,4,5,7,8,9,11],[2,4,5,7,8,10],[2,4,5,7,8,10,11],[2,4,5,7,8,11],[2,4,5,7,9],[2,4,5,7,9,10],[2,4,5,7,9,10,11],[2,4,5,7,9,11],[2,4,5,7,10],[2,4,5,7,10,11],[2,4,5,7,11],[2,4,5,8],[2,4,5,8,9],[2,4,5,8,9,10],[2,4,5,8,9,10,11],[2,4,5,8,9,11],[2,4,5,8,10],[2,4,5,8,10,11],[2,4,5,8,11],[2,4,5,9],[2,4,5,9,10],[2,4,5,9,10,11],[2,4,5,9,11],[2,4,5,10],[2,4,5,10,11],[2,4,5,11],[2,4,6],[2,4,6,7],[2,4,6,7,8],[2,4,6,7,8,9],[2,4,6,7,8,9,10],[2,4,6,7,8,9,10,11],[2,4,6,7,8,9,11],[2,4,6,7,8,10],[2,4,6,7,8,10,11],[2,4,6,7,8,11],[2,4,6,7,9],[2,4,6,7,9,10],[2,4,6,7,9,10,11],[2,4,6,7,9,11],[2,4,6,7,10],[2,4,6,7,10,11],[2,4,6,7,11],[2,4,6,8],[2,4,6,8,9],[2,4,6,8,9,10],[2,4,6,8,9,10,11],[2,4,6,8,9,11],[2,4,6,8,10],[2,4,6,8,10,11],[2,4,6,8,11],[2,4,6,9],[2,4,6,9,10],[2,4,6,9,10,11],[2,4,6,9,11],[2,4,6,10],[2,4,6,10,11],[2,4,6,11],[2,4,7],[2,4,7,8],[2,4,7,8,9],[2,4,7,8,9,10],[2,4,7,8,9,10,11],[2,4,7,8,9,11],[2,4,7,8,10],[2,4,7,8,10,11],[2,4,7,8,11],[2,4,7,9],[2,4,7,9,10],[2,4,7,9,10,11],[2,4,7,9,11],[2,4,7,10],[2,4,7,10,11],[2,4,7,11],[2,4,8],[2,4,8,9],[2,4,8,9,10],[2,4,8,9,10,11],[2,4,8,9,11],[2,4,8,10],[2,4,8,10,11],[2,4,8,11],[2,4,9],[2,4,9,10],[2,4,9,10,11],[2,4,9,11],[2,4,10],[2,4,10,11],[2,4,11],[2,5],[2,5,6],[2,5,6,7],[2,5,6,7,8],[2,5,6,7,8,9],[2,5,6,7,8,9,10],[2,5,6,7,8,9,10,11],[2,5,6,7,8,9,11],[2,5,6,7,8,10],[2,5,6,7,8,10,11],[2,5,6,7,8,11],[2,5,6,7,9],[2,5,6,7,9,10],[2,5,6,7,9,10,11],[2,5,6,7,9,11],[2,5,6,7,10],[2,5,6,7,10,11],[2,5,6,7,11],[2,5,6,8],[2,5,6,8,9],[2,5,6,8,9,10],[2,5,6,8,9,10,11],[2,5,6,8,9,11],[2,5,6,8,10],[2,5,6,8,10,11],[2,5,6,8,11],[2,5,6,9],[2,5,6,9,10],[2,5,6,9,10,11],[2,5,6,9,11],[2,5,6,10],[2,5,6,10,11],[2,5,6,11],[2,5,7],[2,5,7,8],[2,5,7,8,9],[2,5,7,8,9,10],[2,5,7,8,9,10,11],[2,5,7,8,9,11],[2,5,7,8,10],[2,5,7,8,10,11],[2,5,7,8,11],[2,5,7,9],[2,5,7,9,10],[2,5,7,9,10,11],[2,5,7,9,11],[2,5,7,10],[2,5,7,10,11],[2,5,7,11],[2,5,8],[2,5,8,9],[2,5,8,9,10],[2,5,8,9,10,11],[2,5,8,9,11],[2,5,8,10],[2,5,8,10,11],[2,5,8,11],[2,5,9],[2,5,9,10],[2,5,9,10,11],[2,5,9,11],[2,5,10],[2,5,10,11],[2,5,11],[2,6],[2,6,7],[2,6,7,8],[2,6,7,8,9],[2,6,7,8,9,10],[2,6,7,8,9,10,11],[2,6,7,8,9,11],[2,6,7,8,10],[2,6,7,8,10,11],[2,6,7,8,11],[2,6,7,9],[2,6,7,9,10],[2,6,7,9,10,11],[2,6,7,9,11],[2,6,7,10],[2,6,7,10,11],[2,6,7,11],[2,6,8],[2,6,8,9],[2,6,8,9,10],[2,6,8,9,10,11],[2,6,8,9,11],[2,6,8,10],[2,6,8,10,11],[2,6,8,11],[2,6,9],[2,6,9,10],[2,6,9,10,11],[2,6,9,11],[2,6,10],[2,6,10,11],[2,6,11],[2,7],[2,7,8],[2,7,8,9],[2,7,8,9,10],[2,7,8,9,10,11],[2,7,8,9,11],[2,7,8,10],[2,7,8,10,11],[2,7,8,11],[2,7,9],[2,7,9,10],[2,7,9,10,11],[2,7,9,11],[2,7,10],[2,7,10,11],[2,7,11],[2,8],[2,8,9],[2,8,9,10],[2,8,9,10,11],[2,8,9,11],[2,8,10],[2,8,10,11],[2,8,11],[2,9],[2,9,10],[2,9,10,11],[2,9,11],[2,10],[2,10,11],[2,11],[3],[3,4],[3,4,5],[3,4,5,6],[3,4,5,6,7],[3,4,5,6,7,8],[3,4,5,6,7,8,9],[3,4,5,6,7,8,9,10],[3,4,5,6,7,8,9,10,11],[3,4,5,6,7,8,9,11],[3,4,5,6,7,8,10],[3,4,5,6,7,8,10,11],[3,4,5,6,7,8,11],[3,4,5,6,7,9],[3,4,5,6,7,9,10],[3,4,5,6,7,9,10,11],[3,4,5,6,7,9,11],[3,4,5,6,7,10],[3,4,5,6,7,10,11],[3,4,5,6,7,11],[3,4,5,6,8],[3,4,5,6,8,9],[3,4,5,6,8,9,10],[3,4,5,6,8,9,10,11],[3,4,5,6,8,9,11],[3,4,5,6,8,10],[3,4,5,6,8,10,11],[3,4,5,6,8,11],[3,4,5,6,9],[3,4,5,6,9,10],[3,4,5,6,9,10,11],[3,4,5,6,9,11],[3,4,5,6,10],[3,4,5,6,10,11],[3,4,5,6,11],[3,4,5,7],[3,4,5,7,8],[3,4,5,7,8,9],[3,4,5,7,8,9,10],[3,4,5,7,8,9,10,11],[3,4,5,7,8,9,11],[3,4,5,7,8,10],[3,4,5,7,8,10,11],[3,4,5,7,8,11],[3,4,5,7,9],[3,4,5,7,9,10],[3,4,5,7,9,10,11],[3,4,5,7,9,11],[3,4,5,7,10],[3,4,5,7,10,11],[3,4,5,7,11],[3,4,5,8],[3,4,5,8,9],[3,4,5,8,9,10],[3,4,5,8,9,10,11],[3,4,5,8,9,11],[3,4,5,8,10],[3,4,5,8,10,11],[3,4,5,8,11],[3,4,5,9],[3,4,5,9,10],[3,4,5,9,10,11],[3,4,5,9,11],[3,4,5,10],[3,4,5,10,11],[3,4,5,11],[3,4,6],[3,4,6,7],[3,4,6,7,8],[3,4,6,7,8,9],[3,4,6,7,8,9,10],[3,4,6,7,8,9,10,11],[3,4,6,7,8,9,11],[3,4,6,7,8,10],[3,4,6,7,8,10,11],[3,4,6,7,8,11],[3,4,6,7,9],[3,4,6,7,9,10],[3,4,6,7,9,10,11],[3,4,6,7,9,11],[3,4,6,7,10],[3,4,6,7,10,11],[3,4,6,7,11],[3,4,6,8],[3,4,6,8,9],[3,4,6,8,9,10],[3,4,6,8,9,10,11],[3,4,6,8,9,11],[3,4,6,8,10],[3,4,6,8,10,11],[3,4,6,8,11],[3,4,6,9],[3,4,6,9,10],[3,4,6,9,10,11],[3,4,6,9,11],[3,4,6,10],[3,4,6,10,11],[3,4,6,11],[3,4,7],[3,4,7,8],[3,4,7,8,9],[3,4,7,8,9,10],[3,4,7,8,9,10,11],[3,4,7,8,9,11],[3,4,7,8,10],[3,4,7,8,10,11],[3,4,7,8,11],[3,4,7,9],[3,4,7,9,10],[3,4,7,9,10,11],[3,4,7,9,11],[3,4,7,10],[3,4,7,10,11],[3,4,7,11],[3,4,8],[3,4,8,9],[3,4,8,9,10],[3,4,8,9,10,11],[3,4,8,9,11],[3,4,8,10],[3,4,8,10,11],[3,4,8,11],[3,4,9],[3,4,9,10],[3,4,9,10,11],[3,4,9,11],[3,4,10],[3,4,10,11],[3,4,11],[3,5],[3,5,6],[3,5,6,7],[3,5,6,7,8],[3,5,6,7,8,9],[3,5,6,7,8,9,10],[3,5,6,7,8,9,10,11],[3,5,6,7,8,9,11],[3,5,6,7,8,10],[3,5,6,7,8,10,11],[3,5,6,7,8,11],[3,5,6,7,9],[3,5,6,7,9,10],[3,5,6,7,9,10,11],[3,5,6,7,9,11],[3,5,6,7,10],[3,5,6,7,10,11],[3,5,6,7,11],[3,5,6,8],[3,5,6,8,9],[3,5,6,8,9,10],[3,5,6,8,9,10,11],[3,5,6,8,9,11],[3,5,6,8,10],[3,5,6,8,10,11],[3,5,6,8,11],[3,5,6,9],[3,5,6,9,10],[3,5,6,9,10,11],[3,5,6,9,11],[3,5,6,10],[3,5,6,10,11],[3,5,6,11],[3,5,7],[3,5,7,8],[3,5,7,8,9],[3,5,7,8,9,10],[3,5,7,8,9,10,11],[3,5,7,8,9,11],[3,5,7,8,10],[3,5,7,8,10,11],[3,5,7,8,11],[3,5,7,9],[3,5,7,9,10],[3,5,7,9,10,11],[3,5,7,9,11],[3,5,7,10],[3,5,7,10,11],[3,5,7,11],[3,5,8],[3,5,8,9],[3,5,8,9,10],[3,5,8,9,10,11],[3,5,8,9,11],[3,5,8,10],[3,5,8,10,11],[3,5,8,11],[3,5,9],[3,5,9,10],[3,5,9,10,11],[3,5,9,11],[3,5,10],[3,5,10,11],[3,5,11],[3,6],[3,6,7],[3,6,7,8],[3,6,7,8,9],[3,6,7,8,9,10],[3,6,7,8,9,10,11],[3,6,7,8,9,11],[3,6,7,8,10],[3,6,7,8,10,11],[3,6,7,8,11],[3,6,7,9],[3,6,7,9,10],[3,6,7,9,10,11],[3,6,7,9,11],[3,6,7,10],[3,6,7,10,11],[3,6,7,11],[3,6,8],[3,6,8,9],[3,6,8,9,10],[3,6,8,9,10,11],[3,6,8,9,11],[3,6,8,10],[3,6,8,10,11],[3,6,8,11],[3,6,9],[3,6,9,10],[3,6,9,10,11],[3,6,9,11],[3,6,10],[3,6,10,11],[3,6,11],[3,7],[3,7,8],[3,7,8,9],[3,7,8,9,10],[3,7,8,9,10,11],[3,7,8,9,11],[3,7,8,10],[3,7,8,10,11],[3,7,8,11],[3,7,9],[3,7,9,10],[3,7,9,10,11],[3,7,9,11],[3,7,10],[3,7,10,11],[3,7,11],[3,8],[3,8,9],[3,8,9,10],[3,8,9,10,11],[3,8,9,11],[3,8,10],[3,8,10,11],[3,8,11],[3,9],[3,9,10],[3,9,10,11],[3,9,11],[3,10],[3,10,11],[3,11],[4],[4,5],[4,5,6],[4,5,6,7],[4,5,6,7,8],[4,5,6,7,8,9],[4,5,6,7,8,9,10],[4,5,6,7,8,9,10,11],[4,5,6,7,8,9,11],[4,5,6,7,8,10],[4,5,6,7,8,10,11],[4,5,6,7,8,11],[4,5,6,7,9],[4,5,6,7,9,10],[4,5,6,7,9,10,11],[4,5,6,7,9,11],[4,5,6,7,10],[4,5,6,7,10,11],[4,5,6,7,11],[4,5,6,8],[4,5,6,8,9],[4,5,6,8,9,10],[4,5,6,8,9,10,11],[4,5,6,8,9,11],[4,5,6,8,10],[4,5,6,8,10,11],[4,5,6,8,11],[4,5,6,9],[4,5,6,9,10],[4,5,6,9,10,11],[4,5,6,9,11],[4,5,6,10],[4,5,6,10,11],[4,5,6,11],[4,5,7],[4,5,7,8],[4,5,7,8,9],[4,5,7,8,9,10],[4,5,7,8,9,10,11],[4,5,7,8,9,11],[4,5,7,8,10],[4,5,7,8,10,11],[4,5,7,8,11],[4,5,7,9],[4,5,7,9,10],[4,5,7,9,10,11],[4,5,7,9,11],[4,5,7,10],[4,5,7,10,11],[4,5,7,11],[4,5,8],[4,5,8,9],[4,5,8,9,10],[4,5,8,9,10,11],[4,5,8,9,11],[4,5,8,10],[4,5,8,10,11],[4,5,8,11],[4,5,9],[4,5,9,10],[4,5,9,10,11],[4,5,9,11],[4,5,10],[4,5,10,11],[4,5,11],[4,6],[4,6,7],[4,6,7,8],[4,6,7,8,9],[4,6,7,8,9,10],[4,6,7,8,9,10,11],[4,6,7,8,9,11],[4,6,7,8,10],[4,6,7,8,10,11],[4,6,7,8,11],[4,6,7,9],[4,6,7,9,10],[4,6,7,9,10,11],[4,6,7,9,11],[4,6,7,10],[4,6,7,10,11],[4,6,7,11],[4,6,8],[4,6,8,9],[4,6,8,9,10],[4,6,8,9,10,11],[4,6,8,9,11],[4,6,8,10],[4,6,8,10,11],[4,6,8,11],[4,6,9],[4,6,9,10],[4,6,9,10,11],[4,6,9,11],[4,6,10],[4,6,10,11],[4,6,11],[4,7],[4,7,8],[4,7,8,9],[4,7,8,9,10],[4,7,8,9,10,11],[4,7,8,9,11],[4,7,8,10],[4,7,8,10,11],[4,7,8,11],[4,7,9],[4,7,9,10],[4,7,9,10,11],[4,7,9,11],[4,7,10],[4,7,10,11],[4,7,11],[4,8],[4,8,9],[4,8,9,10],[4,8,9,10,11],[4,8,9,11],[4,8,10],[4,8,10,11],[4,8,11],[4,9],[4,9,10],[4,9,10,11],[4,9,11],[4,10],[4,10,11],[4,11],[5],[5,6],[5,6,7],[5,6,7,8],[5,6,7,8,9],[5,6,7,8,9,10],[5,6,7,8,9,10,11],[5,6,7,8,9,11],[5,6,7,8,10],[5,6,7,8,10,11],[5,6,7,8,11],[5,6,7,9],[5,6,7,9,10],[5,6,7,9,10,11],[5,6,7,9,11],[5,6,7,10],[5,6,7,10,11],[5,6,7,11],[5,6,8],[5,6,8,9],[5,6,8,9,10],[5,6,8,9,10,11],[5,6,8,9,11],[5,6,8,10],[5,6,8,10,11],[5,6,8,11],[5,6,9],[5,6,9,10],[5,6,9,10,11],[5,6,9,11],[5,6,10],[5,6,10,11],[5,6,11],[5,7],[5,7,8],[5,7,8,9],[5,7,8,9,10],[5,7,8,9,10,11],[5,7,8,9,11],[5,7,8,10],[5,7,8,10,11],[5,7,8,11],[5,7,9],[5,7,9,10],[5,7,9,10,11],[5,7,9,11],[5,7,10],[5,7,10,11],[5,7,11],[5,8],[5,8,9],[5,8,9,10],[5,8,9,10,11],[5,8,9,11],[5,8,10],[5,8,10,11],[5,8,11],[5,9],[5,9,10],[5,9,10,11],[5,9,11],[5,10],[5,10,11],[5,11],[6],[6,7],[6,7,8],[6,7,8,9],[6,7,8,9,10],[6,7,8,9,10,11],[6,7,8,9,11],[6,7,8,10],[6,7,8,10,11],[6,7,8,11],[6,7,9],[6,7,9,10],[6,7,9,10,11],[6,7,9,11],[6,7,10],[6,7,10,11],[6,7,11],[6,8],[6,8,9],[6,8,9,10],[6,8,9,10,11],[6,8,9,11],[6,8,10],[6,8,10,11],[6,8,11],[6,9],[6,9,10],[6,9,10,11],[6,9,11],[6,10],[6,10,11],[6,11],[7],[7,8],[7,8,9],[7,8,9,10],[7,8,9,10,11],[7,8,9,11],[7,8,10],[7,8,10,11],[7,8,11],[7,9],[7,9,10],[7,9,10,11],[7,9,11],[7,10],[7,10,11],[7,11],[8],[8,9],[8,9,10],[8,9,10,11],[8,9,11],[8,10],[8,10,11],[8,11],[9],[9,10],[9,10,11],[9,11],[10],[10,11],[11]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select course, type, count(*) from students group by rollup (course, type, course) order by 1, 2, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["type"]}],"group_sets":[[],[0],[0,1],[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a FROM (\n\tvalues\n\t(1,2),\n\t(3,2)\n) t(a, b)\nHAVING true","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test.b, SUM(a) FROM test GROUP BY test.b ORDER BY (SELECT SUM(a) FROM test t WHERE test.b=t.b) DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":44,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":77,"query_location_length":6,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["t","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["test","b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["test","b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(a) FROM test HAVING SUM(a)\u003c10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":31,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT b, SUM(a) AS sum FROM test GROUP BY b QUALIFY row_number() OVER (PARTITION BY b) \u003e= 1 AND sum \u003c 20 ORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"sum","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":53,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":53,"query_location_length":39,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":53,"query_location_length":34,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["b"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":97,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["sum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}]}},"named_param_map":[]}]}} -{"sql":"SELECT plus1(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"plus1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["plus1"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, sum(CASE WHEN i%4=0 THEN 9000000000000000000::BIGINT END),\n sum(CASE WHEN i%4=1 THEN -9000000000000000000::BIGINT END)\nFROM (SELECT i, (i//64)%2 AS g FROM range(8192) t(i)) t GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":57,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":14,"query_location_length":52,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":58,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":80,"query_location_length":53,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":28,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":140,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":151,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":152,"query_location_length":5,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}],"qualified_name":{"path":["//"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":171,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":4,"literal":{"kind":"INTEGER","text":"8192"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_group_object(k, v) filter (where false)\nfrom (values ('filtered', 1::VARIANT)) t(k, v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"variant_group_object","schema":"","filter":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_group_object"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":60,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":10,"literal":{"kind":"STRING","text":"filtered"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_group_object(1, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"variant_group_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["variant_group_object"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test WHERE k=2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM t WHERE j IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":24,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sql LIKE '%c VARCHAR COLLATE nocase%' FROM duckdb_tables() WHERE table_name = 't'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":33,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sql"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":28,"literal":{"kind":"STRING","text":"%c VARCHAR COLLATE nocase%"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":50,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT col FROM tbl ORDER BY col DESC LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":3,"column_names":["col"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from my_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"my_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["my_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM test_default_parent","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":19,"schema_name":"","table_name":"test_default_parent","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_default_parent"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM glob('{TEST_DIR}/test4.db.wal')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/test4.db.wal"}}}],"qualified_name":{"path":["glob"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from ddb.my_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":12,"schema_name":"ddb","table_name":"my_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ddb","my_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM db1.main.test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"main","table_name":"test","column_name_alias":[],"catalog_name":"db1","at_clause":null,"qualified_name":{"path":["db1","main","test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT enum_range(NULL::xx.db1.main.mood) AS my_enum_range;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"my_enum_range","query_location":7,"query_location_length":34,"function_name":"enum_range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":16,"catalog":"xx","schema":"main","type_name":"mood","children":[],"qualified_name":{"path":["xx","db1","main","mood"]}}}}],"qualified_name":{"path":["enum_range"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM hidden_db.main.tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":18,"schema_name":"main","table_name":"tbl","column_name_alias":[],"catalog_name":"hidden_db","at_clause":null,"qualified_name":{"path":["hidden_db","main","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT db1.main.two_x_plus_y(x, y) FROM db1.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"two_x_plus_y","schema":"main","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"db1","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["db1","main","two_x_plus_y"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":7,"schema_name":"db1","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT db1.t, db2.t FROM db1.s1.t, db2.s1.t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["db1","t"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["db2","t"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"s1","table_name":"t","column_name_alias":[],"catalog_name":"db1","at_clause":null,"qualified_name":{"path":["db1","s1","t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"s1","table_name":"t","column_name_alias":[],"catalog_name":"db2","at_clause":null,"qualified_name":{"path":["db2","s1","t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database.table FROM \"table\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["database","table"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":7,"schema_name":"","table_name":"table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_databases() WHERE database_name = 'db3';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":5,"literal":{"kind":"STRING","text":"db3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(DISTINCT row_group_id) FROM pragma_storage_info('test.data');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["row_group_id"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":11,"literal":{"kind":"STRING","text":"test.data"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tags['storage_version'] FROM duckdb_databases() WHERE database_name='version_1_2_0'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":11,"query_location_length":19,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["tags"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":17,"literal":{"kind":"STRING","text":"storage_version"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":15,"literal":{"kind":"STRING","text":"version_1_2_0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_databases() WHERE database_name = 'qtx2';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":6,"literal":{"kind":"STRING","text":"qtx2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_databases() WHERE database_name = 'blocked';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":9,"literal":{"kind":"STRING","text":"blocked"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT reference, state FROM duckdb_external_resources(discover := true) WHERE managed = false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["reference"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["state"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"discover","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"discover","query_location":67,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_external_resources"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":7,"column_names":["managed"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT operation, resource_name FROM duckdb_logs_parsed('ExternalResource') ORDER BY timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":9,"column_names":["timestamp"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["operation"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":13,"column_names":["resource_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":18,"literal":{"kind":"STRING","text":"ExternalResource"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM new_database.integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"new_database","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["new_database","integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM my_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"my_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["my_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name FROM pragma_database_list ORDER BY name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":20,"schema_name":"","table_name":"pragma_database_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pragma_database_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a as x FROM (VALUES (1),(2),(3)) t(a)\nGROUP BY alias.x + 1\nORDER BY alias.x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["alias","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":7,"column_names":["alias","x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, row_number() OVER (ORDER BY a) AS rn\nFROM (VALUES (3),(1),(2)) t(a)\nQUALIFY alias.rn \u003c= 2\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":10,"query_location_length":30,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":52,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":86,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":8,"column_names":["alias","rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}},"named_param_map":[]}]}} -{"sql":"SELECT\n a AS x,\n CASE WHEN alias.x % 2 = 0 THEN 'even' ELSE 'odd' END AS parity\nFROM (VALUES (1),(2),(3)) t(a)\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":9,"query_location_length":1,"column_names":["a"]},{"class":"CASE","type":"CASE_EXPR","alias":"parity","query_location":19,"query_location_length":52,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":11,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":7,"column_names":["alias","x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":6,"literal":{"kind":"STRING","text":"even"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":5,"literal":{"kind":"STRING","text":"odd"}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":87,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select ss_items.item_id\nfrom ss_items,cs_items\nwhere ss_items.item_id = cs_items.item_id\ngroup by item_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["ss_items","item_id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"ss_items","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ss_items"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"cs_items","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cs_items"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":16,"column_names":["ss_items","item_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":16,"column_names":["cs_items","item_id"]}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["item_id"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.i FROM t, t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":11,"query_location_length":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with stage as (\n select\n [1,2,3] as c1,\n [4,5,6] as c2\n)\nselect\n list_transform(\n c1,\n lambda x: list_bool_or(\n list_transform(\n c2,\n lambda y: y == x\n )\n )\n ) as c3\nfrom stage;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"stage","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c1","query_location":39,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"c2","query_location":64,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c3","query_location":92,"query_location_length":156,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":126,"query_location_length":115,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":105,"function_name":"list_bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":160,"query_location_length":72,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":2,"column_names":["c2"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":204,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":214,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":1,"column_names":["y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":1,"column_names":["x"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}}],"qualified_name":{"path":["list_bool_or"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":260,"query_location_length":5,"schema_name":"","table_name":"stage","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stage"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(1::TINYINT + 10000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t0 WHERE NOT REGEXP_MATCHES(t0.c0, '1');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":30,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":26,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["t0","c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["regexp_matches"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, (a*10)::VARCHAR AS big FROM test_alias WHERE alias.big.length() \u003e 1 ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"big","query_location":16,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":4,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":10,"schema_name":"","table_name":"test_alias","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_alias"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":18,"function_name":"length","schema":"big","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"alias","arguments":[],"qualified_name":{"path":["alias","big","length"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM s1.t NATURAL JOIN s2.t NATURAL JOIN s3.t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":17,"left":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"s1","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":4,"schema_name":"s2","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s2","t"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":4,"schema_name":"s3","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s3","t"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from m_lineitem;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"m_lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["m_lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select i IN (1) from (values ('01')) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":12,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"STRING","text":"01"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s1.v.c FROM s1.v AS x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["s1","v","c"]}],"from_table":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":19,"query_location_length":9,"schema_name":"s1","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (WITH keys AS (SELECT unnest(json_keys(example)) AS k), nonNull AS (\n \t\tSELECT keys.k, example-\u003ekeys.k AS v\n \t\tFROM keys WHERE nullif(v, 'null') IS NOT NULL\n \t)\n \tSELECT json_group_object(nonNull.k, nonNull.v)\n \tFROM nonNull\n)\nFROM testjson;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":241,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"keys","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":29,"query_location_length":26,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":18,"function_name":"json_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":7,"column_names":["example"]}}],"qualified_name":{"path":["json_keys"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"nonNull","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":6,"column_names":["keys","k"]},{"class":"LAMBDA","type":"LAMBDA","alias":"v","query_location":97,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":7,"column_names":["example"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["keys","k"]},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":4,"schema_name":"","table_name":"keys","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["keys"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":158,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":140,"query_location_length":17,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["nullif"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":39,"function_name":"json_group_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":9,"column_names":["nonNull","k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":9,"column_names":["nonNull","v"]}}],"qualified_name":{"path":["json_group_object"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":239,"query_location_length":7,"schema_name":"","table_name":"nonNull","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nonNull"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":254,"query_location_length":8,"schema_name":"","table_name":"testjson","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["testjson"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test.HeLlO FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["test","HeLlO"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test1.\"HeLlO\" FROM test1, test2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["test1","HeLlO"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":5,"schema_name":"","table_name":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select upper(col1)\nfrom (\n\tselect *\n\tfrom t1\n\tunion\n\tselect *\n\tfrom t2\n) d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["col1"]}}],"qualified_name":{"path":["upper"]}}],"from_table":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":24,"query_location_length":48,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":34,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":60,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, COUNT(*) AS k FROM integers GROUP BY i HAVING integers.k=1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":10,"column_names":["integers","k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select test from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["test"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from tbl where str collate nocase in ('abcde');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":46,"query_location_length":9,"children":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":24,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":3,"column_names":["str"]},"collation":"nocase"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"literal":{"kind":"STRING","text":"abcde"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT NULL) tbl(i) UNION ALL SELECT CAST(1 AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM v1 UNION ALL SELECT CAST(1 AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT i + 1 AS i, i + 1 AS b FROM integers ORDER BY b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":21,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ['a,b', 'x\"y']::VARCHAR[2]::VARCHAR v, v::VARCHAR[2] = ['a,b', 'x\"y'];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":33,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"STRING","text":"a,b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"x\"y"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":30,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":5,"literal":{"kind":"STRING","text":"a,b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":5,"literal":{"kind":"STRING","text":"x\"y"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1=true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT false='true';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":12,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1000]::utinyint[]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":8,"catalog":"","schema":"","type_name":"utinyint","children":[],"qualified_name":{"path":["utinyint"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s::int FROM cast_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":10,"schema_name":"","table_name":"cast_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cast_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'nope'::mood;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"nope"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tTRY_CAST(value AS TIMESTAMP_S) IS NULL,\n\tTRY_CAST(value AS TIMESTAMP_MS) IS NULL,\n\tTRY_CAST(value AS TIMESTAMPTZ_NS) IS NULL\nFROM temporal_cast_input\nWHERE id = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":39,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":30,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":5,"column_names":["value"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":81,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":31,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["value"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":125,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":33,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":5,"column_names":["value"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":138,"query_location_length":19,"schema_name":"","table_name":"temporal_cast_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["temporal_cast_input"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 100000000000000000000 \u003e 99999999999999999999.99999;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":50,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"literal":{"kind":"INTEGER","text":"100000000000000000000"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":26,"literal":{"kind":"NUMERIC","text":"99999999999999999999.99999"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1e308::float;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2147483647.1'::INTEGER, '-2147483648.1'::INTEGER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"STRING","text":"2147483647.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":15,"literal":{"kind":"STRING","text":"-2147483648.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '170141183460469231731687303715884105727.5'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":43,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105727.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '3276.7e1'::SMALLINT, '-3276.8e1'::SMALLINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"3276.7e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":11,"literal":{"kind":"STRING","text":"-3276.8e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '922337203685477580.8e1'::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"922337203685477580.8e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '1e-100000'::int;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"STRING","text":"1e-100000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select ('0.' || repeat('0', 65536) || '5')::BIGNUM;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"STRING","text":"0."}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":18,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"INTEGER","text":"65536"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"5"}}}],"qualified_name":{"path":["||"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('[Hello World!]' AS VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":16,"literal":{"kind":"STRING","text":"[Hello World!]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('[[ [🦆, 🦆, 🦆]], [[duck, db, 🦆], [🦆]], [[🦆, duck, db]]]' AS VARCHAR[][][]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":96,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":73,"literal":{"kind":"STRING","text":"[[ [🦆, 🦆, 🦆]], [[duck, db, 🦆], [🦆]], [[🦆, duck, db]]]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST($$[\"]\", \"hello\", \"world\"]$$ AS VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":27,"literal":{"kind":"STRING","text":"[\"]\", \"hello\", \"world\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT col1::INT[] FROM null_tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["col1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"null_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('[3],[[]' AS INT[][]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":9,"literal":{"kind":"STRING","text":"[3],[[]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('[{a:[12,13,14], b:\"🦆\", c:{a:[[a], [b, c]], b:[123]}}]' AS STRUCT(a INT[], b VARCHAR, c STRUCT(a VARCHAR[][], b INT[]))[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":130,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":58,"literal":{"kind":"STRING","text":"[{a:[12,13,14], b:\"🦆\", c:{a:[[a], [b, c]], b:[123]}}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":60,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":83,"query_location_length":5,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":103,"query_location_length":30,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":112,"query_location_length":11,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":127,"query_location_length":5,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '[{\"bar\":\"\\\\\\\"\"}]'::STRUCT(bar VARCHAR)[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":18,"literal":{"kind":"STRING","text":"[{\"bar\":\"\\\\\\\"\"}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"bar","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[hello\\\"quoted\\\"text, more]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":31,"literal":{"kind":"STRING","text":"[hello\\\"quoted\\\"text, more]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[\"quote at end\\\"\", \"\\\"\"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"[\"quote at end\\\"\", \"\\\"\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[\"\\\\backslash at start and end\\\\\", \"\\\\leading and trailing backslash\\\\\"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":76,"literal":{"kind":"STRING","text":"[\"\\\\backslash at start and end\\\\\", \"\\\\leading and trailing backslash\\\\\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[\" \"]$$::VARCHAR[]; -- List with whitespace string","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"[\" \"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select $$[{}]$$::VARCHAR[] a, a::VARCHAR::VARCHAR[] b, a == b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":15,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"[{}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":40,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["b"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '__TEST_DIR__/string_to_map_null_keys.csv' EXCEPT SELECT 'bla' AS a, MAP {} AS b;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":42,"schema_name":"","table_name":"__TEST_DIR__/string_to_map_null_keys.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["__TEST_DIR__/string_to_map_null_keys.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":62,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":74,"query_location_length":6,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT '{a:{b:DuckDB, c:12}, b:900, c:{a:\"DuckParty\"}}'::STRUCT(a STRUCT(b VARCHAR, c INT), b INT, c STRUCT(a VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":64,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":48,"literal":{"kind":"STRING","text":"{a:{b:DuckDB, c:12}, b:900, c:{a:\"DuckParty\"}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":62,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":66,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"b","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":86,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":94,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":101,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":110,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '{key_D: \"World Hello\", key_B: [Hello, World], key_C : 5000, key_A: [[{a: 5, b: 900}, {a:3, b:34}], [{a:2, b: 0}]]}'::STRUCT(key_A STRUCT(a INT, b INT)[][], key_B VARCHAR[], key_C INT, key_D VARCHAR);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":83,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":116,"literal":{"kind":"STRING","text":"{key_D: \"World Hello\", key_B: [Hello, World], key_C : 5000, key_A: [[{a: 5, b: 900}, {a:3, b:34}], [{a:2, b: 0}]]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":81,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":138,"query_location_length":24,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":20,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":147,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":154,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":170,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":170,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":187,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"key_D","query_location":198,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '{key_A: 2, key_C: 8}'::STRUCT(key_A INT, key_B INT, key_C FLOAT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":22,"literal":{"kind":"STRING","text":"{key_A: 2, key_C: 8}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":41,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":55,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":66,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(col AS STRUCT(a STRUCT(d INT), b DOUBLE, c VARCHAR)) FROM try_cast_tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":61,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["col"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":44,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":32,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"d","query_location":41,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":12,"schema_name":"","table_name":"try_cast_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["try_cast_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('{[{]}}' AS STRUCT(a VARCHAR[]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"{[{]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":33,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::VARCHAR::STRUCT(v VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":19,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [row([4,5,6]), $$([1,2,3],)$$]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":14,"literal":{"kind":"STRING","text":"([1,2,3],)"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {\"small\": 1, \"big\": 999999999}::MAP(VARCHAR, BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":22,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"small","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"small","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"big","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"big","query_location":27,"query_location_length":9,"literal":{"kind":"INTEGER","text":"999999999"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":20,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(col AS MAP(VARCHAR, integer))\nFROM (\n SELECT CASE WHEN (i % 5 == 0) THEN NULL else {'a': i::varchar} END as col\n FROM range(1, 1001) t(i)\n)\nLIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":38,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["col"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":51,"query_location_length":110,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"col","query_location":64,"query_location_length":59,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":109,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":140,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1001"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {\n \"tinyint\": 1::TINYINT,\n \"smallint\": 2::SMALLINT, \n \"int\": 3::INT,\n \"bigint\": 4::BIGINT\n}::MAP(VARCHAR, BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":22,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":103,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"tinyint","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"tinyint","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"smallint","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"smallint","query_location":53,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"int","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"int","query_location":78,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"bigint","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"bigint","query_location":100,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":20,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT b::SMALLINT FROM bits;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 15::BOOLEAN::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bitstring('1', 9)::TINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"bitstring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["bitstring"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'AAAA'::BLOB::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"AAAA"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (170141183460469231731687303715884105727)::HUGEINT::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (255)::UTINYINT::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"255"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0111111111101111111111111111111111111111111111111111111111111111'::BIT::DOUBLE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":66,"literal":{"kind":"STRING","text":"0111111111101111111111111111111111111111111111111111111111111111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('false' AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(CAST('0' AS tinyint) AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":37,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[],"qualified_name":{"path":["tinyint"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(CAST('0' AS decimal(9,0)) AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":42,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bool_and(x[1]['a'] IS NULL) FROM (SELECT TRY_CAST(l AS MAP(VARCHAR, INTEGER)[]) x FROM (SELECT list({'a': [i::INT]}) l FROM range(2049) t(i)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":26,"query_location_length":7,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":20,"query_location_length":5,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":17,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]}]}}],"qualified_name":{"path":["bool_and"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":40,"query_location_length":109,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":48,"query_location_length":38,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["l"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":94,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":102,"query_location_length":21,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":113,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":115,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":131,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2049"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('e1' AS DOUBLE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"STRING","text":"e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '{prefix}1'::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"STRING","text":"{prefix}1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '{prefix}0000000000000000000000000000000001111111'::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":50,"literal":{"kind":"STRING","text":"{prefix}0000000000000000000000000000000001111111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::TINYINT::VARCHAR, 12::TINYINT::VARCHAR, (-125)::TINYINT::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-125"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0xFF'::UINT8, '0xFFFF'::UINT16, '0xFFFFFFFF'::UINT32, '0xFFFFFFFFFFFFFFFF'::UINT64","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"0xFF"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":5,"catalog":"","schema":"","type_name":"UINT8","children":[],"qualified_name":{"path":["UINT8"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"literal":{"kind":"STRING","text":"0xFFFF"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT16","children":[],"qualified_name":{"path":["UINT16"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":12,"literal":{"kind":"STRING","text":"0xFFFFFFFF"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT32","children":[],"qualified_name":{"path":["UINT32"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":20,"literal":{"kind":"STRING","text":"0xFFFFFFFFFFFFFFFF"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT64","children":[],"qualified_name":{"path":["UINT64"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('0x80000000' AS INT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":12,"literal":{"kind":"STRING","text":"0x80000000"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_cast(try_cast(try_cast as integer) as integer) FROM try_cast;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":50,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":8,"column_names":["try_cast"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"try_cast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["try_cast"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(TIMESTAMP_MS '2262-04-11 23:47:16.855' AS TIMESTAMPTZ_NS);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":62,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-11 23:47:16.855"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tTRY_CAST(TIMESTAMP 'infinity' AS TIME) IS NULL,\n\tTRY_CAST(TIMESTAMP 'infinity' AS TIMETZ) IS NULL,\n\tTRY_CAST(TIMESTAMPTZ 'infinity' AS TIMETZ) IS NULL,\n\tTRY_CAST('infinity'::TIMESTAMP_NS AS TIME) IS NULL,\n\tTRY_CAST('infinity'::TIMESTAMP_NS AS TIME_NS) IS NULL,\n\tTRY_CAST('infinity'::TIMESTAMPTZ_NS AS TIMETZ) IS NULL,\n\tTRY_CAST(TIMESTAMPTZ '2262-04-11 23:47:16.854776+00' AS TIMESTAMP_NS) IS NULL,\n\tTRY_CAST(TIMESTAMP_MS '2262-04-11 23:47:16.855' AS TIMESTAMP_NS) IS NULL,\n\tTRY_CAST(TIMESTAMP_S '2262-04-12 00:00:00' AS TIMESTAMP_NS) IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":47,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":38,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":98,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":40,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":151,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":42,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":143,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":204,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":161,"query_location_length":42,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":180,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":182,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":198,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":260,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":214,"query_location_length":45,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":233,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":235,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":251,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[],"qualified_name":{"path":["TIME_NS"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":317,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":270,"query_location_length":46,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":289,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":279,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":291,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":309,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":397,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":327,"query_location_length":69,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":336,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-11 23:47:16.854776+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":336,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":383,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":472,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":407,"query_location_length":64,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":416,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-11 23:47:16.855"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":416,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":458,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":542,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":482,"query_location_length":59,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":491,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-12 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":491,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":528,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tCAST(TIMESTAMPTZ 'infinity' AS TIMESTAMPTZ_NS),\n\tCAST(TIMESTAMPTZ '-infinity' AS TIMESTAMPTZ_NS),\n\tTRY_CAST(TIMESTAMPTZ 'infinity' AS TIMESTAMPTZ_NS),\n\tTRY_CAST(TIMESTAMPTZ '-infinity' AS TIMESTAMPTZ_NS);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":46,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":47,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":50,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":160,"query_location_length":51,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":169,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":169,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":196,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag(union_value(a := 42)::UNION(a VARIANT, b INTEGER));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":20,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["union_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}}}],"qualified_name":{"path":["union_tag"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM abc; -- error: which table did I mean?","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"abc","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["abc"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT structs.S.i.K, \"STRUCTS\".\"S\".\"I\".\"K\", \"structs\".\"s\".\"i\".\"k\" FROM structs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["structs","S","i","K"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":21,"column_names":["STRUCTS","S","I","K"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":21,"column_names":["structs","s","i","k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM a FULL OUTER JOIN b USING (hello)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"FULL","ref_type":"REGULAR","using_columns":["hello"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM a NATURAL FULL OUTER JOIN b NATURAL FULL OUTER JOIN c NATURAL FULL OUTER JOIN d NATURAL FULL OUTER JOIN e","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":94,"query_location_length":25,"left":{"type":"JOIN","alias":"","sample":null,"query_location":68,"query_location_length":25,"left":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":25,"left":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"FULL","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"FULL","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"condition":null,"join_type":"FULL","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":1,"schema_name":"","table_name":"e","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["e"]}},"condition":null,"join_type":"FULL","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select comment from duckdb_columns() where column_name='test_view_column';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":18,"literal":{"kind":"STRING","text":"test_view_column"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select comment from duckdb_functions() where function_name='test_table_macro';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_functions"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":18,"literal":{"kind":"STRING","text":"test_table_macro"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select comment from duckdb_views() where view_name='b';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_views","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_views"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ddb.comment, pg.description\nFROM duckdb_columns AS ddb\nLEFT JOIN pg_description AS pg\n ON pg.classoid=ddb.database_oid AND pg.objoid=ddb.table_oid\nWHERE pg.objsubid=1 AND ddb.table_name='test_view'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["ddb","comment"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":14,"column_names":["pg","description"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":62,"query_location_length":94,"left":{"type":"BASE_TABLE","alias":"ddb","sample":null,"query_location":40,"query_location_length":21,"schema_name":"","table_name":"duckdb_columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_columns"]}},"right":{"type":"BASE_TABLE","alias":"pg","sample":null,"query_location":72,"query_location_length":20,"schema_name":"","table_name":"pg_description","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_description"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":100,"query_location_length":56,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":11,"column_names":["pg","classoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":16,"column_names":["ddb","database_oid"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":133,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":9,"column_names":["pg","objoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":13,"column_names":["ddb","table_oid"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":163,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":163,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":11,"column_names":["pg","objsubid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":14,"column_names":["ddb","table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":11,"literal":{"kind":"STRING","text":"test_view"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM idx.terms","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"idx","table_name":"terms","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["idx","terms"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM helloo;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"helloo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["helloo"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min_from_tbl(integers2, i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"min_from_tbl","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":9,"column_names":["integers2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min_from_tbl"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from m(a := 'b', b := 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["m"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM query('SELECT 42;;;--- hello;');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":24,"literal":{"kind":"STRING","text":"SELECT 42;;;--- hello;"}}}],"qualified_name":{"path":["query"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM query_table(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query_table","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["query_table"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f.x FROM query_table('tbl_int') as f(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["f","x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"f","sample":null,"query_location":16,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query_table","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":9,"literal":{"kind":"STRING","text":"tbl_int"}}}],"qualified_name":{"path":["query_table"]}},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT my_extract({'a': {'b': 42}})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"my_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":24,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["my_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT triple_add1(1, 2, 3, 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"triple_add1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["triple_add1"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT plus42(a) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"plus42","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["plus42"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select f(x:=a) from (select 41) t(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"f","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":12,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["f"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":20,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"41"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select arithmetic(100, 200, 300)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"arithmetic","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}],"qualified_name":{"path":["arithmetic"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT pg_typeof(#1) FROM (SELECT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"pg_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":17,"query_location_length":2,"index":1}}],"qualified_name":{"path":["pg_typeof"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":26,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select m(0, 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["m"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from m(s := 'ab')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"s","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"s","query_location":12,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}}],"qualified_name":{"path":["m"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT having_macro(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"having_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["having_macro"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT IFELSE(1,'true','false')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"ifelse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"qualified_name":{"path":["ifelse"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT weird_avg(a) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"weird_avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["weird_avg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT my_macro(x := 42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"my_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["my_macro"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"(SELECT* FROM xt(1, 'tom') EXCEPT SELECT* FROM xt(20,'tom' )) INTERSECT SELECT* FROM xt(100,'harry');","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"xt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"STRING","text":"tom"}}}],"qualified_name":{"path":["xt"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":47,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"xt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":5,"literal":{"kind":"STRING","text":"tom"}}}],"qualified_name":{"path":["xt"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":78,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":85,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"xt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":7,"literal":{"kind":"STRING","text":"harry"}}}],"qualified_name":{"path":["xt"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM card_select(_name:='king', _val_max:=13) ORDER BY suit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["suit"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":15,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"card_select","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_name","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"king"}}},{"name":"_val_max","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_val_max","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["card_select"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from dates_between('2021-01-01', '2021-02-04');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"dates_between","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-01-01"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-02-04"}}}],"qualified_name":{"path":["dates_between"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT my_sum(i) FILTER (WHERE i \u003e 3) OVER () FROM range(10) t(i) LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":38,"function_name":"my_sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["my_sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":51,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p.oid = c.parent_schema_oid\nFROM duckdb_schemas() c, duckdb_schemas() p\nWHERE c.schema_name = 'child' AND p.schema_name = 's1' AND p.database_name = 'memory';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["p","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":19,"column_names":["c","parent_schema_oid"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":43,"left":{"type":"TABLE_FUNCTION","alias":"c","sample":null,"query_location":40,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_schemas","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_schemas"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"p","sample":null,"query_location":60,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_schemas","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_schemas"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":85,"query_location_length":79,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":13,"column_names":["c","schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":7,"literal":{"kind":"STRING","text":"child"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":13,"column_names":["p","schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":4,"literal":{"kind":"STRING","text":"s1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":138,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":15,"column_names":["p","database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":8,"literal":{"kind":"STRING","text":"memory"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM memory.s1.s2.s3.s4.v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"s4","table_name":"v","column_name_alias":[],"catalog_name":"memory","at_clause":null,"qualified_name":{"path":["memory","s1","s2","s3","s4","v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_schemas() WHERE database_name = 'memory' AND schema_name = 'child' AND parent_schema = 's2';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_schemas","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_schemas"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":75,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"literal":{"kind":"STRING","text":"memory"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":11,"column_names":["schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":7,"literal":{"kind":"STRING","text":"child"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":13,"column_names":["parent_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"STRING","text":"s2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM s1.s2.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"s2","table_name":"t","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT schema_name, view_name FROM duckdb_views() WHERE view_name = 'v';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":9,"column_names":["view_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_views","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_views"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT schema_name, type_name FROM duckdb_types() WHERE type_name = 'mood';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":9,"column_names":["type_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":9,"column_names":["type_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"literal":{"kind":"STRING","text":"mood"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_types() WHERE type_name = 'mood';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":9,"column_names":["type_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"literal":{"kind":"STRING","text":"mood"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_text('{TEST_DIR}/nested_export/schema.sql') WHERE content LIKE '%CREATE SCHEMA s1.s2.s3;%';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/nested_export/schema.sql"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":32,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":27,"literal":{"kind":"STRING","text":"%CREATE SCHEMA s1.s2.s3;%"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database_name, schema_name FROM duckdb_views() WHERE view_name = 'v';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_views","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_views"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database_name, schema_name, table_name FROM duckdb_tables() WHERE table_name = 'tt';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"STRING","text":"tt"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT memory.s1.s2.tbl.s.a FROM s1.s2.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":20,"column_names":["memory","s1","s2","tbl","s","a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":9,"schema_name":"s2","table_name":"tbl","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.i FROM s1.s2.tbl AS t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","i"]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":16,"query_location_length":14,"schema_name":"s2","table_name":"tbl","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(i) FROM parent.child.big;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":16,"schema_name":"child","table_name":"big","column_name_alias":[],"catalog_name":"parent","at_clause":null,"qualified_name":{"path":["parent","child","big"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(i) FROM parent.child.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":14,"schema_name":"child","table_name":"t","column_name_alias":[],"catalog_name":"parent","at_clause":null,"qualified_name":{"path":["parent","child","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_functions() WHERE function_name IN ('double', 'tm');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_functions"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":63,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["function_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":8,"literal":{"kind":"STRING","text":"double"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"STRING","text":"tm"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT max(nextval('{db}.seq_incr')), min(nextval('{db}.seq_desc')), max(nextval('{db}.seq_cycle')) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":24,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"{db}.seq_incr"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":29,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":24,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":15,"literal":{"kind":"STRING","text":"{db}.seq_desc"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":30,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":16,"literal":{"kind":"STRING","text":"{db}.seq_cycle"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":105,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nextval('seq3') from generate_series(0,20);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"seq3"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT setval('myseq', 42, false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"setval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"myseq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["setval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT setval(NULL, 42, true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"setval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["setval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('persisted_seq');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":15,"literal":{"kind":"STRING","text":"persisted_seq"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nextval('\"seq\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"\"seq\""}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select currval('fresh');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"fresh"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v, a FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM db2.main.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":12,"schema_name":"main","table_name":"tbl","column_name_alias":[],"catalog_name":"db2","at_clause":null,"qualified_name":{"path":["db2","main","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test_catalog.missing_schema.missing_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":41,"schema_name":"missing_schema","table_name":"missing_table","column_name_alias":[],"catalog_name":"test_catalog","at_clause":null,"qualified_name":{"path":["test_catalog","missing_schema","missing_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM memory.main.test_temp_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":27,"schema_name":"main","table_name":"test_temp_table","column_name_alias":[],"catalog_name":"memory","at_clause":null,"qualified_name":{"path":["memory","main","test_temp_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM out_of_path.oop_view;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"out_of_path","table_name":"oop_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["out_of_path","oop_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT main.nextval('main_sequence');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"nextval","schema":"main","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":15,"literal":{"kind":"STRING","text":"main_sequence"}}}],"qualified_name":{"path":["main","nextval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT in_main FROM table_with_same_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["in_main"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":20,"schema_name":"","table_name":"table_with_same_name","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table_with_same_name"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * from v1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM v1 ORDER BY i DESC LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sql FROM duckdb_views() WHERE view_name = 'rv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sql"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":16,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_views","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_views"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"STRING","text":"rv"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from v1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(DISTINCT s COLLATE NOCASE) FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":22,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('collation_sequence');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":20,"literal":{"kind":"STRING","text":"collation_sequence"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(DISTINCT s COLLATE de ORDER BY s COLLATE de),\n string_agg(DISTINCT s COLLATE de, ',' ORDER BY s COLLATE de)\nFROM (VALUES ('GÖTHE'), ('Z'), ('GÖTHE')) t(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":43,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["s"]},"collation":"de"}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":21,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]},"collation":"de"}}],"qualified_name":{"path":["list"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":60,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":112,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["s"]},"collation":"de"}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":85,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["s"]},"collation":"de"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":131,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":8,"literal":{"kind":"STRING","text":"GÖTHE"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":3,"literal":{"kind":"STRING","text":"Z"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":8,"literal":{"kind":"STRING","text":"GÖTHE"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'a' NOT LIKE 'A' COLLATE NOCASE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":23,"function_name":"!~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":20,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"NOCASE"}}],"qualified_name":{"path":["!~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'öX' COLLATE NOACCENT NOT ILIKE 'Ö%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":11,"function_name":"!~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"öX"}},"collation":"NOACCENT"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":5,"literal":{"kind":"STRING","text":"Ö%"}}}],"qualified_name":{"path":["!~~*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 'b' COLLATE NOCASE} != {'x': 'B'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":39,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLLATE","type":"COLLATE","alias":"x","query_location":13,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},"collation":"NOCASE"}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":10,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': {'y': {'z': 'HELLO' COLLATE NOCASE}}} = {'x': {'y': {'z': 'hello'}}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":74,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":13,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":19,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"z","expression":{"class":"COLLATE","type":"COLLATE","alias":"z","query_location":25,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}},"collation":"NOCASE"}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":28,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":59,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":65,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":71,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n creditCard_number as \"pk\", CustomerTable.pk AS inner_pk\nfrom\n CreditCardTable JOIN CustomerTable USING (id)\norder by\n \"pk\" COLLATE NOCASE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":129,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":4,"column_names":["pk"]},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"pk","query_location":9,"query_location_length":17,"column_names":["creditCard_number"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"inner_pk","query_location":36,"query_location_length":16,"column_names":["CustomerTable","pk"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":88,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":15,"schema_name":"","table_name":"CreditCardTable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CreditCardTable"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":13,"schema_name":"","table_name":"CustomerTable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CustomerTable"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["id"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s1 COLLATE de = 'x' COLLATE de FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":30,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["s1"]},"collation":"de"},"right":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":23,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"collation":"de"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT icu_sort_key(chr(19969), 'en')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"literal":{"kind":"INTEGER","text":"19969"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"STRING","text":"en"}}}],"qualified_name":{"path":["icu_sort_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT icu_sort_key('-', 'th')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"STRING","text":"th"}}}],"qualified_name":{"path":["icu_sort_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(DISTINCT s COLLATE NOCASE), count(DISTINCT s)\nFROM strings WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":22,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select reverse(a collate de) from tbl order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":15,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]},"collation":"de"}}],"qualified_name":{"path":["reverse"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM collate_test WHERE 'mórritz' BETWEEN s AND t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":51,"query_location_length":15,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"literal":{"kind":"STRING","text":"mórritz"}},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["s"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["t"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM collate_test WHERE s='hello' COLLATE NOCASE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["s"]},"right":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":35,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},"collation":"NOCASE"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains(['héllo', 'world'], 'HELLO' COLLATE NOACCENT.NOCASE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":42,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}},"collation":"NOACCENT.NOCASE"}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([{'x': 'héllo'}], {'x': 'HELLO' COLLATE NOACCENT.NOCASE})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":72,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLLATE","type":"COLLATE","alias":"x","query_location":46,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}},"collation":"NOACCENT.NOCASE"}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([('HELLO', 'é')], ('hello' COLLATE NOCASE, 'e' COLLATE NOACCENT))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":80,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":15,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"STRING","text":"é"}}}],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":46,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":41,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":65,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}},"collation":"NOACCENT"}}],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::VARCHAR[2] GROUP BY NULL::VARCHAR[2];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::INTERVAL = ANY (SELECT INTERVAL 1 DAY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":44,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM collate_test ORDER BY s COLLATE NOCASE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":36,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select trim(b collate noaccent, '\u003c\u003e') from tbl order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":12,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["b"]},"collation":"noaccent"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"STRING","text":"\u003c\u003e"}}}],"qualified_name":{"path":["trim"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM collate_test WHERE s='hEllô'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":8,"literal":{"kind":"STRING","text":"hEllô"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select icu_sort_key('æ', 'icu_noaccent');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"STRING","text":"æ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":14,"literal":{"kind":"STRING","text":"icu_noaccent"}}}],"qualified_name":{"path":["icu_sort_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strpos('HELLO' COLLATE NOCASE, 'el')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"strpos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"STRING","text":"el"}}}],"qualified_name":{"path":["strpos"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strpos('HELLO WORLD' COLLATE NOCASE, 'o w')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"strpos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":13,"literal":{"kind":"STRING","text":"HELLO WORLD"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"o w"}}}],"qualified_name":{"path":["strpos"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strpos('HÉLLO' COLLATE NOCASE, 'éll')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"strpos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"HÉLLO"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"éll"}}}],"qualified_name":{"path":["strpos"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 7;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT constraint_text\nFROM duckdb_constraints()\nWHERE table_name = 'george'\n AND constraint_type = 'FOREIGN KEY';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["constraint_text"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_constraints","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_constraints"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":8,"literal":{"kind":"STRING","text":"george"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":15,"column_names":["constraint_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":13,"literal":{"kind":"STRING","text":"FOREIGN KEY"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM album ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"album","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["album"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_name, column_default, is_nullable FROM duckdb_columns() WHERE table_name = 't' ORDER BY column_index;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":12,"column_names":["column_index"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":14,"column_names":["column_default"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":11,"column_names":["is_nullable"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_parquet('{TEST_DIR}/async_lifecycle_per_thread/*.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":49,"literal":{"kind":"STRING","text":"{TEST_DIR}/async_lifecycle_per_thread/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT replace(content, chr(10), '|') FROM read_text('{TEST_DIR}/copy_csv_user_column_{conversion}.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["replace"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":50,"literal":{"kind":"STRING","text":"{TEST_DIR}/copy_csv_user_column_{conversion}.csv"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p FROM read_parquet('{TEST_DIR}/copy_order_by_subquery.parquet', file_row_number = true) ORDER BY file_row_number","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":15,"column_names":["file_row_number"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["p"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":43,"literal":{"kind":"STRING","text":"{TEST_DIR}/copy_order_by_subquery.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT columns, comment FROM sniff_csv('{TEST_DIR}/test.csv', null_padding = true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["columns"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEST_DIR}/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_csv_auto( ['{DATA_DIR}/csv/error/mismatch/half1.csv', '{DATA_DIR}/csv/error/mismatch/half2.csv'], ignore_errors=true, sample_size=1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":137,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":86,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/half1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/half2.csv"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":124,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_3.csv', names=['a','b','c','d'], store_rejects=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":91,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_3.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_15.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_15.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_27.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_27.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_39.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_39.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_51.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', '|':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_51.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"|","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"|","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_63.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_63.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_75.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_75.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_87.csv', auto_detect=false, buffer_size=42, columns={'a2.0-22222222222222222.0222-\u003e\u003e':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_87.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a2.0-22222222222222222.0222-\u003e\u003e","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a2.0-22222222222222222.0222-\u003e\u003e","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/4793/crashes/case_1.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', escape='\"', quote='\"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":177,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/4793/crashes/case_1.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":108,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":122,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":137,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(bignumber), typeof(bignumber::DECIMAL(25,3)) FROM read_csv('{DATA_DIR}/csv/big_number.csv', COLUMNS={'bignumber': 'DECIMAL(25,3)'}, QUOTE='\"', DELIM=',');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":9,"column_names":["bignumber"]}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":32,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":9,"column_names":["bignumber"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"query_location_length":103,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/big_number.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":7,"column_names":["COLUMNS"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"bignumber","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bignumber","query_location":128,"query_location_length":15,"literal":{"kind":"STRING","text":"DECIMAL(25,3)"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":5,"column_names":["QUOTE"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":5,"column_names":["DELIM"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(#3) from read_csv_auto('{DATA_DIR}/csv/test/multi_column_string.csv', COLUMN_TYPES=STRUCT_PACK( column2 := 'HUGEINT')) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":14,"query_location_length":2,"index":3}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":110,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":45,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/multi_column_string.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":47,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":12,"column_names":["COLUMN_TYPES"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":34,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column2","query_location":122,"query_location_length":9,"literal":{"kind":"STRING","text":"HUGEINT"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"(FROM movie_info EXCEPT FROM movie_info2)\nUNION ALL\n(FROM movie_info2 EXCEPT FROM movie_info)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":6,"query_location_length":10,"schema_name":"","table_name":"movie_info","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["movie_info"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":11,"schema_name":"","table_name":"movie_info2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["movie_info2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":11,"schema_name":"","table_name":"movie_info2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["movie_info2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":10,"schema_name":"","table_name":"movie_info","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["movie_info"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/nullterm.csv', quote = '\"', escape = '\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":29,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullterm.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"describe from '{DATA_DIR}/csv/double_quoted_header.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":41,"schema_name":"","table_name":"{DATA_DIR}/csv/double_quoted_header.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/double_quoted_header.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column0, column1 FROM test ORDER BY column0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":7,"column_names":["column0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["column0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["column1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT allo, teost, _ FROM test ORDER BY allo;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["allo"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["allo"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["teost"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["_"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv_auto ('{TEST_DIR}/csv_file.csv', auto_type_candidates=['BIGINT', 'DOUBLE', 'VARCHAR']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":95,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":31,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(column0), typeof(column1), typeof(column2) FROM read_csv_auto ('{TEST_DIR}/csv_file.csv', auto_type_candidates=['SMALLINT','BIGINT', 'DOUBLE', 'FLOAT','VARCHAR']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":7,"column_names":["column2"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"query_location_length":114,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":71,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":50,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":10,"literal":{"kind":"STRING","text":"SMALLINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":7,"literal":{"kind":"STRING","text":"FLOAT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, b, t, tf, d, df FROM test ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["t"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["tf"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["df"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * from read_csv_auto('{DATA_DIR}/csv/escape.csv', escape=']', header = 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":27,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/escape.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":3,"literal":{"kind":"STRING","text":"]"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_name, column_type\nFROM (\n\tDESCRIBE SELECT *\n\tFROM read_csv(\n\t\t['{TEST_DIR}/scanner_schema_1.csv', '{TEST_DIR}/scanner_schema_2.csv'],\n\t\tnull_padding = true,\n\t\tfiles_to_sniff = -1\n\t)\n)\nORDER BY column_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":11,"column_names":["column_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":160,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":56,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"query_location_length":131,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":70,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/scanner_schema_1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/scanner_schema_2.csv"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":173,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from read_csv('{DATA_DIR}/csv/test/invalid_utf_quoted.csv',columns = {'col1': 'VARCHAR','col2': 'VARCHAR','col3': 'VARCHAR'}, auto_detect=false, header = 0, delim = ',', quote = '\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":177,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/invalid_utf_quoted.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":65,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":55,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":78,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":96,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":114,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":126,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":145,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/empty.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/empty.csv"}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_csv('{TEST_DIR}/comment_roundtrip.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":34,"literal":{"kind":"STRING","text":"{TEST_DIR}/comment_roundtrip.csv"}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT commas, periods FROM decimal_separators3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["commas"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["periods"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":19,"schema_name":"","table_name":"decimal_separators3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_separators3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/real/ontime_sample.csv', dtypes={'Quarter': 42}) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":78,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/ontime_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"Quarter","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Quarter","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(a), typeof(b), typeof(c)\nFROM read_csv_auto('{TEST_DIR}/ubn*.csv', UNION_BY_NAME=TRUE, dtypes={'xxx': TINYINT})\nLIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":13,"column_names":["UNION_BY_NAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"xxx","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"xxx","query_location":117,"query_location_length":7,"column_names":["TINYINT"]}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/test/date.csv', columns = {'d': 'DATE'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/date.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":71,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select id, value, CAST(part AS INT) as part_cast, CAST(date AS DATE) as date_cast from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/types/*/*/test.csv', HIVE_PARTITIONING=1) where part_cast \u003e 0 and part_cast \u003c 5000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["value"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"part_cast","query_location":18,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["part"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"date_cast","query_location":50,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["date"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":87,"query_location_length":89,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/hive-partitioning/types/*/*/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":156,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":183,"query_location_length":34,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":183,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":9,"column_names":["part_cast"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":201,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":9,"column_names":["part_cast"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select filename.replace('\\', '/').split('/')[-2] from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', HIVE_PARTITIONING=1, FILENAME=1) order by 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":44,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":10,"function_name":"split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"replace","schema":"filename","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["filename","replace"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["split"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":103,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":54,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":124,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers_load","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"integers_load","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers_load"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select column00, column01, column02, column03 from read_csv_auto('{DATA_DIR}/csv/real/lineitem_sample.csv', names=[]) LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["column00"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":8,"column_names":["column01"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":8,"column_names":["column02"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":8,"column_names":["column03"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/header.csv', names = ['a'], header = false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":27,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/header.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv('{DATA_DIR}/csv/nul_field_start.csv', columns={'a': 'VARCHAR', 'b': 'VARCHAR', 'c': 'VARCHAR'}, quote='', escape='', header=false) where a \u003c\u003e 'aaaa'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":139,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nul_field_start.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":56,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":48,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":75,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":91,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":107,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":140,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":160,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":6,"literal":{"kind":"STRING","text":"aaaa"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/null/multiple_nulls.csv', auto_detect=false, delim=',', quote='\"', escape='\"', skip=0, header=true, columns={'name': 'VARCHAR', 'age': 'VARCHAR', 'height': 'VARCHAR'}, nullstr = NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":209,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":40,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/null/multiple_nulls.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":66,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":58,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":148,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":199,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":7,"column_names":["nullstr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/null/multiple_nulls.csv', auto_detect=false, delim=',', quote='\"', escape='\"', skip=0, header=true, columns={'name': 'VARCHAR', 'age': 'VARCHAR', 'height': 'VARCHAR'}, nullstr = ['','none','null'], force_not_null = ['dont_exist']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":256,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":40,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/null/multiple_nulls.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":66,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":58,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":148,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":199,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":7,"column_names":["nullstr"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":209,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":210,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":6,"literal":{"kind":"STRING","text":"none"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["list_value"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":229,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":14,"column_names":["force_not_null"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":246,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":247,"query_location_length":12,"literal":{"kind":"STRING","text":"dont_exist"}}}],"qualified_name":{"path":["list_value"]}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM sniff_csv('{DATA_DIR}/csv/14512.csv', names := [NULL]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/14512.csv"}}},{"name":"names","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"names","query_location":52,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/glob/a?/a*.csv') ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/glob/a?/a*.csv"}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM glob('{DATA_DIR}\\csv\\glob\\*\\*.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":29,"literal":{"kind":"STRING","text":"{DATA_DIR}\\csv\\glob\\*\\*.csv"}}}],"qualified_name":{"path":["glob"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv_auto([]::INT[]) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":7,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv_auto('{DATA_DIR}/csv/issue6764.csv', all_varchar=true, skip=1, null_padding=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":90,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/issue6764.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/multidelimiter/aa_delim_small.csv', delim = 'aa', header = False, buffer_size = 8)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":50,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multidelimiter/aa_delim_small.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"STRING","text":"aa"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM read_csv('{DATA_DIR}/csv/nullpadding_commas.csv', sep=',', columns={'a': INT, 'b': INT, 'c': INT, 'd': INT}, ignore_errors=True, null_padding=False)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":149,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullpadding_commas.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":48,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":40,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":95,"query_location_length":3,"column_names":["INT"]}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":105,"query_location_length":3,"column_names":["INT"]}},{"name":"c","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c","query_location":115,"query_location_length":3,"column_names":["INT"]}},{"name":"d","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"d","query_location":125,"query_location_length":3,"column_names":["INT"]}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":151,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(a) FROM read_csv('{DATA_DIR}/csv/test/multi_column_integer_rn.csv', COLUMNS=STRUCT_PACK(a := 'INTEGER', b := 'INTEGER', c := 'INTEGER'), auto_detect='true', delim = '|', buffer_size=30)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":178,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":49,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/multi_column_integer_rn.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":7,"column_names":["COLUMNS"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":59,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":105,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":121,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":137,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":182,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE a WHEN 42 THEN 100 WHEN 43 THEN 200 ELSE 300 END FROM exprtest","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":53,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":8,"schema_name":"","table_name":"exprtest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exprtest"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/auto/test_single_column_rn.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/auto/test_single_column_rn.csv"}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/null_string.csv', header = false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/null_string.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/error/quotednewlines.csv', parallel=true, sep=',', quote='\"', buffer_size=100, columns={'h1': varchar, 'h2': varchar}, header=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":156,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/quotednewlines.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"h1","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h1","query_location":133,"query_location_length":7,"column_names":["varchar"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":148,"query_location_length":7,"column_names":["varchar"]}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":158,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), count(DISTINCT id) FROM read_csv('{TEST_DIR}/rrrn_mid.csv',\n auto_detect=false, header=true, delim=',', columns={'id':'BIGINT','val':'VARCHAR'},\n strict_mode=false, ignore_errors=true, buffer_size=4096, max_line_size=2048, parallel=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":18,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":219,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/rrrn_mid.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":124,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":31,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":138,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"val","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"val","query_location":153,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":188,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":202,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":208,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4096"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":226,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":13,"column_names":["max_line_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":246,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":246,"query_location_length":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(i) FROM read_csv('{TEST_DIR}/csv_ra_single.csv', buffer_size=65536)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/csv_ra_single.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"literal":{"kind":"INTEGER","text":"65536"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_single_csv_file('data/csv/tpcds_14.csv', skip=2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_csv_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":23,"literal":{"kind":"STRING","text":"data/csv/tpcds_14.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}}],"qualified_name":{"path":["read_single_csv_file"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(filename) FROM read_csv('data/csv/error/mismatch/*.csv', ignore_errors=true, filename=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":31,"literal":{"kind":"STRING","text":"data/csv/error/mismatch/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_type FROM (DESCRIBE SELECT * FROM read_csv('{TEST_DIR}/sniff_*.csv', files_to_sniff=-1)) WHERE column_name='a'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":78,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":24,"literal":{"kind":"STRING","text":"{TEST_DIR}/sniff_*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/rejects/incorrect_columns/many_columns.csv',\n columns = {'a': 'INTEGER', 'b': 'INTEGER', 'c': 'INTEGER', 'd': 'INTEGER'},\n store_rejects=true, auto_detect=false, header = 1, strict_mode=True);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":227,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":59,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/incorrect_columns/many_columns.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":74,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":64,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":109,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":125,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":141,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":157,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":173,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":193,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":212,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":224,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT table_name FROM information_schema.tables\nWHERE table_name IN ('foo_bar', 'baz', 'foo', 'bar_baz') ORDER BY table_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":10,"column_names":["table_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":25,"schema_name":"information_schema","table_name":"tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","tables"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":69,"query_location_length":36,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":10,"column_names":["table_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":9,"literal":{"kind":"STRING","text":"foo_bar"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"literal":{"kind":"STRING","text":"baz"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":9,"literal":{"kind":"STRING","text":"bar_baz"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/error/mismatch/bad*.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n store_rejects = true, auto_detect=false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":173,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":40,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":57,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":93,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":112,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":131,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/dr_who.csv', columns={ 'date': 'DATE', 'datetime': 'TIMESTAMPTZ', 'time': 'TIME', 'timestamp': 'TIMESTAMP', 'time_tz': 'TIMETZ' }, store_rejects=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":183,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/dr_who.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":116,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":108,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"date","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"date","query_location":69,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"datetime","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"datetime","query_location":89,"query_location_length":13,"literal":{"kind":"STRING","text":"TIMESTAMPTZ"}}},{"name":"time","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time","query_location":112,"query_location_length":6,"literal":{"kind":"STRING","text":"TIME"}}},{"name":"timestamp","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"timestamp","query_location":133,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}},{"name":"time_tz","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time_tz","query_location":157,"query_location_length":8,"literal":{"kind":"STRING","text":"TIMETZ"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(first(column0)), typeof(first(column1)), COUNT(*), SUM(column0), MAX(len(column1)) FROM read_csv_auto(\n '{DATA_DIR}/csv/error/mismatch/big_bad*.csv',\n sample_size=1,\n rejects_scan = 'rejects_scan_3',\n rejects_table = 'rejects_errors_3'\n );","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["first"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["first"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":17,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":12,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["len"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":166,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/big_bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":16,"literal":{"kind":"STRING","text":"rejects_scan_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":228,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":18,"literal":{"kind":"STRING","text":"rejects_errors_3"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(first(column0)), typeof(first(column1)), COUNT(*), SUM(column0), MAX(len(column1)) FROM read_csv_auto(\n '{DATA_DIR}/csv/error/mismatch/big_bad*.csv',\n sample_size=1,\n rejects_scan = 'rejects_scan_3',\n store_rejects = false\n );","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["first"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["first"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":17,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":12,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["len"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":153,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/big_bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":16,"literal":{"kind":"STRING","text":"rejects_scan_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":228,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/error/mismatch/bad.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n ignore_errors=true,\n rejects_table='csv_rejects_table',\n rejects_limit=-1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":212,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/bad.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":57,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":19,"literal":{"kind":"STRING","text":"csv_rejects_table"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":209,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":13,"column_names":["rejects_limit"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/multiple_casts_flush.csv',\n columns = {'name': 'VARCHAR', 'age': 'INTEGER', 'current_day': 'DATE', 'tomorrow': 'DATE'},\n store_rejects = true, auto_detect=false, header = 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":228,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/multiple_errors/multiple_casts_flush.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":90,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":80,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":104,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":122,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":148,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"tomorrow","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tomorrow","query_location":168,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":222,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/invalid_utf_cast.csv',\n columns = {'name': 'VARCHAR', 'age': 'INTEGER', 'current_day': 'DATE', 'barks': 'INTEGER'},\n store_rejects = true, auto_detect=false, header = 1, max_line_size=40);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":242,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":61,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/multiple_errors/invalid_utf_cast.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":90,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":80,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":100,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":118,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":144,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"barks","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"barks","query_location":161,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":177,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":199,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":218,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":230,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":13,"column_names":["max_line_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/unescaped_quotes/end_quote.csv', columns = {'a':'varchar'}, header = false, quote = '\"', strict_mode = false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":134,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/unescaped_quotes/end_quote.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":78,"query_location_length":9,"literal":{"kind":"STRING","text":"varchar"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from read_csv('{DATA_DIR}/csv/bug_12596.csv', skip=1, delim=',', header=false, columns={'c1': 'INTEGER', 'c2': 'INTEGER', 'column2': 'VARCHAR'}, null_padding = true, parallel = false, auto_detect = false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":199,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/bug_12596.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":64,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":56,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":94,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c2","query_location":111,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"column2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column2","query_location":133,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":145,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":166,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3.csv', max_line_size=-1003718790012071149, ignore_errors=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":92,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":13,"column_names":["max_line_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-1003718790012071149"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/15.csv', rejects_table='d');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":27,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/15.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv_auto('{DATA_DIR}/csv/null_comparison.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/null_comparison.csv"}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(bam) FROM test WHERE bam = '!';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["bam"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["bam"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"!"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/inconsistencies/line_with_spaces.csv', null_padding = true, ignore_errors = true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":106,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/inconsistencies/line_with_spaces.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '{DATA_DIR}/csv/comments/simple_mid_line.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":45,"schema_name":"","table_name":"{DATA_DIR}/csv/comments/simple_mid_line.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/comments/simple_mid_line.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '{DATA_DIR}/csv/comments/big.csv' limit 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":33,"schema_name":"","table_name":"{DATA_DIR}/csv/comments/big.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/comments/big.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, b, c FROM lineitem ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('{TEST_DIR}/multibyte_delimiter.csv', delim='é')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":36,"literal":{"kind":"STRING","text":"{TEST_DIR}/multibyte_delimiter.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"STRING","text":"é"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) from venue_2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"venue_2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["venue_2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv(\n '{DATA_DIR}/csv/mixed_double.csv',\n auto_detect = false,\n header = true,\n columns = {\n 'A': 'INTEGER',\n 'B': 'DOUBLE',\n },\n ignore_errors = true\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":186,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":33,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/mixed_double.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":60,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":50,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"A","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"A","query_location":126,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"B","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"B","query_location":148,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_csv('{TEMP_DIR}/typed_null_options.csv', auto_type_candidates := ['BIGINT', NULL]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":87,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEMP_DIR}/typed_null_options.csv"}}},{"name":"auto_type_candidates","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"auto_type_candidates","query_location":91,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '{DATA_DIR}/csv/timestamp_timezone.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":39,"schema_name":"","table_name":"{DATA_DIR}/csv/timestamp_timezone.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/timestamp_timezone.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof(#1) FROM read_csv('{DATA_DIR}/csv/dates_special_format.csv', dateformat = '%b %-d, %Y', columns = {'Date': 'DATE'}) limit 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":14,"query_location_length":2,"index":1}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":106,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/dates_special_format.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":12,"literal":{"kind":"STRING","text":"%b %-d, %Y"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"Date","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Date","query_location":121,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM dates ORDER BY d","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(col_a) FROM read_csv(\n '{DATA_DIR}/csv/decimal.csv',\n auto_type_candidates=['NULL', 'DECIMAL', 'VARCHAR']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["col_a"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":101,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":28,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/decimal.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":51,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":6,"literal":{"kind":"STRING","text":"NULL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":9,"literal":{"kind":"STRING","text":"DECIMAL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT right(value, 8) FROM read_csv('{DATA_DIR}/csv/encodings/straddle_cp932_1k.csv.gz', header=true, all_varchar=true, encoding='ibm-943_P15A-2003', buffer_size=1024) WHERE key='z'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"right","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["right"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":140,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":51,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/encodings/straddle_cp932_1k.csv.gz"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":8,"column_names":["encoding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":19,"literal":{"kind":"STRING","text":"ibm-943_P15A-2003"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":151,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1024"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":175,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":3,"column_names":["key"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column1, column2, column3, parse_filename(filename) FROM read_csv('{DATA_DIR}/csv/filename_filter/*.csv', filename=true, union_by_name=true) WHERE filename like '%d.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["column1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["column2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["column3"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":24,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"query_location_length":83,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/filename_filter/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":13,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":8,"literal":{"kind":"STRING","text":"%d.csv"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT abs_file_name FROM read_csv('{DATA_DIR}/csv/header_only.csv', header=True, ignore_errors=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["abs_file_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":75,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/header_only.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/hits_problematic.csv', auto_detect=false, delim=',', quote='\"', escape='\\', new_line='\\n', skip=0, comment='', header=false, columns={'column000': 'BIGINT', 'column001': 'BIGINT', 'column002': 'VARCHAR', 'column003': 'BIGINT', 'column004': 'TIMESTAMP', 'column005': 'DATE', 'column006': 'BIGINT', 'column007': 'BIGINT', 'column008': 'BIGINT', 'column009': 'BIGINT', 'column010': 'BIGINT', 'column011': 'BIGINT', 'column012': 'BIGINT', 'column013': 'VARCHAR', 'column014': 'VARCHAR', 'column015': 'BIGINT', 'column016': 'BIGINT', 'column017': 'BIGINT', 'column018': 'BIGINT', 'column019': 'BIGINT', 'column020': 'BIGINT', 'column021': 'BIGINT', 'column022': 'BIGINT', 'column023': 'BIGINT', 'column024': 'BIGINT', 'column025': 'DOUBLE', 'column026': 'BIGINT', 'column027': 'BIGINT', 'column028': 'BIGINT', 'column029': 'VARCHAR', 'column030': 'BIGINT', 'column031': 'BIGINT', 'column032': 'BIGINT', 'column033': 'BIGINT', 'column034': 'VARCHAR', 'column035': 'VARCHAR', 'column036': 'BIGINT', 'column037': 'BIGINT', 'column038': 'BIGINT', 'column039': 'VARCHAR', 'column040': 'BIGINT', 'column041': 'BIGINT', 'column042': 'BIGINT', 'column043': 'BIGINT', 'column044': 'BIGINT', 'column045': 'TIMESTAMP', 'column046': 'BIGINT', 'column047': 'BIGINT', 'column048': 'BIGINT', 'column049': 'BIGINT', 'column050': 'VARCHAR', 'column051': 'BIGINT', 'column052': 'BIGINT', 'column053': 'BIGINT', 'column054': 'BIGINT', 'column055': 'BIGINT', 'column056': 'VARCHAR', 'column057': 'BIGINT', 'column058': 'BIGINT', 'column059': 'BIGINT', 'column060': 'BIGINT', 'column061': 'BIGINT', 'column062': 'BIGINT', 'column063': 'VARCHAR', 'column064': 'TIMESTAMP', 'column065': 'BIGINT', 'column066': 'BIGINT', 'column067': 'BIGINT', 'column068': 'BIGINT', 'column069': 'BIGINT', 'column070': 'BIGINT', 'column071': 'BIGINT', 'column072': 'BIGINT', 'column073': 'BIGINT', 'column074': 'VARCHAR', 'column075': 'VARCHAR', 'column076': 'VARCHAR', 'column077': 'VARCHAR', 'column078': 'BIGINT', 'column079': 'BIGINT', 'column080': 'BIGINT', 'column081': 'BIGINT', 'column082': 'BIGINT', 'column083': 'BIGINT', 'column084': 'BIGINT', 'column085': 'BIGINT', 'column086': 'VARCHAR', 'column087': 'BIGINT', 'column088': 'VARCHAR', 'column089': 'VARCHAR', 'column090': 'BIGINT', 'column091': 'VARCHAR', 'column092': 'VARCHAR', 'column093': 'VARCHAR', 'column094': 'VARCHAR', 'column095': 'VARCHAR', 'column096': 'VARCHAR', 'column097': 'VARCHAR', 'column098': 'VARCHAR', 'column099': 'VARCHAR', 'column100': 'VARCHAR', 'column101': 'BIGINT', 'column102': 'BIGINT', 'column103': 'BIGINT', 'column104': 'BIGINT'}, dateformat='%Y-%m-%d');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":2631,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/hits_problematic.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":94,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"STRING","text":"\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":7,"column_names":["comment"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":141,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":155,"query_location_length":2457,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":2449,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column000","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column000","query_location":177,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column001","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column001","query_location":200,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column002","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column002","query_location":223,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column003","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column003","query_location":247,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column004","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column004","query_location":270,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}},{"name":"column005","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column005","query_location":296,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"column006","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column006","query_location":317,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column007","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column007","query_location":340,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column008","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column008","query_location":363,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column009","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column009","query_location":386,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column010","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column010","query_location":409,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column011","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column011","query_location":432,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column012","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column012","query_location":455,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column013","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column013","query_location":478,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column014","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column014","query_location":502,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column015","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column015","query_location":526,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column016","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column016","query_location":549,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column017","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column017","query_location":572,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column018","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column018","query_location":595,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column019","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column019","query_location":618,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column020","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column020","query_location":641,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column021","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column021","query_location":664,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column022","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column022","query_location":687,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column023","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column023","query_location":710,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column024","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column024","query_location":733,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column025","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column025","query_location":756,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"column026","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column026","query_location":779,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column027","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column027","query_location":802,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column028","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column028","query_location":825,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column029","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column029","query_location":848,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column030","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column030","query_location":872,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column031","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column031","query_location":895,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column032","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column032","query_location":918,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column033","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column033","query_location":941,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column034","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column034","query_location":964,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column035","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column035","query_location":988,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column036","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column036","query_location":1012,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column037","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column037","query_location":1035,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column038","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column038","query_location":1058,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column039","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column039","query_location":1081,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column040","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column040","query_location":1105,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column041","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column041","query_location":1128,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column042","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column042","query_location":1151,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column043","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column043","query_location":1174,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column044","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column044","query_location":1197,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column045","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column045","query_location":1220,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}},{"name":"column046","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column046","query_location":1246,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column047","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column047","query_location":1269,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column048","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column048","query_location":1292,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column049","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column049","query_location":1315,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column050","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column050","query_location":1338,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column051","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column051","query_location":1362,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column052","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column052","query_location":1385,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column053","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column053","query_location":1408,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column054","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column054","query_location":1431,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column055","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column055","query_location":1454,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column056","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column056","query_location":1477,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column057","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column057","query_location":1501,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column058","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column058","query_location":1524,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column059","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column059","query_location":1547,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column060","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column060","query_location":1570,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column061","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column061","query_location":1593,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column062","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column062","query_location":1616,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column063","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column063","query_location":1639,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column064","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column064","query_location":1663,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}},{"name":"column065","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column065","query_location":1689,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column066","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column066","query_location":1712,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column067","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column067","query_location":1735,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column068","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column068","query_location":1758,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column069","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column069","query_location":1781,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column070","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column070","query_location":1804,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column071","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column071","query_location":1827,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column072","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column072","query_location":1850,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column073","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column073","query_location":1873,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column074","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column074","query_location":1896,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column075","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column075","query_location":1920,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column076","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column076","query_location":1944,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column077","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column077","query_location":1968,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column078","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column078","query_location":1992,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column079","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column079","query_location":2015,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column080","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column080","query_location":2038,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column081","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column081","query_location":2061,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column082","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column082","query_location":2084,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column083","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column083","query_location":2107,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column084","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column084","query_location":2130,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column085","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column085","query_location":2153,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column086","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column086","query_location":2176,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column087","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column087","query_location":2200,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column088","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column088","query_location":2223,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column089","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column089","query_location":2247,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column090","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column090","query_location":2271,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column091","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column091","query_location":2294,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column092","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column092","query_location":2318,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column093","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column093","query_location":2342,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column094","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column094","query_location":2366,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column095","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column095","query_location":2390,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column096","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column096","query_location":2414,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column097","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column097","query_location":2438,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column098","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column098","query_location":2462,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column099","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column099","query_location":2486,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column100","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column100","query_location":2510,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"column101","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column101","query_location":2534,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column102","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column102","query_location":2557,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column103","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column103","query_location":2580,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"column104","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column104","query_location":2603,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":2614,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2614,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2625,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from '{DATA_DIR}/csv/lineitem-carriage.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":38,"schema_name":"","table_name":"{DATA_DIR}/csv/lineitem-carriage.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/lineitem-carriage.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv(['{DATA_DIR}/csv/multiple_files/different_order/file_1.csv','{DATA_DIR}/csv/multiple_files/different_order/file_2.csv'])\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":129,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":119,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/different_order/file_1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/different_order/file_2.csv"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column0 FROM read_csv('{DATA_DIR}/csv/one_r_two.csv',new_line ='\\r', strict_mode = TRUE, HEADER = FALSE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["column0"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":91,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/one_r_two.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"STRING","text":"\\r"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["HEADER"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * exclude(scan_id ) from reject_errors order by all limit 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":19,"relation_name":"","exclude_list":["scan_id"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":13,"schema_name":"","table_name":"reject_errors","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["reject_errors"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_csv('{DATA_DIR}/csv/nullpadding.csv',null_padding=true, columns={\n'a': 'INTEGER','b': 'INTEGER','c': 'INTEGER','d': 'INTEGER', 'e': 'INTEGER'}, auto_detect := false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":170,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullpadding.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":86,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":78,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":90,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":105,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":120,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":135,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"e","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"e","query_location":151,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"auto_detect","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"auto_detect","query_location":178,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from read_csv('{DATA_DIR}/csv/evil_nullpadding.csv', delim = ';', quote = '\"', null_padding = True, header = 0, buffer_size = 27)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":124,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/evil_nullpadding.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"literal":{"kind":"INTEGER","text":"27"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quote, escape FROM sniff_csv('{TEST_DIR}/out_2.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["quote"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["escape"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":22,"literal":{"kind":"STRING","text":"{TEST_DIR}/out_2.csv"}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', sep='|', columns=STRUCT_PACK(l_orderkey := 5))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":98,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":28,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"l_orderkey","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"l_orderkey","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quote, escape from sniff_csv('{DATA_DIR}/csv/16857.csv', ignore_errors = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["quote"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["escape"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/16857.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/test/dateformat.csv', auto_detect=false, delim=',', quote='\"', escape='\"', new_line='\\n', skip=0, header=false, columns={'column0': 'DATE'}, dateformat='%d/%m/%Y');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":188,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/dateformat.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"literal":{"kind":"STRING","text":"\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":120,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column0","query_location":162,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":10,"literal":{"kind":"STRING","text":"%d/%m/%Y"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM sniff_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', delim='|');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM sniff_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', columns={'c1': 'BIGINT', 'c2': 'BIGINT', 'c3': 'BIGINT', 'c4': 'BIGINT', 'c5': 'BIGINT', 'c6': 'DOUBLE', 'c7': 'DOUBLE', 'c8': 'DOUBLE', 'c9': 'VARCHAR', 'c10': 'VARCHAR', 'c11': 'DATE', 'c12': 'DATE', 'c13': 'DATE', 'c14': 'VARCHAR', 'c15': 'VARCHAR', 'c16': 'VARCHAR'}, auto_detect = false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":345,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":270,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":262,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":73,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"c2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c2","query_location":89,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"c3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c3","query_location":105,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"c4","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c4","query_location":121,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"c5","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c5","query_location":137,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"c6","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c6","query_location":153,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"c7","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c7","query_location":169,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"c8","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c8","query_location":185,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"c9","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c9","query_location":201,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"c10","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c10","query_location":219,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"c11","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c11","query_location":237,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"c12","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c12","query_location":252,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"c13","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c13","query_location":267,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"c14","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c14","query_location":282,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"c15","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c15","query_location":300,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"c16","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c16","query_location":318,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":330,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":330,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":344,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT delimiter FROM sniff_csv('{DATA_DIR}/csv/ignore_errors.csv', ignore_errors=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["delimiter"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":22,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/ignore_errors.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from '{DATA_DIR}/csv/soccer_kaggle.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":34,"schema_name":"","table_name":"{DATA_DIR}/csv/soccer_kaggle.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/soccer_kaggle.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('{DATA_DIR}/csv/thousands_separator/simple.csv', thousands = ',', delim = ';', columns = {'a':'double'}, header = False, auto_detect = false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":150,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/thousands_separator/simple.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":108,"query_location_length":8,"literal":{"kind":"STRING","text":"double"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":135,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select columns from sniff_csv('{DATA_DIR}/csv/thousands_separator/integers.csv', thousands = ',')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":77,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":49,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/thousands_separator/integers.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}}],"qualified_name":{"path":["sniff_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(a), COUNT(b), COUNT(c), COUNT(filename)\nFROM read_csv_auto(['{TEMP_DIR}/ubn1.csv', '{TEMP_DIR}/ubn2.csv', '{TEMP_DIR}/ubn3.csv'], UNION_BY_NAME=TRUE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":15,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":104,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":69,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn3.csv"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":13,"column_names":["UNION_BY_NAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv('data/csv/encodings/utf16_odd_length.csv', encoding = 'utf-16', header = false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":88,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":41,"literal":{"kind":"STRING","text":"data/csv/encodings/utf16_odd_length.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":8,"column_names":["encoding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":8,"literal":{"kind":"STRING","text":"utf-16"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM web_page ORDER BY wp_web_page_sk LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":14,"column_names":["wp_web_page_sk"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"web_page","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["web_page"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/csv/issue2628_中文.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":37,"schema_name":"","table_name":"{DATA_DIR}/csv/issue2628_中文.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/issue2628_中文.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM encrypted.fuu","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":13,"schema_name":"encrypted","table_name":"fuu","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["encrypted","fuu"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l_suppkey FROM encrypted.lineitem limit 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["l_suppkey"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":18,"schema_name":"encrypted","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["encrypted","lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM read_csv_auto('{TEST_DIR}/file_size_bytes_csv4/*.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/file_size_bytes_csv4/*.csv"}}}],"qualified_name":{"path":["read_csv_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(i) FROM read_csv('__TEST_DIR__/tiny_fsb/*.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":29,"literal":{"kind":"STRING","text":"__TEST_DIR__/tiny_fsb/*.csv"}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{TEST_DIR}/part/a=9/basename[0-9]*.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":44,"schema_name":"","table_name":"{TEST_DIR}/part/a=9/basename[0-9]*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/part/a=9/basename[0-9]*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from parquet_scan('{DATA_DIR}/parquet-testing/afl/{i}.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/afl/{i}.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select column_id, BOOL_AND(bloom_filter_offset \u003e 4), BOOL_AND(bloom_filter_length \u003e 1) from parquet_metadata('{TEST_DIR}/dict-{type}.parquet') group by column_id order by column_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":9,"column_names":["column_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["column_id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":33,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":27,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":19,"column_names":["bloom_filter_offset"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}}],"qualified_name":{"path":["bool_and"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":33,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":62,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":19,"column_names":["bloom_filter_length"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["bool_and"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":93,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/dict-{type}.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":9,"column_names":["column_id"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/parquet-testing/aws_kinesis.parquet' WHERE event_timestamp=TIMESTAMP '2022-11-22 00:01:13.175';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":48,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/aws_kinesis.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/aws_kinesis.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":51,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":15,"column_names":["event_timestamp"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2022-11-22 00:01:13.175"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM parquet_kv_metadata('{TEST_DIR}/bloom_interval_nested.parquet')\nWHERE key = 'duckdb.interval_bloom_filter'\n\tAND decode(value) = 'normalized-v1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_kv_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":42,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_interval_nested.parquet"}}}],"qualified_name":{"path":["parquet_kv_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":91,"query_location_length":73,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["key"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":30,"literal":{"kind":"STRING","text":"duckdb.interval_bloom_filter"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":133,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":13,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["decode"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":15,"literal":{"kind":"STRING","text":"normalized-v1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/bloom_in.parquet')\nWHERE r IN (NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_in.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":76,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["r"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(list_value)\nFROM read_parquet('{TEST_DIR}/bloom_list.parquet')\nWHERE list_value[2] = 102;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":10,"column_names":["list_value"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_list.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":19,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":92,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":10,"column_names":["list_value"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":3,"literal":{"kind":"INTEGER","text":"102"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM assert_bloom_filter_hit('{TEST_DIR}/bloom1.parquet', 'r_float', 200);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"assert_bloom_filter_hit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":9,"literal":{"kind":"STRING","text":"r_float"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"qualified_name":{"path":["assert_bloom_filter_hit"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bool_and(bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_temporal.parquet', 'ts',\n TIMESTAMP '2000-01-01' + INTERVAL 1001 SECOND);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":21,"column_names":["bloom_filter_excludes"]}}],"qualified_name":{"path":["bool_and"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":134,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_bloom_probe","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_temporal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"STRING","text":"ts"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":155,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":20,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["parquet_bloom_probe"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM '{TEST_DIR}/bloom_blob.parquet' lhs\nJOIN '{TEST_DIR}/bloom_blob.parquet' rhs ON lhs.b = rhs.b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":57,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":21,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/bloom_blob.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bloom_blob.parquet"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":62,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/bloom_blob.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bloom_blob.parquet"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["lhs","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":5,"column_names":["rhs","b"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/bloom_ndf_signed_zero.parquet')\nWHERE x IS NOT DISTINCT FROM 0.0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":42,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_ndf_signed_zero.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":84,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from parquet_scan('test/sql/copy/parquet/broken/garbledfooter.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":52,"literal":{"kind":"STRING","text":"test/sql/copy/parquet/broken/garbledfooter.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM (\n\tSELECT i, row_number() OVER () - 1 AS expected\n\tFROM read_parquet('{TEST_DIR}/cte_nested_batch_exchange.parquet')\n)\nWHERE i != expected;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":118,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"expected","query_location":55,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":34,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":77,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/cte_nested_batch_exchange.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":146,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":8,"column_names":["expected"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT dictionary_page_offset IS NULL FROM parquet_metadata('{TEST_DIR}/dictionary_compression_ratio_threshold.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":30,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":22,"column_names":["dictionary_page_offset"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":77,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":59,"literal":{"kind":"STRING","text":"{TEST_DIR}/dictionary_compression_ratio_threshold.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select x from read_parquet('{DATA_DIR}/parquet-testing/float16.parquet') where x \u003e 1.1 order by x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/float16.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":79,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/parquet-testing/broken/broken_timestamp.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":60,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/broken/broken_timestamp.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/broken/broken_timestamp.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(ts), ts::VARCHAR\nFROM read_parquet('{DATA_DIR}/parquet-testing/int96_nanoseconds_dictionary.parquet', int96_as='timestamp_ns')\nORDER BY ts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":2,"column_names":["ts"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["typeof"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":104,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/int96_nanoseconds_dictionary.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":8,"column_names":["int96_as"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":14,"literal":{"kind":"STRING","text":"timestamp_ns"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lo::VARCHAR || '|' || hi::VARCHAR FROM read_parquet('{TEST_DIR}/int96_full_range.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["lo"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["hi"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/int96_full_range.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT key::VARCHAR, value::VARCHAR FROM parquet_kv_metadata('{TEST_DIR}/kv_metadata_test3.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["key"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["value"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_kv_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/kv_metadata_test3.parquet"}}}],"qualified_name":{"path":["parquet_kv_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT unnest(parquet_metadata, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/lineitem-top10000.gzip.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":16,"column_names":["parquet_metadata"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":43,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_full_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":53,"literal":{"kind":"STRING","text":"data/parquet-testing/lineitem-top10000.gzip.parquet"}}}],"qualified_name":{"path":["parquet_full_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT info['source'] FROM duckdb_logs_parsed('AdaptiveFilter')\nWHERE event = 'INIT' AND file_path LIKE '%af_cross_2.parquet' ORDER BY timestamp LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":11,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"source"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":16,"literal":{"kind":"STRING","text":"AdaptiveFilter"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":6,"literal":{"kind":"STRING","text":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":26,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":21,"literal":{"kind":"STRING","text":"%af_cross_2.parquet"}}}],"qualified_name":{"path":["~~"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT info['source'] FROM duckdb_logs_parsed('AdaptiveFilter')\nWHERE event = 'INIT' AND file_path LIKE '%ord_cab.parquet' ORDER BY timestamp LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":11,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"source"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":16,"literal":{"kind":"STRING","text":"AdaptiveFilter"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":6,"literal":{"kind":"STRING","text":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":23,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":18,"literal":{"kind":"STRING","text":"%ord_cab.parquet"}}}],"qualified_name":{"path":["~~"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_val.f, struct_val.i\nFROM integer_file_first\nWHERE struct_val.i='042'::INTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["struct_val","f"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":12,"column_names":["struct_val","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":18,"schema_name":"","table_name":"integer_file_first","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integer_file_first"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":12,"column_names":["struct_val","i"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":5,"literal":{"kind":"STRING","text":"042"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM '{DATA_DIR}/parquet-testing/p2.parquet' limit 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":39,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/p2.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/p2.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_name FROM (DESCRIBE FROM '{DATA_DIR}/parquet-testing/bug13053.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":61,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":45,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/bug13053.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/bug13053.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1589.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug1589.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/bug2267.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug2267.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{TEST_DIR}/tiny_decimal.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":33,"schema_name":"","table_name":"{TEST_DIR}/tiny_decimal.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/tiny_decimal.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(i), count(s), count(d), count(dt) FROM '{TEST_DIR}/all_null_types.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":9,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/all_null_types.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/all_null_types.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/binary_string.parquet',binary_as_string=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":86,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":50,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/binary_string.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":16,"column_names":["binary_as_string"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), min(id), max(id) FROM read_parquet(['{TEST_DIR}/column_stats_1.parquet', '{TEST_DIR}/column_stats_2.parquet'],\n column_statistics := MAP {'id': MAP {'min': '0', 'max': '199999', 'count': '200000', 'null_count': '0', 'distinct_count': '200000'}})\nWHERE id \u003e= 150000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":226,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":74,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/column_stats_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/column_stats_2.parquet"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"column_statistics","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"column_statistics","query_location":153,"query_location_length":111,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":164,"query_location_length":99,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":5,"literal":{"kind":"STRING","text":"min"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":5,"literal":{"kind":"STRING","text":"max"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":7,"literal":{"kind":"STRING","text":"count"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":12,"literal":{"kind":"STRING","text":"null_count"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":16,"literal":{"kind":"STRING","text":"distinct_count"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":8,"literal":{"kind":"STRING","text":"199999"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":8,"literal":{"kind":"STRING","text":"200000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":254,"query_location_length":8,"literal":{"kind":"STRING","text":"200000"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":272,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":6,"literal":{"kind":"INTEGER","text":"150000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '{DATA_DIR}/parquet-testing/out_of_range_stats.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":55,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/out_of_range_stats.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/out_of_range_stats.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT path_in_schema, encodings\nFROM parquet_metadata('{TEST_DIR}/skip_v2_encodings.parquet')\nWHERE path_in_schema IN ('f', 'd', 's')\nORDER BY path_in_schema","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":14,"column_names":["path_in_schema"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":9,"column_names":["encodings"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":38,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/skip_v2_encodings.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":119,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"literal":{"kind":"STRING","text":"f"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), min(i), max(i) FROM read_parquet('{TEST_DIR}/encrypted_metadata_cache.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/encrypted_metadata_cache.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT event, count(*) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class='ParquetReader' GROUP BY event ORDER BY event","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["event"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["event"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":15,"literal":{"kind":"STRING","text":"ParquetReader"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["event"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM '{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet'\nWHERE prefix(s, chr(255)) OR prefix(s, 'zz')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":52,"schema_name":"","table_name":"{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":80,"query_location_length":38,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":19,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":8,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":3,"literal":{"kind":"INTEGER","text":"255"}}}],"qualified_name":{"path":["chr"]}}}],"qualified_name":{"path":["prefix"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":15,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"literal":{"kind":"STRING","text":"zz"}}}],"qualified_name":{"path":["prefix"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_schema('{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":57,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet"}}}],"qualified_name":{"path":["parquet_schema"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j, parse_path(filename)[-2:] as file FROM parquet_scan(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet'], FILENAME=1) where filename like '%t1%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"file","query_location":33,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":20,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_path"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":52,"query_location_length":164,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":138,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":11,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":6,"literal":{"kind":"STRING","text":"%t1%"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select id, value from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/*/*/*/test.parquet', FILENAME=1) where filename like '%mismatching_count%' and value = 'value1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":22,"query_location_length":91,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/*/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":120,"query_location_length":56,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":26,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":21,"literal":{"kind":"STRING","text":"%mismatching_count%"}}}],"qualified_name":{"path":["~~"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":8,"literal":{"kind":"STRING","text":"value1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM f WHERE c = 0.1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"f","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["f"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/parquet-testing/parquet_go.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":47,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/parquet_go.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/parquet_go.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/mismatching_count/*/*/test.parquet', HIVE_PARTITIONING=1) WHERE part=b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":116,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":81,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/mismatching_count/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":137,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":4,"column_names":["part"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_parquet('{TEST_DIR}/aliased_hive/*/*.parquet') AS t(a,b) WHERE b=999","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":21,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/aliased_hive/*/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":["a","b"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"INTEGER","text":"999"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (p IS NULL)::INTEGER AS is_null, COALESCE((p='NULL')::INTEGER, -1) AS equals_literal, id\nFROM parquet_scan('{TEST_DIR}/hive-literal-null-partition/**/*.parquet', hive_partitioning=1)\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"is_null","query_location":18,"query_location_length":9,"child":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":10,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["p"]}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"equals_literal","query_location":40,"query_location_length":33,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["p"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":6,"literal":{"kind":"STRING","text":"NULL"}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":101,"query_location_length":88,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":53,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive-literal-null-partition/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/hive_override_u/part=42/*.parquet') u\nJOIN read_parquet('{TEST_DIR}/hive_override_s/part=42/*.parquet') s ON u.part = s.part","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":84,"query_location_length":86,"left":{"type":"TABLE_FUNCTION","alias":"u","sample":null,"query_location":21,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive_override_u/part=42/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"s","sample":null,"query_location":89,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive_override_s/part=42/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":155,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":6,"column_names":["u","part"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":6,"column_names":["s","part"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT logical_type FROM parquet_schema('{TEST_DIR}/json_varchar_mismatch1.parquet') WHERE name='memberDn';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["logical_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":43,"literal":{"kind":"STRING","text":"{TEST_DIR}/json_varchar_mismatch1.parquet"}}}],"qualified_name":{"path":["parquet_schema"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":10,"literal":{"kind":"STRING","text":"memberDn"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from parquet_scan(['{DATA_DIR}/parquet-testing/glob/*.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":105,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":91,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":43,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/*.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from parquet_schema(['{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet', '{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":136,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":120,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["parquet_schema"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from parquet_scan('{DATA_DIR}/parquet-testing/cache/cache1.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":49,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/cache/cache1.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT row_group_id, path_in_schema, encodings, stats_nan_count, stats_null_count, stats_min_value, stats_max_value\nFROM parquet_metadata('{TEST_DIR}/nan_count_bss.parquet')\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":9,"column_names":["encodings"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":15,"column_names":["stats_nan_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":16,"column_names":["stats_null_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":15,"column_names":["stats_max_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":121,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":34,"literal":{"kind":"STRING","text":"{TEST_DIR}/nan_count_bss.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(b + j) FROM read_parquet('{TEST_DIR}/cost_model_gap.parquet') WHERE a \u003e= 0 AND c \u003e= 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/cost_model_gap.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":79,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":79,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":90,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bit_xor(hash(flag,payload,file_row_number))\nFROM read_parquet('{TEST_DIR}/cheap_first_filter.parquet',file_row_number=true)\nWHERE file_row_number%2=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"bit_xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":34,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["flag"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["payload"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":15,"column_names":["file_row_number"]}}],"qualified_name":{"path":["hash"]}}}],"qualified_name":{"path":["bit_xor"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":56,"query_location_length":74,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/cheap_first_filter.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":137,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":17,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":15,"column_names":["file_row_number"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(g + d)\nFROM read_parquet('{TEST_DIR}/rgo_proj.parquet')\nWHERE a \u003e= 0 AND b \u003e= 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/rgo_proj.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":73,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":73,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":84,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT row_group_id, fully_filtered, strategy, prefetch_groups\nFROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%rgo2.parquet'\nORDER BY row_group_id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":12,"column_names":["row_group_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":14,"column_names":["fully_filtered"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":8,"column_names":["strategy"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":15,"column_names":["prefetch_groups"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":68,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":17,"literal":{"kind":"STRING","text":"ParquetPrefetch"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":20,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":15,"literal":{"kind":"STRING","text":"%rgo2.parquet"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(a) FROM read_parquet('{TEST_DIR}/force.parquet', prefetch_strategy='auto')\nWHERE b \u003e= 0 AND b \u003c 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEST_DIR}/force.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":17,"column_names":["prefetch_strategy"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":6,"literal":{"kind":"STRING","text":"auto"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":92,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":92,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":103,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(len(l)), sum(s.a), count(n) FROM read_parquet('{TEMP_DIR}/row_group_row_count.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["len"]}}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["s","a"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEMP_DIR}/row_group_row_count.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (\n\tSELECT name, duckdb_type FROM parquet_schema('{TEMP_DIR}/parquet_schema_duckdb_type.parquet')\n\tWHERE name IN ('l', 's', 'm', 'v', 'g')\n\tEXCEPT\n\tSELECT column_name, column_type FROM (DESCRIBE FROM '{TEMP_DIR}/parquet_schema_duckdb_type.parquet')\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":249,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":11,"column_names":["duckdb_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":47,"literal":{"kind":"STRING","text":"{TEMP_DIR}/parquet_schema_duckdb_type.parquet"}}}],"qualified_name":{"path":["parquet_schema"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":133,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":4,"column_names":["name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":3,"literal":{"kind":"STRING","text":"l"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":3,"literal":{"kind":"STRING","text":"m"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":205,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":220,"query_location_length":47,"schema_name":"","table_name":"{TEMP_DIR}/parquet_schema_duckdb_type.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/parquet_schema_duckdb_type.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, a FROM '{TEST_DIR}/evolution_*.parquet' WHERE id=2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":32,"schema_name":"","table_name":"{TEST_DIR}/evolution_*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/evolution_*.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM '{DATA_DIR}/parquet-testing/issue6990.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":46,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/issue6990.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/issue6990.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v::VARCHAR FROM '__TEST_DIR__/shred_varchar.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":36,"schema_name":"","table_name":"__TEST_DIR__/shred_varchar.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["__TEST_DIR__/shred_varchar.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from '{DATA_DIR}/parquet-testing/unsigned_stats.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":51,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/unsigned_stats.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/unsigned_stats.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT stats_min, stats_max, stats_min_value, stats_max_value FROM parquet_metadata('{DATA_DIR}/parquet-testing/data-types.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["stats_max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":15,"column_names":["stats_max_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/data-types.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a \nFROM parquet_scan(['{TEST_DIR}/ubn2.parquet', '{TEST_DIR}/ubn1.parquet', '{TEST_DIR}/ubn3.parquet'])\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":15,"query_location_length":95,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":81,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn3.parquet"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT file_index, i, j\nFROM read_parquet(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet', '{DATA_DIR}/parquet-testing/glob2/t1.parquet'])\nWHERE file_index=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["file_index"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":153,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":139,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":45,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob2/t1.parquet"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":189,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":10,"column_names":["file_index"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from '{TEST_DIR}/rg.parquet' where file_row_group_number in (1, 3) and i between 4096 and 6143;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":23,"schema_name":"","table_name":"{TEST_DIR}/rg.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/rg.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":59,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":76,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":21,"column_names":["file_row_group_number"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":89,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4096"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6143"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{TEMP_DIR}/{codec}.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":28,"literal":{"kind":"STRING","text":"{TEMP_DIR}/{codec}.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class='ParquetReader' AND event='ReadRowGroup'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":66,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":15,"literal":{"kind":"STRING","text":"ParquetReader"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":14,"literal":{"kind":"STRING","text":"ReadRowGroup"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(i) FROM read_parquet('{TEST_DIR}/waiting_consumers/**/*.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":43,"literal":{"kind":"STRING","text":"{TEST_DIR}/waiting_consumers/**/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), min(id), max(id) FROM read_single_parquet_file('{TEST_DIR}/single_rg.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_parquet_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/single_rg.parquet"}}}],"qualified_name":{"path":["read_single_parquet_file"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, b, c FROM read_parquet('{TEST_DIR}/multi_*.parquet', union_by_name=true) ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":28,"literal":{"kind":"STRING","text":"{TEST_DIR}/multi_*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select s.shredding_state, s.fully_shredded.stats.min, s.fully_shredded.stats.max, s.fully_shredded.stats.has_null, s.fully_shredded.stats.has_no_null FROM (select stats(col) s from '{TEST_DIR}/fully_shredded_primitive.parquet' limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["s","shredding_state"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":26,"column_names":["s","fully_shredded","stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":26,"column_names":["s","fully_shredded","stats","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":31,"column_names":["s","fully_shredded","stats","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":34,"column_names":["s","fully_shredded","stats","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":155,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":163,"query_location_length":10,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":181,"query_location_length":45,"schema_name":"","table_name":"{TEST_DIR}/fully_shredded_primitive.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/fully_shredded_primitive.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select s.fully_shredded.a, s.fully_shredded.c.stats.min from (select stats(col) s from '{TEST_DIR}/not_fully_shredded_object_field.parquet' limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["s","fully_shredded","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":28,"column_names":["s","fully_shredded","c","stats","min"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":61,"query_location_length":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":69,"query_location_length":10,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":52,"schema_name":"","table_name":"{TEST_DIR}/not_fully_shredded_object_field.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/not_fully_shredded_object_field.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/decimal_dc.parquet') limit 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/decimal_dc.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/byte_array_decimal_gt38.parquet') WHERE x \u003e 100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":68,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/byte_array_decimal_gt38.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":110,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT gender, first_name FROM parquet_scan('{DATA_DIR}/parquet-testing/userdata1.parquet') where first_name = 'Mark' and gender \u003c\u003e ''","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["gender"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":10,"column_names":["first_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":46,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/userdata1.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":98,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":10,"column_names":["first_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":6,"literal":{"kind":"STRING","text":"Mark"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":122,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":6,"column_names":["gender"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM parquet_scan('{DATA_DIR}/parquet-testing/date.parquet') where d \u003e= cast('1975-01-01' as date) and d \u003c cast('1976-01-01' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/date.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":83,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":83,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":12,"literal":{"kind":"STRING","text":"1975-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":119,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":12,"literal":{"kind":"STRING","text":"1976-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, authors FROM parquet_scan('{DATA_DIR}/parquet-testing/apkwan.parquet') limit 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["authors"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":43,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/apkwan.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/data-types.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(email) OVER w, LAST(email) OVER w FROM userdata1 WINDOW w AS (ORDER BY id RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":7,"query_location_length":19,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["email"]}}],"qualified_name":{"path":["first_value"]}},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":28,"query_location_length":18,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["email"]}}],"qualified_name":{"path":["last_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":9,"schema_name":"","table_name":"userdata1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["userdata1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(salary) OVER w, LAST(salary) OVER w FROM userdata1 WINDOW w AS (ORDER BY id RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":7,"query_location_length":20,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["first_value"]}},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":29,"query_location_length":19,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["last_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"userdata1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["userdata1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select timestamp from '{DATA_DIR}/parquet-testing/issue_5533_timestamp_ms_stats.parquet' order by 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["timestamp"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":66,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/issue_5533_timestamp_ms_stats.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/issue_5533_timestamp_ms_stats.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j, k, x\nFROM read_parquet('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet', hive_partitioning=1, union_by_name=1)\nWHERE x=2\nORDER BY j","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":124,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":72,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet(['{TEST_DIR}/union_by_name_pushdown1.parquet', '{TEST_DIR}/union_by_name_pushdown2.parquet'], union_by_name=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":126,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":92,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/union_by_name_pushdown1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/union_by_name_pushdown2.parquet"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id\nFROM read_parquet(['{TEST_DIR}/struct.parquet', '{TEST_DIR}/no_struct.parquet'], union_by_name = true)\nWHERE s.a IS NULL\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":15,"query_location_length":97,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":61,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/struct.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/no_struct.parquet"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":123,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":3,"column_names":["s","a"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.page_type, s.encoding, s.\"count\"\nFROM (SELECT unnest(encoding_stats) AS s FROM parquet_metadata('{TEST_DIR}/encoding_stats_v1.parquet'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["s","page_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":10,"column_names":["s","encoding"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":9,"column_names":["s","count"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":47,"query_location_length":98,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":55,"query_location_length":22,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":14,"column_names":["encoding_stats"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":88,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/encoding_stats_v1.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ufield\nFROM read_parquet('{TEMP_DIR}/u.parquet')\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["ufield"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":22,"literal":{"kind":"STRING","text":"{TEMP_DIR}/u.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), COUNT(b), BOOL_AND(b), BOOL_OR(b), SUM(CASE WHEN b THEN 1 ELSE 0 END) true_count, SUM(CASE WHEN b THEN 0 ELSE 1 END) false_count\nFROM '{TEST_DIR}/bools.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":11,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bool_and"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":10,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bool_or"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"true_count","query_location":52,"query_location_length":34,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":56,"query_location_length":29,"case_checks":[{"when_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["b"]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"false_count","query_location":99,"query_location_length":34,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":103,"query_location_length":29,"case_checks":[{"when_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["b"]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":151,"query_location_length":26,"schema_name":"","table_name":"{TEST_DIR}/bools.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bools.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{TEST_DIR}/decimals.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/decimals.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/decimals.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select field_id from parquet_schema('{TEST_DIR}/my.parquet') where name = 'value'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["field_id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":23,"literal":{"kind":"STRING","text":"{TEST_DIR}/my.parquet"}}}],"qualified_name":{"path":["parquet_schema"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":7,"literal":{"kind":"STRING","text":"value"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i = INTERVAL '580063 hours 44 minutes 54 seconds',\n datepart('month', i),\n datepart('day', i),\n datepart('hour', i),\n datepart('minute', i),\n datepart('second', i)\nFROM '{TEST_DIR}/large_interval.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":49,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":36,"literal":{"kind":"STRING","text":"580063 hours 44 minutes 54 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":20,"function_name":"datepart","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["datepart"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":18,"function_name":"datepart","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["datepart"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":19,"function_name":"datepart","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["datepart"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"query_location_length":21,"function_name":"datepart","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["datepart"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":21,"function_name":"datepart","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["datepart"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":206,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/large_interval.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/large_interval.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM '{TEST_DIR}/signed.parquet' WHERE d\u003c42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/signed.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/signed.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":55,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts::VARCHAR, ts_s::VARCHAR, ts_ms::VARCHAR, ts_ns::VARCHAR, ts_tz::VARCHAR\nFROM '{TEST_DIR}/timestamp_int96.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["ts_s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["ts_ms"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":5,"column_names":["ts_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":5,"column_names":["ts_tz"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":36,"schema_name":"","table_name":"{TEST_DIR}/timestamp_int96.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/timestamp_int96.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{TEST_DIR}/uuid.parquet' ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":25,"schema_name":"","table_name":"{TEST_DIR}/uuid.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/uuid.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT max(row_group_bytes) \u003c 1300000 FROM parquet_metadata('{TEST_DIR}/mixed/**/*.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":30,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":15,"column_names":["row_group_bytes"]}}],"qualified_name":{"path":["max"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1300000"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/mixed/**/*.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{TEST_DIR}/scalar.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/scalar.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM parquet_scan('{TEMP_DIR}/userdata1-zstd.parquet') ORDER BY 1 LIMIT 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEMP_DIR}/userdata1-zstd.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT path_in_schema, stats_null_count, num_values FROM parquet_metadata('{TEST_DIR}/stats.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":16,"column_names":["stats_null_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":10,"column_names":["num_values"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEST_DIR}/stats.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select key, COUNT(*)\nfrom parquet_scan('{TEST_DIR}/escaped_partitions/**/*.parquet')\nGROUP BY ALL\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/escaped_partitions/**/*.parquet"}}}],"qualified_name":{"path":["parquet_scan"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), MIN(part2), MAX(part2), MIN(part1), MAX(part1), SUM(i)\nFROM '{TEST_DIR}/partition_join_pushdown_multi/**/*.parquet'\nWHERE part2=(SELECT MAX(part2) FROM tbl2) AND part1=date '2004-01-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["part2"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["part2"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["part1"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":5,"column_names":["part1"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":55,"schema_name":"","table_name":"{TEST_DIR}/partition_join_pushdown_multi/**/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/partition_join_pushdown_multi/**/*.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":139,"query_location_length":63,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["part2"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":145,"query_location_length":29,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":5,"column_names":["part2"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":169,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":179,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":5,"column_names":["part1"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":185,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2004-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":185,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT part_col, value_col, value2_col FROM '{TEST_DIR}/partitioned2/part_col=prefix-1/*.parquet' ORDER BY value2_col;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":10,"column_names":["value2_col"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["part_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["value_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":10,"column_names":["value2_col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":53,"schema_name":"","table_name":"{TEST_DIR}/partitioned2/part_col=prefix-1/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/partitioned2/part_col=prefix-1/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/ordered_only_asc/*.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/ordered_only_asc/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT payload FROM read_csv('{TEST_DIR}/partitioned_by_compatibility/a=1/*.csv', HEADER = true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":51,"literal":{"kind":"STRING","text":"{TEST_DIR}/partitioned_by_compatibility/a=1/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["HEADER"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract(replace(filename, '\\', '/'), 'partition_path_csv/(.*)/[^/]*$', 1) AS dir, count(*)\nFROM read_csv('{TEST_DIR}/partition_path_csv/*/*.csv', hive_partitioning = false, filename = true)\nGROUP BY dir ORDER BY dir;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":3,"column_names":["dir"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"dir","query_location":7,"query_location_length":80,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":27,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":32,"literal":{"kind":"STRING","text":"partition_path_csv/(.*)/[^/]*$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regexp_extract"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":110,"query_location_length":93,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/partition_path_csv/*/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":187,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":3,"column_names":["dir"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract(replace(filename, '\\', '/'), 'partition_path_json_columns/(.*)/[^/]*$', 1) AS dir, count(*), count(region)\nFROM read_json('{TEST_DIR}/partition_path_json_columns/*/*.json', hive_partitioning = false, filename = true)\nGROUP BY dir ORDER BY dir;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":3,"column_names":["dir"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"dir","query_location":7,"query_location_length":89,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":27,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":41,"literal":{"kind":"STRING","text":"partition_path_json_columns/(.*)/[^/]*$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regexp_extract"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":13,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":6,"column_names":["region"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":134,"query_location_length":104,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":49,"literal":{"kind":"STRING","text":"{TEST_DIR}/partition_path_json_columns/*/*.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":195,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":222,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":3,"column_names":["dir"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH files AS (\n\tSELECT p, count(DISTINCT filename) file_count\n\tFROM read_parquet(\n\t\t'{TEST_DIR}/partitioned_rotation_size/**/*.parquet',\n\t\tfilename = true,\n\t\thive_partitioning = true\n\t)\n\tGROUP BY p\n)\nSELECT min(file_count) \u003e 1\nFROM files;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"files","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["p"]},{"class":"FUNCTION","type":"FUNCTION","alias":"file_count","query_location":27,"query_location_length":24,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":69,"query_location_length":117,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":51,"literal":{"kind":"STRING","text":"{TEST_DIR}/partitioned_rotation_size/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":140,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":159,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["p"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":208,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":208,"query_location_length":15,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":10,"column_names":["file_count"]}}],"qualified_name":{"path":["min"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":233,"query_location_length":5,"schema_name":"","table_name":"files","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["files"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT partition, SUM(col1) FILTER (col2%7\u003e2)\nFROM partitioned_tbl\nGROUP BY partition\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["partition"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":27,"function_name":"sum","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["col2"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["col1"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":15,"schema_name":"","table_name":"partitioned_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["partitioned_tbl"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":9,"column_names":["partition"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/ordered_partitioned/**/*.parquet', hive_partitioning = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/ordered_partitioned/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM (\n\tSELECT partition1, partition2, lag(col1) OVER w AS prev\n\tFROM partitioned_tbl2\n\tWINDOW w AS (PARTITION BY partition1 ORDER BY col1)\n\tQUALIFY col1 - prev \u003c\u003e 2\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":162,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":10,"column_names":["partition1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":10,"column_names":["partition2"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev","query_location":55,"query_location_length":16,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":10,"column_names":["partition1"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":4,"column_names":["col1"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":4,"column_names":["col1"]}}],"qualified_name":{"path":["lag"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":16,"schema_name":"","table_name":"partitioned_tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["partitioned_tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":165,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":4,"column_names":["prev"]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT part_col, value_col, value2_col, value3_col, value4_col, value5_col, value6_col, value7_col, value8_col, value9_col FROM '{TEST_DIR}/no-part-cols7/value9_col=*/value8_col=*/value7_col=*/*.parquet' ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["part_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["value_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":10,"column_names":["value2_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":10,"column_names":["value3_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":10,"column_names":["value4_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":10,"column_names":["value5_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":10,"column_names":["value6_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":10,"column_names":["value7_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":10,"column_names":["value8_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":10,"column_names":["value9_col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":128,"query_location_length":75,"schema_name":"","table_name":"{TEST_DIR}/no-part-cols7/value9_col=*/value8_col=*/value7_col=*/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/no-part-cols7/value9_col=*/value8_col=*/value7_col=*/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT part_col, value_col, value2_col FROM '{TEST_DIR}/csv-no-part-cols9/part_col=0/value_col=*/value2_col=*/*.csv' ORDER BY value2_col;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":10,"column_names":["value2_col"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["part_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["value_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":10,"column_names":["value2_col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":72,"schema_name":"","table_name":"{TEST_DIR}/csv-no-part-cols9/part_col=0/value_col=*/value2_col=*/*.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/csv-no-part-cols9/part_col=0/value_col=*/value2_col=*/*.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM '{TEST_DIR}/row_groups_per_file1/*.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file1/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file1/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM '{TEST_DIR}/row_groups_per_file7/*.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file7/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file7/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM db1.pk_integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":15,"schema_name":"db1","table_name":"pk_integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","pk_integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database_name, table_name, index_name FROM duckdb_indexes ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":10,"column_names":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":10,"column_names":["index_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":14,"schema_name":"","table_name":"duckdb_indexes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_indexes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM tbl8;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"tbl8","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl8"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM T_1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"T_1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T_1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (SELECT * FROM strings) SELECT count(*) FROM c WHERE id=1 AND random()\u003c2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":76,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":85,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM nums","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":4,"schema_name":"","table_name":"nums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nums"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH ins AS (\n INSERT INTO t VALUES (42, 42) RETURNING i\n)\nSELECT * FROM ins;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ins","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t"]}}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":69,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":3,"schema_name":"","table_name":"ins","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ins"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH ins AS (INSERT INTO t_aux VALUES (99, 99) RETURNING i),\n del AS (DELETE FROM t1 WHERE i \u003c= 2 RETURNING i)\nSELECT * FROM del;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ins","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t_aux","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t_aux"]}}}},{"key":"del","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":95,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["i"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":122,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":3,"schema_name":"","table_name":"del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH ins AS (INSERT INTO t1 VALUES (1, 10), (2, 20) RETURNING i, j),\n upd AS (UPDATE t1 SET j = j + 1 RETURNING i, j),\n del AS (DELETE FROM t1 WHERE i = 1 RETURNING i, j)\nSELECT * FROM ins;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ins","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t1","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["j"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t1"]}}}},{"key":"upd","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"UPDATE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":6,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"from_table":null,"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["j"]}],"set_info":{"condition":null,"columns":["j"],"expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}]},"prioritize_table_when_binding":false}}},{"key":"del","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":1,"column_names":["j"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":186,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":193,"query_location_length":3,"schema_name":"","table_name":"ins","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ins"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM base;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with recursive t as (select 1 as x intersect select x+1 from t where x \u003c 3) select * from t order by x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":69,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":83,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH t(i) AS MATERIALIZED (\n\tSELECT i FROM range(1000000) tbl(i)\n)\nSELECT (SELECT i FROM t LIMIT 1 OFFSET 100000), (SELECT i FROM t LIMIT 1 OFFSET 900000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":43,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":74,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":115,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":6,"literal":{"kind":"INTEGER","text":"900000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), min(i), max(i) FROM cte_parallel_limit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":18,"schema_name":"","table_name":"cte_parallel_limit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_parallel_limit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT memory_usage_bytes, tag\nFROM duckdb_memory()\nWHERE tag IN ('ALLOCATOR', 'IN_MEMORY_TABLE')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["memory_usage_bytes"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["tag"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_memory","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_memory"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":65,"query_location_length":32,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["tag"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":11,"literal":{"kind":"STRING","text":"ALLOCATOR"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":17,"literal":{"kind":"STRING","text":"IN_MEMORY_TABLE"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t AS MATERIALIZED\n(\n\tSELECT 1 AS x\nUNION\n\tSELECT (SELECT t.x+t2.x FROM t t2 LIMIT 1) AS x\n\tFROM t\n\tWHERE x \u003c 10\n)\nSELECT * FROM t ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"x","query_location":64,"query_location_length":35,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":3,"column_names":["t","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":4,"column_names":["t2","x"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":86,"query_location_length":4,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":111,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":120,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":136,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":143,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x, y, (WITH RECURSIVE t(z) AS MATERIALIZED (\n SELECT x + y\n UNION ALL\n SELECT z + 1\n FROM (WITH RECURSIVE g(a) AS MATERIALIZED (\n SELECT t.z\n FROM t\n UNION ALL\n SELECT g.a + (x + y) / 2\n FROM g\n WHERE g.a \u003c 3)\n SELECT * FROM g) AS t(z)\n WHERE z \u003c 5\n) SELECT sum(z) FROM t) AS z\nFROM generate_series(1,2) AS _(x), generate_series(1,2) AS __(y) order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"z","query_location":13,"query_location_length":345,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["z"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["z"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":105,"query_location_length":207,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"g","value":{"aliases":["a"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"g","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":3,"column_names":["t","z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":182,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":227,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":3,"column_names":["g","a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":229,"query_location_length":11,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":258,"query_location_length":1,"schema_name":"","table_name":"g","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["g"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":277,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":277,"query_location_length":3,"column_names":["g","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":283,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":303,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":310,"query_location_length":1,"schema_name":"","table_name":"g","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["g"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["z"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":329,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":329,"query_location_length":1,"column_names":["z"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["z"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":344,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":348,"query_location_length":1,"column_names":["z"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":356,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":364,"query_location_length":66,"left":{"type":"TABLE_FUNCTION","alias":"_","sample":null,"query_location":371,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":387,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":389,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"__","sample":null,"query_location":401,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":417,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":419,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["y"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c(i) AS MATERIALIZED (VALUES (1), (2), (2), (NULL)), b(i) AS (VALUES (2), (3), (NULL))\nSELECT count(*) FROM c INNER JOIN b ON c.i=b.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"b","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":115,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["c","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["b","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c(i) AS MATERIALIZED (VALUES (1), (2), (NULL))\nSELECT sum((SELECT i FROM c WHERE c.i=o.i))\nFROM (VALUES (1), (3)) o(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":36,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":63,"query_location_length":31,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["c","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["o","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":101,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with cte as MATERIALIZED (Select i as j from a) select * from cte where j = (with cte as MATERIALIZED (select max(j) as j from cte) select j from cte);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":33,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":55,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":78,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["j"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":76,"query_location_length":74,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":110,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":127,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with cte AS MATERIALIZED (SELECT * FROM va) SELECT * FROM cte;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":33,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":2,"schema_name":"","table_name":"va","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["va"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":51,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH t(x) AS MATERIALIZED (SELECT t FROM generate_series(1,3) AS _(t)) SELECT t1.x, t2.x FROM t AS t1, t AS t2 ORDER BY t1.x, t2.x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":4,"column_names":["t1","x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":4,"column_names":["t2","x"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["t"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"_","sample":null,"query_location":41,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["t"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["t1","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":4,"column_names":["t2","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":89,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":94,"query_location_length":7,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":103,"query_location_length":7,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH t(x) AS MATERIALIZED (\n WITH u(x) AS MATERIALIZED (\n SELECT 42\n ) SELECT * FROM u\n) SELECT * FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"u","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":83,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"query_location_length":1,"schema_name":"","table_name":"u","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":101,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":108,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with recursive t as MATERIALIZED (select 1 as x union all select x+1 from t where x \u003c 3) select * from t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":82,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":96,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with recursive t(x) as MATERIALIZED (select 1 union select zzz+1 from t t1(zzz) where zzz \u003c 3) select zz from t t1(zz) order by zz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":2,"column_names":["zz"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["zzz"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":70,"query_location_length":9,"schema_name":"","table_name":"t","column_name_alias":["zzz"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":86,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["zzz"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["zz"]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":110,"query_location_length":8,"schema_name":"","table_name":"t","column_name_alias":["zz"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(y, arr) AS\n(\n SELECT 1, array[1,2,3,4,5,6]\n UNION ALL\n SELECT y+1, arr\n FROM t, p\n WHERE y \u003c 10\n AND y = loc\n) SELECT * FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["y","arr"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":42,"query_location_length":18,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["arr"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":95,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":115,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":115,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["loc"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["y","arr"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":147,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":154,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(i, identity_payload) AS (\n\tSELECT 1, 0\n\tUNION\n\tSELECT i, identity_payload + 1 FROM t WHERE identity_payload \u003c 3\n)\nSELECT count(i) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","identity_payload"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":16,"column_names":["identity_payload"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":108,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":16,"column_names":["identity_payload"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","identity_payload"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":152,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t AS\n(\n\tSELECT 1 AS x\nUNION\n\tSELECT (SELECT t.x+t2.x FROM t t2 LIMIT 1) AS x\n\tFROM t\n\tWHERE x \u003c 10\n)\nSELECT * FROM t ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"x","query_location":51,"query_location_length":35,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["t","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["t2","x"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":73,"query_location_length":4,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":107,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":123,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE tag_hierarchy(id, source, path, target) AS (\n SELECT id, name, name AS path, NULL::INTEGER AS target -- this should be '' for correct behaviour\n FROM tag\n WHERE subclassof IS NULL\n UNION ALL\n SELECT tag.id, tag.name, tag_hierarchy.path || ' \u003c- ' || tag.name, tag.name AS target\n FROM tag, tag_hierarchy\n WHERE tag.subclassof = tag_hierarchy.id\n)\nSELECT source, path, target\nFROM tag_hierarchy\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tag_hierarchy","value":{"aliases":["id","source","path","target"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tag_hierarchy","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"path","query_location":79,"query_location_length":4,"column_names":["name"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"target","query_location":97,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":167,"query_location_length":3,"schema_name":"","table_name":"tag","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tag"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":190,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":10,"column_names":["subclassof"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":6,"column_names":["tag","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":227,"query_location_length":8,"column_names":["tag","name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":237,"query_location_length":40,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":237,"query_location_length":18,"column_names":["tag_hierarchy","path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":6,"literal":{"kind":"STRING","text":" \u003c- "}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":269,"query_location_length":8,"column_names":["tag","name"]}}],"qualified_name":{"path":["||"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"target","query_location":279,"query_location_length":8,"column_names":["tag","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":300,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":305,"query_location_length":3,"schema_name":"","table_name":"tag","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tag"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":310,"query_location_length":13,"schema_name":"","table_name":"tag_hierarchy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tag_hierarchy"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":332,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":332,"query_location_length":14,"column_names":["tag","subclassof"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":349,"query_location_length":16,"column_names":["tag_hierarchy","id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["id","source","path","target"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":375,"query_location_length":6,"column_names":["source"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":383,"query_location_length":4,"column_names":["path"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":389,"query_location_length":6,"column_names":["target"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":401,"query_location_length":13,"schema_name":"","table_name":"tag_hierarchy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tag_hierarchy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE r(i, outgoing) AS (\n\tVALUES (0, 0::BIGINT)\n\tUNION ALL\n\tSELECT r.i + 1, build.outgoing\n\tFROM r\n\tJOIN (\n\t\tSELECT i AS k, count(*) OVER (PARTITION BY i % 10) AS outgoing\n\t\tFROM range(10000) t(i)\n\t) build ON build.k = r.i\n\tWHERE r.i \u003c 3\n)\nSELECT max(i), max(outgoing) FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["i","outgoing"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["r","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":14,"column_names":["build","outgoing"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":110,"query_location_length":122,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":107,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"SUBQUERY","alias":"build","sample":null,"query_location":115,"query_location_length":94,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"k","query_location":126,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"outgoing","query_location":134,"query_location_length":35,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["%"]}}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":189,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":219,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":7,"column_names":["build","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":3,"column_names":["r","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":240,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","outgoing"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":257,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":265,"query_location_length":13,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":269,"query_location_length":8,"column_names":["outgoing"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":284,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE tbl(a,b,c) USING KEY (a, c , list(b), max(c)) AS (\n\tSELECT 1, 1, NULL\n\tUNION ALL\n SELECT tbl.a, tbl.b - 1, a.b\n\tFROM tbl, recurring.tbl AS a\n\tWHERE tbl.b \u003e 0)\nSELECT * FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["a","b","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["c"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["max"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":5,"column_names":["tbl","a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":5,"column_names":["tbl","b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["a","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":130,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":135,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":140,"query_location_length":18,"schema_name":"recurring","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","tbl"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":166,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":5,"column_names":["tbl","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b","c"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["c"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["max"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":184,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":191,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE tbl(key, iter, b, c) USING KEY (key, bool_and(b), bool_or(c)) AS (\n\tSELECT 1, 1, TRUE, TRUE\n\tUNION ALL\n\tSELECT key, iter + 1, NOT b, NOT c\n\tFROM tbl\n\tWHERE iter \u003c 8\n) TABLE tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["key","iter","b","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":11,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bool_and"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":10,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["bool_or"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":141,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":1,"column_names":["b"]}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":148,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["c"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":160,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":171,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["key","iter","b","c"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":11,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bool_and"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":10,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["bool_or"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE tbl (a,b) USING KEY (a, b+1) AS (\n\tSELECT 1, 1\n\tUNION ALL\n \tSELECT a, b + 1\n \tFROM tbl\n \tWHERE b \u003c 5)\nTABLE tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["a","b"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tSELECT i, 0 FROM range(0) r(i)\n\tUNION ALL\n\tSELECT k, v + 1 FROM t WHERE v \u003c 0\n)\nSELECT count(*) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":60,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":107,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":115,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":144,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tSELECT 'a' COLLATE nocase, 0\n\tUNION ALL\n\tSELECT n.k, r.v + 1\n\tFROM (SELECT upper(k) AS k, v FROM t) n\n\tJOIN recurring.t r ON r.k IS NOT DISTINCT FROM n.k\n\tWHERE n.v \u003c 1\n)\nSELECT k, v FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":50,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["n","k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":146,"query_location_length":50,"left":{"type":"SUBQUERY","alias":"n","sample":null,"query_location":110,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":118,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["upper"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":140,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":151,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":168,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":3,"column_names":["r","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":3,"column_names":["n","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":204,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":210,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":231,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k1, k2, v) USING KEY (k1, k2, sum(v) AS v) AS (\n\tVALUES (1, 1, 0), (1, 2, 0)\n\tUNION ALL\n\tSELECT n.k1, n.k2, r.v + 1\n\tFROM t n JOIN recurring.t r ON r.k1 = n.k1\n\tWHERE n.v = 0\n)\nSELECT * FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k1","k2","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":47,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":4,"column_names":["n","k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":4,"column_names":["n","k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":143,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":139,"query_location_length":3,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":148,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":165,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":4,"column_names":["n","k1"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k1","k2","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":47,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":201,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":208,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tSELECT 1, 0\n\tUNION ALL\n\tSELECT n.k, r.v + 1\n\tFROM t n\n\tJOIN recurring.t r USING (k)\n\tWHERE n.v \u003c 3\n)\nSELECT k, v FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["n","k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":98,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":93,"query_location_length":3,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":103,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["k"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":134,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":161,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, total) USING KEY (k, sum(total)) AS (\n\tVALUES (1, 1), (1, 2)\n\tUNION\n\tSELECT k, 0 FROM t WHERE false\n)\nTABLE t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","total"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["total"]}}],"qualified_name":{"path":["sum"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","total"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["total"]}}],"qualified_name":{"path":["sum"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k, min(v)) AS (\n\tVALUES (1, 10), (2, 10)\n\tUNION\n\tSELECT CASE WHEN i % 4 = 0 THEN 3 ELSE k END,\n\t CASE WHEN i % 4 = 0 THEN 7 WHEN k = 1 THEN 5 ELSE 11 END\n\tFROM t, range(current_setting('standard_vector_size')::BIGINT * 4) r(i)\n\tWHERE v = 10\n)\nTABLE t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":90,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["k"]}},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":137,"query_location_length":56,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":147,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":195,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":200,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":203,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":209,"query_location_length":51,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":248,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":209,"query_location_length":39,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":22,"literal":{"kind":"STRING","text":"standard_vector_size"}}}],"qualified_name":{"path":["current_setting"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":250,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":274,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":274,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tSELECT 1, ['a' COLLATE nocase]\n\tUNION\n\tSELECT CASE ascii(v[1]) WHEN 97 THEN 1 ELSE 2 END, ['A' COLLATE nocase] FROM t\n)\nTABLE t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":54,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":89,"query_location_length":42,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":11,"function_name":"ascii","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":101,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["ascii"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":134,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"nocase"}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":159,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k, min(v)) AS (\n\tSELECT array_value('a' COLLATE nocase), 2\n\tUNION\n\tSELECT array_value('A' COLLATE nocase), v - 1 FROM t WHERE v \u003e 0\n)\nSELECT count(*), min(v), min(k[1]) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":31,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":70,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"}}],"qualified_name":{"path":["array_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":31,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":120,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"nocase"}}],"qualified_name":{"path":["array_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":152,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":160,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":175,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":193,"query_location_length":9,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":198,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":208,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (\n\tWITH RECURSIVE t(i) AS (\n\t\tSELECT 0\n\t\tUNION ALL\n\t\tSELECT i + 1 FROM t\n\t)\n\tSELECT i FROM t LIMIT 2048\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":105,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"t","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT info.distinct_grouping_work_ns::UBIGINT \u003e 0,\n info.distinct_candidate_rows::UBIGINT = current_setting('standard_vector_size')::UBIGINT * 24 * 8,\n info.distinct_inserted_rows::UBIGINT = current_setting('standard_vector_size')::UBIGINT * 24 * 8,\n info.distinct_duplicate_rows::UBIGINT = 0,\n info.recursive_pipeline_execute_work_ns::UBIGINT \u003e 0\nFROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class = 'PhysicalRecursiveCTE' AND event = 'EpochSummary';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":30,"column_names":["info","distinct_grouping_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":97,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":28,"column_names":["info","distinct_candidate_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":57,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":138,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":39,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":22,"literal":{"kind":"STRING","text":"standard_vector_size"}}}],"qualified_name":{"path":["current_setting"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["*"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":165,"query_location_length":96,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":192,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":27,"column_names":["info","distinct_inserted_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":194,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":57,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":243,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":39,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":22,"literal":{"kind":"STRING","text":"standard_vector_size"}}}],"qualified_name":{"path":["current_setting"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":245,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["*"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":270,"query_location_length":41,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":298,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":270,"query_location_length":28,"column_names":["info","distinct_duplicate_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":300,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":310,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":320,"query_location_length":52,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":359,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":320,"query_location_length":39,"column_names":["info","recursive_pipeline_execute_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":361,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":371,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":378,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":397,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":423,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":423,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":423,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":431,"query_location_length":22,"literal":{"kind":"STRING","text":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":458,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":458,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":466,"query_location_length":14,"literal":{"kind":"STRING","text":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT info.direct_probe_lookup_work_ns::UBIGINT \u003e 0,\n info.direct_probe_key_gather_work_ns::UBIGINT \u003e 0,\n info.direct_probe_payload_finalize_work_ns::UBIGINT \u003e 0,\n info.keyed_hash_commit_work_ns::UBIGINT \u003e 0,\n info.partial_index_maintenance_work_ns::UBIGINT = 0,\n info.recurring_scan_work_ns::UBIGINT = 0,\n info.final_state_drain_work_ns::UBIGINT \u003e 0\nFROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class = 'PhysicalRecursiveCTE' AND event = 'EpochSummary';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":45,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":32,"column_names":["info","direct_probe_lookup_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":61,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":36,"column_names":["info","direct_probe_key_gather_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":119,"query_location_length":55,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":161,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":42,"column_names":["info","direct_probe_payload_finalize_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":183,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":213,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":30,"column_names":["info","keyed_hash_commit_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":235,"query_location_length":51,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":273,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":235,"query_location_length":38,"column_names":["info","partial_index_maintenance_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":275,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":295,"query_location_length":40,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":322,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":295,"query_location_length":27,"column_names":["info","recurring_scan_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":324,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":334,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":344,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":374,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":30,"column_names":["info","final_state_drain_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":376,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":386,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":393,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":412,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":438,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":438,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":438,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":446,"query_location_length":22,"literal":{"kind":"STRING","text":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":473,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":473,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":481,"query_location_length":14,"literal":{"kind":"STRING","text":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(k, v) USING KEY (k, min(v)) AS (\n\tVALUES (1, 5), (1, 6), (2, 10)\n\tUNION\n\tSELECT k, CASE k WHEN 1 THEN v + 1 ELSE v - 1 END\n\tFROM t\n\tWHERE (k = 1 AND v = 5) OR (k = 2 AND v = 10)\n)\nTABLE t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["k"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":100,"query_location_length":39,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":155,"query_location_length":39,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":156,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":156,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":166,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":177,"query_location_length":16,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":177,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":187,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH candidates AS MATERIALIZED (\n\tSELECT i FROM range(8192) r(i)\n)\nSELECT count(*), sum(i)\nFROM candidates c\nWHERE EXISTS (\n\tWITH RECURSIVE t(v) AS (\n\t\tVALUES (0)\n\t\tUNION ALL\n\t\tSELECT v + 1 FROM t WHERE v \u003c c.i % 4\n\t)\n\tSELECT 1 FROM t WHERE v = c.i % 4\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"candidates","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":49,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"INTEGER","text":"8192"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":97,"query_location_length":12,"schema_name":"","table_name":"candidates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["candidates"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":116,"query_location_length":139,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":187,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":196,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":204,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":208,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":3,"column_names":["c","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["v"],"key_targets":[]}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":234,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":242,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":246,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":246,"query_location_length":3,"column_names":["c","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":252,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE t(i) AS (\n\tSELECT 1\n\tUNION\n\tSELECT i + 1 FROM t WHERE i \u003c 1000\n)\nSELECT sum(i) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":69,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with cte1 as (select i as j from a), cte2 as (select ref.j as k from cte1 as ref), cte3 as (select ref2.j+1 as i from cte1 as ref2) select * from cte2 union all select * FROM cte3;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":21,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"k","query_location":53,"query_location_length":5,"column_names":["ref","j"]}],"from_table":{"type":"BASE_TABLE","alias":"ref","sample":null,"query_location":69,"query_location_length":11,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte3","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":105,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":6,"column_names":["ref2","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"ref2","sample":null,"query_location":118,"query_location_length":12,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":139,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":4,"schema_name":"","table_name":"cte2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":168,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":175,"query_location_length":4,"schema_name":"","table_name":"cte3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE\n t(b) AS MATERIALIZED (\n (WITH helper(c) AS (\n SELECT 5\n )\n SELECT * FROM helper h\n UNION\n SELECT 7\n )\n )\nSELECT * FROM t ORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["b"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[{"key":"helper","value":{"aliases":["c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":97,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"h","sample":null,"query_location":104,"query_location_length":8,"schema_name":"","table_name":"helper","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["helper"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["b"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":153,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":160,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with a as (select * from va) select * from a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"a","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":2,"schema_name":"","table_name":"va","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["va"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":36,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE\nparent(p,c) AS (\n VALUES ('c1','c2'),\n ('c1','c3'),\n ('c3','c4'),\n ('c3','c5'),\n ('c4','c6'),\n ('c4','c7')\n),\nancestor(a,c) AS (\n FROM parent\n UNION\n SELECT a1.x, a2.y\n FROM recurring.ancestor AS a1(x,z) NATURAL JOIN recurring.ancestor AS a2(z,y)\n)\nFROM ancestor ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[{"key":"parent","value":{"aliases":["p","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"STRING","text":"c1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"STRING","text":"c2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"STRING","text":"c1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"literal":{"kind":"STRING","text":"c5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"STRING","text":"c6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":4,"literal":{"kind":"STRING","text":"c7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"ancestor","value":{"aliases":["a","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"ancestor","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":192,"query_location_length":6,"schema_name":"","table_name":"parent","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parent"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":4,"column_names":["a1","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":4,"column_names":["a2","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":268,"query_location_length":42,"left":{"type":"BASE_TABLE","alias":"a1","sample":null,"query_location":238,"query_location_length":29,"schema_name":"recurring","table_name":"ancestor","column_name_alias":["x","z"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","ancestor"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":281,"query_location_length":29,"schema_name":"recurring","table_name":"ancestor","column_name_alias":["z","y"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","ancestor"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","c"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":318,"query_location_length":8,"schema_name":"","table_name":"ancestor","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ancestor"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with recursive t as (select 1 as x, 'hello' as y union select x+1, y || '-' || 'hello' from t where x \u003c 3) select * from t order by x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":36,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":19,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":100,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":114,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":121,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with recursive t as (select 1 as x union all select m.x+f.x from t as m, t as f where m.x \u003c 3) select * from t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":3,"column_names":["m","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["f","x"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":60,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"m","sample":null,"query_location":65,"query_location_length":6,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":73,"query_location_length":6,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":86,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["m","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":102,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE r(k,v) USING KEY(k,\"payload calls\".max(v)) AS (VALUES(1,10) UNION ALL SELECT k+1,v+1 FROM r WHERE k\u003c3) SELECT * FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":22,"function_name":"max","schema":"payload calls","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["payload calls","max"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":22,"function_name":"max","schema":"payload calls","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["payload calls","max"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":125,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM tbl2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t WHERE j = 20;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t2_copy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"t2_copy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2_copy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from list_int where l is distinct from NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"list_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":36,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM RANGE(1, hello=3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["hello"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT st FROM chickens, integers, strings;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["st"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":10,"query_location_length":32,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":8,"schema_name":"","table_name":"chickens","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["chickens"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(name), FIRST(abv)\nFROM tbl\nGROUP BY style\nORDER BY abv DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["abv"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["name"]}}],"qualified_name":{"path":["first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["abv"]}}],"qualified_name":{"path":["first"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":5,"column_names":["style"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY(CASE WHEN x % 2 = 0 THEN 1 // (x - 2) ELSE -1 END) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":54,"children":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":11,"query_location_length":49,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":21,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":12,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["//"]}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM binding_left WHERE i + length(s) = 6;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"binding_left","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["binding_left"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["length"]}}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM (VALUES\n\t((-128)::TINYINT, (-32768)::SMALLINT, (-2147483648)::INTEGER, (-9223372036854775808)::BIGINT),\n\t(127::TINYINT, 32767::SMALLINT, 2147483647::INTEGER, 9223372036854775807::BIGINT)\n) t(tiny_value, small_value, integer_value, bigint_value)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":188,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-128"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":6,"literal":{"kind":"INTEGER","text":"-32768"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483648"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":5,"literal":{"kind":"INTEGER","text":"32767"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":161,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483647"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":191,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":193,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["tiny_value","small_value","integer_value","bigint_value"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT contains(content, 'sql-num'),\n contains(content, 'sql-str'),\n contains(content, 'sql-comment'),\n contains(content, '\u0026lt;'),\n contains(content, '\u0026amp;')\nFROM read_text('{TEST_DIR}/tree_renderer_profile.html')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":9,"literal":{"kind":"STRING","text":"sql-num"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":28,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":9,"literal":{"kind":"STRING","text":"sql-str"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":32,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":13,"literal":{"kind":"STRING","text":"sql-comment"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":25,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":6,"literal":{"kind":"STRING","text":"\u0026lt;"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":26,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":7,"literal":{"kind":"STRING","text":"\u0026amp;"}}}],"qualified_name":{"path":["contains"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":188,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/tree_renderer_profile.html"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM \"table.with-symbols\" ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"","table_name":"table.with-symbols","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table.with-symbols"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT col1::VARCHAR FROM table2 ORDER BY col1::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["col1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["col1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"table2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from unsupported_value;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":17,"schema_name":"","table_name":"unsupported_value","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unsupported_value"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT prefix FROM duckdb_extension_repositories() WHERE repository_name='acme'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["prefix"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_extension_repositories","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_extension_repositories"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":15,"column_names":["repository_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":6,"literal":{"kind":"STRING","text":"acme"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_extensions() WHERE extension_version != '' AND extension_name == 'sqlite_scanner';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_extensions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_extensions"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":62,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":17,"column_names":["extension_version"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":14,"column_names":["extension_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":16,"literal":{"kind":"STRING","text":"sqlite_scanner"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(i) FROM null_inputs\nWHERE i%5=2 AND NULL::INTEGER IS NULL AND 42 IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":11,"schema_name":"","table_name":"null_inputs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_inputs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":71,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":86,"query_location_length":11,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(n) FROM non_null_runs WHERE NULLIF(n,7) IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":13,"schema_name":"","table_name":"non_null_runs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_null_runs"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":61,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":11,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["nullif"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON (sum(x) FILTER (WHERE COLUMNS(*) IS NOT NULL)) g,\n sum(x) FILTER (WHERE COLUMNS(*) IS NOT NULL) AS s\nFROM (VALUES (1, 1, 1, NULL), (1, 1, NULL, 1), (2, 1, 1, 1), (2, 1, NULL, NULL)) v(g, x, a, b)\nGROUP BY g\nORDER BY sum(x) FILTER (WHERE COLUMNS(*) IS NOT NULL) DESC, g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":44,"function_name":"sum","schema":"","filter":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":52,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":49,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":241,"query_location_length":44,"function_name":"sum","schema":"","filter":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":273,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":270,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":245,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":76,"query_location_length":44,"function_name":"sum","schema":"","filter":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":108,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":105,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":131,"query_location_length":75,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g","x","a","b"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE 2\u003c2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'x'::BLOB AS c0 UNION ALL SELECT c3 FROM t0 ORDER BY c0 LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["c0"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"c0","query_location":10,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["c3"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t WHERE c1 LIKE NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":9,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE a=2 AND a\u003e=2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":37,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE a\u003e=5 AND a\u003c\u003e2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":13,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":29,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":38,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE a\u003c2 AND a\u003e4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM strings WHERE s='hello' AND s\u003c'z'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":28,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":42,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test_structs WHERE i.a \u003c 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"test_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_structs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":33,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["i","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/string_structs.parquet') WHERE s.a = 'foo';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/string_structs.parquet"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM vals1 WHERE i\u003e9 AND j\u003e=i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":26,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":34,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM vals1 WHERE i\u003c1 AND j\u003ei","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":26,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM vals1 WHERE j\u003c=i AND i=5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":26,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM vals1 WHERE j\u003ci AND i\u003e=10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":13,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":26,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":34,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c0, c1\nFROM t_decimal\nWHERE TRY(c1 / c0) IS NULL\nORDER BY c0 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":2,"column_names":["c0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["c1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":9,"schema_name":"","table_name":"t_decimal","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_decimal"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":48,"query_location_length":7,"children":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":35,"query_location_length":12,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":7,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["/"]}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from t where a \u003e 500 or a \u003c= 700","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":29,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":40,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"INTEGER","text":"700"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM range(5) t(i) WHERE i \u003e 0 AND nextval('transitive_calls') \u003e= i ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":34,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":44,"query_location_length":32,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":27,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":18,"literal":{"kind":"STRING","text":"transitive_calls"}}}],"qualified_name":{"path":["nextval"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM bounds WHERE a \u003e 0 AND a = b AND b \u003e a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"bounds","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bounds"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":27,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":27,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["b"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":47,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_cosine_similarity([1e-320,0,0]::DOUBLE[3], [1e-320,0,0]::DOUBLE[3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"array_cosine_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"1e-320"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"1e-320"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["array_cosine_similarity"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select length(a) from arrays;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_slice(array_value(1,2,3,4,5), 1, 3) = list_slice([1,2,3,4,5], 1, 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":72,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"list_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":22,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["array_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_slice"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":29,"function_name":"list_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_slice"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_extract(array_value(4,5,6), 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":18,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["array_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('COPY my_') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"literal":{"kind":"STRING","text":"COPY my_"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE SEQ') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":12,"literal":{"kind":"STRING","text":"CREATE SEQ"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('create table tbl(i INTEGER PRIMARY KE') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":39,"literal":{"kind":"STRING","text":"create table tbl(i INTEGER PRIMARY KE"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE TY') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":11,"literal":{"kind":"STRING","text":"CREATE TY"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion_start FROM sql_auto_complete('\nSELECT\n format_m') WHERE suggestion='format_me';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":22,"literal":{"kind":"STRING","text":"\nSELECT\n format_m"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":10,"column_names":["suggestion"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":11,"literal":{"kind":"STRING","text":"format_me"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT sum(a) filt') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":20,"literal":{"kind":"STRING","text":"SELECT sum(a) filt"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('INSERT INTO tbl(c1, c2) VAL') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":29,"literal":{"kind":"STRING","text":"INSERT INTO tbl(c1, c2) VAL"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('WI') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":23,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"STRING","text":"WI"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl LIMIT 5 OF') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":30,"literal":{"kind":"STRING","text":"SELECT * FROM tbl LIMIT 5 OF"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl JOIN tbl2 US') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":32,"literal":{"kind":"STRING","text":"SELECT * FROM tbl JOIN tbl2 US"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl QUALIFY row_number() OVER () ORD') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":71,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":52,"literal":{"kind":"STRING","text":"SELECT * FROM tbl QUALIFY row_number() OVER () ORD"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SET timez') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":11,"literal":{"kind":"STRING","text":"SET timez"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM sql_auto_complete('SHOW tab') WHERE suggestion = 'tables ';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":10,"literal":{"kind":"STRING","text":"SHOW tab"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":10,"column_names":["suggestion"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":9,"literal":{"kind":"STRING","text":"tables "}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('select a from t1 inner join t2 on t1.id = t2.id where t1.active = true') = $$SELECT a\nFROM t1\nINNER JOIN t2 ON t1.id = t2.id\nWHERE t1.active = TRUE$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":168,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":91,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":72,"literal":{"kind":"STRING","text":"select a from t1 inner join t2 on t1.id = t2.id where t1.active = true"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":74,"literal":{"kind":"STRING","text":"SELECT a\nFROM t1\nINNER JOIN t2 ON t1.id = t2.id\nWHERE t1.active = TRUE"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('select a from t where x = 1', MAP {'inline_threshold': '0', 'indent_size': '2'}) = $$SELECT\n a\nFROM\n t\nWHERE\n x = 1$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":139,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":99,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":29,"literal":{"kind":"STRING","text":"select a from t where x = 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":49,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":18,"literal":{"kind":"STRING","text":"inline_threshold"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":13,"literal":{"kind":"STRING","text":"indent_size"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":37,"literal":{"kind":"STRING","text":"SELECT\n a\nFROM\n t\nWHERE\n x = 1"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('CREATE TEMP TABLE t (id INTEGER, name VARCHAR)') = $$CREATE TEMP TABLE t(\n id INTEGER,\n name VARCHAR\n)$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":129,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":48,"literal":{"kind":"STRING","text":"CREATE TEMP TABLE t (id INTEGER, name VARCHAR)"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":59,"literal":{"kind":"STRING","text":"CREATE TEMP TABLE t(\n id INTEGER,\n name VARCHAR\n)"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('CREATE OR REPLACE MACRO clamp(x, lo, hi) AS CASE WHEN x \u003c lo THEN lo WHEN x \u003e hi THEN hi ELSE x END') = $$CREATE OR REPLACE MACRO clamp(x, lo, hi) AS CASE WHEN x \u003c lo THEN lo WHEN x \u003e hi THEN hi ELSE x END$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":226,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":120,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":101,"literal":{"kind":"STRING","text":"CREATE OR REPLACE MACRO clamp(x, lo, hi) AS CASE WHEN x \u003c lo THEN lo WHEN x \u003e hi THEN hi ELSE x END"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":103,"literal":{"kind":"STRING","text":"CREATE OR REPLACE MACRO clamp(x, lo, hi) AS CASE WHEN x \u003c lo THEN lo WHEN x \u003e hi THEN hi ELSE x END"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('WITH RECURSIVE tree AS (SELECT id, parent_id, name, 0 as depth FROM nodes WHERE parent_id IS NULL UNION ALL SELECT n.id, n.parent_id, n.name, t.depth + 1 FROM nodes n INNER JOIN tree t ON n.parent_id = t.id) SELECT * FROM tree ORDER BY depth, name') = $$WITH RECURSIVE tree AS (\n SELECT id, parent_id, name, 0 AS depth\n FROM nodes\n WHERE parent_id IS NULL\n UNION ALL\n SELECT n.id, n.parent_id, n.name, t.depth + 1\n FROM nodes n\n INNER JOIN tree t ON n.parent_id = t.id\n )\nSELECT *\nFROM tree\nORDER BY depth, name$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":584,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":268,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":249,"literal":{"kind":"STRING","text":"WITH RECURSIVE tree AS (SELECT id, parent_id, name, 0 as depth FROM nodes WHERE parent_id IS NULL UNION ALL SELECT n.id, n.parent_id, n.name, t.depth + 1 FROM nodes n INNER JOIN tree t ON n.parent_id = t.id) SELECT * FROM tree ORDER BY depth, name"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":313,"literal":{"kind":"STRING","text":"WITH RECURSIVE tree AS (\n SELECT id, parent_id, name, 0 AS depth\n FROM nodes\n WHERE parent_id IS NULL\n UNION ALL\n SELECT n.id, n.parent_id, n.name, t.depth + 1\n FROM nodes n\n INNER JOIN tree t ON n.parent_id = t.id\n )\nSELECT *\nFROM tree\nORDER BY depth, name"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('SELECT name, count(*) FROM users GROUP BY ALL ORDER BY ALL') = $$SELECT name, count(*)\nFROM users\nGROUP BY ALL\nORDER BY ALL$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":144,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":79,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":60,"literal":{"kind":"STRING","text":"SELECT name, count(*) FROM users GROUP BY ALL ORDER BY ALL"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":62,"literal":{"kind":"STRING","text":"SELECT name, count(*)\nFROM users\nGROUP BY ALL\nORDER BY ALL"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('CREATE OR REPLACE TABLE t AS SELECT a, b FROM s') = $$CREATE OR REPLACE TABLE t AS\nSELECT a, b\nFROM s$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":122,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":49,"literal":{"kind":"STRING","text":"CREATE OR REPLACE TABLE t AS SELECT a, b FROM s"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":51,"literal":{"kind":"STRING","text":"CREATE OR REPLACE TABLE t AS\nSELECT a, b\nFROM s"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql('SELECT 100.00 * sum(CASE WHEN p_type LIKE ''PROMO%'' THEN l_extendedprice * (1 - l_discount) ELSE 0 END) / sum(l_extendedprice * (1 - l_discount)) AS promo_revenue FROM t') = $$SELECT 100.00 * sum(\n CASE\n WHEN p_type LIKE 'PROMO%' THEN l_extendedprice *(1 - l_discount)\n ELSE 0\n END) / sum(l_extendedprice *(1 - l_discount)) AS promo_revenue\nFROM t$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":389,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":191,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":172,"literal":{"kind":"STRING","text":"SELECT 100.00 * sum(CASE WHEN p_type LIKE 'PROMO%' THEN l_extendedprice * (1 - l_discount) ELSE 0 END) / sum(l_extendedprice * (1 - l_discount)) AS promo_revenue FROM t"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":195,"literal":{"kind":"STRING","text":"SELECT 100.00 * sum(\n CASE\n WHEN p_type LIKE 'PROMO%' THEN l_extendedprice *(1 - l_discount)\n ELSE 0\n END) / sum(l_extendedprice *(1 - l_discount)) AS promo_revenue\nFROM t"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_format_sql($query$SELECT 42 AS `a\n b\n c`$query$) = $query$SELECT 42 AS `a\n b\n c`$query$;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":106,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":42,"literal":{"kind":"STRING","text":"SELECT 42 AS `a\n b\n c`"}}}],"qualified_name":{"path":["duckdb_format_sql"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":42,"literal":{"kind":"STRING","text":"SELECT 42 AS `a\n b\n c`"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion FROM sql_auto_complete('COPY tbl FROM ''{DATA_DIR}/csv/all_quote') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":42,"literal":{"kind":"STRING","text":"COPY tbl FROM '{DATA_DIR}/csv/all_quote"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT min(l_ord') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":18,"literal":{"kind":"STRING","text":"SELECT min(l_ord"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start, suggestion_type FROM sql_auto_complete('SELECT * FROM partsupp JOIN supplier USING (ps_su') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":15,"column_names":["suggestion_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":58,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":51,"literal":{"kind":"STRING","text":"SELECT * FROM partsupp JOIN supplier USING (ps_su"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT lag(col1) OVER (PARTITION BY col1, col2 ORD') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":71,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":52,"literal":{"kind":"STRING","text":"SELECT lag(col1) OVER (PARTITION BY col1, col2 ORD"}}}],"qualified_name":{"path":["sql_auto_complete"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT from_base64(base64(encode('')))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"from_base64","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":18,"function_name":"base64","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":10,"function_name":"encode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["encode"]}}}],"qualified_name":{"path":["base64"]}}}],"qualified_name":{"path":["from_base64"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers ORDER BY create_sort_key(i, 'DESC NULLS FIRST')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":38,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":18,"literal":{"kind":"STRING","text":"DESC NULLS FIRST"}}}],"qualified_name":{"path":["create_sort_key"]}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.i, s.v FROM structs ORDER BY create_sort_key(s.i, 'DESC NULLS FIRST', s.v, 'DESC NULLS FIRST')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":65,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["s","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":18,"literal":{"kind":"STRING","text":"DESC NULLS FIRST"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["s","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":18,"literal":{"kind":"STRING","text":"DESC NULLS FIRST"}}}],"qualified_name":{"path":["create_sort_key"]}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["s","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["s","v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT hex(create_sort_key('\\xAA\\x00\\xBB\\x01\\xCC'::BLOB, 'DESC NULLS LAST'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":64,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":22,"literal":{"kind":"STRING","text":"\\xAA\\x00\\xBB\\x01\\xCC"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":17,"literal":{"kind":"STRING","text":"DESC NULLS LAST"}}}],"qualified_name":{"path":["create_sort_key"]}}}],"qualified_name":{"path":["hex"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT decode('\\x00'::BLOB)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"\\x00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select array_slice(blob '\\x00\\xF0\\x9F\\xA6\\x86\\x00', 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"\\x00\\xF0\\x9F\\xA6\\x86\\x00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[],"qualified_name":{"path":["blob"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_slice"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_ADD(TIMESTAMP '2008-12-25 00:00:00', INTERVAL 5 DAY) AS five_days_later;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"five_days_later","query_location":7,"query_location_length":57,"function_name":"date_add","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2008-12-25 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["date_add"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(century FROM d) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"CENTURY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(quarter FROM d) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc('week', DATE '2024-10-06'), date_trunc('isoyear', DATE '2024-10-06'), date_trunc('week', DATE 'infinity')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-10-06"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_trunc"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":40,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":9,"literal":{"kind":"STRING","text":"isoyear"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-10-06"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_trunc"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":35,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_part(s, DATE '1992-01-01') FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_part('isoyear', d::TIMESTAMP) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":9,"literal":{"kind":"STRING","text":"isoyear"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LAST_DAY(d) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"last_day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last_day"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT d, DATE_PART(['year', 'month', 'day', 'epoch'], d) AS parts\nFROM dates\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":10,"query_location_length":47,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc(NULL::VARCHAR, NULL::TIMESTAMP) FROM timestamps LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc('yearweek', TIMESTAMP '2019-01-06 04:03:02') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":10,"literal":{"kind":"STRING","text":"yearweek"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-01-06 04:03:02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT d::DATE, DATE_TRUNC('isoyear', d)::DATE\nFROM generate_series('2000-01-01'::TIMESTAMP, '2023-01-01'::TIMESTAMP, INTERVAL 1 YEAR) tbl(d);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":24,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":9,"literal":{"kind":"STRING","text":"isoyear"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":52,"query_location_length":89,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":12,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":105,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":12,"literal":{"kind":"STRING","text":"2023-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"query_location_length":15,"function_name":"to_years","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_years"]}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(day FROM i) FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"DAY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(hour FROM i) FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"HOUR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(dow FROM cast('1970-01-01' AS DATE) - 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"dow"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":12,"literal":{"kind":"STRING","text":"1970-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(week FROM cast('2006-01-01' AS DATE));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2006-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 49);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"49"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 133);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"133"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 217);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"217"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(year FROM d) FROM dates2 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"YEAR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":6,"schema_name":"","table_name":"dates2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(NULL::TIMESTAMP, NULL) FROM range(3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, '%A') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%A"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(DATE '2001-01-01', '%-y')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2001-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"%-y"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, '%f') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%f"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, 'XX%cXX%xXX%XXX') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":16,"literal":{"kind":"STRING","text":"XX%cXX%xXX%XXX"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select d, time_bucket('2 weeks'::interval, d, '6 days'::interval) from dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":55,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"2 weeks"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":8,"literal":{"kind":"STRING","text":"6 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select w, d, origin, time_bucket(w, d, origin) from dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["w"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":6,"column_names":["origin"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":25,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":6,"column_names":["origin"]}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('1 month 1 day'::interval, '2019-05-05'::date, '2019-05-05'::date);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":78,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"1 month 1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":12,"literal":{"kind":"STRING","text":"2019-05-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":12,"literal":{"kind":"STRING","text":"2019-05-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('1 day'::interval, '290309-12-21 (BC)'::date);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":19,"literal":{"kind":"STRING","text":"290309-12-21 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('-1 month'::interval, null::date, '2022-12-20'::date);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":12,"literal":{"kind":"STRING","text":"2022-12-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM mixed WHERE yearweek(d) = -10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"mixed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":11,"function_name":"yearweek","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["yearweek"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT enum_range(null::rainbow)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"enum_range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[],"qualified_name":{"path":["rainbow"]}}}}],"qualified_name":{"path":["enum_range"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT enum_range_boundary(1, 'orange'::rainbow)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"enum_range_boundary","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":"orange"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[],"qualified_name":{"path":["rainbow"]}}}}],"qualified_name":{"path":["enum_range_boundary"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT can_cast_implicitly(i, NULL::HUGEINT) FROM tbl LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"can_cast_implicitly","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["can_cast_implicitly"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('case_when_seq');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":15,"literal":{"kind":"STRING","text":"case_when_seq"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_sort(cast_to_type(['a' COLLATE nocase,'B'], [NULL::VARCHAR COLLATE \"binary\"]), 'ASC', 'NULLS FIRST')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":105,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":72,"function_name":"cast_to_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":24,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":31,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":32,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":57,"query_location_length":30,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"binary"}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["cast_to_type"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"STRING","text":"ASC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":13,"literal":{"kind":"STRING","text":"NULLS FIRST"}}}],"qualified_name":{"path":["list_sort"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 42=error('hello world')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":23,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":20,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}}],"qualified_name":{"path":["error"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT m, HASH(m) FROM maps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":7,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["m"]}}],"qualified_name":{"path":["hash"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"maps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["maps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FILTER (WHERE a = b), count(*)\nFROM (\n\tSELECT\n\t\tinvoke(lambda x: nextval('invoke_cse_seq'), i) a,\n\t\tinvoke(lambda x: nextval('invoke_cse_seq'), i) b\n\tFROM range(10000) tbl(i)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["b"]}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":140,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":64,"query_location_length":46,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":71,"query_location_length":35,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":16,"literal":{"kind":"STRING","text":"invoke_cse_seq"}}}],"qualified_name":{"path":["nextval"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["invoke"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":116,"query_location_length":46,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":123,"query_location_length":35,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":16,"literal":{"kind":"STRING","text":"invoke_cse_seq"}}}],"qualified_name":{"path":["nextval"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["invoke"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":171,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select invoke(lambda a, b: invoke(lambda c: a * 100 + b * 10 + c, 3), 1, 2) as result","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"result","query_location":7,"query_location_length":68,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":14,"query_location_length":54,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":41,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":34,"query_location_length":30,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":6,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["invoke"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["invoke"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(DISTINCT invoke(lambda x: nextval('invoke_dictionary_seq'), s)) FROM invoke_dictionary_tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":53,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":29,"query_location_length":42,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":32,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":23,"literal":{"kind":"STRING","text":"invoke_dictionary_seq"}}}],"qualified_name":{"path":["nextval"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["invoke"]}}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":21,"schema_name":"","table_name":"invoke_dictionary_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["invoke_dictionary_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_type('a');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"make_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["make_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(repeat(CAST(NULL AS VARCHAR) || 'z', 2))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":39,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":28,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(nullif('a', 'a') || 'z'), typeof(repeat(nullif('a', 'a') || 'z', 2)), typeof(upper(NULL::VARCHAR) || 'z')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":23,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":16,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["nullif"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":42,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":34,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":23,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":16,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["nullif"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":35,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":27,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":20,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["upper"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_extract(NULL::INT, 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT replace_type((42, 'duck', true), NULL::INTEGER, NULL::BIGINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"replace_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":18,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["replace_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_distance('asdf', [42]::INTEGER[1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"array_distance","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"asdf"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["array_distance"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select array_pop_front(i) from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"array_pop_front","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["array_pop_front"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bitstring_agg(i, 0, (100 + random())::BIGINT) FROM range(10) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":58,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT any_value(NULL ORDER BY c38 ASC) FROM t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["c38"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT NULL LIMIT rank_dense() OVER ())","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":33,"query_location_length":20,"function_name":"rank_dense","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank_dense"]},"is_legacy_function_call":false},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_time(1, 1, 9999999);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"make_time","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"INTEGER","text":"9999999"}}}],"qualified_name":{"path":["make_time"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 42 OFFSET format_type(NULL, 2515);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":23,"function_name":"format_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2515"}}}],"qualified_name":{"path":["format_type"]},"is_legacy_function_call":false},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL FROM read_csv('{TEST_DIR}/test_null_args.csv', names=NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/test_null_args.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":5,"column_names":["names"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM repeat_row(num_rows=3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat_row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":16,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":8,"column_names":["num_rows"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}}],"qualified_name":{"path":["repeat_row"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT avg(c1) FROM test_vector_types(CAST(NULL AS TIMESTAMP)) AS test_vector_types(c1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["c1"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"test_vector_types","sample":null,"query_location":20,"query_location_length":67,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["test_vector_types"]},"is_legacy_function_call":false},"column_name_alias":["c1"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT arg_min(CAST(ref_5.\"varchar\" AS VARCHAR), CAST(ref_4.\"varchar\" AS VARCHAR)) OVER (PARTITION BY ref_5.\"bit\") \nFROM main.all_types AS ref_4 \nINNER JOIN main.all_types AS ref_5 ON (ref_5.hugeint IS NOT NULL)\nINNER JOIN main.all_types AS ref_7 ON (ref_4.\"int\" = ref_5.\"int\")","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":107,"function_name":"arg_min","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":11,"column_names":["ref_5","bit"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":15,"column_names":["ref_5","varchar"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":15,"column_names":["ref_4","varchar"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["arg_min"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":212,"query_location_length":65,"left":{"type":"JOIN","alias":"","sample":null,"query_location":146,"query_location_length":65,"left":{"type":"BASE_TABLE","alias":"ref_4","sample":null,"query_location":121,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"right":{"type":"BASE_TABLE","alias":"ref_5","sample":null,"query_location":157,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":199,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":13,"column_names":["ref_5","hugeint"]}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"ref_7","sample":null,"query_location":223,"query_location_length":23,"schema_name":"main","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","all_types"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":251,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":11,"column_names":["ref_4","int"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":11,"column_names":["ref_5","int"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NOT (*COLUMNS(*)) FROM v00;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":17,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":12,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":21,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":3,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0 FROM t0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 WHERE '23:' \u003e ALL(SELECT '0') BETWEEN false AND true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":39,"query_location_length":22,"input":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":15,"query_location_length":23,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"23:"}},"comparison_type":"COMPARE_LESSTHANOREQUALTO"}]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 alias1 FROM (SELECT 1) t2(c1) GROUP BY ALL HAVING (SELECT alias1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"alias1","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":21,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c1"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":59,"query_location_length":15,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":6,"column_names":["alias1"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t0.*, min(1 ORDER BY *) FROM (VALUES ('1')) t0(c0) GROUP BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":4,"relation_name":"t0","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":17,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":28,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":36,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'a': 42} = ALL(SELECT {'a': '42'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":35,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":36,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_NOTEQUAL"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4294967167::REAL::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"INTEGER","text":"4294967167"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c1 FROM t0 WHERE (c0 + c1) = 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["c1"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) c1 HAVING EXISTS (SELECT 1 FROM t1 WHERE c1 = c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c1","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":39,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["c1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":2,"column_names":["c0"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2 INTERSECT VALUES([]);","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM t1 t2(c1) NATURAL RIGHT JOIN t0, t2 t1(c0) WHERE t2.c2 \u003e= c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":47,"left":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"t1","column_name_alias":["c1"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"condition":null,"join_type":"RIGHT","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":47,"query_location_length":9,"schema_name":"","table_name":"t2","column_name_alias":["c0"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":63,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":5,"column_names":["t2","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":2,"column_names":["c0"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM t0 NATURAL INNER JOIN (SELECT 8) t1(c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"right":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":36,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"(SELECT 2 ORDER BY(SELECT 2)) UNION SELECT 1 ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM ((SELECT 2) t0(c0) JOIN (SELECT 3) t1(c0) ON TRUE), ((SELECT 4) t2(c0) JOIN ((SELECT 5) t3(c0) CROSS JOIN (SELECT 6) t4(c0)) ON TRUE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":138,"left":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":30,"left":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":15,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"right":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":38,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"JOIN","alias":"","sample":null,"query_location":85,"query_location_length":61,"left":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":67,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"right":{"type":"JOIN","alias":"","sample":null,"query_location":109,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"t3","sample":null,"query_location":91,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"right":{"type":"SUBQUERY","alias":"t4","sample":null,"query_location":120,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM (SELECT 2) t0(c0) QUALIFY (count(sum(42)) OVER());","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":14,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":41,"query_location_length":21,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM t1 GROUP BY 1, ROLLUP (c1) HAVING (NOT (c1 \u003e 1));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["c1"]}],"group_sets":[[0],[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":49,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":54,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["c1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime(NULL,'p') IS DISTINCT FROM DATE '-543572-1-1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":54,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"p"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-543572-1-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decode('\\xF0\\x9F\\x98\\x84'::BLOB)::VARCHAR ILIKE '😄';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":18,"literal":{"kind":"STRING","text":"\\xF0\\x9F\\x98\\x84"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":6,"literal":{"kind":"STRING","text":"😄"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT upper(decode('\\xc1\\x80'::BLOB)::VARCHAR);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":24,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"\\xc1\\x80"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["upper"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COLUMNS('v00')\nFROM v00 AS t1 FULL JOIN v00 AS t2 USING (c01) ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"v00"}},"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":27,"query_location_length":9,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":47,"query_location_length":9,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"condition":null,"join_type":"FULL","ref_type":"REGULAR","using_columns":["c01"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"PIVOT_WIDER t1 ON c01 IN ENUM;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":12,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["c01"]}],"unpivot_names":[],"entries":[],"pivot_enum":"ENUM"}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bitstring_agg(v, CAST(v AS UBIGINT), CAST(v AS UBIGINT)) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT generate_series(-9223372036854775806, -9223372036854775808, -1) AS c1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c1","query_location":7,"query_location_length":63,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775806"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL\nFROM\n t AS ref_2,\n (SELECT (SELECT NULL\n FROM (FROM t AS ref_5,\n (SELECT ref_5.ps_supplycost AS c0,\n ref_2.n_name AS c1))));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":12,"query_location_length":171,"left":{"type":"BASE_TABLE","alias":"ref_2","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":146,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":45,"query_location_length":137,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":72,"query_location_length":109,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":107,"left":{"type":"BASE_TABLE","alias":"ref_5","sample":null,"query_location":78,"query_location_length":10,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":104,"query_location_length":76,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":112,"query_location_length":19,"column_names":["ref_5","ps_supplycost"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":161,"query_location_length":12,"column_names":["ref_2","n_name"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL FROM (\n\tSELECT 4767 \n\tFROM generate_series(CAST('290309-12-22 (BC) 00:00:00+00' AS TIMESTAMP WITH TIME ZONE), NULL, NULL) \n\t AS t6(c1, c2, c3, c4, c5)\n\t) \n\tAS t64","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"SUBQUERY","alias":"t64","sample":null,"query_location":17,"query_location_length":149,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4767"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t6","sample":null,"query_location":39,"query_location_length":124,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":65,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":31,"literal":{"kind":"STRING","text":"290309-12-22 (BC) 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":24,"catalog":"","schema":"","type_name":"TIMESTAMP WITH TIME ZONE","children":[],"qualified_name":{"path":["TIMESTAMP WITH TIME ZONE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["c1","c2","c3","c4","c5"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(s) FROM (\n\tSELECT list(v) AS s FROM (VALUES ([1, 2])) t(v)\n\tUNION ALL\n\tSELECT list(v) EXPORT_STATE AS s FROM (VALUES ([3])) t(v)\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":122,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":34,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":52,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":94,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":125,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine_aggr(s)) = (SELECT approx_count_distinct(i) FROM range(1000) t(i)) FROM (\n SELECT to_aggregate_state(NULL::STRUCT(precision UTINYINT, registers UTINYINT[]), 'approx_count_distinct', ['BIGINT']) s\n UNION ALL\n SELECT approx_count_distinct(i) EXPORT_STATE FROM range(1000) t(i)\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":83,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":24,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":73,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":96,"query_location_length":213,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":109,"query_location_length":111,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":50,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":134,"query_location_length":48,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"precision","query_location":151,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}},{"class":"TYPE","type":"TYPE","alias":"registers","query_location":171,"query_location_length":10,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":171,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":23,"literal":{"kind":"STRING","text":"approx_count_distinct"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":209,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":210,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":248,"query_location_length":37,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":270,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":291,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(s),\n finalize(to_aggregate_state(s::STRUCT(precision UTINYINT, registers UTINYINT[]),\n 'approx_count_distinct', ['ANY']))\nFROM (\n SELECT g, approx_count_distinct(v) EXPORT_STATE s\n FROM (VALUES (0,1::BIGINT),(0,1),(0,NULL),(1,NULL),(2,2)) input(g,v)\n GROUP BY g\n) states;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":11,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":149,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":139,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":50,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":48,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"precision","query_location":78,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}},{"class":"TYPE","type":"TYPE","alias":"registers","query_location":98,"query_location_length":10,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":23,"literal":{"kind":"STRING","text":"approx_count_distinct"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"states","sample":null,"query_location":185,"query_location_length":145,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":201,"query_location_length":37,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"input","sample":null,"query_location":250,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":262,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":261,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":264,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":279,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":290,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":299,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g","v"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":327,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine_aggr(s)) FROM (\n SELECT approx_quantile(i, 0.5) EXPORT_STATE AS s FROM range(1, 500) t(i)\n UNION ALL\n SELECT approx_quantile(i, 0.5) EXPORT_STATE AS s FROM range(500, 1001) t(i)\n UNION ALL\n SELECT approx_quantile(i, 0.5) EXPORT_STATE AS s FROM (SELECT 1 AS i WHERE false) t\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":38,"query_location_length":276,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":51,"query_location_length":36,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":98,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":142,"query_location_length":36,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":189,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1001"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":236,"query_location_length":36,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":283,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":291,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":304,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (approx_top_k(x, 2) EXPORT_STATE)::STRUCT(k UBIGINT, \"values\" STRUCT(\"value\" INTEGER, \"count\" UBIGINT)[], \"filter\" UBIGINT[]).\"values\" FROM (VALUES (5), (5), (6)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":134,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":92,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":31,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["approx_top_k"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":90,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"k","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"values","query_location":69,"query_location_length":42,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":40,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"count","query_location":101,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}},{"class":"TYPE","type":"TYPE","alias":"filter","query_location":122,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":9,"literal":{"kind":"STRING","text":"values"}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":147,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine(approx_top_k(x, 2) EXPORT_STATE, (SELECT approx_top_k(y, 3) EXPORT_STATE FROM (VALUES ('a')) s(y)))) FROM (VALUES ('a')) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":117,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":107,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":31,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["approx_top_k"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":65,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":31,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["approx_top_k"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":102,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":130,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT arg_min(a, b), arg_max(a, b) FROM (VALUES (1, 10), (2, 5), (3, 20)) t(a, b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["arg_min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":13,"function_name":"arg_max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["arg_max"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(mn), finalize(mx) FROM argminmax_state ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":12,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["mn"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":12,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["mx"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":15,"schema_name":"","table_name":"argminmax_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["argminmax_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine(to_aggregate_state({'count': 1, 'value': 0}, 'avg', ['{type}']),\n to_aggregate_state({'count': 1, 'value': 86400000001}, 'avg', ['{type}'])));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":181,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":171,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":63,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"count","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":5,"literal":{"kind":"STRING","text":"avg"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":8,"literal":{"kind":"STRING","text":"{type}"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":73,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":34,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"count","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":154,"query_location_length":11,"literal":{"kind":"INTEGER","text":"86400000001"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":5,"literal":{"kind":"STRING","text":"avg"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":175,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":8,"literal":{"kind":"STRING","text":"{type}"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT combine_aggr(st, 3), finalize(combine_aggr(st, 3)) FROM states WHERE g = 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["st"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":19,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["st"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":6,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine(to_aggregate_state({'count': 18446744073709551614, 'value': 0::HUGEINT}, 'avg', ['TIMESTAMP']), to_aggregate_state({'count': 2, 'value': 1::HUGEINT}, 'avg', ['TIMESTAMP'])));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":190,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":180,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":94,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":52,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"count","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":53,"query_location_length":20,"literal":{"kind":"INTEGER","text":"18446744073709551614"}}},{"name":"value","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"value","query_location":85,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":5,"literal":{"kind":"STRING","text":"avg"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":75,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":33,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"count","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":149,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"value","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"value","query_location":162,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":164,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":5,"literal":{"kind":"STRING","text":"avg"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":181,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine_aggr(s)) FROM (\n SELECT bool_and(v) EXPORT_STATE AS s FROM (VALUES (true), (true)) t(v)\n UNION ALL\n SELECT bool_and(v) EXPORT_STATE AS s FROM (VALUES (false)) t(v)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":38,"query_location_length":160,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":51,"query_location_length":24,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":86,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":140,"query_location_length":24,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":175,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH nullable_counts AS (\n SELECT g, count(v) EXPORT_STATE c, count(s) EXPORT_STATE t\n FROM (VALUES (0,1::BIGINT,'a'),(0,NULL,NULL),(0,1,'a'),(1,NULL,NULL),(2,2,'b')) input(g,v,s)\n GROUP BY g\n)\nSELECT g, finalize(c), finalize(combine(c, to_aggregate_state(t::BIGINT, 'count', ['ANY'])))\nFROM nullable_counts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"nullable_counts","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":40,"query_location_length":21,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"t","query_location":65,"query_location_length":21,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"input","sample":null,"query_location":98,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g","v","s"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":11,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":226,"query_location_length":69,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":235,"query_location_length":59,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":243,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":246,"query_location_length":47,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":266,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":268,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":7,"literal":{"kind":"STRING","text":"count"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":285,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":286,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":301,"query_location_length":15,"schema_name":"","table_name":"nullable_counts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_counts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (first(42) EXPORT_STATE)::STRUCT(value INTEGER);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":22,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":21,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(first(l) EXPORT_STATE) FROM (VALUES ([['a'], ['bb', NULL]]), ([[]])) t(l);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":21,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"STRING","text":"bb"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["l"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM legacy.t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":8,"schema_name":"legacy","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["legacy","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(list(s) EXPORT_STATE) FROM (VALUES ({'l': [1, 2], 'v': 'abc'}), ({'l': NULL, 'v': NULL})) t(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"l","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":58,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"v","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":71,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"l","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"l","query_location":87,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"v","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":98,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_sort(finalize(combine_aggr(s))) FROM (\n SELECT list(v) EXPORT_STATE AS s FROM (VALUES ([1, 2]), ([NULL])) t(v)\n UNION ALL\n SELECT list(v) EXPORT_STATE AS s FROM (VALUES ([]::INTEGER[]), ([3])) t(v)\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":49,"query_location_length":171,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":62,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":93,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":151,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":182,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":193,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":191,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":195,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":208,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine(max('apple'::varchar) EXPORT_STATE, max('cherry'::varchar) EXPORT_STATE));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":90,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":80,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":34,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"STRING","text":"apple"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":35,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":8,"literal":{"kind":"STRING","text":"cherry"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(list(i ORDER BY i) EXPORT_STATE) FROM (VALUES (1), (3), (2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":31,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n SELECT g, approx_quantile(v, 0.5 ORDER BY v) AS direct FROM approx_t GROUP BY g\n) d JOIN (\n SELECT g, finalize(approx_quantile(v, 0.5 ORDER BY v) EXPORT_STATE) AS exported FROM approx_t GROUP BY g\n) e USING (g)\nWHERE d.direct IS DISTINCT FROM e.exported;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":111,"query_location_length":129,"left":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":21,"query_location_length":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"direct","query_location":37,"query_location_length":34,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["v"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":8,"schema_name":"","table_name":"approx_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["approx_t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"e","sample":null,"query_location":116,"query_location_length":112,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"exported","query_location":132,"query_location_length":57,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"query_location_length":47,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["v"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":207,"query_location_length":8,"schema_name":"","table_name":"approx_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["approx_t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["g"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":247,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":247,"query_location_length":8,"column_names":["d","direct"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":10,"column_names":["e","exported"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n SELECT finalize(combine(a.s, b.s)) AS combined FROM\n (SELECT list(x ORDER BY y, x) EXPORT_STATE AS s FROM parts WHERE part = 0) a,\n (SELECT list(x ORDER BY y, x) EXPORT_STATE AS s FROM parts WHERE part = 1) b\n) c, (SELECT list(x ORDER BY y, x) AS direct FROM parts) d\nWHERE c.combined IS DISTINCT FROM d.direct;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":292,"left":{"type":"SUBQUERY","alias":"c","sample":null,"query_location":21,"query_location_length":230,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"combined","query_location":34,"query_location_length":27,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":17,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["a","s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["b","s"]}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":74,"query_location_length":175,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":87,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":95,"query_location_length":34,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":140,"query_location_length":5,"schema_name":"","table_name":"parts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parts"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":152,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":4,"column_names":["part"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":173,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":181,"query_location_length":34,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":226,"query_location_length":5,"schema_name":"","table_name":"parts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parts"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":238,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":4,"column_names":["part"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":255,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"direct","query_location":263,"query_location_length":21,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":282,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":268,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":300,"query_location_length":5,"schema_name":"","table_name":"parts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":315,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":315,"query_location_length":10,"column_names":["c","combined"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":343,"query_location_length":8,"column_names":["d","direct"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(count(INTERVAL 1 DAY ORDER BY INTERVAL 1 DAY) EXPORT_STATE) FROM range(3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":58,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":81,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine_aggr(s)) FROM (\n SELECT product(v) EXPORT_STATE AS s FROM (SELECT NULL::double AS v WHERE false) t\n UNION ALL\n SELECT product(v) EXPORT_STATE AS s FROM (SELECT NULL::double AS v WHERE false) t\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":38,"query_location_length":189,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":51,"query_location_length":23,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["product"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":85,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":97,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":151,"query_location_length":23,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["product"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":185,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":197,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":199,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(count(1) EXPORT_STATE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":21,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (avg(42) export_state)::struct(count ubigint, \"value\" double);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":39,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":20,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":37,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"count","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"ubigint","children":[],"qualified_name":{"path":["ubigint"]}},{"class":"TYPE","type":"TYPE","alias":"value","query_location":61,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(state) FROM t3_product ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":5,"column_names":["state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":10,"schema_name":"","table_name":"t3_product","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3_product"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(regr_sxy(1.0, 2.0) EXPORT_STATE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":31,"function_name":"regr_sxy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["regr_sxy"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH states AS (\n SELECT g, sum(v) EXPORT_STATE AS s, count(*)::INTEGER AS n\n FROM (VALUES (0, 1), (0, 2), (1, 10), (2, 5), (2, 7), (2, 8), (3, 20)) t(g, v)\n GROUP BY g\n)\nSELECT g % 2 AS bucket, finalize(combine_aggr(s, n))\nFROM states\nGROUP BY bucket\nORDER BY bucket;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":270,"query_location_length":6,"column_names":["bucket"]}}]}],"cte_map":{"map":[{"key":"states","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":31,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"n","query_location":65,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":89,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g","v"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"bucket","query_location":187,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":28,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":18,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":238,"query_location_length":6,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":254,"query_location_length":6,"column_names":["bucket"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select finalize(finalize(combine_aggr(state))) from states;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":29,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":19,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":5,"column_names":["state"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":6,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(covar_samp(x, y) EXPORT_STATE) FROM grouped GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":39,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":29,"function_name":"covar_samp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["covar_samp"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":7,"schema_name":"","table_name":"grouped","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["grouped"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(combine_aggr(s)) FROM (SELECT g, count(v) FILTER (WHERE v \u003e 2) EXPORT_STATE AS s FROM t GROUP BY g);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":38,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":49,"query_location_length":42,"function_name":"count","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":72,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(to_aggregate_state([{'v0': 1.5::DOUBLE}, {'v0': 0.25::DOUBLE}], 'list', ['DECIMAL(4,2)'], NULL, [{'column': 0, 'order': 'ASC NULLS FIRST'}]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":150,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":140,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"v0","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"v0","query_location":68,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":14,"literal":{"kind":"STRING","text":"DECIMAL(4,2)"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":41,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"column","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"order","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"order","query_location":136,"query_location_length":17,"literal":{"kind":"STRING","text":"ASC NULLS FIRST"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(skewness_state) FROM state ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":24,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":14,"column_names":["skewness_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":5,"schema_name":"","table_name":"state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(skewness(d)) from dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":11,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["skewness"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(quantile_cont(d, 0.5) EXPORT_STATE) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":34,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc(d, 0.5) FROM dummy WHERE FALSE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc({'a': d, 'b': d::VARCHAR}, [0.25, 0.5, 0.75]) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":27,"query_location_length":1,"column_names":["d"]}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":36,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(to_aggregate_state([NULL, NULL]::TIME[], 'median', ['TIME'], NULL));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":66,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":8,"literal":{"kind":"STRING","text":"median"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"literal":{"kind":"STRING","text":"TIME"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT string_agg(d, '|') FROM dummy WHERE FALSE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(combine(string_agg(d, '-') EXPORT_STATE,\n to_aggregate_state(string_agg(d, '-') EXPORT_STATE, 'string_agg', ['VARCHAR', 'VARCHAR'], [NULL, '-'])))\nFROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":181,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":171,"function_name":"combine","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":31,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":102,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":31,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":12,"literal":{"kind":"STRING","text":"string_agg"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":177,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["combine"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":197,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(var_pop(d) EXPORT_STATE) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":23,"function_name":"var_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["var_pop"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(regr_r2(d, d+1) EXPORT_STATE) FROM dummy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":28,"function_name":"regr_r2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regr_r2"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (covar_pop(1.0, 2.0) export_state)::struct(count ubigint, meanx double, meany double, co_moment double);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":69,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":32,"function_name":"covar_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["covar_pop"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":67,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"count","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"ubigint","children":[],"qualified_name":{"path":["ubigint"]}},{"class":"TYPE","type":"TYPE","alias":"meanx","query_location":71,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}},{"class":"TYPE","type":"TYPE","alias":"meany","query_location":85,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}},{"class":"TYPE","type":"TYPE","alias":"co_moment","query_location":103,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT avg(d)::integer, count(d), min(d), max(d), first(d), last(d), kurtosis(d), kurtosis_pop(d) FROM (SELECT NULL::integer d, g FROM dummy);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":11,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":15,"function_name":"kurtosis_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis_pop"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":103,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"d","query_location":115,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":135,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, FINALIZE(bit_and(d) EXPORT_STATE), FINALIZE(bit_or(d) EXPORT_STATE), FINALIZE(bit_xor(d) EXPORT_STATE) FROM dummy GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":33,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":23,"function_name":"bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_and"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":32,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":22,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_or"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":33,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":23,"function_name":"bit_xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["bit_xor"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT st.n, st.mean, st.m2, st.m3, st.m4\nFROM (SELECT (kurtosis_pop(d) EXPORT_STATE)::STRUCT(n UBIGINT, mean DOUBLE, m2 DOUBLE, m3 DOUBLE, m4 DOUBLE) st FROM dummy);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["st","n"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["st","mean"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["st","m2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["st","m3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":5,"column_names":["st","m4"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":47,"query_location_length":118,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"st","query_location":85,"query_location_length":65,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":28,"function_name":"kurtosis_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["kurtosis_pop"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":63,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"n","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"mean","query_location":110,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m2","query_location":121,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m3","query_location":132,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"m4","query_location":143,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":159,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(avg_state)::integer, finalize(count_state), finalize(min_state), finalize(max_state), finalize(first_state), finalize(last_state) FROM state_view ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":9,"column_names":["avg_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":21,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":11,"column_names":["count_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":9,"column_names":["min_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":9,"column_names":["max_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":21,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":11,"column_names":["first_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":20,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":10,"column_names":["last_state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":154,"query_location_length":10,"schema_name":"","table_name":"state_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["state_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pop_state::STRUCT(count UBIGINT, mean DOUBLE, dsquared DECIMAL(18,2)) FROM stddev_state;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":60,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["pop_state"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":58,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"count","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"mean","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"dsquared","query_location":62,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":12,"schema_name":"","table_name":"stddev_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stddev_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_aggregate_state([{'v0': 1}], 'list', ['INTEGER'], NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v0","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(to_aggregate_state({'k': 3, 'values': [{'value': 5, 'count': NULL}], 'filter': list_resize([]::UBIGINT[], 128, 0)}, 'approx_top_k', ['INTEGER', 'BIGINT']));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":164,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":154,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":95,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"k","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"values","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"values","query_location":54,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"count","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":77,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"filter","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"filter","query_location":95,"query_location_length":34,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":3,"literal":{"kind":"INTEGER","text":"128"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_resize"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":14,"literal":{"kind":"STRING","text":"approx_top_k"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_aggregate_state([1, 2], '{aggregate}', ['ANY', 'BIGINT'], [NULL, 2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":13,"literal":{"kind":"STRING","text":"{aggregate}"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"STRING","text":"ANY"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(min({'a': v, 'b': v::varchar}) EXPORT_STATE) FROM (VALUES (3), (1), (5)) t(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":43,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":26,"query_location_length":1,"column_names":["v"]}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":35,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":66,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_quantile(x, 0.5) FROM (VALUES (0.25::DECIMAL(18,2)), (0.25), (0.25)) v(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":36,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_top_k([skewed_groups], 5) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":13,"column_names":["skewed_groups"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["approx_top_k"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(rs.val) FROM (SELECT val, arg, row_number() OVER (ORDER BY arg DESC) as rid FROM t1 ORDER BY val) as rs WHERE rid \u003c 4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":6,"column_names":["rs","val"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"rs","sample":null,"query_location":25,"query_location_length":84,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["val"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["arg"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rid","query_location":43,"query_location_length":37,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":3,"column_names":["arg"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":122,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":3,"column_names":["rid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT arg_max_nulls_last(arg, val, 1) FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"arg_max_nulls_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["arg"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["arg_max_nulls_last"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH s AS (SELECT avg(x) EXPORT_STATE st FROM (VALUES (INTERVAL 1 MONTH), (INTERVAL 0 DAY), (INTERVAL 0 DAY)) v(x))\nSELECT finalize(combine_aggr(st, 100000000)) FROM s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"s","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"st","query_location":18,"query_location_length":19,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":46,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":37,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":27,"function_name":"combine_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":2,"column_names":["st"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":9,"literal":{"kind":"INTEGER","text":"100000000"}}}],"qualified_name":{"path":["combine_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":166,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT equi_width_bins(0, 1734, 10, true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1734"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT unnest(equi_width_bins(0.0, 9.0, 7, false));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":35,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"9.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select equi_width_bins(0.0, 3.974, 7, true) AS boundaries;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"boundaries","query_location":7,"query_location_length":36,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"3.974"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT equi_width_bins(timestamp '1992-01-01 01:23:37.999', timestamp '1992-01-01 23:03:21.3', 4, true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":96,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:23:37.999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 23:03:21.3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT equi_width_bins(-2::BIGINT, -1::BIGINT, 1000000, false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":10,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":10,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT equi_width_bins('a'::VARCHAR, 'z'::VARCHAR, 2, true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"equi_width_bins","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["equi_width_bins"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT first(s), last(s), any_value(s) FROM (VALUES (NULL), ('a')) t(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT case when is_histogram_other_bin(bin) then '(other values)' else bin::varchar end as bin,\n count\nFROM (\n\tSELECT UNNEST(map_keys(hist)) AS bin, UNNEST(map_values(hist)) AS count\n\tFROM (SELECT histogram_exact(n, [10, 20, 30, 40, 50]) AS hist FROM obs)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"bin","query_location":7,"query_location_length":81,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":27,"function_name":"is_histogram_other_bin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["bin"]}}],"qualified_name":{"path":["is_histogram_other_bin"]},"is_legacy_function_call":false},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":16,"literal":{"kind":"STRING","text":"(other values)"}}}],"else_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":3,"column_names":["bin"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["count"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":115,"query_location_length":149,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"bin","query_location":125,"query_location_length":22,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":14,"function_name":"map_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":4,"column_names":["hist"]}}],"qualified_name":{"path":["map_keys"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"count","query_location":156,"query_location_length":24,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":16,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":4,"column_names":["hist"]}}],"qualified_name":{"path":["map_values"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":196,"query_location_length":66,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"hist","query_location":204,"query_location_length":40,"function_name":"histogram_exact","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":223,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram_exact"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":258,"query_location_length":3,"schema_name":"","table_name":"obs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["obs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram_exact(x, ['', 'b']) FROM (VALUES ('a'),('b')) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"histogram_exact","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram_exact"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":42,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM histogram_values(booleans, b::INTEGER)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"histogram_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":8,"column_names":["booleans"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["histogram_values"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lttb(x::DOUBLE, NULL::DOUBLE, 5 ORDER BY x) FROM range(10) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"lttb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["lttb"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":56,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lttb(x::DOUBLE, y::DOUBLE, x::BIGINT ORDER BY x) FROM (SELECT i x, i::DOUBLE y FROM range(10) t(i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"lttb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["y"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["lttb"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":61,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":69,"query_location_length":1,"column_names":["i"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"y","query_location":75,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":91,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mode(v) IN ('y', 'z'), count(*)\nFROM mode_rewrite\nWHERE g = 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":18,"query_location_length":10,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"y"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":12,"schema_name":"","table_name":"mode_rewrite","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mode_rewrite"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mode([v]), mode({'v': v})\nFROM mode_rewrite\nWHERE g = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":14,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"v","query_location":29,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":12,"schema_name":"","table_name":"mode_rewrite","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mode_rewrite"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT median(i) FROM range(20000000) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["median"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":22,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"literal":{"kind":"INTEGER","text":"20000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, COUNT(*), COUNT(s), COUNT(DISTINCT s) FROM test GROUP BY a ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), COUNT(b), MIN(b), MAX(b) FROM booleans","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":8,"schema_name":"","table_name":"booleans","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["booleans"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(1), SUM(NULL), SUM(33.3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"33.3"}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(1), FIRST(NULL), FIRST(33.3), FIRST('hello'), FIRST(True), FIRST(DATE '1992-02-02'), FIRST(TIMESTAMP '2008-01-01 00:00:01')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":11,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":11,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"33.3"}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":11,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":24,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-02-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":38,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2008-01-01 00:00:01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT STRING_AGG('hello')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ANY_VALUE(d), ANY_VALUE(dt), ANY_VALUE(t), ANY_VALUE(s) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ANY_VALUE(i) OVER (PARTITION BY i) AS a \nFROM generate_series(1, 5) t(i)\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"a","query_location":7,"query_location_length":34,"function_name":"any_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["any_value"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":53,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE\n\t WHEN ( approx_quantile between (true_quantile - 100) and (true_quantile + 100) )\n\t\t THEN TRUE\n\t\t ELSE FALSE\n\t END\n\t FROM (SELECT approx_quantile(r, 0.0) as approx_quantile ,quantile(r, 0.0) as true_quantile from quantile) AS T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":124,"case_checks":[{"when_expr":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":55,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":15,"column_names":["approx_quantile"]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":140,"query_location_length":100,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"approx_quantile","query_location":148,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"true_quantile","query_location":192,"query_location_length":16,"function_name":"quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":231,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_quantile(col, ARRAY_VALUE(0.5, 0.4, 0.1)) AS percentile \nFROM VALUES (0), (1), (2), (10) AS tab(col);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"percentile","query_location":7,"query_location_length":48,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["col"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":26,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tab","sample":null,"query_location":76,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["col"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE\n\t WHEN (approx_quantile between (true_quantile - (sumr * 0.01)) and (true_quantile + (sumr * 0.01)))\n\t\t THEN TRUE\n\t\t ELSE FALSE\n\t END\n\t FROM (SELECT approx_quantile(r, 0.5) as approx_quantile, quantile(r, 0.5) as true_quantile, SUM(r) as sumr from quantile) AS T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":142,"case_checks":[{"when_expr":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":37,"query_location_length":75,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":15,"column_names":["approx_quantile"]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["sumr"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.01"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":13,"column_names":["true_quantile"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":4,"column_names":["sumr"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.01"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":158,"query_location_length":116,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"approx_quantile","query_location":166,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"true_quantile","query_location":210,"query_location_length":16,"function_name":"quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"sumr","query_location":245,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":249,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":265,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT reservoir_quantile(r, NULL::DOUBLE[]) OVER () from quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":45,"function_name":"reservoir_quantile","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["reservoir_quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_quantile(1.55::DECIMAL(4,2), 0.5), typeof(approx_quantile(1.55::DECIMAL(4,2), 0.5));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.55"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":48,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":40,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.55"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT q, q = '-infinity'::TIMESTAMP FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["q"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":10,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["q"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":11,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select approx_count_distinct(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select approx_count_distinct(cname) from customers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["cname"]}}],"qualified_name":{"path":["approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"customers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select argmax(i,i) from range (100) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"argmax","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["argmax"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":24,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select arg_min(name,salary),arg_max(name,salary) from names;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"arg_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["arg_min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":20,"function_name":"arg_max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["arg_max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":5,"schema_name":"","table_name":"names","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["names"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select arg_max_null(NULL,NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"arg_max_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["arg_max_null"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select arg_min_null(salary,name),arg_max_null(salary,name) from names;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"arg_min_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":6,"column_names":["salary"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":4,"column_names":["name"]}}],"qualified_name":{"path":["arg_min_null"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":25,"function_name":"arg_max_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":6,"column_names":["salary"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":4,"column_names":["name"]}}],"qualified_name":{"path":["arg_max_null"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":5,"schema_name":"","table_name":"names","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["names"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT AVG(ts::DATE) \nFROM timestamps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT avg(ts)::VARCHAR FROM (VALUES ('infinity'::TIMESTAMPTZ), (TIMESTAMPTZ '2000-01-01 00:00:00+00')) t(ts);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":29,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["ts"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT AVG(n)::DOUBLE - '3002399751580331'::DOUBLE FROM bigints;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":18,"literal":{"kind":"STRING","text":"3002399751580331"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(v, ['a', 'b', 'c', 'z']) FROM\n(VALUES ('a'), ('aaaa'), ('b'), ('c'), ('d')) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":6,"literal":{"kind":"STRING","text":"aaaa"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(1, []::DATE[])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(NULL, [1, 2])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(union_value(a := 1), [union_value(b := 1)])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":19,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT BIT_AND(3), BIT_AND(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["bit_and"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":13,"function_name":"bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["bit_and"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT BIT_OR(i), BIT_OR(1), BIT_OR(DISTINCT i), BIT_OR(NULL) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bit_or"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":9,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["bit_or"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":18,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bit_or"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":12,"function_name":"bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["bit_or"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT BIT_XOR()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"bit_xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["bit_xor"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bit_count(BITSTRING_AGG(i)) FROM ints WHERE i \u003e 20 AND i \u003c 28","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":16,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":51,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":62,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"28"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(DISTINCT i) FROM hugeints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT BITSTRING_AGG()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bool_and(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bool_and(d \u003e '2021-02-09') over (partition by d)\n from t order by d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":48,"function_name":"bool_and","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["d"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":16,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-02-09"}}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(1 ORDER BY 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name FROM (DESCRIBE SELECT count(r.*) FROM r);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":47,"query_location_length":3,"relation_name":"r","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.*, count(r.*) FROM l LEFT JOIN r ON l.id = r.id GROUP BY l.id ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"l","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18,"query_location_length":3,"relation_name":"r","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":26,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":4,"column_names":["r","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["l","id"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(t.*) FROM l LEFT JOIN (SELECT * FROM r) t ON l.id = t.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":13,"query_location_length":3,"relation_name":"t","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":44,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":35,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":43,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["t","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count_rows() FROM (VALUES (NULL::INT, NULL::INT)) AS t(x, y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"count_rows","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_rows"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":25,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COVAR_POP(1, 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"covar_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["covar_pop"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT avg(x := 1), avg(x := i), sum(arg := 1) FROM range(3) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":11,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":13,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"arg","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"arg","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":52,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT entropy(2) FROM range(100);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"entropy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["entropy"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(i ORDER BY grp DESC NULLS LAST) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":3,"column_names":["grp"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, FIRST(b) FROM tbl GROUP BY a ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(i) FROM range(100) tbl(i) WHERE 1=0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":25,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(CAST('2021-08-20' AS TIMESTAMP_S));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-08-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0, histogram(c1) FROM tmp GROUP BY c0 ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":13,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["c1"]}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":3,"schema_name":"","table_name":"tmp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tmp"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["c0"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(1, 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT fsum(v), favg(v) FROM (VALUES (1e308::DOUBLE), (1e308), (-1e308)) t(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"fsum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["fsum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"favg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["favg"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":29,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"-1e308"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT kahan_sum(n)::BIGINT FROM doubles;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"kahan_sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["kahan_sum"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select kurtosis(v2) from aggr group by v ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":12,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["v"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i % 3 AS g, LAST(d ORDER BY 5-i), LAST(dt ORDER BY 5-i), LAST(t ORDER BY 5-i), LAST(s ORDER BY 5-i)\nFROM five_dates\nGROUP BY 1\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":21,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LAST(b) FROM tbl WHERE a=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select mad(x) from (values (-1e308), (1e308)) tbl(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["mad"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":19,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"-1e308"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT median(r::smallint)::VARCHAR FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["median"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MEDIAN('00:00:00'::TIME + INTERVAL (range) HOUR)\nFROM range(0,10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":21,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":5,"column_names":["range"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["median"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":11,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE\n WHEN ( value = 10 or value = 20)\n THEN TRUE\n ELSE FALSE\n END\n FROM (select mode(v) as value from aggr) AS T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":100,"case_checks":[{"when_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":26,"query_location_length":24,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":26,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":120,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"value","query_location":128,"query_location_length":7,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select k, mode(v) from timestamps group by k ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":7,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(i ORDER BY i, i, i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_top_k(i, 2 ORDER BY i DESC), list(i ORDER BY i DESC) FROM range(5) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"approx_top_k","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["approx_top_k"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":23,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":72,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MODE() WITHIN GROUP (ORDER BY order_occurrences DESC) FROM (\nVALUES\n\t(500, 1),\n\t(1000, 2),\n\t(800, 3),\n\t(1000, 4),\n\t(500, 5),\n\t(550, 6),\n\t(400, 7),\n\t(200, 8),\n\t(10, 9)\n) items_per_order(order_occurrences, item_count);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":17,"column_names":["order_occurrences"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"items_per_order","sample":null,"query_location":66,"query_location_length":109,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"INTEGER","text":"800"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":3,"literal":{"kind":"INTEGER","text":"550"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":3,"literal":{"kind":"INTEGER","text":"400"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["order_occurrences","item_count"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT year, SUM(val), COUNT(val), COUNT(*) FROM timeseries GROUP BY year ORDER BY year;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["year"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["year"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":10,"schema_name":"","table_name":"timeseries","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timeseries"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["year"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT PRODUCT(2) FROM range(100) tbl(i) WHERE i % 2 != 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["product"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":23,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_cont(42, 0.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_cont(r, 0.1) FROM quantile WHERE 1=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_cont(t, 0.5) FROM integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mod(r,1000) as g, quantile_cont(r, [0.25, 0.5, 0.75]) FROM quantiles GROUP BY 1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":11,"function_name":"mod","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["mod"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":35,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc(case when r is null then null else [r] end, 0.5) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":21,"query_location_length":42,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":33,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["r"]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc(d::VARCHAR, 0.1), quantile_disc(d::VARCHAR, 0.5), quantile_disc(d::VARCHAR, 0.9)\nFROM range(0,100) tbl(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":30,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":30,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":107,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc(r, 0.1) FROM quantile WHERE 1=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM (\n SELECT n,\n (SELECT quantile_disc(x, [0.1, 0.5, 0.9]) FROM range(1, n + 1) t(x)) AS dec_q,\n (SELECT quantile_disc(x, [0.1, 0.5, 0.9]::DOUBLE[]) FROM range(1, n + 1) t(x)) AS dbl_q\n FROM range(1, 201) r(n))\nWHERE dec_q IS DISTINCT FROM dbl_q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":233,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["n"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"dec_q","query_location":48,"query_location_length":68,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":33,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":95,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"dbl_q","query_location":138,"query_location_length":78,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":146,"query_location_length":43,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":178,"query_location_length":10,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":195,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":235,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":241,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":3,"literal":{"kind":"INTEGER","text":"201"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":261,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":5,"column_names":["dec_q"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":284,"query_location_length":5,"column_names":["dbl_q"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_disc('00:00:00'::TIME + interval (r) second, [0.1, 0.5, 0.9]) FROM quantiles","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":70,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":19,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["r"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT median(x)::VARCHAR FROM (VALUES (TIMESTAMP '294247-01-10 04:00:54'), (TIMESTAMP '294247-01-10 04:00:54')) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["median"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":31,"query_location_length":81,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_avgy()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"regr_avgy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["regr_avgy"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_r2()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"regr_r2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["regr_r2"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_sxx(1,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"regr_sxx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regr_sxx"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_intercept(*)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"regr_intercept","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["regr_intercept"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_count(v, v2) from aggr ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":17,"function_name":"regr_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["regr_count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_sxx(v, v2) over (partition by k)\n from aggr;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":8,"query_location_length":37,"function_name":"regr_sxx","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["k"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["regr_sxx"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"aggr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggr"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n count(*) as total_rows,\n count(*) FILTER (WHERE i \u003c= 5) as lte_five,\n count(*) FILTER (WHERE i % 2 = 1) as odds\nFROM generate_series(1,11) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_rows","query_location":11,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"lte_five","query_location":39,"query_location_length":30,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":62,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"odds","query_location":87,"query_location_length":33,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":134,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select skewness (10) from range (5) where 1 == 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"skewness","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["skewness"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":9,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select grp, sum(val), round(stddev_samp(val), 1), min(val) from stddev_test group by grp order by grp","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":3,"column_names":["grp"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["grp"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":26,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":16,"function_name":"stddev_samp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["stddev_samp"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":11,"schema_name":"","table_name":"stddev_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stddev_test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["grp"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select round(var_pop(val), 1) from stddev_test where val is not null","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":12,"function_name":"var_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["var_pop"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"stddev_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stddev_test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":58,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["val"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select stddev(a) from (values (-1.0/0.0), (2.0)) tbl(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"stddev","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["stddev"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":22,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, GROUP_CONCAT(x) FROM strings GROUP BY g ORDER BY g","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":15,"function_name":"group_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["group_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i1.i, (SELECT STRING_AGG(i::VARCHAR, ',' ORDER BY i1.i+i) FROM integers WHERE i\u003c=i1.i) c1\nFROM integers i1\nORDER BY 1 NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["i1","i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"c1","query_location":13,"query_location_length":80,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":43,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":85,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":102,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(b) FROM bigints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM range(9007199254738944, 9007199254740992) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":19,"query_location_length":46,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":16,"literal":{"kind":"INTEGER","text":"9007199254738944"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":16,"literal":{"kind":"INTEGER","text":"9007199254740992"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT DISTINCT i % 10 FROM range(1000000) t(i) LIMIT 100)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":59,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":50,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (i) i, j FROM integers ORDER BY j","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, (SELECT DISTINCT ON(i) j) AS k FROM integers ORDER BY i, j;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"k","query_location":13,"query_location_length":25,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GROUPING(course), course, sum(distinct value), COUNT(*) FROM students GROUP BY course ORDER BY all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["course"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":6,"column_names":["course"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(distinct i), min(distinct i), max(distinct i), sum(distinct i), product(distinct i) from tbl group by j order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":15,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":15,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":15,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":19,"function_name":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["product"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["j"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*), sum(distinct value), course, type\n from students\n group by grouping sets ((course), (), (type))\n order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":4,"column_names":["type"]}],"group_sets":[[0],[],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (1) t1, t2\nFROM T\nORDER BY t1, t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["t1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["t2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["t1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["t2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":1,"schema_name":"","table_name":"T","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT string_agg(DISTINCT s, ',' ORDER BY unicode(s) DESC)\nFROM distinct_rewrite_order;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":10,"function_name":"unicode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["unicode"]},"is_legacy_function_call":false}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":22,"schema_name":"","table_name":"distinct_rewrite_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_order"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GROUPING(g), g, count(DISTINCT x)\nFROM distinct_rewrite_nulls\nGROUP BY g\nORDER BY g NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["g"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":22,"schema_name":"","table_name":"distinct_rewrite_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_nulls"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('distinct_rewrite_seq_grouping_sets');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":36,"literal":{"kind":"STRING","text":"distinct_rewrite_seq_grouping_sets"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT test.a, b FROM test ORDER BY a, b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["test","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (1) i, j FROM integers ORDER BY i LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (i) integers.i, integers.j FROM integers ORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":10,"column_names":["integers","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":10,"column_names":["integers","j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (COLUMNS('[0-9]')) * FROM grouped_table ORDER BY index1, index2, id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"STAR","type":"STAR","alias":"","query_location":20,"query_location_length":16,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"STRING","text":"[0-9]"}},"qualified_exclude_list":[],"rename_list":[]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["index1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":6,"column_names":["index2"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":13,"schema_name":"","table_name":"grouped_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["grouped_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (1) i % 2, i FROM integers WHERE i\u003c3 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":52,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n\tsum(distinct i),\n\tsum(i) FILTER (WHERE j \u003c 20),\n\tsum(j) FILTER (WHERE i \u003e= 20)\nfrom tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":15,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":28,"function_name":"sum","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":47,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":29,"function_name":"sum","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":78,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, SUM(i) FROM integers GROUP BY ALL ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (g+i)%2 + SUM(i), SUM(i), SUM(g) FROM integers GROUP BY ALL ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0 FROM (SELECT 1, 1 UNION ALL SELECT 1, 2) t0(c0, c1) GROUP BY ALL HAVING c1\u003e0 ORDER BY c0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":2,"column_names":["c0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":15,"query_location_length":35,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":["c0","c1"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":82,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":2,"column_names":["c1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, count(*) AS n FROM range(4) t(x) GROUP BY ALL HAVING EXISTS (SELECT 1 FROM range(2) u(y) WHERE y = x) ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":29,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":63,"query_location_length":48,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"u","sample":null,"query_location":85,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["y"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, sum(v) OVER () FROM t GROUP BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":14,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(a+2), SUM(a) + 2 * COUNT(*) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":12,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 AS k, SUM(i) FROM integers GROUP BY k ORDER BY 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, i % 2 AS k, SUM(i) FROM integers GROUP BY i ORDER BY k, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":10,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, LEAST(v, 21) as c, SUM(v) FROM intlists GROUP BY k, c ORDER BY 2, 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":10,"query_location_length":12,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}}],"qualified_name":{"path":["least"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":8,"schema_name":"","table_name":"intlists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intlists"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["c"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select {'x': 1, 'y': 2, 'z': 3} a, count(*)\nfrom range(5) tbl(b)\ngroup by a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":7,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":49,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["b"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select course, count(*) from students group by cube (course) order by 1, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":6,"column_names":["course"]}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GROUPING(course), GROUPING(type), course, type, COUNT(*) FROM students GROUP BY course, type ORDER BY 1, 2, 3, 4, 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["course"]}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":25,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["type"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":4,"column_names":["type"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GROUPING() FROM students;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":10,"children":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*), course, type\n\tfrom students\n\tgroup by grouping sets ((course), (type))\n\torder by 1, 2, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":4,"column_names":["type"]}],"group_sets":[[0],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*), course AS crs, type AS tp\n from students\n group by grouping sets((crs, tp), (tp))\n order by 1, 2, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"crs","query_location":17,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"tp","query_location":32,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["crs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["tp"]}],"group_sets":[[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, sum(i), avg(i) FROM t GROUP BY CUBE (g) HAVING sum(i) \u003e 1 OR g IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["g"]}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":57,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":57,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":73,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["g"]}]}]},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select course, type, count(*) from students group by rollup (course), rollup (type) order by 1, 2, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["type"]}],"group_sets":[[],[1],[0],[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b, SUM(a) AS sum FROM test GROUP BY b HAVING b=21 ORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"sum","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, sum(v) AS n, row_number() OVER (ORDER BY sum(v)) AS rn FROM (VALUES (1, 1), (2, 2), (3, 3)) t(g, v) GROUP BY g HAVING n \u003e= 2 QUALIFY rn = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":23,"query_location_length":35,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":70,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g","v"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":128,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["n"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":2,"column_names":["rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} +{"sql":"SELECT SUM(a) FROM test WHERE a=13 HAVING SUM(a) \u003e 11","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":42,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM exam QUALIFY last_value(mark) OVER (PARTITION BY student ORDER BY mark) \u003e= 85 order by mark","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":4,"column_names":["mark"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"exam","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exam"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":27,"query_location_length":64,"left":{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":27,"query_location_length":58,"function_name":"last_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":7,"column_names":["student"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["mark"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":4,"column_names":["mark"]}}],"qualified_name":{"path":["last_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"85"}}}},"named_param_map":[]}]}} +{"sql":"SELECT b, avg(a) AS avga FROM test GROUP BY b QUALIFY avga \u003e 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"avga","query_location":10,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":54,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["avga"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}},"named_param_map":[]}]}} +{"sql":"SELECT g, sum(v), sum(v*2), count(*) FROM clustered_inputs WHERE g=7 OR g IS NULL GROUP BY g ORDER BY g NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":16,"schema_name":"","table_name":"clustered_inputs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["clustered_inputs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":65,"query_location_length":16,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":74,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["g"]}]}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_group_object(k, v)\nfrom (values ('a', 1::VARIANT)) t(k, v)\nwhere false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"variant_group_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_group_object"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":39,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_group_object(k, v) from base;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"variant_group_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_group_object"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":4,"schema_name":"","table_name":"base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, l FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers WHERE i = 100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t WHERE s = 'hello' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE v = 'updated'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":9,"literal":{"kind":"STRING","text":"updated"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT val FROM t1 WHERE id = 500","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM t1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM vw;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"vw","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vw"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM glob('{TEST_DIR}/test2.db.wal')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/test2.db.wal"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM ddb","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":3,"schema_name":"","table_name":"ddb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ddb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM x.replacement;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"x","table_name":"replacement","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["x","replacement"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM alias1.tbl1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":11,"schema_name":"alias1","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["alias1","tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i) FROM unencrypted.tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":15,"schema_name":"unencrypted","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unencrypted","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers_view order by i NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"integers_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl_a WHERE a_id = 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"tbl_a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":26,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["a_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (db1.s1.t.c) FROM db1.s1.t, db2.s1.t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":22,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"db1","schema":"s1","table":"t","column":"c"}],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"s1","table_name":"t","column_name_alias":[],"catalog_name":"db1","at_clause":null,"qualified_name":{"path":["db1","s1","t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":8,"schema_name":"s1","table_name":"t","column_name_alias":[],"catalog_name":"db2","at_clause":null,"qualified_name":{"path":["db2","s1","t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database.schema.table.col.field FROM database.schema.table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":31,"column_names":["database","schema","table","col","field"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":21,"schema_name":"schema","table_name":"table","column_name_alias":[],"catalog_name":"database","at_clause":null,"qualified_name":{"path":["database","schema","table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*)\u003e0 FROM pragma_storage_info('db1.str_tbl2') WHERE compression='ZSTD'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":14,"literal":{"kind":"STRING","text":"db1.str_tbl2"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":6,"literal":{"kind":"STRING","text":"ZSTD"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM db1.strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"db1","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"__show_tables_expanded","query":null,"show_type":"SHOW_SPECIAL","catalog_name":"","schema_name":"","qualified_name":{"path":["__show_tables_expanded"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_databases() WHERE database_name = 'qk';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"STRING","text":"qk"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM view_search_path.my_view","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":24,"schema_name":"view_search_path","table_name":"my_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["view_search_path","my_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FILTER (database_name IN ('b1', 'b2')), count(*) FILTER (database_name = 'unrelated')\nFROM duckdb_databases();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"count_star","schema":"","filter":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":41,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":13,"column_names":["database_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"STRING","text":"b1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"STRING","text":"b2"}}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":45,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":11,"literal":{"kind":"STRING","text":"unrelated"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":107,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, type, uri, attached_db_type FROM duckdb_external_resources() ORDER BY name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["uri"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":16,"column_names":["attached_db_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT operation, resource_name IS NULL FROM duckdb_logs_parsed('ExternalResource') ORDER BY timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":9,"column_names":["timestamp"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["operation"]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":32,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":13,"column_names":["resource_name"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":18,"literal":{"kind":"STRING","text":"ExternalResource"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SHOW EXTERNAL RESOURCES);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM duckdb_external_resource_types();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resource_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resource_types"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW ALL EXTERNAL RESOURCES WITH TYPE 'b@st';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"discover","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"discover","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"b@st"}}}],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, type FROM (SHOW EXTERNAL RESOURCES WITH TYPE test.dotted.type);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":23,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"test.dotted.type"}}}],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT new_name.my_schema.one()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"one","schema":"my_schema","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"new_name","arguments":[],"qualified_name":{"path":["new_name","my_schema","one"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from test.other_schema.some_view;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":27,"schema_name":"other_schema","table_name":"some_view","column_name_alias":[],"catalog_name":"test","at_clause":null,"qualified_name":{"path":["test","other_schema","some_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g AS x, COUNT(*) c FROM alias\nGROUP BY alias.g\nORDER BY x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"alias","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["alias"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":7,"column_names":["alias","g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a AS \"MiXeD\" FROM (VALUES (2),(1)) t(a)\nORDER BY alias.\"MiXeD\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["alias","MiXeD"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"MiXeD","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":25,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n a,\n row_number() OVER (ORDER BY a) AS rn,\n alias.rn + 1 AS rn2\nFROM (VALUES (3),(1),(2)) t(a)\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["a"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":14,"query_location_length":30,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["a"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"rn2","query_location":63,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":8,"column_names":["alias","rn"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":79,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ss_items.item_id\nfrom ss_items,cs_items\nwhere ss_items.item_id = cs_items.item_id\norder by item_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["item_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["ss_items","item_id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"ss_items","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ss_items"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"cs_items","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cs_items"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":16,"column_names":["ss_items","item_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":16,"column_names":["cs_items","item_id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.x, t.y FROM (SELECT 42 x) t, (SELECT 84 y) t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["t","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":37,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":38,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT first((j + 0) -\u003e struct_pack(x := 1))) FROM (VALUES (1)) t(j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":37,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":21,"query_location_length":30,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":59,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select event_date, prd.ad_stats_v.country\nFROM prd.ad_stats_v\nGROUP by event_date, prd.ad_stats_v.country;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["event_date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":22,"column_names":["prd","ad_stats_v","country"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":14,"schema_name":"prd","table_name":"ad_stats_v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prd","ad_stats_v"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["event_date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":22,"column_names":["prd","ad_stats_v","country"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * not similar to '(a|c)' from foo;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":24,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":7,"literal":{"kind":"STRING","text":"(a|c)"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":3,"schema_name":"","table_name":"foo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT HasCustomAddress, count(*) AS total_records\nFROM model\nWHERE 1 = 1 AND\nCreatedAt \u003e= '2023-12-01' AND\nCreatedAt \u003c '2023-12-13'\nGROUP BY HasCustomAddress\nORDER BY true, total_records DESC NULLS LAST\nLIMIT 250 OFFSET 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":13,"column_names":["total_records"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":3,"literal":{"kind":"INTEGER","text":"250"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["HasCustomAddress"]},{"class":"FUNCTION","type":"FUNCTION","alias":"total_records","query_location":25,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":5,"schema_name":"","table_name":"model","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["model"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":79,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":12,"literal":{"kind":"STRING","text":"2023-12-01"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":109,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":12,"literal":{"kind":"STRING","text":"2023-12-13"}}}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":16,"column_names":["HasCustomAddress"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tbl.i FROM s1.tbl, s2.tbl, s3.tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["tbl","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":13,"query_location_length":27,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":6,"schema_name":"s1","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","tbl"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"s2","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s2","tbl"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":6,"schema_name":"s3","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s3","tbl"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM li","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"li","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["li"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list('hello world')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s1.v.c, v.c, c FROM s1.v","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["s1","v","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["v","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"s1","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, a * 2 AS c, b * (a * 2) AS d FROM test ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":13,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"d","query_location":25,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"HELLo\" FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["HELLo"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"HELLO\" FROM test1, test2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["HELLO"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":5,"schema_name":"","table_name":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test1 JOIN test2 USING (hello)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["hello"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tv.split(' ') strings,\n\tstrings.apply(lambda x: x.lower()).filter(lambda x: x[1] == 't' OR x[1] == 'a') lower,\n\tstrings.apply(lambda x: x.upper()).filter(lambda x: x[1] == 'T' OR x[1] == 'A') upper,\n\tlower + upper AS mix_case_srings\nFROM varchars\nWHERE mix_case_srings[1] = 'test'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"strings","query_location":8,"query_location_length":12,"function_name":"split","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["v","split"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"lower","query_location":66,"query_location_length":44,"function_name":"filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":34,"function_name":"apply","schema":"strings","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"query_location_length":19,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":9,"function_name":"lower","schema":"x","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["x","lower"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["strings","apply"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":73,"query_location_length":36,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":83,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":84,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":99,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["filter"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"upper","query_location":154,"query_location_length":44,"function_name":"filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":34,"function_name":"apply","schema":"strings","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":133,"query_location_length":19,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":9,"function_name":"upper","schema":"x","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["x","upper"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["strings","apply"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":161,"query_location_length":36,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":171,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":172,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":3,"literal":{"kind":"STRING","text":"T"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":186,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":187,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["filter"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"mix_case_srings","query_location":213,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":5,"column_names":["lower"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":215,"query_location_length":5,"column_names":["upper"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":245,"query_location_length":8,"schema_name":"","table_name":"varchars","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["varchars"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":260,"query_location_length":27,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":275,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":260,"query_location_length":15,"column_names":["mix_case_srings"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(i) AS j FROM integers HAVING j=j;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["j"]}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select main.test from main, test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["main","test"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"main","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL UNION ALL SELECT CAST(1 AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT CAST(1 AS BOOLEAN) as a, CAST(0 AS BOOLEAN) as b, 1 as id UNION SELECT NULL as a, NULL as b, 2 as id","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":7,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":32,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":78,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"WITH cte AS (SELECT NULL)\nSELECT * FROM cte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":33,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i 'hello world' FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"hello world"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":1,"catalog":"","schema":"","type_name":"i","children":[],"qualified_name":{"path":["i"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT true=1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT false='1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":9,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b::DECIMAL(4,4) FROM bools","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":5,"schema_name":"","table_name":"bools","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bools"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 1e308::float","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d::decimal(2,1) FROM cast_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":10,"schema_name":"","table_name":"cast_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cast_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'sad'::mood::ab;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":4,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"sad"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":2,"catalog":"","schema":"","type_name":"ab","children":[],"qualified_name":{"path":["ab"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, TRY_CAST(value AS TIME_NS) IS NULL\nFROM temporal_cast_input\nWHERE id IN (1, 3)\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":38,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":26,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["value"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[],"qualified_name":{"path":["TIME_NS"]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":19,"schema_name":"","table_name":"temporal_cast_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["temporal_cast_input"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":83,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":2,"column_names":["id"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT printf('%.17g', 0.41000000000000003), printf('%.17g', CAST('0.41000000000000003' AS DOUBLE))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"%.17g"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"literal":{"kind":"NUMERIC","text":"0.41000000000000003"}}}],"qualified_name":{"path":["printf"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":54,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":7,"literal":{"kind":"STRING","text":"%.17g"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":21,"literal":{"kind":"STRING","text":"0.41000000000000003"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["printf"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select file.replace('a', 'b') from (values ('xxxx')) t(\"filename\");","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"replace","schema":"file","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["file","replace"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":35,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"xxxx"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["filename"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, v::VARCHAR FROM powers ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":6,"schema_name":"","table_name":"powers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["powers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT len(['a, b'::UNION(s VARCHAR, i INT)]::VARCHAR::UNION(s VARCHAR, i INT)[]), len(['a, b'::VARIANT]::VARCHAR::VARIANT[])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":74,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":27,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":6,"literal":{"kind":"STRING","text":"a, b"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"s","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"i","query_location":39,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"s","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"i","query_location":74,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":42,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":6,"literal":{"kind":"STRING","text":"a, b"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '9223372036854775807.1'::BIGINT, '-9223372036854775808.1'::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"literal":{"kind":"STRING","text":"9223372036854775807.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":24,"literal":{"kind":"STRING","text":"-9223372036854775808.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-128.5'::TINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"-128.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '214748364.7e1'::INTEGER, '-214748364.8e1'::INTEGER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"literal":{"kind":"STRING","text":"214748364.7e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":16,"literal":{"kind":"STRING","text":"-214748364.8e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '17014118346046923173168730371588410572.8e1'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":44,"literal":{"kind":"STRING","text":"17014118346046923173168730371588410572.8e1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '0.00000000000000000000000000000009223372036854775807e50'::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":57,"literal":{"kind":"STRING","text":"0.00000000000000000000000000000009223372036854775807e50"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ('0.1' || repeat('0', 25) || '1')::BIGNUM;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('[[Hello World!], hello, universe]' AS VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":54,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":35,"literal":{"kind":"STRING","text":"[[Hello World!], hello, universe]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col1::VARCHAR[] FROM stringList;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["col1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":10,"schema_name":"","table_name":"stringList","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stringList"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST($$[']', \"hello\", \"world\"]$$ AS VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":27,"literal":{"kind":"STRING","text":"[']', \"hello\", \"world\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(NULL AS INT[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('[3], [[1]]' AS INT[][]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":12,"literal":{"kind":"STRING","text":"[3], [[1]]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '[{a: hii}, {a: \"{\" }]'::STRUCT(a VARCHAR)[] FROM struct_tbl1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"literal":{"kind":"STRING","text":"[{a: hii}, {a: \"{\" }]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":11,"schema_name":"","table_name":"struct_tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '[{\"bar\":\"\\\"\\\"\\\\\\\"\\\"\\\"\\\\\"}]'::STRUCT(bar VARCHAR)[] a, CAST(a::VARCHAR AS STRUCT(bar VARCHAR)[]) b, a == b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":35,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"[{\"bar\":\"\\\"\\\"\\\\\\\"\\\"\\\"\\\\\"}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"bar","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":62,"query_location_length":41,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"bar","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["b"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[escaped\\\\backslash, test]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":30,"literal":{"kind":"STRING","text":"[escaped\\\\backslash, test]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\"ends with bracket]\", \"[bracket\"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"STRING","text":"[\"ends with bracket]\", \"[bracket\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\" mix, of special\\ characters \" , \"[various] \\\"combinations\\\" \"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":69,"literal":{"kind":"STRING","text":"[\" mix, of special\\ characters \" , \"[various] \\\"combinations\\\" \"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\"\\\\\"]$$::VARCHAR[]; -- List with only a backslash","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"[\"\\\\\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tTRY_CAST('{x=1}' AS MAP(INTEGER, INTEGER)),\n\tTRY_CAST('{1=x}' AS MAP(INTEGER, INTEGER));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"{x=1}"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"literal":{"kind":"STRING","text":"{1=x}"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('{1=2}' AS MAP(\"NULL\", \"NULL\"))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"{1=2}"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":19,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{a:{b:DuckDB, c:{a:{a:0.9, b:{a:\"DuckieDuck\"}, c:{a:9000}, d:{a:5881580-07-10}}, b:\"🦆\"}}, b:900, c:{a:\"DuckParty\"}}'::STRUCT(a STRUCT(b VARCHAR, c STRUCT(a STRUCT(a FLOAT, b STRUCT(a VARCHAR), c STRUCT(a INT), d STRUCT(a DATE)), b VARCHAR)), b INT, c STRUCT(a VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":127,"query_location_length":153,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":120,"literal":{"kind":"STRING","text":"{a:{b:DuckDB, c:{a:{a:0.9, b:{a:\"DuckieDuck\"}, c:{a:9000}, d:{a:5881580-07-10}}, b:\"🦆\"}}, b:900, c:{a:\"DuckParty\"}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":151,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":138,"query_location_length":113,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"b","query_location":147,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":158,"query_location_length":92,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":167,"query_location_length":71,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":176,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":185,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":194,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":206,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":215,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"d","query_location":223,"query_location_length":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":232,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":242,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":255,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":262,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":271,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('{a:\"}\", b: hello universe}'::STRUCT(a VARCHAR, b VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":28,"literal":{"kind":"STRING","text":"{a:\"}\", b: hello universe}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{key_C: 8, key_A: 2}'::STRUCT(key_A INT, key_B DOUBLE, key_C FLOAT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":22,"literal":{"kind":"STRING","text":"{key_C: 8, key_A: 2}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":44,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":55,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":69,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('[{a:3}]' AS STRUCT(a INT));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":9,"literal":{"kind":"STRING","text":"[{a:3}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('{ ' AS STRUCT(a INTEGER));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":18,"literal":{"kind":"STRING","text":"{ "}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{\"s\":{\"v\":\"deep\"}}'::STRUCT(s STRUCT(v VARIANT));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"s\":{\"v\":\"deep\"}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"s","query_location":38,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select [row([4,5,6], 'abc'), $$([1,2,3],)$$]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":19,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":14,"literal":{"kind":"STRING","text":"([1,2,3],)"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(s AS STRUCT(z INTEGER)) FROM structs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"z","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(ROW(x, y) AS STRUCT(a BIGINT, b SMALLINT)) FROM unnamed","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":47,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":44,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":7,"schema_name":"","table_name":"unnamed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unnamed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col::MAP(INT, INT)\nFROM VALUES ({\"1\": 1}),({\"2\": 2}),({\"3\": 3}),({\"4\": 4}),({\"5\": 5})\nAS tab(col);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":13,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"SUBQUERY","alias":"tab","sample":null,"query_location":31,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"1","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"2","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"3","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"4","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"4","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"5","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"5","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["col"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {\"numbers\": [1,2,3], \"letters\": ['a','b']}::MAP(VARCHAR, VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":25,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"numbers","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"numbers","query_location":19,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"letters","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"letters","query_location":39,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":23,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {\"测试\": 'test', \"🦆\": 'duck'}::MAP(VARCHAR, VARCHAR);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"测试","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"测试","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}},{"name":"🦆","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"🦆","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::STRUCT(k VARCHAR, i BIGINT)::MAP(BIGINT, BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":21,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"k","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"i","query_location":33,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":19,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b::BIGINT FROM bits;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 15::SMALLINT::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bitstring('1', 33)::INT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"bitstring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}}}],"qualified_name":{"path":["bitstring"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-15)::TINYINT::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-15"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '01111111'::BIT::TINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"01111111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (4294967295)::UINTEGER::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":10,"literal":{"kind":"INTEGER","text":"4294967295"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::BIT::INT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('FALSE' AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"literal":{"kind":"STRING","text":"FALSE"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(CAST('0' AS smallint) AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":38,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(CAST('0' AS decimal(38,0)) AS BOOLEAN)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":43,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(length(x::VARCHAR)) FROM (SELECT TRY_CAST(l AS MAP(VARCHAR, INT)[][]) x FROM (SELECT list([{'a': [i::INT]}]) l FROM range(3000) t(i)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":18,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":109,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":44,"query_location_length":36,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["l"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":88,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":96,"query_location_length":23,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":108,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":127,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(' E1' AS DOUBLE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":6,"literal":{"kind":"STRING","text":" E1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{prefix}11'::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"{prefix}11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{prefix}00000000000000000000000000000000111111111'::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":51,"literal":{"kind":"STRING","text":"{prefix}00000000000000000000000000000000111111111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::INTEGER::VARCHAR, 12442952::INTEGER::VARCHAR, (-2000000111)::INTEGER::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"literal":{"kind":"INTEGER","text":"12442952"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2000000111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '0x80'::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"0x80"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('0x100' AS UINT8)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"0x100"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":5,"catalog":"","schema":"","type_name":"UINT8","children":[],"qualified_name":{"path":["UINT8"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t::TIMESTAMP from tss;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":3,"schema_name":"","table_name":"tss","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tss"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(TIMESTAMP_S '2262-04-12 00:00:00' AS TIMESTAMPTZ_NS);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":57,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-12 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(CAST(now() AS TIMESTAMPTZ_NS));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":5,"function_name":"now","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["now"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select *\nfrom test\nwhere (t::date) = '2021-02-04';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":24,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-02-04"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (i::UNION(a INT, b UNION(a INT))).a FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":35,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":30,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":28,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":26,"query_location_length":12,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}],"qualified_name":{"path":["UNION"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"STRING","text":"a"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM mytable;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"mytable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mytable"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers ORDER BY integers.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":10,"column_names":["integers","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a JOIN b USING (hello) JOIN c USING (\"HELLO\")","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":22,"left":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["hello"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["HELLO"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (a NATURAL JOIN b NATURAL JOIN c) NATURAL JOIN (d NATURAL JOIN e)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":48,"query_location_length":31,"left":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":14,"left":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":14,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":14,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":1,"schema_name":"","table_name":"e","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["e"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select comment from duckdb_tables() where table_name='test_table';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":12,"literal":{"kind":"STRING","text":"test_table"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select comment from duckdb_columns() where column_name='test_table_column_renamed';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":27,"literal":{"kind":"STRING","text":"test_table_column_renamed"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT comment FROM duckdb_columns() WHERE table_name = 'v' AND column_name = 'vi';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":43,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"literal":{"kind":"STRING","text":"vi"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select database_name, schema_name, table_name, comment from duckdb_columns() where column_name='c1' order by comment;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["comment"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":10,"column_names":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":60,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"literal":{"kind":"STRING","text":"c1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT comment FROM duckdb_sequences() WHERE sequence_name = 's';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_sequences","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_sequences"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":13,"column_names":["sequence_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextval('sequence2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":11,"literal":{"kind":"STRING","text":"sequence2"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT C2 FROM T1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["C2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"T1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m(a := 'b', b := 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":14,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["m"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from m('c', a:= 'd')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["m"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM query('SELECT a + b + c FROM tbl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":27,"literal":{"kind":"STRING","text":"SELECT a + b + c FROM tbl"}}}],"qualified_name":{"path":["query"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM query_table(not_defined_tbl);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query_table","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":15,"column_names":["not_defined_tbl"]}}],"qualified_name":{"path":["query_table"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM query_table(tbl2, true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":23,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query_table","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["tbl2"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["query_table"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT IFELSE(1, IFELSE(1,'a','b'), 'c')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"ifelse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"ifelse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["ifelse"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["ifelse"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ppterms AS (\n SELECT unnest(string_split_regex(regexp_replace(lower(strip_accents('QUÁCK BÁRK')), '[^a-z]', ' ', 'g'), '\\s+')) AS term\n), qtermids AS (\n SELECT termid\n FROM fts_main_documents.dict AS dict\n JOIN ppterms\n USING (term)\n), qterms AS (\n SELECT termid,\n docid\n FROM fts_main_documents.terms AS terms\n WHERE termid IN (\n SELECT qtermids.termid FROM qtermids\n )\n), subscores AS (\n SELECT docs.docid,\n len,\n term_tf.termid,\n tf,\n df,\n (log((3 - df + 0.5) / (df + 0.5))* ((tf * (1.2 + 1)/(tf + 1.2 * (1 - 0.75 + 0.75 * (len / 4)))))) AS subscore\n FROM (\n SELECT termid,\n docid,\n COUNT(*) AS tf\n FROM qterms\n GROUP BY docid,\n termid\n ) AS term_tf\n JOIN (\n SELECT DISTINCT docid\n FROM qterms\n ) AS cdocs\n ON term_tf.docid = cdocs.docid\n JOIN fts_main_documents.docs AS docs\n ON term_tf.docid = docs.docid\n JOIN fts_main_documents.dict AS dict\n ON term_tf.termid = dict.termid\n)\nSELECT name,\n score\nFROM (\n SELECT docid,\n sum(subscore) AS score\n FROM subscores\n GROUP BY docid\n) AS scores\nJOIN fts_main_documents.docs AS docs\nON scores.docid = docs.docid\nORDER BY score DESC\nLIMIT 1000","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1303,"query_location_length":5,"column_names":["score"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1320,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"ppterms","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"term","query_location":29,"query_location_length":107,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":99,"function_name":"string_split_regex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":72,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":36,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":29,"function_name":"strip_accents","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":14,"literal":{"kind":"STRING","text":"QUÁCK BÁRK"}}}],"qualified_name":{"path":["strip_accents"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":8,"literal":{"kind":"STRING","text":"[^a-z]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}}],"qualified_name":{"path":["regexp_replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":5,"literal":{"kind":"STRING","text":"\\s+"}}}],"qualified_name":{"path":["string_split_regex"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"qtermids","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":6,"column_names":["termid"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":225,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"dict","sample":null,"query_location":189,"query_location_length":31,"schema_name":"fts_main_documents","table_name":"dict","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fts_main_documents","dict"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":230,"query_location_length":7,"schema_name":"","table_name":"ppterms","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ppterms"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["term"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"qterms","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":281,"query_location_length":6,"column_names":["termid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":300,"query_location_length":5,"column_names":["docid"]}],"from_table":{"type":"BASE_TABLE","alias":"terms","sample":null,"query_location":315,"query_location_length":33,"schema_name":"fts_main_documents","table_name":"terms","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fts_main_documents","terms"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":369,"query_location_length":52,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":386,"query_location_length":15,"column_names":["qtermids","termid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":407,"query_location_length":8,"schema_name":"","table_name":"qtermids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["qtermids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":359,"query_location_length":6,"column_names":["termid"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"subscores","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":451,"query_location_length":10,"column_names":["docs","docid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":474,"query_location_length":3,"column_names":["len"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":490,"query_location_length":14,"column_names":["term_tf","termid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":517,"query_location_length":2,"column_names":["tf"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":532,"query_location_length":2,"column_names":["df"]},{"class":"FUNCTION","type":"FUNCTION","alias":"subscore","query_location":548,"query_location_length":95,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":548,"query_location_length":32,"function_name":"log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":552,"query_location_length":27,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":560,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":555,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":553,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":557,"query_location_length":2,"column_names":["df"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":562,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":573,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":570,"query_location_length":2,"column_names":["df"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":575,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["log"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":584,"query_location_length":57,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":584,"query_location_length":2,"column_names":["tf"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":594,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":590,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":596,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":603,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":600,"query_location_length":2,"column_names":["tf"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":605,"query_location_length":35,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":605,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.2"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":621,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":614,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":612,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":616,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":623,"query_location_length":16,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":623,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":631,"query_location_length":7,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":631,"query_location_length":3,"column_names":["len"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":637,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":1018,"query_location_length":72,"left":{"type":"JOIN","alias":"","sample":null,"query_location":943,"query_location_length":70,"left":{"type":"JOIN","alias":"","sample":null,"query_location":832,"query_location_length":106,"left":{"type":"SUBQUERY","alias":"term_tf","sample":null,"query_location":666,"query_location_length":150,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":683,"query_location_length":6,"column_names":["termid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":706,"query_location_length":5,"column_names":["docid"]},{"class":"FUNCTION","type":"FUNCTION","alias":"tf","query_location":728,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":756,"query_location_length":6,"schema_name":"","table_name":"qterms","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["qterms"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":780,"query_location_length":5,"column_names":["docid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":804,"query_location_length":6,"column_names":["termid"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"cdocs","sample":null,"query_location":837,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":863,"query_location_length":5,"column_names":["docid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":882,"query_location_length":6,"schema_name":"","table_name":"qterms","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["qterms"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":911,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":911,"query_location_length":13,"column_names":["term_tf","docid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":927,"query_location_length":11,"column_names":["cdocs","docid"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"docs","sample":null,"query_location":948,"query_location_length":31,"schema_name":"fts_main_documents","table_name":"docs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fts_main_documents","docs"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":987,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":987,"query_location_length":13,"column_names":["term_tf","docid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1003,"query_location_length":10,"column_names":["docs","docid"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"dict","sample":null,"query_location":1023,"query_location_length":31,"schema_name":"fts_main_documents","table_name":"dict","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fts_main_documents","dict"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":1062,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1062,"query_location_length":14,"column_names":["term_tf","termid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1079,"query_location_length":11,"column_names":["dict","termid"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1100,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1113,"query_location_length":5,"column_names":["score"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":1228,"query_location_length":65,"left":{"type":"SUBQUERY","alias":"scores","sample":null,"query_location":1124,"query_location_length":93,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1137,"query_location_length":5,"column_names":["docid"]},{"class":"FUNCTION","type":"FUNCTION","alias":"score","query_location":1155,"query_location_length":13,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1159,"query_location_length":8,"column_names":["subscore"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1187,"query_location_length":9,"schema_name":"","table_name":"subscores","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subscores"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1210,"query_location_length":5,"column_names":["docid"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"docs","sample":null,"query_location":1233,"query_location_length":31,"schema_name":"fts_main_documents","table_name":"docs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fts_main_documents","docs"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":1268,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1268,"query_location_length":12,"column_names":["scores","docid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1283,"query_location_length":10,"column_names":["docs","docid"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT deep_cte(42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"deep_cte","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["deep_cte"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select my_macro2(84)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"my_macro2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["my_macro2"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT function_name, parameters FROM duckdb_functions() WHERE function_name IN ('arithmetic', 'multi_add', 'generate_numbers') ORDER BY function_name, len(parameters)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":13,"column_names":["function_name"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":152,"query_location_length":15,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":10,"column_names":["parameters"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["function_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":10,"column_names":["parameters"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":38,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_functions"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":80,"query_location_length":47,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":13,"column_names":["function_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":12,"literal":{"kind":"STRING","text":"arithmetic"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":11,"literal":{"kind":"STRING","text":"multi_add"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":18,"literal":{"kind":"STRING","text":"generate_numbers"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT renamed FROM (SELECT #1 AS renamed FROM (VALUES (42)) AS t(a));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["renamed"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":20,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"renamed","query_location":28,"query_location_length":2,"index":1}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m(0::float, 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["m"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from m(s := [42])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"s","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":12,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["m"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t(1), t(2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":15,"left":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":4,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"t","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["t"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":4,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"t","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["t"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_macro(1, 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"union_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["union_macro"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT IFELSE(0,'true','false')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"ifelse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"qualified_name":{"path":["ifelse"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT add_default5(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"add_default5","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["add_default5"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select zz1(1),zz2(2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"zz1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["zz1"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":6,"function_name":"zz2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["zz2"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM xt2(100,'m%');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"xt2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"m%"}}}],"qualified_name":{"path":["xt2"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM card_select(_name:='king', _val_max:=13, _suit:='hearts', _val_min:=10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":71,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"card_select","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_name","query_location":33,"query_location_length":6,"literal":{"kind":"STRING","text":"king"}}},{"name":"_val_max","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_val_max","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},{"name":"_suit","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_suit","query_location":62,"query_location_length":8,"literal":{"kind":"STRING","text":"hearts"}}},{"name":"_val_min","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"_val_min","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["card_select"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name, schema_name, function_name, function_type, description, return_type, parameters, parameter_types, varargs, macro_definition FROM duckdb_functions() WHERE function_type = 'table_macro' AND\n ( function_name = 'sgreek' or function_name = 'xt') order by database_name, function_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":13,"column_names":["database_name"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":13,"column_names":["function_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":13,"column_names":["function_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":13,"column_names":["function_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":11,"column_names":["description"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":11,"column_names":["return_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":10,"column_names":["parameters"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":15,"column_names":["parameter_types"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":7,"column_names":["varargs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":16,"column_names":["macro_definition"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":151,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_functions"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":176,"query_location_length":87,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":13,"column_names":["function_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":13,"literal":{"kind":"STRING","text":"table_macro"}}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":213,"query_location_length":49,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":213,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":8,"literal":{"kind":"STRING","text":"sgreek"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":242,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":4,"literal":{"kind":"STRING","text":"xt"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum_positive(i-5) FILTER (WHERE (i-5) \u003c 3) OVER () FROM range(10) t(i) LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":50,"function_name":"sum_positive","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":39,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum_positive"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":63,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM s1.s2.s3.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"s3","table_name":"tbl","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","s3","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM s1.s2.s3.tbl_macro();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"tbl_macro","schema":"s3","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"s1","arguments":[],"qualified_name":{"path":["s1","s2","s3","tbl_macro"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_schemas() WHERE database_name = 'memory' AND schema_name IN ('child','grandchild');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_schemas","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_schemas"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"literal":{"kind":"STRING","text":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":22,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":11,"column_names":["schema_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":7,"literal":{"kind":"STRING","text":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":12,"literal":{"kind":"STRING","text":"grandchild"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, k, l FROM s1.s2.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":7,"schema_name":"s2","table_name":"t","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_tables() WHERE database_name = 'memory';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":8,"literal":{"kind":"STRING","text":"memory"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM s1.s2.defaults;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":14,"schema_name":"s2","table_name":"defaults","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","defaults"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name, schema_name, trigger_name FROM duckdb_triggers() WHERE trigger_name = 'trg';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":12,"column_names":["trigger_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":5,"literal":{"kind":"STRING","text":"trg"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'happy'::parent.child.mood;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":17,"catalog":"parent","schema":"child","type_name":"mood","children":[],"qualified_name":{"path":["parent","child","mood"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM top;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"top","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["top"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM main.sub.v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"sub","table_name":"v","column_name_alias":[],"catalog_name":"main","at_clause":null,"qualified_name":{"path":["main","sub","v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'q'::s1.s2.fallback_ty;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"q"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":17,"catalog":"s1","schema":"s2","type_name":"fallback_ty","children":[],"qualified_name":{"path":["s1","s2","fallback_ty"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM p.s.v_top","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"s","table_name":"v_top","column_name_alias":[],"catalog_name":"p","at_clause":null,"qualified_name":{"path":["p","s","v_top"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT in_search_path('lake', 's3tablescatalog.salesdemo.retail'), in_search_path('lake', 'retail');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"in_search_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"lake"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":34,"literal":{"kind":"STRING","text":"s3tablescatalog.salesdemo.retail"}}}],"qualified_name":{"path":["in_search_path"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":32,"function_name":"in_search_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":6,"literal":{"kind":"STRING","text":"lake"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":8,"literal":{"kind":"STRING","text":"retail"}}}],"qualified_name":{"path":["in_search_path"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_schema();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"current_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["current_schema"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW TABLES FROM lake.\"a.b\".\"c,d\".\"e\"\"f\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":null,"show_type":"SHOW_FROM","catalog_name":"lake","schema_name":"e\"f","qualified_name":{"path":["lake","a.b","c,d","e\"f",""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM s1.s2.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"s2","table_name":"tbl","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s1.dup.a FROM s1.s2.dup, s1.s3.dup;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["s1","dup","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"s2","table_name":"dup","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","dup"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":9,"schema_name":"s3","table_name":"dup","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s3","dup"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM s1.nope.t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"nope","table_name":"t1","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","nope","t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM db.s1.s2.v_unqualified;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":22,"schema_name":"s2","table_name":"v_unqualified","column_name_alias":[],"catalog_name":"db","at_clause":null,"qualified_name":{"path":["db","s1","s2","v_unqualified"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM parent.child.tm();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"tm","schema":"child","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"parent","arguments":[],"qualified_name":{"path":["parent","child","tm"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_tables() WHERE table_name = 'pk';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"STRING","text":"pk"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT n FROM db2.leaf.s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"leaf","table_name":"s","column_name_alias":[],"catalog_name":"db2","at_clause":null,"qualified_name":{"path":["db2","leaf","s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(nextval('{db}.seq_incr')), min(nextval('{db}.seq_desc')), max(nextval('{db}.seq_cycle')) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":24,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"{db}.seq_incr"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":29,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":24,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":15,"literal":{"kind":"STRING","text":"{db}.seq_desc"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":30,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":16,"literal":{"kind":"STRING","text":"{db}.seq_cycle"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":105,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextval('step') FROM range(2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"step"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextval('whole');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"whole"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextval('seq4') from generate_series(0,20);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"seq4"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT setval('myseq', 42, true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"setval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"myseq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["setval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT setval(NULL, 42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"setval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["setval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT setval('persisted_seq', 42, true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"setval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":15,"literal":{"kind":"STRING","text":"persisted_seq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["setval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval(a) FROM (VALUES ('seq'), (NULL), ('seq')) tbl1(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":23,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, currval(s) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":10,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_name FROM duckdb_tables() WHERE table_name = NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name, schema_name, column_name FROM duckdb_columns() WHERE table_name = 't1' ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":11,"column_names":["schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":52,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":4,"literal":{"kind":"STRING","text":"t1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_name FROM duckdb_tables WHERE lower(schema_name) = lower('S1') ORDER BY database_name, table_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":13,"column_names":["database_name"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":10,"column_names":["table_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":13,"schema_name":"","table_name":"duckdb_tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_tables"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":32,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":18,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":11,"column_names":["schema_name"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":11,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"STRING","text":"S1"}}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT comment FROM duckdb_views WHERE view_name = 'v1' ORDER BY database_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":13,"column_names":["database_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":12,"schema_name":"","table_name":"duckdb_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_views"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"STRING","text":"v1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_name FROM duckdb_tables() WHERE TRY_CAST(schema_name AS INTEGER) = 1 ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_tables"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":36,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":11,"column_names":["schema_name"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"x","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["x"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"42\" FROM integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["42"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM temp.test_temp_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"temp","table_name":"test_temp_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["temp","test_temp_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT main_macro(1, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"main_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["main_macro"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CURRENT_SETTING('schema');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":8,"literal":{"kind":"STRING","text":"schema"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM test5_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"test5_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test5_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_name, database_name='temp' FROM duckdb_indexes() ORDER BY index_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["index_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["index_name"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":19,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":6,"literal":{"kind":"STRING","text":"temp"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_indexes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_indexes"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM v1 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from db1.v1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":6,"schema_name":"db1","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM db2.v_base;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"db2","table_name":"v_base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db2","v_base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(DISTINCT row(s)), len(list(DISTINCT row(s COLLATE NOCASE)))\nFROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":41,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":21,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":53,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT string_agg(DISTINCT s COLLATE NOCASE, ',' ORDER BY s COLLATE NOCASE) FROM (VALUES ('x'), ('Z')) t(s)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":58,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":27,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":81,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"literal":{"kind":"STRING","text":"Z"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(DISTINCT s ORDER BY s) FROM (VALUES ('GÖTHE'), ('Z'), ('GÖTHE')) t(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["s"]}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":40,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":8,"literal":{"kind":"STRING","text":"GÖTHE"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"Z"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":8,"literal":{"kind":"STRING","text":"GÖTHE"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT c0 || (nextval('seq2') * 0)) AS k, count(*) FROM t WHERE id \u003c 2 GROUP BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"k","query_location":7,"query_location_length":36,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":27,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":19,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":15,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"seq2"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":72,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT max(v) FROM t) AS g, count(*)\nFROM range(2)\nGROUP BY GROUPING SETS (((SELECT max(v) FROM t)), ())\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"g","query_location":7,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":50,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":84,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"group_sets":[[0],[]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, row_number() OVER (ORDER BY val COLLATE nocase) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":11,"query_location_length":47,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["val"]},"collation":"nocase"}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c1 FROM t1 WHERE c1 LIKE pattern COLLATE NOCASE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":27,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":32,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":7,"column_names":["pattern"]},"collation":"NOCASE"}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': nextval('collate_sequence')::VARCHAR COLLATE NOCASE,\n 'y': nextval('collate_sequence')::VARCHAR COLLATE NOCASE} = {'x': '1', 'y': '2'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":147,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":124,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLLATE","type":"COLLATE","alias":"x","query_location":13,"query_location_length":51,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":27,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":18,"literal":{"kind":"STRING","text":"collate_sequence"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"NOCASE"}},{"name":"y","expression":{"class":"COLLATE","type":"COLLATE","alias":"y","query_location":79,"query_location_length":51,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":27,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":18,"literal":{"kind":"STRING","text":"collate_sequence"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"NOCASE"}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":140,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":150,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'b'} = {'x': 'B'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":23,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT string_agg(t::VARCHAR, ',' ORDER BY t) FROM tz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["t"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":2,"schema_name":"","table_name":"tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s FROM structs ORDER BY s DESC LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["s"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT icu_sort_key('1', 'en')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"STRING","text":"en"}}}],"qualified_name":{"path":["icu_sort_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT icu_sort_key('α', 'el')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"STRING","text":"α"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"el"}}}],"qualified_name":{"path":["icu_sort_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(DISTINCT s COLLATE NOCASE) FILTER (WHERE g = 1),\n count(DISTINCT s) FILTER (WHERE g = 1)\nFROM strings;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"count","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":22,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":38,"function_name":"count","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select repeat(a collate de, 10) from tbl order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]},"collation":"de"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM collate_test WHERE s='Muhleisen'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":11,"literal":{"kind":"STRING","text":"Muhleisen"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM collate_test WHERE s='HeLlo'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"HeLlo"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM collate_test ORDER BY s COLLATE NOCASE.NOACCENT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":36,"query_location_length":25,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE.NOACCENT"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains(NULL::VARCHAR[], 'x' COLLATE NOCASE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":38,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"collation":"NOCASE"}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, list_position([{'x': 'Apple'}, {'x': 'Banana'}], {'x': needle})\nFROM t ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":63,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":32,"query_location_length":7,"literal":{"kind":"STRING","text":"Apple"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":48,"query_location_length":8,"literal":{"kind":"STRING","text":"Banana"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":66,"query_location_length":6,"column_names":["needle"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT len([{'x': 'hello' COLLATE NOCASE}, {'x': 'hello' COLLATE NOACCENT}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":64,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLLATE","type":"COLLATE","alias":"x","query_location":18,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},"collation":"NOCASE"}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":31,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLLATE","type":"COLLATE","alias":"x","query_location":49,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},"collation":"NOACCENT"}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FILTER (WHERE list_has_any(tags, [needle])), count(*) FILTER (WHERE list_has_all(tags, [needle, 'b']))\nFROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"count_star","schema":"","filter":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":28,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["tags"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":6,"column_names":["needle"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_has_any"]},"is_legacy_function_call":false},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":57,"function_name":"count_star","schema":"","filter":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":33,"function_name":"list_has_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["tags"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":6,"column_names":["needle"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_has_all"]},"is_legacy_function_call":false},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":124,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_number() OVER (PARTITION BY NULL::INTERVAL ORDER BY NULL::INTERVAL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":71,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (VALUES (INTERVAL '30' DAY), (INTERVAL '1' MONTH), (INTERVAL '720' HOUR)) t(i) GROUP BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":17,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"STRING","text":"30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":19,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"literal":{"kind":"STRING","text":"720"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT s) AS c1 FROM collate_test ORDER BY c11 COLLATE NOCASE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":51,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["c11"]},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"c1","query_location":7,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select right(left(b collate noaccent, 6), 1) from tbl order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"right","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":27,"function_name":"left","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":18,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["b"]},"collation":"noaccent"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["left"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["right"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT contains('HÉLLO', 'e'), list_contains(['héllo'], 'HELLO')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":8,"literal":{"kind":"STRING","text":"HÉLLO"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":34,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT icu_sort_key('goose', 'DUCK_DUCK_ENUM');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"icu_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":16,"literal":{"kind":"STRING","text":"DUCK_DUCK_ENUM"}}}],"qualified_name":{"path":["icu_sort_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from pragma_collations() \nwhere collname like 'n%'\norder by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_collations","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_collations"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":9,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["collname"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"STRING","text":"n%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strpos('Hello World' COLLATE NOCASE, 'world')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"strpos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":13,"literal":{"kind":"STRING","text":"Hello World"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}}],"qualified_name":{"path":["strpos"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strpos('HéLLO' COLLATE NOCASE, 'éll')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"strpos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":14,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"HéLLO"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"éll"}}}],"qualified_name":{"path":["strpos"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(i) = list(i ORDER BY i) FROM ints WHERE v \u003c 100 OR v BETWEEN 300 AND 400 OR w = 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":52,"query_location_length":41,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":52,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":65,"query_location_length":19,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["v"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"INTEGER","text":"400"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":1,"column_names":["w"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(i) = list(i ORDER BY i) FROM ints WHERE v IS NULL OR w IS NULL OR (v + w) % 11 = 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":52,"query_location_length":42,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":54,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["v"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":67,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["w"]}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":12,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["w"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'hello'::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, payload, flag FROM v3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["flag"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":2,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM primary_table LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":13,"schema_name":"","table_name":"primary_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["primary_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_parquet('{TEST_DIR}/async_lifecycle_tmp.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/async_lifecycle_tmp.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, user FROM read_parquet('{TEST_DIR}/copy_user_column_{conversion}/*/*.parquet', hive_partitioning = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":4,"column_names":["user"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":94,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":54,"literal":{"kind":"STRING","text":"{TEST_DIR}/copy_user_column_{conversion}/*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM glob('{TEST_DIR}/copy_cte_empty_consumer.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":46,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/copy_cte_empty_consumer.csv"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/drug_exposure.csv') ORDER BY ALL limit 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/drug_exposure.csv"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{TEST_DIR}/empty_line.csv', columns={'a': 'VARCHAR'}, header=false, nullstr=['', '', '']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":99,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/empty_line.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":57,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":7,"column_names":["nullstr"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/null_padding/{i}.csv', null_padding=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/null_padding/{i}.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_10.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_10.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_22.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_22.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_34.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_34.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_46.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_46.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_58.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_58.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_70.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_70.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/3977/case_82.csv', auto_detect=false, buffer_size=42, columns={'a':'INTEGER','b':'INTEGER', 'c':'VARCHAR'}, delim=';', rejects_table='\"', strict_mode=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":184,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/3977/case_82.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/4329/case_1.csv', escape='\\', buffer_size=42, skip=42, strict_mode=false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":102,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/4329/case_1.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) FROM (FROM read_csv('{DATA_DIR}/csv/auto/14177.csv', buffer_size=80, ignore_errors = true)) as t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":86,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":79,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/auto/14177.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"literal":{"kind":"INTEGER","text":"80"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/test/multi_column_string.csv', COLUMN_TYPES=STRUCT_PACK(a := 'BLA'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":99,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":45,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/multi_column_string.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":12,"column_names":["COLUMN_TYPES"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":106,"query_location_length":5,"literal":{"kind":"STRING","text":"BLA"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"(SELECT * FROM ncvoters EXCEPT SELECT * FROM ncvoters2)\nUNION ALL\n(SELECT * FROM ncvoters2 EXCEPT SELECT * FROM ncvoters)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":8,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":8,"schema_name":"","table_name":"ncvoters","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ncvoters"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":9,"schema_name":"","table_name":"ncvoters2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ncvoters2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":74,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":9,"schema_name":"","table_name":"ncvoters2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ncvoters2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":105,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"query_location_length":8,"schema_name":"","table_name":"ncvoters","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ncvoters"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]}]}} +{"sql":"SELECT * FROM web_page ORDER BY column00 LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["column00"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"web_page","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["web_page"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test ORDER BY column0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["column0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, column01, column12 FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":8,"column_names":["column01"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":8,"column_names":["column12"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, c FROM test ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from read_csv('{DATA_DIR}/csv/test/blob.csv',types=['blob'], header = 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":67,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/blob.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"literal":{"kind":"STRING","text":"blob"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv_auto ('{TEST_DIR}/csv_file.csv', auto_type_candidates=['BIGINT','VARCHAR']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":84,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(linenr), typeof(mixed_string), typeof(mixed_double) FROM test LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["linenr"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":20,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":12,"column_names":["mixed_string"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":20,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":12,"column_names":["mixed_double"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT value\nFROM read_csv('{TEST_DIR}/utf16_boundary.csv', encoding = 'utf-16', buffer_size = 23)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":80,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/utf16_boundary.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":8,"column_names":["encoding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":8,"literal":{"kind":"STRING","text":"utf-16"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"23"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM read_csv(\n\t'{TEST_DIR}/scanner_numbers.csv',\n\tauto_detect = false,\n\theader = false,\n\tcolumns = {\n\t\t'ui': 'UINTEGER',\n\t\t'uhi': 'UHUGEINT',\n\t\t'bn': 'BIGNUM',\n\t\t'd16': 'DECIMAL(4, 2)',\n\t\t'd32': 'DECIMAL(9, 2)',\n\t\t'd64': 'DECIMAL(18, 2)',\n\t\t'd128': 'DECIMAL(38, 2)'\n\t}\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":266,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/scanner_numbers.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":179,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":169,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"ui","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ui","query_location":119,"query_location_length":10,"literal":{"kind":"STRING","text":"UINTEGER"}}},{"name":"uhi","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"uhi","query_location":140,"query_location_length":10,"literal":{"kind":"STRING","text":"UHUGEINT"}}},{"name":"bn","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bn","query_location":160,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGNUM"}}},{"name":"d16","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d16","query_location":179,"query_location_length":15,"literal":{"kind":"STRING","text":"DECIMAL(4, 2)"}}},{"name":"d32","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d32","query_location":205,"query_location_length":15,"literal":{"kind":"STRING","text":"DECIMAL(9, 2)"}}},{"name":"d64","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d64","query_location":231,"query_location_length":16,"literal":{"kind":"STRING","text":"DECIMAL(18, 2)"}}},{"name":"d128","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d128","query_location":259,"query_location_length":16,"literal":{"kind":"STRING","text":"DECIMAL(38, 2)"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from read_csv('{DATA_DIR}/csv/test/invalid_utf.csv',columns = {'col1': 'VARCHAR','col2': 'VARCHAR','col3': 'VARCHAR'}, auto_detect=false, header = 0, delim = ',')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":157,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/invalid_utf.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":65,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":55,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":71,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":89,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":107,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":138,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from read_csv('{DATA_DIR}/csv/test/invalid_utf_complex.csv',columns = {'col1': 'VARCHAR','col2': 'VARCHAR','col3': 'VARCHAR'}, auto_detect=false, header = 0, delim = ',', quote = '\"', buffer_size = 198)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":197,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":45,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/invalid_utf_complex.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":65,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":55,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":79,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":97,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":115,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":158,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":3,"literal":{"kind":"INTEGER","text":"198"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rsID, chr, pos, refb, altb FROM t3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["rsID"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["chr"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["pos"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["refb"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["altb"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/copy_to_overwrite.csv.gz'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":37,"schema_name":"","table_name":"{TEST_DIR}/copy_to_overwrite.csv.gz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/copy_to_overwrite.csv.gz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv_auto('{DATA_DIR}/csv/decimal_separators/invalid_char.csv', column_types={'foo': 'double'}, decimal_separator='ö')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":123,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":52,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/decimal_separators/invalid_char.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":12,"column_names":["column_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"foo","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"foo","query_location":103,"query_location_length":8,"literal":{"kind":"STRING","text":"double"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":17,"column_names":["decimal_separator"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"literal":{"kind":"STRING","text":"ö"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_csv('{DATA_DIR}/csv/auto/int_bol.csv', auto_detect=false, columns={'a':'varchar'}, dtypes=['BIGINT'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":106,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":33,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/auto/int_bol.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":90,"query_location_length":9,"literal":{"kind":"STRING","text":"varchar"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL FROM sniff_csv(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{DATA_DIR}/csv/[avalon]_daily-avg.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":39,"schema_name":"","table_name":"{DATA_DIR}/csv/[avalon]_daily-avg.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/[avalon]_daily-avg.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, value, CAST(part AS INT) as part_cast, CAST(date AS DATE) as date_cast from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/types/*/*/test.csv', HIVE_PARTITIONING=1) where date_cast \u003e CAST('2000-01-01' as DATE) order by date_cast;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":9,"column_names":["date_cast"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["value"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"part_cast","query_location":18,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["part"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"date_cast","query_location":50,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["date"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":87,"query_location_length":89,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/hive-partitioning/types/*/*/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":156,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":183,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":9,"column_names":["date_cast"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":195,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":12,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":216,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * exclude(filename) from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv', HIVE_PARTITIONING=1, FILENAME=1) order by 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":19,"relation_name":"","exclude_list":["filename"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":60,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM '{TEST_DIR}/limit_copy.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/limit_copy.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/limit_copy.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select l_orderkey, l_partkey, l_commitdate, l_comment from read_csv_auto('{DATA_DIR}/csv/real/lineitem_sample.csv', names=['l_orderkey', 'l_partkey', 'l_suppkey', 'l_linenumber', 'l_quantity', 'l_extendedprice', 'l_discount', 'l_tax', 'l_returnflag', 'l_linestatus', 'l_shipdate', 'l_commitdate', 'l_receiptdate', 'l_shipinstruct', 'l_shipmode', 'l_comment', 'xx']) LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":372,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["l_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":9,"column_names":["l_partkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":12,"column_names":["l_commitdate"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":9,"column_names":["l_comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":306,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":248,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":242,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":12,"literal":{"kind":"STRING","text":"l_orderkey"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":11,"literal":{"kind":"STRING","text":"l_partkey"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":11,"literal":{"kind":"STRING","text":"l_suppkey"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":14,"literal":{"kind":"STRING","text":"l_linenumber"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":12,"literal":{"kind":"STRING","text":"l_quantity"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":17,"literal":{"kind":"STRING","text":"l_extendedprice"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":12,"literal":{"kind":"STRING","text":"l_discount"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":7,"literal":{"kind":"STRING","text":"l_tax"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":14,"literal":{"kind":"STRING","text":"l_returnflag"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":14,"literal":{"kind":"STRING","text":"l_linestatus"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":12,"literal":{"kind":"STRING","text":"l_shipdate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":14,"literal":{"kind":"STRING","text":"l_commitdate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":15,"literal":{"kind":"STRING","text":"l_receiptdate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":314,"query_location_length":16,"literal":{"kind":"STRING","text":"l_shipinstruct"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":332,"query_location_length":12,"literal":{"kind":"STRING","text":"l_shipmode"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":346,"query_location_length":11,"literal":{"kind":"STRING","text":"l_comment"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":359,"query_location_length":4,"literal":{"kind":"STRING","text":"xx"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/header_2.csv', names = ['a'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":29,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/header_2.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv_auto('{DATA_DIR}/csv/nullpadding_header.csv', null_padding=True, comment = '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":87,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullpadding_header.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":7,"column_names":["comment"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/null/multiple_quoted_nulls.csv', auto_detect=false, delim=',', quote='\"', escape='\"', skip=0, header=true, columns={'name': 'VARCHAR', 'age': 'VARCHAR', 'height': 'VARCHAR'}, nullstr = ['',',','null'], allow_quoted_nulls = false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":254,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/null/multiple_quoted_nulls.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":124,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":137,"query_location_length":66,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":58,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":154,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":172,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":193,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":7,"column_names":["nullstr"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":215,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":232,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":18,"column_names":["allow_quoted_nulls"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":253,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM v1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT NULL, c3, (c4 \u003c= c1), (c3 BETWEEN c4 AND c2)\nFROM sniff_csv('1a616242-1dcd-4914-99d1-16119d9b6e4c', \"names\" := ['1970-01-01'::DATE, 'infinity'::DATE, '-infinity'::DATE, NULL, '2022-05-12'::DATE], filename := '9be2bc9d-d49f-4564-bfa4-6336b211a874') AS t5(c1, c2, c3, c4) WHERE c1 GROUP BY c3 LIMIT ('c4000757-69ca-400e-b58a-1dac73b85595' IS NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"LIMIT_MODIFIER","limit":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":353,"query_location_length":7,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":314,"query_location_length":38,"literal":{"kind":"STRING","text":"c4000757-69ca-400e-b58a-1dac73b85595"}}]},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["c3"]},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":27,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["c4"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["c1"]}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":42,"query_location_length":17,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["c3"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["c4"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["c2"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t5","sample":null,"query_location":66,"query_location_length":219,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":38,"literal":{"kind":"STRING","text":"1a616242-1dcd-4914-99d1-16119d9b6e4c"}}},{"name":"names","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"names","query_location":127,"query_location_length":83,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":140,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":12,"literal":{"kind":"STRING","text":"1970-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":158,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":160,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":177,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":11,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":203,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":12,"literal":{"kind":"STRING","text":"2022-05-12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":224,"query_location_length":38,"literal":{"kind":"STRING","text":"9be2bc9d-d49f-4564-bfa4-6336b211a874"}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":["c1","c2","c3","c4"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":2,"column_names":["c1"]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":2,"column_names":["c3"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(['{DATA_DIR}/csv/glob/a1/a1.csv', '{DATA_DIR}/csv/glob/a2/a2.csv']) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":66,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/glob/a1/a1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/glob/a2/a2.csv"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM glob('{DATA_DIR}//csv///glob///*//////*.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}//csv///glob///*//////*.csv"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv_auto([]::VARCHAR[]) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv_auto('{DATA_DIR}/csv/issue6764.csv', all_varchar=true, header=false, skip=1, null_padding=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":104,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/issue6764.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/multidelimiter/many_bytes.csv', delim = '\\|', header = False)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":86,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":46,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multidelimiter/many_bytes.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"STRING","text":"\\|"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM read_csv_auto('{DATA_DIR}/csv/nullpadding_big_mixed.csv', buffer_size=55)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":42,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullpadding_big_mixed.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":2,"literal":{"kind":"INTEGER","text":"55"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_csv('{DATA_DIR}/csv/test/multi_column_string.csv', COLUMNS=STRUCT_PACK(a := 'INTEGER', b := 'INTEGER', c := 'INTEGER', d := 'VARCHAR'), auto_detect='true', delim = '|', buffer_size=30)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":190,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":45,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/multi_column_string.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":83,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":7,"column_names":["COLUMNS"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":75,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":96,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":112,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":128,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":144,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":156,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":189,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) \u003e 0\nFROM read_csv('{TEST_DIR}/test.txt', columns={'c': 'VARCHAR'}, delim=NULL, header=0, quote=NULL, escape=NULL, auto_detect = false)\nWHERE contains(c, 'Total Time');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":125,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEST_DIR}/test.txt"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":71,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":117,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":25,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":12,"literal":{"kind":"STRING","text":"Total Time"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select foo, count(1) cnt from read_csv_auto('{DATA_DIR}/csv/auto/test_multiple_columns.csv') group by foo order by cnt desc","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":3,"column_names":["cnt"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["foo"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":12,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/auto/test_multiple_columns.csv"}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["foo"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_csv_auto('{DATA_DIR}/csv/aws_locations.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/aws_locations.csv"}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/error/quotednewlines.csv', parallel=true, sep=',', quote='\"', buffer_size=200, columns={'h1': int, 'h2': varchar}, header=True)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":152,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/quotednewlines.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":26,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"h1","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h1","query_location":133,"query_location_length":3,"column_names":["int"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":144,"query_location_length":7,"column_names":["varchar"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT phone FROM phone_numbers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["phone"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":13,"schema_name":"","table_name":"phone_numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["phone_numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n SELECT i, row_number() OVER () AS rn\n FROM read_csv('{TEST_DIR}/csv_ra_single.csv', buffer_size=65536)\n) WHERE i + 1 \u003c\u003e rn","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":113,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":37,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":73,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/csv_ra_single.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":5,"literal":{"kind":"INTEGER","text":"65536"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":141,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":2,"column_names":["rn"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(channel) FROM read_single_csv_file('data/csv/tpcds_14.csv', all_varchar=true) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["channel"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_csv_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":23,"literal":{"kind":"STRING","text":"data/csv/tpcds_14.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_single_csv_file"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('data/csv/error/mismatch/*.csv', ignore_errors=true, filename=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":31,"literal":{"kind":"STRING","text":"data/csv/error/mismatch/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('{TEST_DIR}/sniff_*.csv', files_to_sniff=0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":24,"literal":{"kind":"STRING","text":"{TEST_DIR}/sniff_*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/rejects/incorrect_columns/mix_columns.csv',\n columns = {'a': 'INTEGER', 'b': 'INTEGER', 'c': 'INTEGER', 'd': 'INTEGER'},\n store_rejects=true, auto_detect=false, header = 1, strict_mode=True);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":226,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/incorrect_columns/mix_columns.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":74,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":64,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":108,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":124,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":140,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":156,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":192,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":211,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":223,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT csv_line FROM baz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["csv_line"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"baz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["baz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/error/mismatch/bad*.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n store_rejects = true, auto_detect=false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":173,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":40,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":57,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":93,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":112,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":131,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/dr_who.csv', columns={ 'date': 'DATE', 'datetime': 'TIMESTAMPTZ', 'time': 'TIME', 'timestamp': 'TIMESTAMP', 'time_tz': 'TIMETZ' }, store_rejects=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":183,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/dr_who.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":116,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":108,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"date","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"date","query_location":69,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"datetime","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"datetime","query_location":89,"query_location_length":13,"literal":{"kind":"STRING","text":"TIMESTAMPTZ"}}},{"name":"time","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time","query_location":112,"query_location_length":6,"literal":{"kind":"STRING","text":"TIME"}}},{"name":"timestamp","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"timestamp","query_location":133,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}},{"name":"time_tz","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time_tz","query_location":157,"query_location_length":8,"literal":{"kind":"STRING","text":"TIMETZ"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":169,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(first(column0)), typeof(first(column1)), COUNT(*), SUM(column0), MAX(len(column1)) FROM read_csv_auto(\n '{DATA_DIR}/csv/error/mismatch/big_bad*.csv',\n sample_size=1,\n rejects_scan = 'rejects_scan_3',\n rejects_table = 'rejects_errors_3'\n );","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":17,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":12,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":166,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/big_bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":16,"literal":{"kind":"STRING","text":"rejects_scan_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":228,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":18,"literal":{"kind":"STRING","text":"rejects_errors_3"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(first(column0)), typeof(first(column1)), COUNT(*), SUM(column0), MAX(len(column1)) FROM read_csv_auto(\n '{DATA_DIR}/csv/error/mismatch/big_bad*.csv',\n sample_size=1,\n rejects_scan = 'rejects_scan_3',\n store_rejects = false\n );","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":14,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["column0"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":17,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":12,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":7,"column_names":["column1"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":153,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/big_bad*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":16,"literal":{"kind":"STRING","text":"rejects_scan_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":228,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/error/mismatch/bad.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n ignore_errors=true,\n rejects_table='csv_rejects_table',\n rejects_limit=-1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":212,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/bad.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":57,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":19,"literal":{"kind":"STRING","text":"csv_rejects_table"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":209,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":13,"column_names":["rejects_limit"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/multiple_casts_flush.csv',\n columns = {'name': 'VARCHAR', 'age': 'INTEGER', 'current_day': 'DATE', 'tomorrow': 'DATE'},\n store_rejects = true, auto_detect=false, header = 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":228,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/multiple_errors/multiple_casts_flush.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":90,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":80,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":104,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":122,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":148,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"tomorrow","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tomorrow","query_location":168,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":222,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/invalid_utf_cast.csv',\n columns = {'name': 'VARCHAR', 'age': 'INTEGER', 'current_day': 'DATE', 'barks': 'INTEGER'},\n store_rejects = true, auto_detect=false, header = 1, max_line_size=40);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":242,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":61,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects/multiple_errors/invalid_utf_cast.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":90,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":80,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":100,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":118,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":144,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"barks","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"barks","query_location":161,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":177,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":199,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":218,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":230,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":13,"column_names":["max_line_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/unescaped_quotes/end_quote.csv', columns = {'a':'varchar'}, header = false, quote = '\"', strict_mode = false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":134,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/unescaped_quotes/end_quote.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":78,"query_location_length":9,"literal":{"kind":"STRING","text":"varchar"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select d FROM '{DATA_DIR}/csv/special_date.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":33,"schema_name":"","table_name":"{DATA_DIR}/csv/special_date.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/special_date.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/1.csv', force_not_null=012%0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/1.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":14,"column_names":["force_not_null"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"INTEGER","text":"012"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/13.csv', rejects_table='d');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":27,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/13.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":13,"column_names":["rejects_table"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/afl/25.csv', buffer_size=734771105608237082, max_line_size=-8825501086615982989, allow_quoted_nulls=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":130,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":27,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/afl/25.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":18,"literal":{"kind":"INTEGER","text":"734771105608237082"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":13,"column_names":["max_line_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-8825501086615982989"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":18,"column_names":["allow_quoted_nulls"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM bgzf;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"bgzf","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bgzf"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/inconsistencies/line_with_spaces.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/inconsistencies/line_with_spaces.csv"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM '{DATA_DIR}/csv/comments/mid_line_quote.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":44,"schema_name":"","table_name":"{DATA_DIR}/csv/comments/mid_line_quote.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/comments/mid_line_quote.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM '{DATA_DIR}/csv/comments/simple_comma.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":42,"schema_name":"","table_name":"{DATA_DIR}/csv/comments/simple_comma.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/comments/simple_comma.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select comment, columns from sniff_csv('{DATA_DIR}/csv/comments/error.csv', ignore_errors = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["comment"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/comments/error.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from '{TEMP_DIR}/test_re.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":24,"schema_name":"","table_name":"{TEMP_DIR}/test_re.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/test_re.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('{DATA_DIR}/csv/venue_pipe.csv', types={'venueseats':'INTEGER'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":31,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/venue_pipe.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"venueseats","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"venueseats","query_location":76,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv(\n '{DATA_DIR}/csv/mixed_timestamps.csv',\n auto_detect = false,\n header = true,\n columns = {\n 'A': 'INTEGER',\n 'B': 'TIMESTAMP',\n },\n timestampformat = '%m/%d/%Y %H:%M:%S',\n ignore_errors = true\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":236,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":37,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/mixed_timestamps.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":63,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":53,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"A","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"A","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"B","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"B","query_location":152,"query_location_length":11,"literal":{"kind":"STRING","text":"TIMESTAMP"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":19,"literal":{"kind":"STRING","text":"%m/%d/%Y %H:%M:%S"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":219,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_csv('{TEMP_DIR}/typed_null_options.csv', columns := {'a': NULL::VARCHAR});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":78,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEMP_DIR}/typed_null_options.csv"}}},{"name":"columns","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"columns","query_location":78,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":88,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/timestamp_timezone.csv', auto_type_candidates = ['BOOLEAN', 'BIGINT', 'DOUBLE', 'TIME', 'DATE', 'TIMESTAMPTZ', 'VARCHAR'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":147,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/timestamp_timezone.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":96,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":73,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":9,"literal":{"kind":"STRING","text":"BOOLEAN"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":6,"literal":{"kind":"STRING","text":"TIME"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":13,"literal":{"kind":"STRING","text":"TIMESTAMPTZ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"Select * from read_csv('{DATA_DIR}/csv/custom_date.csv', header=true, timestampformat='%m/%d/%Y, %-I:%-M %p');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":95,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/custom_date.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":22,"literal":{"kind":"STRING","text":"%m/%d/%Y, %-I:%-M %p"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT columns FROM sniff_csv('{DATA_DIR}/csv/bad_date_timestamp_mix.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":43,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/bad_date_timestamp_mix.csv"}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(\n '{DATA_DIR}/csv/decimal.csv',\n columns = {'col_a': 'DECIMAL(18,15)'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":86,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":28,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/decimal.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col_a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col_a","query_location":82,"query_location_length":16,"literal":{"kind":"STRING","text":"DECIMAL(18,15)"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM no_quote;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"no_quote","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["no_quote"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column1, column2, column3, parse_filename(filename) FROM read_csv(['{DATA_DIR}/csv/filename_filter/a.csv','{DATA_DIR}/csv/filename_filter/b.csv','{DATA_DIR}/csv/filename_filter/c.csv','{DATA_DIR}/csv/filename_filter/d.csv'], filename=true) WHERE filename like '%d.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["column1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["column2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["column3"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":24,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_filename"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"query_location_length":182,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":157,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/filename_filter/a.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/filename_filter/b.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/filename_filter/c.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/filename_filter/d.csv"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":232,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":241,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":262,"query_location_length":13,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":8,"literal":{"kind":"STRING","text":"%d.csv"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv('data/csv/gzip_large_extra_field.csv.gz');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":40,"literal":{"kind":"STRING","text":"data/csv/gzip_large_extra_field.csv.gz"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select columns FROM sniff_csv('{DATA_DIR}/csv/headers/escaped_quote.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":42,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/headers/escaped_quote.csv"}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/rejects_sniffer.csv',ignore_errors = true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":67,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/rejects_sniffer.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from '{DATA_DIR}/csv/issue5077_aligned.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":38,"schema_name":"","table_name":"{DATA_DIR}/csv/issue5077_aligned.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/issue5077_aligned.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_csv(['{DATA_DIR}/csv/multiple_files/more_columns/file_1.csv','{DATA_DIR}/csv/multiple_files/more_columns/file_2.csv',\n'{DATA_DIR}/csv/multiple_files/more_columns/file_3.csv','{DATA_DIR}/csv/multiple_files/more_columns/file_5.csv'])\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":236,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":226,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/more_columns/file_1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/more_columns/file_2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/more_columns/file_3.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/multiple_files/more_columns/file_5.csv"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column0 like '%one%' and column0 like '%two%' as success FROM read_csv('{DATA_DIR}/csv/one_r_two.csv',new_line ='\\r\\n', strict_mode = TRUE, HEADER = FALSE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"success","query_location":7,"query_location_length":45,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":12,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["column0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"%one%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":12,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":7,"column_names":["column0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"%two%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":69,"query_location_length":93,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":30,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/one_r_two.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":6,"literal":{"kind":"STRING","text":"\\r\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":6,"column_names":["HEADER"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM nfcstrings WHERE nfc COLLATE NFC=nfd","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"nfcstrings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nfcstrings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":19,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":38,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["nfc"]},"collation":"NFC"},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["nfd"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_csv('{DATA_DIR}/csv/nullpadding.csv',null_padding=true, columns={\n'a': 'INTEGER','b': 'INTEGER','c': 'INTEGER','d': 'INTEGER'}, auto_detect = false, ignore_errors = true, filename = true, strict_mode=True)\nwhere a = 10 and d = 10000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":210,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/nullpadding.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":70,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":62,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":90,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":105,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":120,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":135,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":207,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":231,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":231,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":242,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from read_csv('{DATA_DIR}/csv/evil_nullpadding_2.csv', delim = ';', quote = '\"', null_padding = True, header = 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":39,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/evil_nullpadding_2.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from read_csv('{DATA_DIR}/csv/test_default_option_2.csv', columns = {'a':'varchar', 'b':'integer'}, auto_detect = false, header = true, delim = '|') where b = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":143,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":42,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test_default_option_2.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":73,"query_location_length":9,"literal":{"kind":"STRING","text":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":88,"query_location_length":9,"literal":{"kind":"STRING","text":"integer"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":136,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":155,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv_auto('{DATA_DIR}/csv/test/dateformat.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test/dateformat.csv"}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM '{DATA_DIR}/csv/skip_header.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":32,"schema_name":"","table_name":"{DATA_DIR}/csv/skip_header.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/skip_header.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM sniff_csv('{DATA_DIR}/csv/error/mismatch/big_bad.csv', sample_size=-1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":43,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/error/mismatch/big_bad.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/comments/simple.csv', auto_detect=false, delim=';', quote='', escape='', new_line='\\n', skip=0, comment='#', header=true, columns={'a': 'BIGINT', 'b': 'BIGINT'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":186,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/comments/simple.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"STRING","text":"\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":126,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":7,"column_names":["comment"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":3,"literal":{"kind":"STRING","text":"#"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":152,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":160,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":166,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":181,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM sniff_csv('{DATA_DIR}/csv/auto/time_date_timestamp_yyyy.mm.dd.csv', dateformat='%Y.%m.%d', timestampformat='%Y.%m.%d %H:%M:%S')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":127,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":56,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/auto/time_date_timestamp_yyyy.mm.dd.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y.%m.%d"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":19,"literal":{"kind":"STRING","text":"%Y.%m.%d %H:%M:%S"}}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM sniff_csv('{DATA_DIR}/csv/real/lineitem_sample.csv', names=['c01','c02','c03','c04','c5', 'c06','c07','c08','c09', 'c10','c11', 'c12', 'c13', 'c14', 'c15', 'c16']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":165,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":111,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["names"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":105,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"STRING","text":"c01"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":5,"literal":{"kind":"STRING","text":"c02"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":5,"literal":{"kind":"STRING","text":"c03"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":5,"literal":{"kind":"STRING","text":"c04"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"STRING","text":"c5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":5,"literal":{"kind":"STRING","text":"c06"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":5,"literal":{"kind":"STRING","text":"c07"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":5,"literal":{"kind":"STRING","text":"c08"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":5,"literal":{"kind":"STRING","text":"c09"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":5,"literal":{"kind":"STRING","text":"c10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":5,"literal":{"kind":"STRING","text":"c11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":5,"literal":{"kind":"STRING","text":"c12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":5,"literal":{"kind":"STRING","text":"c13"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":5,"literal":{"kind":"STRING","text":"c14"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":5,"literal":{"kind":"STRING","text":"c15"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":5,"literal":{"kind":"STRING","text":"c16"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/test_apple_financial.csv.gz', skip=3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/test_apple_financial.csv.gz"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/thousands_separator/simple.csv', thousands = '.')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":74,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/thousands_separator/simple.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"literal":{"kind":"STRING","text":"."}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/thousands_separator/thousands_broken.csv', thousands = ',')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":84,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":57,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/thousands_separator/thousands_broken.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, c\nFROM read_csv_auto(['{TEMP_DIR}/ubn1.csv', '{TEMP_DIR}/ubn2.csv', '{TEMP_DIR}/ubn3.csv'], UNION_BY_NAME=TRUE)\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":104,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":69,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEMP_DIR}/ubn3.csv"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":13,"column_names":["UNION_BY_NAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(#1), typeof(#2), typeof(#3), typeof(#4), typeof(#5), typeof(#6), typeof(#7), typeof(#8), typeof(#9), typeof(#10), typeof(#11), typeof(#12), typeof(#13)\nFROM read_csv(['{DATA_DIR}/csv/union-by-name/gabor/Post/*.csv', '{DATA_DIR}/csv/union-by-name/gabor/Comment/*.csv'], union_by_name=true)\nLIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":309,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":14,"query_location_length":2,"index":1}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":26,"query_location_length":2,"index":2}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":38,"query_location_length":2,"index":3}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":50,"query_location_length":2,"index":4}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":62,"query_location_length":2,"index":5}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":74,"query_location_length":2,"index":6}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":86,"query_location_length":2,"index":7}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":98,"query_location_length":2,"index":8}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":110,"query_location_length":2,"index":9}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":122,"query_location_length":3,"index":10}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":135,"query_location_length":3,"index":11}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":148,"query_location_length":3,"index":12}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":154,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":161,"query_location_length":3,"index":13}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":171,"query_location_length":131,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":180,"query_location_length":101,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/union-by-name/gabor/Post/*.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":50,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/union-by-name/gabor/Comment/*.csv"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":283,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":283,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{TEST_DIR}/utf16_lone_high.csv', encoding = 'utf-16')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/utf16_lone_high.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":8,"column_names":["encoding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":8,"literal":{"kind":"STRING","text":"utf-16"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/validator/single_column_quoted_newline.csv', columns = {'Raffaella Carrà': 'varchar'}, quote = '\"', buffer_size = 24)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":144,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":59,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/validator/single_column_quoted_newline.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":31,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"Raffaella Carrà","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Raffaella Carrà","query_location":106,"query_location_length":9,"literal":{"kind":"STRING","text":"varchar"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":3,"literal":{"kind":"STRING","text":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/test.tsv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"","table_name":"{TEST_DIR}/test.tsv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/test.tsv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM ncvoters","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"ncvoters","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ncvoters"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l_suppkey FROM encrypted_v0.lineitem limit 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["l_suppkey"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":21,"schema_name":"encrypted_v0","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["encrypted_v0","lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(id) FROM '{TEST_DIR}/rotate_unsorted/*.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":38,"schema_name":"","table_name":"{TEST_DIR}/rotate_unsorted/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/rotate_unsorted/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT files \u003e 2, row_count, breaks FROM order_breaks('{TEST_DIR}/rotate_order_window');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["files"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["row_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":6,"column_names":["breaks"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":46,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"order_breaks","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/rotate_order_window"}}}],"qualified_name":{"path":["order_breaks"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) BETWEEN 3 AND 5 FROM glob('{TEST_DIR}/file_size_bytes_csv4/*.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":16,"query_location_length":15,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/file_size_bytes_csv4/*.csv"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM read_parquet('__TEST_DIR__/tiny_fsb_parquet/*.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":41,"literal":{"kind":"STRING","text":"__TEST_DIR__/tiny_fsb_parquet/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/part/a=9/leading_????????-????-4???-????-????????????_trailing.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":83,"schema_name":"","table_name":"{TEST_DIR}/part/a=9/leading_????????-????-4???-????-????????????_trailing.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/part/a=9/leading_????????-????-4???-????-????????????_trailing.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM GLOB('{TEST_DIR}/to_be_overwritten2/a=9/*');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/to_be_overwritten2/a=9/*"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, column_type\nFROM (\n\tDESCRIBE SELECT id, payload\n\tFROM (\n\t\tSELECT * FROM read_parquet(['{TEST_DIR}/allow_empty_missing/*.parquet'], allow_empty = true)\n\t\tUNION BY NAME\n\t\t(SELECT 1::INTEGER AS id, 'schema'::VARCHAR AS payload LIMIT 0)\n\t)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":220,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":74,"query_location_length":181,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":85,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":92,"query_location_length":78,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":44,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":42,"literal":{"kind":"STRING","text":"{TEST_DIR}/allow_empty_missing/*.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":151,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":11,"column_names":["allow_empty"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":250,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"id","query_location":198,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"payload","query_location":223,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":8,"literal":{"kind":"STRING","text":"schema"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":225,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM attached_parquet","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":16,"schema_name":"","table_name":"attached_parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["attached_parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM '{TEST_DIR}/bloom_decimal.parquet' WHERE dec_int32 = 1.00::DECIMAL(4,2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":34,"schema_name":"","table_name":"{TEST_DIR}/bloom_decimal.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bloom_decimal.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":9,"column_names":["dec_int32"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM parquet_kv_metadata('{TEST_DIR}/bloom_interval_days.parquet')\nWHERE key = 'duckdb.interval_bloom_filter' AND decode(value) = 'normalized-v1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_kv_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_interval_days.parquet"}}}],"qualified_name":{"path":["parquet_kv_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":89,"query_location_length":72,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["key"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":30,"literal":{"kind":"STRING","text":"duckdb.interval_bloom_filter"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":13,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["decode"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":15,"literal":{"kind":"STRING","text":"normalized-v1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(DISTINCT row_group_id), count(*)\nFROM parquet_metadata('{TEST_DIR}/bloom_pruned_row_groups.parquet')\nWHERE path_in_schema IN ('item', 'direction') AND bloom_filter_offset IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["row_group_id"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_pruned_row_groups.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":120,"query_location_length":75,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":138,"query_location_length":21,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":6,"literal":{"kind":"STRING","text":"item"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":11,"literal":{"kind":"STRING","text":"direction"}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":184,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":19,"column_names":["bloom_filter_offset"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/bloom_list.parquet')\nWHERE list_extract(list_value, 1) = 101;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_list.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":27,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":10,"column_names":["list_value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"literal":{"kind":"INTEGER","text":"101"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM assert_bloom_filter_hit('{TEST_DIR}/bloom1.parquet', 'r', 200);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"assert_bloom_filter_hit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"r"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"qualified_name":{"path":["assert_bloom_filter_hit"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bool_and(b = from_hex('FF')::BLOB) FROM '{TEST_DIR}/bloom_blob.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":16,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["b"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":14,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"FF"}}}],"qualified_name":{"path":["from_hex"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":31,"schema_name":"","table_name":"{TEST_DIR}/bloom_blob.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bloom_blob.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bool_and(bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_temporal.parquet', 'ts_tz_ns',\n TIMESTAMPTZ_NS '2000-01-01 00:16:41+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":21,"column_names":["bloom_filter_excludes"]}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":134,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_bloom_probe","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_temporal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":10,"literal":{"kind":"STRING","text":"ts_tz_ns"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":138,"query_location_length":39,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01 00:16:41+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}}],"qualified_name":{"path":["parquet_bloom_probe"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select row_group_id, bloom_filter_offset IS NOT NULL, bloom_filter_length IS NOT NULL from parquet_metadata('{TEST_DIR}/bloom4.parquet') order by row_group_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":12,"column_names":["row_group_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":41,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":19,"column_names":["bloom_filter_offset"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":75,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":19,"column_names":["bloom_filter_length"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":93,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom4.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(payload) FROM read_parquet('{TEST_DIR}/bloom_in.parquet') WHERE r / 1 = 101;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/bloom_in.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":5,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"literal":{"kind":"INTEGER","text":"101"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT stats_min, stats_max FROM parquet_metadata('{TEST_DIR}/ninf.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["stats_max"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/ninf.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM (\n\tSELECT i, row_number() OVER () - 1 AS expected\n\tFROM read_parquet('{TEST_DIR}/cte_materialized_batch_scan.parquet')\n)\nWHERE i != expected;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":120,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"expected","query_location":55,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":34,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":77,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":48,"literal":{"kind":"STRING","text":"{TEST_DIR}/cte_materialized_batch_scan.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":148,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":8,"column_names":["expected"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_gist.parquet', encryption_config={footer_key: 'arrow_key_generated_files'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":152,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":77,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_gist.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":59,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":41,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"footer_key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"footer_key","query_location":137,"query_location_length":27,"literal":{"kind":"STRING","text":"arrow_key_generated_files"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT unnest(parquet_file_metadata, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/arrow/column_orders.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":21,"column_names":["parquet_file_metadata"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":48,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_full_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":50,"literal":{"kind":"STRING","text":"data/parquet-testing/arrow/column_orders.parquet"}}}],"qualified_name":{"path":["parquet_full_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bucket, total \nFROM read_parquet('{TEST_DIR}/hive/*/*.parquet')\nORDER BY ALL\nLIMIT 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["bucket"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["total"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive/*/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i) FROM '{TEST_DIR}/integers.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/integers.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/integers.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(ts)\nFROM parquet_scan('{DATA_DIR}/parquet-testing/int96_nanoseconds.parquet', int96_as='timestamp_ns')\nLIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":93,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":54,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/int96_nanoseconds.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":8,"column_names":["int96_as"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":14,"literal":{"kind":"STRING","text":"timestamp_ns"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(time)::VARCHAR, max(time)::VARCHAR FROM '{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["time"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":4,"column_names":["time"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":56,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/int96_invalid_stats.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/enc_union_by_name.parquet',\n\tencryption_config={footer_key: 'key256'}, union_by_name=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":115,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/enc_union_by_name.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"footer_key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"footer_key","query_location":99,"query_location_length":8,"literal":{"kind":"STRING","text":"key256"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT replace(replace(file_name, '\\', '/'),replace('{TEST_DIR}/', '\\', '/'), '') AS file_name, key::VARCHAR, value::VARCHAR FROM parquet_kv_metadata('{TEST_DIR}/kv_metadata_tes*') ORDER BY 1, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"file_name","query_location":7,"query_location_length":74,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":28,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":9,"column_names":["file_name"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":32,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":13,"literal":{"kind":"STRING","text":"{TEST_DIR}/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["key"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":115,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["value"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":130,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_kv_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/kv_metadata_tes*"}}}],"qualified_name":{"path":["parquet_kv_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT unnest(parquet_schema, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/lineitem-top10000.gzip.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":14,"column_names":["parquet_schema"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":41,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":52,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_full_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":53,"literal":{"kind":"STRING","text":"data/parquet-testing/lineitem-top10000.gzip.parquet"}}}],"qualified_name":{"path":["parquet_full_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT info['source'] FROM duckdb_logs_parsed('AdaptiveFilter')\nWHERE event = 'INIT' AND file_path LIKE '%af_cross_3.parquet' ORDER BY timestamp LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":11,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"source"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":16,"literal":{"kind":"STRING","text":"AdaptiveFilter"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":6,"literal":{"kind":"STRING","text":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":26,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":21,"literal":{"kind":"STRING","text":"%af_cross_3.parquet"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT first.columns = second.columns FROM\n (SELECT info['columns'] AS columns, timestamp FROM duckdb_logs_parsed('AdaptiveFilter')\n WHERE event = 'INIT' AND file_path LIKE '%ord_abc.parquet'\n ORDER BY timestamp DESC LIMIT 1) AS first,\n (SELECT info['columns'] AS columns, timestamp FROM duckdb_logs_parsed('AdaptiveFilter')\n WHERE event = 'INIT' AND file_path LIKE '%ord_cab.parquet' AND info['source'] = 'SEEDED'\n ORDER BY timestamp LIMIT 1) AS second","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["first","columns"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":14,"column_names":["second","columns"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":437,"left":{"type":"SUBQUERY","alias":"first","sample":null,"query_location":47,"query_location_length":189,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"columns","query_location":59,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":9,"literal":{"kind":"STRING","text":"columns"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":9,"column_names":["timestamp"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":98,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":16,"literal":{"kind":"STRING","text":"AdaptiveFilter"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":146,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":6,"literal":{"kind":"STRING","text":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":175,"query_location_length":23,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":18,"literal":{"kind":"STRING","text":"%ord_abc.parquet"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"second","sample":null,"query_location":251,"query_location_length":214,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":447,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":463,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"columns","query_location":263,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":259,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":264,"query_location_length":9,"literal":{"kind":"STRING","text":"columns"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":9,"column_names":["timestamp"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":302,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":16,"literal":{"kind":"STRING","text":"AdaptiveFilter"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":350,"query_location_length":82,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":350,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":350,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":358,"query_location_length":6,"literal":{"kind":"STRING","text":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":379,"query_location_length":23,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":369,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":384,"query_location_length":18,"literal":{"kind":"STRING","text":"%ord_cab.parquet"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":407,"query_location_length":25,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":411,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":407,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":412,"query_location_length":8,"literal":{"kind":"STRING","text":"source"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":424,"query_location_length":8,"literal":{"kind":"STRING","text":"SEEDED"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_val.i\nFROM bigint_file_first\nWHERE struct_val.i='042'::INTEGER\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["struct_val","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":17,"schema_name":"","table_name":"bigint_file_first","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigint_file_first"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":12,"column_names":["struct_val","i"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":5,"literal":{"kind":"STRING","text":"042"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(v) = (SELECT sum(v) FROM data), max(payload), max(s) FROM '{TEST_DIR}/page_index_cache_on.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":25,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":12,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":40,"schema_name":"","table_name":"{TEST_DIR}/page_index_cache_on.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/page_index_cache_on.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_bytes_read('{TEST_DIR}/page_index_per_group.parquet') \u003c span_end - span_begin FROM index_span('{TEST_DIR}/page_index_per_group.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":83,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"index_bytes_read","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_per_group.parquet"}}}],"qualified_name":{"path":["index_bytes_read"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":8,"column_names":["span_end"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":10,"column_names":["span_begin"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":96,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"index_span","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_per_group.parquet"}}}],"qualified_name":{"path":["index_span"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, v, payload, s FROM read_parquet('{TEST_DIR}/page_index_prefetch.parquet', prefetch_strategy = 'whole_group') WHERE id = 177777","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["payload"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"query_location_length":89,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_prefetch.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":17,"column_names":["prefetch_strategy"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":13,"literal":{"kind":"STRING","text":"whole_group"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":126,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":6,"literal":{"kind":"INTEGER","text":"177777"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(info['rows_skipped']::BIGINT) = 100000 - (SELECT count(*) FROM data WHERE id // 512 \u003c= 39 AND (id // 512) % 2 = 1)\nFROM duckdb_logs_parsed('PhysicalOperator') WHERE class = 'ParquetReader' AND event = 'SkipPages'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":118,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":8,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":14,"literal":{"kind":"STRING","text":"rows_skipped"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":73,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":85,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":85,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":9,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"INTEGER","text":"512"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":2,"literal":{"kind":"INTEGER","text":"39"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":15,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":9,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"INTEGER","text":"512"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":131,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":176,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":15,"literal":{"kind":"STRING","text":"ParquetReader"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":204,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":11,"literal":{"kind":"STRING","text":"SkipPages"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) = (SELECT count(*) FROM data WHERE n = 500) FROM '{TEST_DIR}/page_index_read.parquet' WHERE n = 500","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":52,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":41,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["n"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":36,"schema_name":"","table_name":"{TEST_DIR}/page_index_read.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/page_index_read.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["n"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM '{TEST_DIR}/page_index_read.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":36,"schema_name":"","table_name":"{TEST_DIR}/page_index_read.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/page_index_read.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) = (SELECT count(*) FROM typed WHERE b AND id \u003c 1000) FROM '{TEST_DIR}/page_index_read_typed.parquet' WHERE b AND id \u003c 1000","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":61,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":50,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":5,"schema_name":"","table_name":"typed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["typed"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":52,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["b"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":58,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":42,"schema_name":"","table_name":"{TEST_DIR}/page_index_read_typed.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/page_index_read_typed.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":123,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["b"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":129,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(id) FROM 'data/parquet-testing/page_index/{file}.parquet' WHERE id IN (1, 1000, 2999, 3999)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":48,"schema_name":"","table_name":"data/parquet-testing/page_index/{file}.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/{file}.parquet"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":91,"query_location_length":21,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":2,"column_names":["id"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2999"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3999"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n\t(SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n IS NULL AND id BETWEEN 900 AND 2100 EXCEPT ALL SELECT * FROM ref WHERE n IS NULL AND id BETWEEN 900 AND 2100)\n\tUNION ALL\n\t(SELECT * FROM ref WHERE n IS NULL AND id BETWEEN 900 AND 2100 EXCEPT ALL SELECT * FROM 'data/parquet-testing/page_index/spark_sorted.parquet' WHERE n IS NULL AND id BETWEEN 900 AND 2100)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":392,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":54,"schema_name":"","table_name":"data/parquet-testing/page_index/spark_sorted.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/spark_sorted.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":100,"query_location_length":37,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":102,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["n"]}]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":117,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":3,"literal":{"kind":"INTEGER","text":"900"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":156,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":3,"schema_name":"","table_name":"ref","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ref"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":173,"query_location_length":37,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":175,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["n"]}]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":190,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":3,"literal":{"kind":"INTEGER","text":"900"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":232,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":239,"query_location_length":3,"schema_name":"","table_name":"ref","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ref"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":249,"query_location_length":37,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":251,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":249,"query_location_length":1,"column_names":["n"]}]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":266,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":274,"query_location_length":3,"literal":{"kind":"INTEGER","text":"900"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":305,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":312,"query_location_length":54,"schema_name":"","table_name":"data/parquet-testing/page_index/spark_sorted.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/spark_sorted.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":373,"query_location_length":37,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":375,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":373,"query_location_length":1,"column_names":["n"]}]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":390,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":387,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":398,"query_location_length":3,"literal":{"kind":"INTEGER","text":"900"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":406,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) = (SELECT count(*) FROM ref WHERE n IS NULL) FROM 'data/parquet-testing/page_index/arrow_row_groups_v2.parquet' WHERE n IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":53,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":42,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":3,"schema_name":"","table_name":"ref","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ref"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":52,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["n"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":61,"schema_name":"","table_name":"data/parquet-testing/page_index/arrow_row_groups_v2.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/arrow_row_groups_v2.parquet"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":136,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["n"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(v) = (SELECT sum(r % 7) FROM range(290, 311) t(r)) FROM 'data/parquet-testing/page_index/corrupt_first_row_index.parquet' WHERE id BETWEEN 290 AND 310","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":54,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":50,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"INTEGER","text":"290"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"INTEGER","text":"311"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["r"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":65,"schema_name":"","table_name":"data/parquet-testing/page_index/corrupt_first_row_index.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/corrupt_first_row_index.parquet"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":152,"query_location_length":19,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":3,"literal":{"kind":"INTEGER","text":"290"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":3,"literal":{"kind":"INTEGER","text":"310"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(ts), max(ts), count(*) FROM 'data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet' WHERE id BETWEEN 1000 AND 1100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":70,"schema_name":"","table_name":"data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/page_index/corrupt_offset_index_swapped.parquet"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":119,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":2,"column_names":["id"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT path_in_schema, sum(num_rows), min(min_value::INTEGER), max(max_value::INTEGER)\nFROM parquet_page_index('{TEST_DIR}/page_index_write.parquet')\nWHERE path_in_schema IN ('arr, list, element', 'st, a')\nGROUP BY path_in_schema\nORDER BY path_in_schema","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":14,"column_names":["path_in_schema"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":13,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":8,"column_names":["num_rows"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":23,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":9,"column_names":["min_value"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":23,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":9,"column_names":["max_value"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":92,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_page_index","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_write.parquet"}}}],"qualified_name":{"path":["parquet_page_index"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":174,"query_location_length":31,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":20,"literal":{"kind":"STRING","text":"arr, list, element"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":7,"literal":{"kind":"STRING","text":"st, a"}}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":215,"query_location_length":14,"column_names":["path_in_schema"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT path_in_schema, column_index_offset IS NOT NULL, (SELECT count(*) \u003e 1 FROM parquet_page_index('{TEST_DIR}/page_index_default_layout.parquet') p WHERE p.path_in_schema = m.path_in_schema)\nFROM parquet_metadata('{TEST_DIR}/page_index_default_layout.parquet') m ORDER BY column_id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":9,"column_names":["column_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":43,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":19,"column_names":["column_index_offset"]}]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":56,"query_location_length":137,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":64,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"p","sample":null,"query_location":82,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_page_index","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_default_layout.parquet"}}}],"qualified_name":{"path":["parquet_page_index"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":16,"column_names":["p","path_in_schema"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":16,"column_names":["m","path_in_schema"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"TABLE_FUNCTION","alias":"m","sample":null,"query_location":199,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/page_index_default_layout.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM '{DATA_DIR}/parquet-testing/p2.parquet' limit 100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":39,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/p2.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/p2.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select name from parquet_schema( '{DATA_DIR}/parquet-testing/bug13053-2.parquet') offset 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":64,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug13053-2.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"inner\"['str_field'] FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1618_struct_strings.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":14,"query_location_length":13,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["inner"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":11,"literal":{"kind":"STRING","text":"str_field"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":59,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug1618_struct_strings.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT assignedLicenses[1] FROM parquet_scan('{DATA_DIR}/parquet-testing/bug2267.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":23,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["assignedLicenses"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug2267.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select *, make_timestamp(dt2*1000*1000) \nfrom read_parquet('{DATA_DIR}/parquet-testing/bug4903.parquet')\nwhere dt2 \u003c= -9214570800\nlimit 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":29,"function_name":"make_timestamp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":13,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":3,"column_names":["dt2"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["make_timestamp"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/bug4903.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":111,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":3,"column_names":["dt2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-9214570800"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, d, dt FROM '{TEST_DIR}/all_null_types.parquet' WHERE i = 42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":2,"column_names":["dt"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/all_null_types.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/all_null_types.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT converted_type FROM parquet_schema('{DATA_DIR}/parquet-testing/binary_string.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["converted_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":50,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/binary_string.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_parquet('{TEST_DIR}/column_stats_1.parquet',\n column_statistics := MAP {'name': MAP {'min': 'r_0', 'max': 'r_99999', 'null_count': '0'}})\nWHERE name = 'r_7';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":145,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/column_stats_1.parquet"}}},{"name":"column_statistics","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"column_statistics","query_location":96,"query_location_length":69,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":6,"literal":{"kind":"STRING","text":"name"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":55,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":5,"literal":{"kind":"STRING","text":"min"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":5,"literal":{"kind":"STRING","text":"max"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":12,"literal":{"kind":"STRING","text":"null_count"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":5,"literal":{"kind":"STRING","text":"r_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":9,"literal":{"kind":"STRING","text":"r_99999"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":173,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":5,"literal":{"kind":"STRING","text":"r_7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from read_parquet('{TEST_DIR}/myfile.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/myfile.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/parquet_debug_use_openssl.parquet', debug_use_openssl=false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/parquet_debug_use_openssl.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":17,"column_names":["debug_use_openssl"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(f), sum(d), sum(length(s))\nFROM read_parquet('{TEST_DIR}/skip_v2_encodings.parquet')\nWHERE filter_col = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":14,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/skip_v2_encodings.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":10,"column_names":["filter_col"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), min(i), max(i) FROM read_parquet('{TEST_DIR}/encrypted_metadata_cache.parquet',\n\tencryption_config={footer_key: 'key192'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":102,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/encrypted_metadata_cache.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"footer_key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"footer_key","query_location":129,"query_location_length":8,"literal":{"kind":"STRING","text":"key192"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT event, count(*) FROM duckdb_logs_parsed('PhysicalOperator') WHERE class='ParquetReader' GROUP BY event ORDER BY event","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["event"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["event"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":15,"literal":{"kind":"STRING","text":"ParquetReader"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["event"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM '{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet'\nWHERE prefix(s, chr(255)) OR prefix(s, 'zz')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":52,"schema_name":"","table_name":"{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/expr_prune_prefix_utf8_boundary.parquet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":80,"query_location_length":38,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":19,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":8,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":3,"literal":{"kind":"INTEGER","text":"255"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["prefix"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":15,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"literal":{"kind":"STRING","text":"zz"}}}],"qualified_name":{"path":["prefix"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM parquet_schema('{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":57,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, parse_path(filename)[-2:] as file FROM parquet_scan(['{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t1.parquet', '{DATA_DIR}/parquet-testing/glob/t2.parquet'], FILENAME=1) where filename like '%t1%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"file","query_location":33,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":20,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":52,"query_location_length":164,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":138,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":11,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":6,"literal":{"kind":"STRING","text":"%t1%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, value from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/*/*/*/test.parquet', FILENAME=1) where filename like '%mismatching_count%' and value = 'value1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":22,"query_location_length":91,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/*/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":120,"query_location_length":56,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":26,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":21,"literal":{"kind":"STRING","text":"%mismatching_count%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":8,"literal":{"kind":"STRING","text":"value1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM f WHERE c = 0.1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"f","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["f"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/footer_size.parquet', 'footer_size': 18446744073709551615::UBIGINT}]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":94,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":92,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":41,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/footer_size.parquet"}}},{"name":"footer_size","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"footer_size","query_location":110,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":20,"literal":{"kind":"INTEGER","text":"18446744073709551615"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, date from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where date = '2012-01-01';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":114,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":79,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":4,"column_names":["date"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":12,"literal":{"kind":"STRING","text":"2012-01-01"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, parse_path(filename)[-3:] filename FROM parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/hive_col_also_in_file/*/test.parquet', HIVE_PARTITIONING=0, FILENAME=1) order by filename;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":8,"column_names":["filename"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"filename","query_location":33,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":20,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":130,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":83,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/hive_col_also_in_file/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":151,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a,b FROM read_parquet('{TEST_DIR}/aliased_hive/*/*.parquet') AS t(a,b) WHERE b=7","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":16,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/aliased_hive/*/*.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":["a","b"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from glob('{TEST_DIR}/hive-default-collision/p=%5F_HIVE_DEFAULT_PARTITION__/*.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":76,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive-default-collision/p=%5F_HIVE_DEFAULT_PARTITION__/*.parquet"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_parquet('{TEST_DIR}/hive_mismatch/part=7/disagrees.parquet') WHERE part = 999","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":51,"literal":{"kind":"STRING","text":"{TEST_DIR}/hive_mismatch/part=7/disagrees.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["part"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"INTEGER","text":"999"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT (DATE '2024-01-31' + iv)::VARCHAR\nFROM read_parquet('{TEST_DIR}/iv_{first}_{version}.parquet') ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["iv"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":55,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/iv_{first}_{version}.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l FROM (\n\tSELECT * FROM test ORDER BY j DESC LIMIT 2\n) WHERE k=10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["j"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from parquet_schema('{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":74,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":58,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/int64_decimal.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select hex(min(b)) from '{TEST_DIR}/blobs.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["hex"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":26,"schema_name":"","table_name":"{TEST_DIR}/blobs.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/blobs.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(isnan(f)::INT), sum(isnan(d)::INT)\nFROM parquet_scan('{DATA_DIR}/parquet-testing/arrow_nan.parquet', can_have_nan := true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":8,"function_name":"isnan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["isnan"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":18,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"isnan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["isnan"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":46,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/arrow_nan.parquet"}}},{"name":"can_have_nan","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"can_have_nan","query_location":128,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_group_id, path_in_schema, stats_min_value, stats_max_value, stats_nan_count\nFROM parquet_metadata('{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet')\nWHERE path_in_schema \u003c\u003e 'k'\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":14,"column_names":["path_in_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":15,"column_names":["stats_max_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":15,"column_names":["stats_nan_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":92,"query_location_length":80,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":62,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/nan_no_nan_count_nan_last.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":179,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":14,"column_names":["path_in_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT stats(d), stats(f) FROM nan_first LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":9,"schema_name":"","table_name":"nan_first","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nan_first"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from parquet_scan('{DATA_DIR}/parquet-testing/pandas-date.parquet') order by 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":48,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/pandas-date.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_group_id,strategy FROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%expensive_first_filter.parquet' ORDER BY row_group_id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":12,"column_names":["row_group_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":8,"column_names":["strategy"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":17,"literal":{"kind":"STRING","text":"ParquetPrefetch"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":38,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":33,"literal":{"kind":"STRING","text":"%expensive_first_filter.parquet"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n (SELECT sum(length(a)+length(b)) FROM read_parquet('{TEST_DIR}/prefetch_overlap.parquet'))\n =\n (SELECT sum(length(hash(i)::VARCHAR)+length(hash(i+1)::VARCHAR)) FROM range(12288) t(i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":11,"query_location_length":189,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":11,"query_location_length":90,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":24,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":49,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/prefetch_overlap.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":112,"query_location_length":88,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":56,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":24,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":138,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":7,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"query_location_length":26,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":165,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":9,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":167,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":182,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":5,"literal":{"kind":"INTEGER","text":"12288"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(a + b + c + g)\nFROM read_parquet('{TEST_DIR}/rgo2.parquet')\nWHERE g = 500","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/rgo2.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_group_id, fully_filtered, strategy\nFROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%force.parquet'\nORDER BY row_group_id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":12,"column_names":["row_group_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":14,"column_names":["fully_filtered"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":8,"column_names":["strategy"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":17,"literal":{"kind":"STRING","text":"ParquetPrefetch"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":21,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":16,"literal":{"kind":"STRING","text":"%force.parquet"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/read_options.parquet', explicit_cardinality=123)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":73,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/read_options.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":20,"column_names":["explicit_cardinality"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"literal":{"kind":"INTEGER","text":"123"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.min, s.max, s.has_null, s.has_no_null from (select stats(seq) s from parquet_scan('{DATA_DIR}/parquet-testing/file_row_number.parquet') limit 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":13,"column_names":["s","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":101,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":60,"query_location_length":10,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":3,"column_names":["seq"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":78,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":52,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/file_row_number.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, duckdb_type FROM (SELECT unnest(parquet_schema, recursive := true)\nFROM parquet_full_metadata('{TEMP_DIR}/parquet_schema_duckdb_type.parquet')) WHERE name IN ('s', 'g')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":11,"column_names":["duckdb_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":30,"query_location_length":126,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":41,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":14,"column_names":["parquet_schema"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":74,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":85,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_full_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":47,"literal":{"kind":"STRING","text":"{TEMP_DIR}/parquet_schema_duckdb_type.parquet"}}}],"qualified_name":{"path":["parquet_full_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":171,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":4,"column_names":["name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, a FROM '{TEST_DIR}/evolution_*.parquet' WHERE id\u003e=39998 ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":32,"schema_name":"","table_name":"{TEST_DIR}/evolution_*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/evolution_*.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":57,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":5,"literal":{"kind":"INTEGER","text":"39998"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/schema_hive_str/**/*.parquet',\n \"schema\" := MAP {'k': {'name': 'k', 'type': 'INTEGER', 'default_value': NULL}}, hive_partitioning := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":166,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/schema_hive_str/**/*.parquet"}}},{"name":"schema","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"schema","query_location":86,"query_location_length":66,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":55,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":105,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":118,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"default_value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"default_value","query_location":146,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"hive_partitioning","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hive_partitioning","query_location":175,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, type, num_children\nFROM parquet_schema('{DATA_DIR}/parquet-testing/empty-group/empty_group_test.parquet')\nWHERE name = 'inner';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":12,"column_names":["num_children"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":65,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/empty-group/empty_group_test.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":125,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":7,"literal":{"kind":"STRING","text":"inner"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, s.x FROM read_parquet(['{TEMP_DIR}/extract_missing_1.parquet', '{TEMP_DIR}/extract_missing_2.parquet'], schema := MAP {\n\t1: {name: 'a', type: 'INTEGER', default_value: NULL},\n\t2: {name: 's', type: 'STRUCT(x INTEGER)', default_value: {'x': 9}}\n}) WHERE s.x \u003e 0 ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":3,"column_names":["s","x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":236,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":80,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEMP_DIR}/extract_missing_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEMP_DIR}/extract_missing_2.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"schema","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"schema","query_location":124,"query_location_length":130,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":49,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":141,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":152,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"default_value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"default_value","query_location":178,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":63,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":196,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":207,"query_location_length":19,"literal":{"kind":"STRING","text":"STRUCT(x INTEGER)"}}},{"name":"default_value","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"default_value","query_location":243,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":249,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":262,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":262,"query_location_length":3,"column_names":["s","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":268,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM mapped WHERE s.a.b IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":6,"schema_name":"","table_name":"mapped","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mapped"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":34,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":5,"column_names":["s","a","b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, s.N.B, s.N.A FROM mixed_case ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["s","N","B"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["s","N","A"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":10,"schema_name":"","table_name":"mixed_case","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed_case"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, typeof(i) FROM read_parquet('{TEST_DIR}/serialize_options.parquet',\n schema=map{'i': {'name': 'i', 'type': 'BIGINT', 'default_value': NULL}})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":129,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/serialize_options.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":71,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["schema"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":64,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":54,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":107,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":120,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"default_value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"default_value","query_location":147,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select stats_min, stats_max, stats_min_value, stats_max_value from parquet_metadata('{DATA_DIR}/parquet-testing/boolean_stats.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["stats_max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":15,"column_names":["stats_max_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":50,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/boolean_stats.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select stats_min, stats_max, stats_min_value, stats_max_value from parquet_metadata('{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["stats_max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":15,"column_names":["stats_max_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":74,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":56,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(TRY_CAST(i AS BIGINT)), max(TRY_CAST(i AS BIGINT)), typeof(min(TRY_CAST(i AS BIGINT))), typeof(max(TRY_CAST(i AS BIGINT)))\nFROM read_parquet('{TEST_DIR}/minmax_cast_stats.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":26,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":34,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":26,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":34,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":26,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":124,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":139,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/minmax_cast_stats.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a,b,c \nFROM parquet_scan('{TEST_DIR}/listubn[12].parquet', union_by_name=true)\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/listubn[12].parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(distinct row_group_id) from parquet_metadata('{TEST_DIR}/rg.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["row_group_id"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":23,"literal":{"kind":"STRING","text":"{TEST_DIR}/rg.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from '{TEST_DIR}/rg.parquet' where file_row_group_number in (1, 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":23,"schema_name":"","table_name":"{TEST_DIR}/rg.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/rg.parquet"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":76,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":21,"column_names":["file_row_group_number"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT st_astext(g) s, count(*) FROM (SELECT g, i FROM 'data/parquet-testing/broken/geoparquet_wrong_geometry_types.parquet' ORDER BY i DESC) GROUP BY ALL ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":7,"query_location_length":12,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["st_astext"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":104,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":69,"schema_name":"","table_name":"data/parquet-testing/broken/geoparquet_wrong_geometry_types.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/broken/geoparquet_wrong_geometry_types.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM read_parquet('{TEST_DIR}/recheck_ordered.parquet') ORDER BY i LIMIT 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":36,"literal":{"kind":"STRING","text":"{TEST_DIR}/recheck_ordered.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(s) FROM '{TEST_DIR}/err_io_*.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/err_io_*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/err_io_*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM read_parquet('{TEST_DIR}/recheck_reuse.parquet', prefetch_strategy='whole_group') ORDER BY i LIMIT 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":34,"literal":{"kind":"STRING","text":"{TEST_DIR}/recheck_reuse.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":17,"column_names":["prefetch_strategy"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":13,"literal":{"kind":"STRING","text":"whole_group"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), min(id), max(id) FROM read_single_parquet_file('{TEST_DIR}/single_rg.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_parquet_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/single_rg.parquet"}}}],"qualified_name":{"path":["read_single_parquet_file"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, c FROM read_parquet('{TEST_DIR}/multi_*.parquet', union_by_name=true) ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":62,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":28,"literal":{"kind":"STRING","text":"{TEST_DIR}/multi_*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.shredding_state, s.fully_shredded.stats.min, s.fully_shredded.stats.max, s.fully_shredded.stats.has_null, s.fully_shredded.stats.has_no_null FROM (select stats(col) s from '{TEST_DIR}/fully_shredded_primitive.parquet' limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["s","shredding_state"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":26,"column_names":["s","fully_shredded","stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":26,"column_names":["s","fully_shredded","stats","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":31,"column_names":["s","fully_shredded","stats","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":34,"column_names":["s","fully_shredded","stats","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":155,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":163,"query_location_length":10,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":181,"query_location_length":45,"schema_name":"","table_name":"{TEST_DIR}/fully_shredded_primitive.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/fully_shredded_primitive.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.fully_shredded.a, s.fully_shredded.c.stats.min from (select stats(col) s from '{TEST_DIR}/not_fully_shredded_object_field.parquet' limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["s","fully_shredded","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":28,"column_names":["s","fully_shredded","c","stats","min"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":61,"query_location_length":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":69,"query_location_length":10,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":52,"schema_name":"","table_name":"{TEST_DIR}/not_fully_shredded_object_field.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/not_fully_shredded_object_field.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/decimal_dc.parquet') limit 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":55,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/decimal_dc.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM parquet_scan('{DATA_DIR}/parquet-testing/decimal/byte_array_decimal_gt38.parquet') WHERE x \u003e 100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":68,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/decimal/byte_array_decimal_gt38.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":110,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT gender, first_name FROM parquet_scan('{DATA_DIR}/parquet-testing/userdata1.parquet') where first_name = 'Mark' and gender \u003c\u003e ''","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["gender"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":10,"column_names":["first_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":46,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/userdata1.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":98,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":10,"column_names":["first_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":6,"literal":{"kind":"STRING","text":"Mark"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":122,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":6,"column_names":["gender"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM parquet_scan('{DATA_DIR}/parquet-testing/date.parquet') where d \u003e= cast('1975-01-01' as date) and d \u003c cast('1976-01-01' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/date.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":83,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":83,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":12,"literal":{"kind":"STRING","text":"1975-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":119,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":12,"literal":{"kind":"STRING","text":"1976-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, authors FROM parquet_scan('{DATA_DIR}/parquet-testing/apkwan.parquet') limit 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["authors"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":43,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/apkwan.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM parquet_scan('{DATA_DIR}/parquet-testing/data-types.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":47,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/data-types.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(email) OVER w, LAST(email) OVER w FROM userdata1 WINDOW w AS (ORDER BY id RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":7,"query_location_length":19,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["email"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":28,"query_location_length":18,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["email"]}}],"qualified_name":{"path":["last_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":9,"schema_name":"","table_name":"userdata1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["userdata1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(salary) OVER w, LAST(salary) OVER w FROM userdata1 WINDOW w AS (ORDER BY id RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":7,"query_location_length":20,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":29,"query_location_length":19,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["last_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"userdata1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["userdata1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM parquet_scan('{TEST_DIR}/stats_*.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":28,"literal":{"kind":"STRING","text":"{TEST_DIR}/stats_*.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet', hive_partitioning=1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":107,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":72,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, k, x, filename.replace('\\', '/').split('/')[-2]\nFROM read_parquet('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/f2.parquet', hive_partitioning=1, union_by_name=1, filename=1)\nWHERE parse_path(filename) \u003c parse_path('{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/x=1')\nORDER BY j","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":319,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":56,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":10,"function_name":"split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":26,"function_name":"replace","schema":"filename","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["filename","replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["split"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":66,"query_location_length":137,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":73,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/*/f2.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":175,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":192,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":210,"query_location_length":99,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":210,"query_location_length":20,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":233,"query_location_length":76,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":64,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/x=1"}}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d FROM read_parquet(['{TEST_DIR}/ubn_stats_lookup_0.parquet', '{TEST_DIR}/ubn_stats_lookup_1.parquet', '{TEST_DIR}/ubn_stats_lookup_2.parquet'], union_by_name=true) WHERE d = 'z'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":157,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":123,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn_stats_lookup_0.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn_stats_lookup_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubn_stats_lookup_2.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":152,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":178,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT octet_length(p) FROM read_parquet(['{TEST_DIR}/union_backslash.parquet', '{TEST_DIR}/union_bytes.parquet'], union_by_name = true) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"octet_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["octet_length"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":72,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":36,"literal":{"kind":"STRING","text":"{TEST_DIR}/union_backslash.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/union_bytes.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT v::VARCHAR FROM '{TEST_DIR}/wide_variant.parquet' EXCEPT SELECT v::VARCHAR FROM wide);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":93,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":33,"schema_name":"","table_name":"{TEST_DIR}/wide_variant.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/wide_variant.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":4,"schema_name":"","table_name":"wide","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT encodings, stats_distinct_count\nFROM parquet_metadata('{TEST_DIR}/dict-three-values.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["encodings"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":20,"column_names":["stats_distinct_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/dict-three-values.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * REPLACE (\n\thugeint::DOUBLE AS hugeint,\n\tuhugeint::DOUBLE AS uhugeint,\n\ttimezone(interval '0 seconds', time_tz) AS time_tz\n)\nFROM all_types","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":125,"relation_name":"","exclude_list":[],"replace_list":[{"key":"hugeint","value":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["hugeint"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"key":"uhugeint","value":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":8,"column_names":["uhugeint"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"key":"time_tz","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":39,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":11,"literal":{"kind":"STRING","text":"0 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":7,"column_names":["time_tz"]}}],"qualified_name":{"path":["timezone"]},"is_legacy_function_call":false}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":138,"query_location_length":9,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT m, lst FROM read_parquet('{TEMP_DIR}/map_struct.parquet') ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":3,"column_names":["lst"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEMP_DIR}/map_struct.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select small.total_size \u003e big.total_size\nfrom (select sum(total_compressed_size) total_size from parquet_metadata('{TEST_DIR}/small_pages.parquet')) small,\n (select sum(total_compressed_size) total_size from parquet_metadata('{TEST_DIR}/big_pages.parquet')) big;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":16,"column_names":["small","total_size"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":14,"column_names":["big","total_size"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":224,"left":{"type":"SUBQUERY","alias":"small","sample":null,"query_location":46,"query_location_length":102,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_size","query_location":54,"query_location_length":26,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":21,"column_names":["total_compressed_size"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":97,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/small_pages.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"big","sample":null,"query_location":161,"query_location_length":100,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_size","query_location":169,"query_location_length":26,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":21,"column_names":["total_compressed_size"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":212,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/big_pages.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_group_id, stats_distinct_count, stats_min, stats_max\nFROM parquet_metadata('{TEST_DIR}/enum_distinct_count_rg.parquet') ORDER BY row_group_id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":12,"column_names":["row_group_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["row_group_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":20,"column_names":["stats_distinct_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":9,"column_names":["stats_max"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":69,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":43,"literal":{"kind":"STRING","text":"{TEST_DIR}/enum_distinct_count_rg.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select field_id from parquet_schema('{TEST_DIR}/my.parquet') where name = 'F'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["field_id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":23,"literal":{"kind":"STRING","text":"{TEST_DIR}/my.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"STRING","text":"F"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/emptylist_varchar.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":38,"schema_name":"","table_name":"{TEST_DIR}/emptylist_varchar.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/emptylist_varchar.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(d)='{type}' FROM '{TEST_DIR}/signed.parquet' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":8,"literal":{"kind":"STRING","text":"{type}"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/signed.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/signed.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT logical_type LIKE '%isAdjustedToUTC=1%'\nFROM parquet_schema('{TEST_DIR}/timestamps_utc_true_{type}.parquet')\nWHERE name = 'd'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":26,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["logical_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":21,"literal":{"kind":"STRING","text":"%isAdjustedToUTC=1%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":52,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_schema","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":47,"literal":{"kind":"STRING","text":"{TEST_DIR}/timestamps_utc_true_{type}.parquet"}}}],"qualified_name":{"path":["parquet_schema"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT stats_min, stats_max, stats_min_value, stats_max_value FROM parquet_metadata('{TEST_DIR}/uuid2.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["stats_min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["stats_max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":15,"column_names":["stats_min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":15,"column_names":["stats_max_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEST_DIR}/uuid2.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM (FROM skewed EXCEPT ALL SELECT p, i, payload FROM '{TEST_DIR}/skewed_{threads}/**/*.parquet')),\n (SELECT count(*) FROM (SELECT p, i, payload FROM '{TEST_DIR}/skewed_{threads}/**/*.parquet' EXCEPT ALL FROM skewed))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":116,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":93,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":6,"schema_name":"","table_name":"skewed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["skewed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["p"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":42,"schema_name":"","table_name":"{TEST_DIR}/skewed_{threads}/**/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/skewed_{threads}/**/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":132,"query_location_length":116,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":140,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":154,"query_location_length":93,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["p"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":181,"query_location_length":42,"schema_name":"","table_name":"{TEST_DIR}/skewed_{threads}/**/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/skewed_{threads}/**/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":240,"query_location_length":6,"schema_name":"","table_name":"skewed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["skewed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM parquet_scan('{TEST_DIR}/empty_multithread/*.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/empty_multithread/*.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM parquet_scan('{TEST_DIR}/test_list.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEST_DIR}/test_list.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM parquet_scan('{TEST_DIR}/test_struct_nulls.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/test_struct_nulls.parquet"}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select COUNT(*) from glob('{TEST_DIR}/escaped_partitions_blob/key=%5Cx00%5CxFF/*.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":63,"literal":{"kind":"STRING","text":"{TEST_DIR}/escaped_partitions_blob/key=%5Cx00%5CxFF/*.parquet"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE cte AS (\n\tSELECT 0 AS count, 1999 AS selected_year\n\tUNION ALL\n\tSELECT COUNT(*) AS count, MAX(partitioned_tbl.year)\n\tFROM partitioned_tbl, (SELECT MAX(selected_year) AS next_year FROM cte)\n\tWHERE partitioned_tbl.year = (SELECT MAX(selected_year) + 1 FROM cte)\n\tHAVING COUNT(*)\u003e0\n)\nSELECT SUM(count), MIN(selected_year), MAX(selected_year)\nFROM cte\nWHERE count\u003e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"cte","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"count","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"selected_year","query_location":44,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1999"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"count","query_location":85,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":25,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":20,"column_names":["partitioned_tbl","year"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":131,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":136,"query_location_length":15,"schema_name":"","table_name":"partitioned_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["partitioned_tbl"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":153,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"next_year","query_location":161,"query_location_length":18,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":13,"column_names":["selected_year"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":198,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":210,"query_location_length":63,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":20,"column_names":["partitioned_tbl","year"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":233,"query_location_length":40,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":260,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":241,"query_location_length":18,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":245,"query_location_length":13,"column_names":["selected_year"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":269,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":282,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":282,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":291,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":302,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":306,"query_location_length":5,"column_names":["count"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":314,"query_location_length":18,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":318,"query_location_length":13,"column_names":["selected_year"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":334,"query_location_length":18,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":338,"query_location_length":13,"column_names":["selected_year"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":358,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":368,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":368,"query_location_length":5,"column_names":["count"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":374,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT part_col, value_col, value2_col FROM parquet_scan('{TEST_DIR}/partitioned4/part_col=*/*.parquet', HIVE_PARTITIONING=1) WHERE part_col=0 ORDER BY value2_col;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":10,"column_names":["value2_col"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["part_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["value_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":10,"column_names":["value2_col"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/partitioned4/part_col=*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":8,"column_names":["part_col"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p, count(*) FROM parquet_scan('{TEST_DIR}/int_part2/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["p"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["p"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":71,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":36,"literal":{"kind":"STRING","text":"{TEST_DIR}/int_part2/p=*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["p"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n\tSELECT filename, count(DISTINCT (v % 8, v % 3)) AS keys\n\tFROM parquet_scan('{TEST_DIR}/int_part7/p=*/q=*/*.parquet', FILENAME=1)\n\tGROUP BY filename\n) WHERE keys \u003c\u003e 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":152,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":8,"column_names":["filename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"keys","query_location":41,"query_location_length":30,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":14,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":86,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/int_part7/p=*/q=*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":141,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":8,"column_names":["filename"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":180,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":4,"column_names":["keys"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p, count(*), sum(v) FROM parquet_scan('{TEST_DIR}/int_part_flushes/p=*/*.parquet', HIVE_PARTITIONING=1) GROUP BY p ORDER BY p;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["p"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["p"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":78,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_scan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":43,"literal":{"kind":"STRING","text":"{TEST_DIR}/int_part_flushes/p=*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["parquet_scan"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["p"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM read_csv('{TEST_DIR}/ordered_only_csv/*.csv', HEADER = true, AUTO_DETECT = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":80,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/ordered_only_csv/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":6,"column_names":["HEADER"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":11,"column_names":["AUTO_DETECT"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract(replace(filename, '\\', '/'), 'partition_path_nested/(.*)/[^/]*$', 1) AS dir, list(id ORDER BY id)\nFROM read_parquet(['{TEST_DIR}/partition_path_nested/*/*.parquet', '{TEST_DIR}/partition_path_nested/*/*/*.parquet'],\nhive_partitioning = false)\nGROUP BY dir ORDER BY dir;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":3,"column_names":["dir"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"dir","query_location":7,"query_location_length":83,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":27,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":35,"literal":{"kind":"STRING","text":"partition_path_nested/(.*)/[^/]*$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":20,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":125,"query_location_length":139,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":98,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEST_DIR}/partition_path_nested/*/*.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":48,"literal":{"kind":"STRING","text":"{TEST_DIR}/partition_path_nested/*/*/*.parquet"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":238,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":274,"query_location_length":3,"column_names":["dir"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT region, part, id\nFROM read_parquet('{TEST_DIR}/partition_path_mixed/region=*/part=*/*.parquet', hive_partitioning = true)\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["region"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["part"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":99,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":59,"literal":{"kind":"STRING","text":"{TEST_DIR}/partition_path_mixed/region=*/part=*/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(DISTINCT p)\nFROM read_parquet('{TEST_DIR}/partitioned_early_finalize_ordered/**/*.parquet', hive_partitioning = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":40,"query_location_length":100,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":60,"literal":{"kind":"STRING","text":"{TEST_DIR}/partitioned_early_finalize_ordered/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(DISTINCT v), sum(v)\nFROM read_parquet('{TEST_DIR}/flush_join_race_{i}/**/*.parquet', hive_partitioning = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/flush_join_race_{i}/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT partition1, SUM(col1)\nFROM partitioned_tbl2\nWHERE partition2=0\nGROUP BY partition1\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["partition1"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["col1"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":16,"schema_name":"","table_name":"partitioned_tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["partitioned_tbl2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":10,"column_names":["partition2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":10,"column_names":["partition1"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM read_parquet('{TEST_DIR}/ordered_partitioned/**/*.parquet', hive_partitioning = true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/ordered_partitioned/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(l.i), count(r.i) FROM l ASOF FULL JOIN r ON l.p = r.p AND l.t \u003e= r.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["l","i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["r","i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":44,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":24,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":3,"column_names":["l","p"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["r","p"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":81,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["l","t"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":3,"column_names":["r","t"]}}]},"join_type":"FULL","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 1, max(row_group_num_rows) \u003c 1000 + 2048, sum(row_group_num_rows)\nFROM parquet_metadata('{TEST_DIR}/batch_limit_rows/**/*.parquet') WHERE column_id = 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":21,"query_location_length":37,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":23,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":18,"column_names":["row_group_num_rows"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":23,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":18,"column_names":["row_group_num_rows"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":89,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_metadata","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":42,"literal":{"kind":"STRING","text":"{TEST_DIR}/batch_limit_rows/**/*.parquet"}}}],"qualified_name":{"path":["parquet_metadata"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":156,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":9,"column_names":["column_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(DISTINCT k), min(k), max(k),\n bool_and(payload=1), bool_and(bucket=hash(k,6364136223846793005)%4)\nFROM read_parquet('{TEST_DIR}/fixed/**/*.parquet', hive_partitioning=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":19,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["payload"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":46,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":6,"column_names":["bucket"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":29,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":27,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":19,"literal":{"kind":"INTEGER","text":"6364136223846793005"}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":132,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/fixed/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":178,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FILTER (WHERE bytes \u003e= 1048576) \u003e= 2,\n count(*) FILTER (WHERE bytes \u003c 1048576) \u003c= 1,\n max(rows) \u003c= (1048576 + 279) // 280,\n sum(rows)=8000\nFROM batches();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":45,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":30,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["bytes"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1048576"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":61,"query_location_length":44,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":39,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":84,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":5,"column_names":["bytes"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1048576"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":114,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["rows"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":22,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1048576"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":3,"literal":{"kind":"INTEGER","text":"279"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":3,"literal":{"kind":"INTEGER","text":"280"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":158,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":158,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":4,"column_names":["rows"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":4,"literal":{"kind":"INTEGER","text":"8000"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":178,"query_location_length":9,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"batches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["batches"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT part_col, value_col, value2_col FROM '{TEST_DIR}/csv-no-part-cols/part_col=0/*.csv' ORDER BY value2_col;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":10,"column_names":["value2_col"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["part_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["value_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":10,"column_names":["value2_col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":46,"schema_name":"","table_name":"{TEST_DIR}/csv-no-part-cols/part_col=0/*.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/csv-no-part-cols/part_col=0/*.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM read_csv('{TEST_DIR}/per_thread_output_csv/*.csv', columns={'col_a': 'INT', 'col_b' : 'INT'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":93,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":40,"literal":{"kind":"STRING","text":"{TEST_DIR}/per_thread_output_csv/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":33,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col_a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col_a","query_location":90,"query_location_length":5,"literal":{"kind":"STRING","text":"INT"}}},{"name":"col_b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col_b","query_location":107,"query_location_length":5,"literal":{"kind":"STRING","text":"INT"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM read_parquet('{TEST_DIR}/variant_unshredded_stats.parquet') WHERE v IS NULL) =\n (SELECT count(*) FROM unshredded_variants WHERE v IS NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":166,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":98,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":45,"literal":{"kind":"STRING","text":"{TEST_DIR}/variant_unshredded_stats.parquet"}}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":97,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["v"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":115,"query_location_length":58,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"query_location_length":19,"schema_name":"","table_name":"unshredded_variants","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unshredded_variants"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":165,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":1,"column_names":["v"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM '{TEST_DIR}/row_groups_per_file6/*.parquet'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file6/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file6/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{TEST_DIR}/.a.b');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":17,"literal":{"kind":"STRING","text":"{TEST_DIR}/.a.b"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, c FROM db1.test WHERE a = 42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":8,"schema_name":"db1","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"tbl3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('filter_calls');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":14,"literal":{"kind":"STRING","text":"filter_calls"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ins AS MATERIALIZED (\n INSERT INTO dml_exchange_t SELECT i::INTEGER FROM range(10000) tbl(i) RETURNING i\n)\nSELECT * FROM ins LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"ins","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":81,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"dml_exchange_t","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["i"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["dml_exchange_t"]}}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":122,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":3,"schema_name":"","table_name":"ins","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ins"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE i = 77;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"77"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ins AS (INSERT INTO t1 VALUES (1, 100), (2, 200) RETURNING i),\n del AS (DELETE FROM t_aux WHERE i IN (SELECT i FROM ins) RETURNING i)\nSELECT * FROM del;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ins","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t1","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t1"]}}}},{"key":"del","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":110,"query_location_length":19,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":3,"schema_name":"","table_name":"ins","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ins"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t_aux","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_aux"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["i"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":150,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":157,"query_location_length":3,"schema_name":"","table_name":"del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ins1 AS (INSERT INTO t1 VALUES (1, 10)),\n ins2 AS (INSERT INTO t_unique VALUES (1))\nSELECT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ins1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t1","schema":"","catalog":"","returning_list":[],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t1"]}}}},{"key":"ins2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"t_unique","schema":"","catalog":"","returning_list":[],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["t_unique"]}}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ups AS (\n INSERT INTO upsert_t VALUES (2, 20) ON CONFLICT (i) DO NOTHING\n)\nSELECT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ups","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"upsert_t","schema":"","catalog":"","returning_list":[],"on_conflict_info":{"action_type":"NOTHING","indexed_columns":["i"],"set_info":null,"condition":null},"table_ref":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"upsert_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["upsert_t"]}},"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["upsert_t"]}}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte AS (\n INSERT INTO cso_t SELECT COUNT(i) FROM cso_t RETURNING i\n) SELECT COUNT(i) FROM cso_t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"INSERT_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"select_statement":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":5,"schema_name":"","table_name":"cso_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cso_t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"cso_t","schema":"","catalog":"","returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION","qualified_name":{"path":["cso_t"]}}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":5,"schema_name":"","table_name":"cso_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cso_t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT query,\n (WITH t AS (SELECT query)\n SELECT x FROM (VALUES ('cat')) AS _(x)\n WHERE x IN (SELECT query)) AS broken\nFROM (VALUES ('cat'),\n ('dog'),\n ('duck')) AS queries(query)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["query"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"broken","query_location":18,"query_location_length":101,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["query"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":63,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"STRING","text":"cat"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":104,"query_location_length":14,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":5,"column_names":["query"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"queries","sample":null,"query_location":137,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":5,"literal":{"kind":"STRING","text":"cat"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":5,"literal":{"kind":"STRING","text":"dog"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["query"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT demotions \u003e= (SELECT count(*) FROM duckdb_logs WHERE type = 'PhysicalOperator' AND message LIKE '%reason=GATED%')\nFROM gated_with_filters;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":113,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["demotions"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":20,"query_location_length":100,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":11,"schema_name":"","table_name":"duckdb_logs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_logs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":60,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":21,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":7,"column_names":["message"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":16,"literal":{"kind":"STRING","text":"%reason=GATED%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"query_location_length":18,"schema_name":"","table_name":"gated_with_filters","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["gated_with_filters"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (\n SELECT i FROM range(1000000) r(i)\n)\nSELECT sum(v)\nFROM (\n (SELECT row_number() OVER (ORDER BY i) AS v FROM c)\n UNION ALL\n (SELECT 0::BIGINT AS v FROM c LIMIT 1)\n LIMIT 1000001\n) q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":43,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":84,"query_location_length":134,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000001"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"v","query_location":98,"query_location_length":30,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":139,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":169,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":171,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":188,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH p AS MATERIALIZED (SELECT k,nextval('cte_effect_seq') n FROM sequence_probe)\nSELECT count(*),bool_and(n\u003e0)::INTEGER FROM (\n SELECT p.n FROM p JOIN b ON p.k=CAST(b.s AS BIGINT)\n UNION ALL SELECT p.n FROM p JOIN c ON p.k=CAST(c.s AS BIGINT)\n) matches;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"p","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","query_location":33,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":16,"literal":{"kind":"STRING","text":"cte_effect_seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":14,"schema_name":"","table_name":"sequence_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sequence_probe"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":111,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":13,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":107,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["n"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":113,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"SUBQUERY","alias":"matches","sample":null,"query_location":126,"query_location_length":125,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["p","n"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":150,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":148,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":155,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":164,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":3,"column_names":["b","s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":176,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":3,"column_names":["p","n"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":216,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":214,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":221,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":226,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":230,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":235,"query_location_length":3,"column_names":["c","s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":242,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH p AS MATERIALIZED (SELECT d.g,sum(f.v) v FROM facts f JOIN dates d USING(k) GROUP BY d.g)\nSELECT sum(x.v),sum(y.v)\nFROM (SELECT p.* FROM p JOIN (SELECT 100+unnest(range(20000))%200 AS g) t USING(g)) x\nJOIN (SELECT p.* FROM p JOIN c USING(g)) y ON x.g=y.g-400;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"p","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["d","g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":35,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["f","v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":51,"query_location_length":7,"schema_name":"","table_name":"facts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["facts"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":64,"query_location_length":7,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["k"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["d","g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":3,"column_names":["x","v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":3,"column_names":["y","v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":206,"query_location_length":57,"left":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":125,"query_location_length":78,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":133,"query_location_length":3,"relation_name":"p","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":144,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":142,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":149,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":160,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":24,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":20,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":168,"query_location_length":12,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["g"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"y","sample":null,"query_location":211,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":219,"query_location_length":3,"relation_name":"p","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":230,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":228,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":235,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["g"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":252,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":3,"column_names":["x","g"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":259,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":256,"query_location_length":3,"column_names":["y","g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":3,"literal":{"kind":"INTEGER","text":"400"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH p AS MATERIALIZED (SELECT a FROM pairs)\nSELECT count(*),count(*) FILTER (WHERE a IS NULL) FROM (\n SELECT p.a FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.k\n UNION ALL SELECT p.a FROM p JOIN first_pair f ON p.a=f.a\n) result;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"p","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":5,"schema_name":"","table_name":"pairs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pairs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":33,"function_name":"count_star","schema":"","filter":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":86,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["a"]}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"result","sample":null,"query_location":100,"query_location_length":125,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":3,"column_names":["p","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":124,"query_location_length":38,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":134,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["p","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":3,"column_names":["p","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":195,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":193,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":200,"query_location_length":12,"schema_name":"","table_name":"first_pair","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["first_pair"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":216,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":3,"column_names":["p","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":3,"column_names":["f","a"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(i) AS MATERIALIZED (\n\tSELECT i FROM cte_order_batch\n)\nSELECT i FROM t WHERE i % 100000 = 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":15,"schema_name":"","table_name":"cte_order_batch","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_order_batch"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":10,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(i) AS MATERIALIZED (\n\tVALUES (1), (2), (3), (4), (5)\n)\nSELECT i FROM t LIMIT 3 OFFSET 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"t","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (\n\tSELECT i FROM range(1000003) r(i) WHERE i % 97 = 0\n)\nSELECT (SELECT count(*) FROM c), (SELECT i FROM c ORDER BY i LIMIT 1 OFFSET 10000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":40,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000003"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":86,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":108,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":112,"query_location_length":49,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":127,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t AS MATERIALIZED\n(\n\tSELECT 1 AS x\nUNION\n\tSELECT SUM(x) AS x\n\tFROM t, a\n\tWHERE x \u003c 1000000\n)\nSELECT * FROM t ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":64,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":77,"query_location_length":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":94,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":115,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, y\nFROM generate_series(1,4) AS _(x), LATERAL\n(WITH RECURSIVE t(y) AS MATERIALIZED (\n SELECT 1\n UNION ALL\n SELECT y + _.x\n FROM t\n WHERE y \u003c 3\n)\nSELECT * FROM t) AS t\nORDER BY x, y;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["y"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":12,"query_location_length":174,"left":{"type":"TABLE_FUNCTION","alias":"_","sample":null,"query_location":19,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":57,"query_location_length":124,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["y"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["_","x"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":157,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["y"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":172,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":179,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (SELECT i FROM range(10000) t(i))\nSELECT count(*) FROM c JOIN range(10000) r(i) ON c.i=r.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":38,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":85,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":3,"column_names":["c","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":3,"column_names":["r","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH a AS MATERIALIZED (SELECT i FROM range(10000) t(i)),\n b AS MATERIALIZED (SELECT i FROM a)\nSELECT count(*) FROM range(10000) r(i) JOIN b ON r.i=b.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"a","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":38,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"b","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":138,"query_location_length":17,"left":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":120,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":143,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":148,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":3,"column_names":["b","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with cte1 as MATERIALIZED (with b as MATERIALIZED (Select i as j from a) select j from b), cte2 as MATERIALIZED (with c as MATERIALIZED (select ref.j+1 as k from cte1 as ref) select k from c) select * from cte1 , cte2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"b","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":58,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":149,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":5,"column_names":["ref","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"ref","sample":null,"query_location":162,"query_location_length":11,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":189,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":199,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":201,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":206,"query_location_length":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":213,"query_location_length":4,"schema_name":"","table_name":"cte2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with cte1 as MATERIALIZED (Select i as j from a) select * from cte1 cte11, cte1 cte12;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":34,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":56,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":58,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"cte11","sample":null,"query_location":63,"query_location_length":10,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"right":{"type":"BASE_TABLE","alias":"cte12","sample":null,"query_location":75,"query_location_length":10,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH CTE AS MATERIALIZED (\nSELECT A1, * FROM T0\n LEFT JOIN (\n SELECT C1 AS A1 FROM T1\n ) ON T0.C1 = A1\n) SELECT A1 FROM CTE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"CTE","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["A1"]},{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":2,"schema_name":"","table_name":"T0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T0"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":60,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"A1","query_location":73,"query_location_length":2,"column_names":["C1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":2,"schema_name":"","table_name":"T1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":5,"column_names":["T0","C1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":2,"column_names":["A1"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":2,"column_names":["A1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":3,"schema_name":"","table_name":"CTE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CTE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH d AS (\n SELECT\n i AS c00, i + 1 AS c01, i + 2 AS c02, i + 3 AS c03, i + 4 AS c04,\n i + 5 AS c05, i + 6 AS c06, i + 7 AS c07, i + 8 AS c08, i + 9 AS c09,\n i + 10 AS c10, i + 11 AS c11, i + 12 AS c12, i + 13 AS c13, i + 14 AS c14,\n i + 15 AS c15, i + 16 AS c16, i + 17 AS c17, i + 18 AS c18, i + 19 AS c19,\n i + 20 AS c20, i + 21 AS c21, i + 22 AS c22, i + 23 AS c23, i + 24 AS c24,\n i + 25 AS c25, i + 26 AS c26, i + 27 AS c27, i + 28 AS c28, i + 29 AS c29,\n i + 30 AS c30, i + 31 AS c31, i + 32 AS c32, i + 33 AS c33, i + 34 AS c34,\n i + 35 AS c35, i + 36 AS c36, i + 37 AS c37, i + 38 AS c38, i + 39 AS c39,\n i + 40 AS c40, i + 41 AS c41, i + 42 AS c42, i + 43 AS c43, i + 44 AS c44,\n i + 45 AS c45, i + 46 AS c46, i + 47 AS c47, i + 48 AS c48, i + 49 AS c49,\n i + 50 AS c50, i + 51 AS c51, i + 52 AS c52, i + 53 AS c53, i + 54 AS c54,\n i + 55 AS c55, i + 56 AS c56, i + 57 AS c57, i + 58 AS c58, i + 59 AS c59,\n i + 60 AS c60, i + 61 AS c61, i + 62 AS c62, i + 63 AS c63\n FROM range(70000) tbl(i)\n)\nSELECT (SELECT sum(c00) FROM d),\n (SELECT sum(c00 + c01 + c02 + c03 + c04 + c05 + c06 + c07 +\n c08 + c09 + c10 + c11 + c12 + c13 + c14 + c15 +\n c16 + c17 + c18 + c19 + c20 + c21 + c22 + c23 +\n c24 + c25 + c26 + c27 + c28 + c29 + c30 + c31 +\n c32 + c33 + c34 + c35 + c36 + c37 + c38 + c39 +\n c40 + c41 + c42 + c43 + c44 + c45 + c46 + c47 +\n c48 + c49 + c50 + c51 + c52 + c53 + c54 + c55 +\n c56 + c57 + c58 + c59 + c60 + c61 + c62 + c63)\n FROM (SELECT * FROM d ORDER BY c00 DESC LIMIT 10));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c00","query_location":25,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c01","query_location":37,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c02","query_location":51,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c03","query_location":65,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c04","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c05","query_location":97,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c06","query_location":111,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c07","query_location":125,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c08","query_location":139,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c09","query_location":153,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c10","query_location":171,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c11","query_location":186,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c12","query_location":201,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c13","query_location":216,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c14","query_location":231,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":2,"literal":{"kind":"INTEGER","text":"14"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c15","query_location":250,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":252,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c16","query_location":265,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c17","query_location":280,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":278,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":2,"literal":{"kind":"INTEGER","text":"17"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c18","query_location":295,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":293,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c19","query_location":310,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":308,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":312,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c20","query_location":329,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":327,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":331,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c21","query_location":344,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":342,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":346,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c22","query_location":359,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":357,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":361,"query_location_length":2,"literal":{"kind":"INTEGER","text":"22"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c23","query_location":374,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":372,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":376,"query_location_length":2,"literal":{"kind":"INTEGER","text":"23"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c24","query_location":389,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":387,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":391,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c25","query_location":408,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":406,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":410,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c26","query_location":423,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":421,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":425,"query_location_length":2,"literal":{"kind":"INTEGER","text":"26"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c27","query_location":438,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":436,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":440,"query_location_length":2,"literal":{"kind":"INTEGER","text":"27"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c28","query_location":453,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":451,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":455,"query_location_length":2,"literal":{"kind":"INTEGER","text":"28"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c29","query_location":468,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":466,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":470,"query_location_length":2,"literal":{"kind":"INTEGER","text":"29"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c30","query_location":487,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":485,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":489,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c31","query_location":502,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":500,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":504,"query_location_length":2,"literal":{"kind":"INTEGER","text":"31"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c32","query_location":517,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":515,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":519,"query_location_length":2,"literal":{"kind":"INTEGER","text":"32"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c33","query_location":532,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":530,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":534,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c34","query_location":547,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":545,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":549,"query_location_length":2,"literal":{"kind":"INTEGER","text":"34"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c35","query_location":566,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":564,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":568,"query_location_length":2,"literal":{"kind":"INTEGER","text":"35"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c36","query_location":581,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":579,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":583,"query_location_length":2,"literal":{"kind":"INTEGER","text":"36"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c37","query_location":596,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":594,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":598,"query_location_length":2,"literal":{"kind":"INTEGER","text":"37"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c38","query_location":611,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":609,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":613,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c39","query_location":626,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":624,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":628,"query_location_length":2,"literal":{"kind":"INTEGER","text":"39"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c40","query_location":645,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":643,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":647,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c41","query_location":660,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":658,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":662,"query_location_length":2,"literal":{"kind":"INTEGER","text":"41"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c42","query_location":675,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":673,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":677,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c43","query_location":690,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":688,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":692,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c44","query_location":705,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":703,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":707,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c45","query_location":724,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":722,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":726,"query_location_length":2,"literal":{"kind":"INTEGER","text":"45"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c46","query_location":739,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":737,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":741,"query_location_length":2,"literal":{"kind":"INTEGER","text":"46"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c47","query_location":754,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":752,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":756,"query_location_length":2,"literal":{"kind":"INTEGER","text":"47"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c48","query_location":769,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":767,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":771,"query_location_length":2,"literal":{"kind":"INTEGER","text":"48"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c49","query_location":784,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":782,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":786,"query_location_length":2,"literal":{"kind":"INTEGER","text":"49"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c50","query_location":803,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":801,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":805,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c51","query_location":818,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":816,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":820,"query_location_length":2,"literal":{"kind":"INTEGER","text":"51"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c52","query_location":833,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":831,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":835,"query_location_length":2,"literal":{"kind":"INTEGER","text":"52"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c53","query_location":848,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":846,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":850,"query_location_length":2,"literal":{"kind":"INTEGER","text":"53"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c54","query_location":863,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":861,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":865,"query_location_length":2,"literal":{"kind":"INTEGER","text":"54"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c55","query_location":882,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":880,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":884,"query_location_length":2,"literal":{"kind":"INTEGER","text":"55"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c56","query_location":897,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":895,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":899,"query_location_length":2,"literal":{"kind":"INTEGER","text":"56"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c57","query_location":912,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":910,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":914,"query_location_length":2,"literal":{"kind":"INTEGER","text":"57"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c58","query_location":927,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":925,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":929,"query_location_length":2,"literal":{"kind":"INTEGER","text":"58"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c59","query_location":942,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":940,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":944,"query_location_length":2,"literal":{"kind":"INTEGER","text":"59"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c60","query_location":961,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":959,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":963,"query_location_length":2,"literal":{"kind":"INTEGER","text":"60"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c61","query_location":976,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":974,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":978,"query_location_length":2,"literal":{"kind":"INTEGER","text":"61"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c62","query_location":991,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":989,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":993,"query_location_length":2,"literal":{"kind":"INTEGER","text":"62"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c63","query_location":1006,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1004,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1008,"query_location_length":2,"literal":{"kind":"INTEGER","text":"63"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":1025,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1031,"query_location_length":5,"literal":{"kind":"INTEGER","text":"70000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1054,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1062,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1066,"query_location_length":3,"column_names":["c00"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1076,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1087,"query_location_length":586,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1095,"query_location_length":519,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1608,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1602,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1596,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1590,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1584,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1578,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1572,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1547,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1541,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1535,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1529,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1523,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1517,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1511,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1505,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1480,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1474,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1468,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1462,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1456,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1450,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1444,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1438,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1413,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1407,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1401,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1395,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1389,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1383,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1377,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1371,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1346,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1340,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1334,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1328,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1322,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1316,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1310,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1304,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1279,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1273,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1267,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1261,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1255,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1249,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1243,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1237,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1212,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1206,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1200,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1194,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1188,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1182,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1176,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1170,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1145,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1139,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1133,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1127,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1121,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1115,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1109,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1103,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1099,"query_location_length":3,"column_names":["c00"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1105,"query_location_length":3,"column_names":["c01"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1111,"query_location_length":3,"column_names":["c02"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1117,"query_location_length":3,"column_names":["c03"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1123,"query_location_length":3,"column_names":["c04"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1129,"query_location_length":3,"column_names":["c05"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1135,"query_location_length":3,"column_names":["c06"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1141,"query_location_length":3,"column_names":["c07"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1166,"query_location_length":3,"column_names":["c08"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1172,"query_location_length":3,"column_names":["c09"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1178,"query_location_length":3,"column_names":["c10"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1184,"query_location_length":3,"column_names":["c11"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1190,"query_location_length":3,"column_names":["c12"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1196,"query_location_length":3,"column_names":["c13"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1202,"query_location_length":3,"column_names":["c14"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1208,"query_location_length":3,"column_names":["c15"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1233,"query_location_length":3,"column_names":["c16"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1239,"query_location_length":3,"column_names":["c17"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1245,"query_location_length":3,"column_names":["c18"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1251,"query_location_length":3,"column_names":["c19"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1257,"query_location_length":3,"column_names":["c20"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1263,"query_location_length":3,"column_names":["c21"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1269,"query_location_length":3,"column_names":["c22"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1275,"query_location_length":3,"column_names":["c23"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1300,"query_location_length":3,"column_names":["c24"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1306,"query_location_length":3,"column_names":["c25"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1312,"query_location_length":3,"column_names":["c26"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1318,"query_location_length":3,"column_names":["c27"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1324,"query_location_length":3,"column_names":["c28"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1330,"query_location_length":3,"column_names":["c29"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1336,"query_location_length":3,"column_names":["c30"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1342,"query_location_length":3,"column_names":["c31"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1367,"query_location_length":3,"column_names":["c32"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1373,"query_location_length":3,"column_names":["c33"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1379,"query_location_length":3,"column_names":["c34"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1385,"query_location_length":3,"column_names":["c35"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1391,"query_location_length":3,"column_names":["c36"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1397,"query_location_length":3,"column_names":["c37"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1403,"query_location_length":3,"column_names":["c38"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1409,"query_location_length":3,"column_names":["c39"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1434,"query_location_length":3,"column_names":["c40"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1440,"query_location_length":3,"column_names":["c41"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1446,"query_location_length":3,"column_names":["c42"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1452,"query_location_length":3,"column_names":["c43"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1458,"query_location_length":3,"column_names":["c44"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1464,"query_location_length":3,"column_names":["c45"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1470,"query_location_length":3,"column_names":["c46"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1476,"query_location_length":3,"column_names":["c47"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1501,"query_location_length":3,"column_names":["c48"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1507,"query_location_length":3,"column_names":["c49"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1513,"query_location_length":3,"column_names":["c50"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1519,"query_location_length":3,"column_names":["c51"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1525,"query_location_length":3,"column_names":["c52"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1531,"query_location_length":3,"column_names":["c53"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1537,"query_location_length":3,"column_names":["c54"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1543,"query_location_length":3,"column_names":["c55"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1568,"query_location_length":3,"column_names":["c56"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1574,"query_location_length":3,"column_names":["c57"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1580,"query_location_length":3,"column_names":["c58"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1586,"query_location_length":3,"column_names":["c59"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1592,"query_location_length":3,"column_names":["c60"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1598,"query_location_length":3,"column_names":["c61"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1604,"query_location_length":3,"column_names":["c62"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1610,"query_location_length":3,"column_names":["c63"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":1628,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1654,"query_location_length":3,"column_names":["c00"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1669,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":1636,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1643,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE ctename AS MATERIALIZED (\n SELECT empno, ename,\n 0 AS level\n FROM emp\n WHERE empno = 7566\n UNION ALL\n SELECT emp.empno, emp.ename,\n ctename.level + 1\n FROM emp\n JOIN ctename ON emp.mgr = ctename.empno\n)\nSELECT * FROM ctename;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ctename","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"ctename","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["ename"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"level","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":3,"schema_name":"","table_name":"emp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["emp"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["empno"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"INTEGER","text":"7566"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":9,"column_names":["emp","empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":9,"column_names":["emp","ename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":207,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":13,"column_names":["ctename","level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":235,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":222,"query_location_length":3,"schema_name":"","table_name":"emp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["emp"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":240,"query_location_length":7,"schema_name":"","table_name":"ctename","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ctename"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":251,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":7,"column_names":["emp","mgr"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":13,"column_names":["ctename","empno"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":284,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":291,"query_location_length":7,"schema_name":"","table_name":"ctename","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ctename"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t AS MATERIALIZED (\n\tSELECT 1 AS i\n\tUNION ALL\n\tSELECT j\n\tFROM t, generate_series(0, 10, 1) series(j)\n\tWHERE j=i+1\n)\nSELECT * FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":72,"query_location_length":43,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"TABLE_FUNCTION","alias":"series","sample":null,"query_location":80,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["j"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["j"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":138,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":145,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with recursive t as MATERIALIZED (select (select min(x) from integers) as x union select x+1 from t where x \u003c 3) select * from t order by x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"x","query_location":41,"query_location_length":29,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":106,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":120,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":127,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE r(a, b, c) AS (\n\tSELECT 1, 2, repeat('x', 1000)\n\tUNION ALL\n\tSELECT a + 1, b + 1, c FROM r WHERE a \u003c 3\n)\nSELECT a FROM r ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[{"key":"r","value":{"aliases":["a","b","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":17,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":111,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b","c"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t AS\n(\n\tSELECT 1 AS x\nUNION\n\tSELECT SUM(x) AS x\n\tFROM t, a\n\tWHERE x \u003c 1000000\n)\nSELECT * FROM t ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":51,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":81,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":102,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT n\nFROM (SELECT {x: 1} AS a, {y: 5} AS b, {z: 3} AS c) seed,\nLATERAL (\n WITH RECURSIVE t(n) USING KEY (n) AS (\n SELECT a.x\n UNION ALL\n SELECT n + 1 FROM t\n WHERE n \u003c b.y\n AND NOT EXISTS (SELECT 1 FROM recurring.t r WHERE r.n = c.z)\n )\n SELECT * FROM t\n) q\nORDER BY n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":298,"left":{"type":"SUBQUERY","alias":"seed","sample":null,"query_location":14,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":22,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":35,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":48,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":75,"query_location_length":230,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["n"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["n"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["a","x"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":174,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":183,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":199,"query_location_length":78,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":199,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["n"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":3,"column_names":["b","y"]}},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":221,"query_location_length":56,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":225,"query_location_length":52,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":247,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":267,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":267,"query_location_length":3,"column_names":["r","n"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":3,"column_names":["c","z"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["n"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["n"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":295,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":302,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE r(i, sampled) AS (\n\tVALUES (0, 0::BIGINT)\n\tUNION ALL\n\tSELECT r.i + 1, build.sampled\n\tFROM r\n\tCROSS JOIN (\n\t\tSELECT count(*) AS sampled\n\t\tFROM repeatability_sample USING SAMPLE 50% (system)\n\t) build\n\tWHERE r.i \u003c 3\n)\nSELECT count(*) FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["i","sampled"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":3,"column_names":["r","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":13,"column_names":["build","sampled"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":108,"query_location_length":104,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"SUBQUERY","alias":"build","sample":null,"query_location":119,"query_location_length":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"sampled","query_location":130,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":157,"query_location_length":20,"schema_name":"","table_name":"repeatability_sample","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["repeatability_sample"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":50.0},"is_percentage":true,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":220,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","sampled"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":237,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":251,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE r(k, v) USING KEY (k, max(EXISTS (SELECT 1)::INTEGER) AS v) AS (\n\tVALUES (1, 10)\n\tUNION ALL\n\tSELECT k + 1, v + 1 FROM r WHERE k \u003c 2)\nSELECT * FROM r ORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[{"key":"r","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":37,"query_location_length":31,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":41,"query_location_length":17,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":141,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":37,"query_location_length":31,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":41,"query_location_length":17,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":155,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":162,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE tbl(a,b,c) USING KEY (a, b , list(c), max(c)) AS (\n\tSELECT 1, 1, NULL\n\tUNION ALL\n SELECT tbl.a, tbl.b - 1, a.b\n\tFROM tbl, recurring.tbl AS a\n\tWHERE tbl.b \u003e 0)\nSELECT * FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["a","b","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":5,"column_names":["tbl","a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":5,"column_names":["tbl","b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["a","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":130,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":135,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":140,"query_location_length":18,"schema_name":"recurring","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","tbl"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":166,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":5,"column_names":["tbl","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b","c"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":184,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":191,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE tbl(key, iter, acc) USING KEY (key, bitstring_agg(acc, 1, 12)) AS (\n\tSELECT c, 1, d\n\tFROM tinyints\n\tWHERE c = 1\n\tUNION ALL\n\tSELECT key, iter + 1, d\n\tFROM tbl, tinyints AS t(c,d)\n\tWHERE c = iter AND iter \u003c 8\n) SELECT acc FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["key","iter","acc"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":25,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["c"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":164,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":169,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":174,"query_location_length":18,"schema_name":"","table_name":"tinyints","column_name_alias":["c","d"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":200,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":200,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":1,"column_names":["c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":4,"column_names":["iter"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":213,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["key","iter","acc"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":25,"function_name":"bitstring_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["bitstring_agg"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":3,"column_names":["acc"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":240,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE tbl(key, iter, k, v, v2) USING KEY (key, kurtosis(k) AS k, kurtosis(v) AS v, kurtosis(v2) AS v2) AS (\n\tSELECT 1, it, k, v, v2\n\tFROM kur\n\tWHERE it = 1\n\tUNION ALL\n\tSELECT 1, tbl.iter + 1, a.k, a.v, a.v2\n\tFROM tbl, kur AS a\n\tWHERE tbl.iter + 1 = a.it\n) SELECT k, v, v2 FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["key","iter","k","v","v2"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":56,"query_location_length":11,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":74,"query_location_length":11,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v2","query_location":92,"query_location_length":12,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":2,"column_names":["it"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":2,"column_names":["v2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":3,"schema_name":"","table_name":"kur","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["kur"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":158,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":2,"column_names":["it"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":196,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":8,"column_names":["tbl","iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":3,"column_names":["a","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":3,"column_names":["a","v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":4,"column_names":["a","v2"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":217,"query_location_length":18,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":222,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":227,"query_location_length":8,"schema_name":"","table_name":"kur","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["kur"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":243,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":252,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":243,"query_location_length":8,"column_names":["tbl","iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":254,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":258,"query_location_length":4,"column_names":["a","it"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["key","iter","k","v","v2"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":56,"query_location_length":11,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":74,"query_location_length":11,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v2","query_location":92,"query_location_length":12,"function_name":"kurtosis","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["v2"]}}],"qualified_name":{"path":["kurtosis"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":278,"query_location_length":2,"column_names":["v2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":286,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tSELECT i, 0 FROM range(2049) r(i)\n\tUNION ALL\n\tSELECT k, v + 1 FROM t WHERE v \u003c 0\n)\nSELECT count(*), min(k), max(k) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":60,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2049"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":118,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE\nfast(k1, k2, v) USING KEY (k1, k2) AS (\n\tVALUES (1, NULL::INTEGER, 0), (1, 2, 0), (NULL, 2, 0), (NULL, NULL, 0)\n\tUNION ALL\n\tSELECT n.k1, n.k2, r.v + 1\n\tFROM fast n\n\tJOIN recurring.fast r ON r.k2 IS NOT DISTINCT FROM n.k2 AND r.k1 = n.k1\n\tWHERE n.v \u003c 1\n),\nfallback(k1, k2, v) USING KEY (k1, k2) AS (\n\tVALUES (1, NULL::INTEGER, 0), (1, 2, 0), (NULL, 2, 0), (NULL, NULL, 0)\n\tUNION ALL\n\tSELECT n.k1, n.k2, r.v + 1\n\tFROM fallback n\n\tJOIN (SELECT * FROM recurring.fallback WHERE v \u003e= 0) r\n\t ON r.k2 IS NOT DISTINCT FROM n.k2 AND r.k1 = n.k1\n\tWHERE n.v \u003c 1\n)\nSELECT count(*) FROM (\n\t(SELECT * FROM fast EXCEPT ALL SELECT * FROM fallback)\n\tUNION ALL\n\t(SELECT * FROM fallback EXCEPT ALL SELECT * FROM fast)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"fast","value":{"aliases":["k1","k2","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["k2"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"fast","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":4,"column_names":["n","k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":4,"column_names":["n","k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":180,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":172,"query_location_length":6,"schema_name":"","table_name":"fast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fast"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":185,"query_location_length":16,"schema_name":"recurring","table_name":"fast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","fast"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":205,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":205,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":4,"column_names":["r","k2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":4,"column_names":["n","k2"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":240,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":247,"query_location_length":4,"column_names":["n","k1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":259,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":259,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k1","k2","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["k2"]}]}}},{"key":"fallback","value":{"aliases":["k1","k2","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":301,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":2,"column_names":["k2"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"fallback","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":323,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":330,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":326,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":332,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":341,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":346,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":349,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":352,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":357,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":363,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":366,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":371,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":377,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":383,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":405,"query_location_length":4,"column_names":["n","k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":411,"query_location_length":4,"column_names":["n","k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":421,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":417,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":423,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":443,"query_location_length":107,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":431,"query_location_length":10,"schema_name":"","table_name":"fallback","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fallback"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":448,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":456,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":463,"query_location_length":18,"schema_name":"recurring","table_name":"fallback","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","fallback"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":488,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":488,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":493,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":504,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":504,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":504,"query_location_length":4,"column_names":["r","k2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":530,"query_location_length":4,"column_names":["n","k2"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":539,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":539,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":546,"query_location_length":4,"column_names":["n","k1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":558,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":558,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":564,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k1","k2","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":301,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":2,"column_names":["k2"]}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":575,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":589,"query_location_length":126,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":600,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":607,"query_location_length":4,"schema_name":"","table_name":"fast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fast"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":630,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":637,"query_location_length":8,"schema_name":"","table_name":"fallback","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fallback"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":667,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":674,"query_location_length":8,"schema_name":"","table_name":"fallback","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fallback"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":701,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":708,"query_location_length":4,"schema_name":"","table_name":"fast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fast"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k1, k2, k3, v) USING KEY (k1, k2, k3) AS (\n\tVALUES (1, 10, 'a', 0), (1, 20, 'a', 0), (1, 30, 'b', 0)\n\tUNION ALL\n\tSELECT n.k1, n.k2, n.k3, r.v + 1\n\tFROM t n JOIN recurring.t r ON r.k3 = n.k3 AND r.k1 = n.k1\n\tWHERE n.v \u003c 1\n)\nSELECT * FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k1","k2","k3","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":2,"column_names":["k2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["k3"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":4,"column_names":["n","k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":4,"column_names":["n","k2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":4,"column_names":["n","k3"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":159,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":173,"query_location_length":49,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":169,"query_location_length":3,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":178,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":195,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":195,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":4,"column_names":["r","k3"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":202,"query_location_length":4,"column_names":["n","k3"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":211,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":4,"column_names":["n","k1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":230,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k1","k2","k3","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":2,"column_names":["k2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["k3"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":247,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":254,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, level, v)\nUSING KEY (k, max(level) AS level, approx_quantile(v, 0.5) AS v) AS (\n\tSELECT i, 0, i::DOUBLE\n\tFROM range(512) r(i)\n\tUNION ALL\n\t(\n\t\tSELECT n.k, 1, r.v\n\t\tFROM t n\n\t\tJOIN (SELECT k, v FROM recurring.t WHERE v \u003e= 0) r USING (k)\n\t\tWHERE n.level = 0\n\t\tUNION ALL\n\t\tSELECT n.k, 1, r.v\n\t\tFROM t n\n\t\tJOIN (SELECT k, v FROM recurring.t WHERE v \u003e= 0) r USING (k)\n\t\tWHERE n.level = 0\n\t)\n)\nSELECT count(*), sum(v) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","level","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"level","query_location":44,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["level"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":65,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":115,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":130,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":3,"literal":{"kind":"INTEGER","text":"512"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":3,"column_names":["n","k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":194,"query_location_length":60,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":188,"query_location_length":3,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":199,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":217,"query_location_length":11,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":235,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":235,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["k"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":263,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":7,"column_names":["n","level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":3,"column_names":["n","k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":301,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":321,"query_location_length":60,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":315,"query_location_length":3,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":326,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":334,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":337,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":344,"query_location_length":11,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":362,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":362,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":367,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["k"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":390,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":390,"query_location_length":7,"column_names":["n","level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"aliases":["k","level","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"level","query_location":44,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["level"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":65,"query_location_length":23,"function_name":"approx_quantile","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["approx_quantile"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":414,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":424,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":428,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":436,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, total, recursive_type) USING KEY (k, sum(total)) AS (\n\tVALUES (1, 1::INTEGER, 'anchor')\n\tUNION\n\tSELECT k, 1, typeof(total) FROM t WHERE total \u003c 2\n)\nSELECT k, total, recursive_type FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","total","recursive_type"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["total"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":8,"literal":{"kind":"STRING","text":"anchor"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["total"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":148,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":156,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":5,"column_names":["total"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","total","recursive_type"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["total"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":5,"column_names":["total"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":14,"column_names":["recursive_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":205,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, lo, latest) USING KEY (k, min(lo)) AS (\n\tVALUES (1, 100000::BIGINT, 0::BIGINT)\n\tUNION\n\tSELECT k, i, i\n\tFROM t, range(current_setting('standard_vector_size')::BIGINT * 2 + 1) r(i)\n\tWHERE lo = 100000\n)\nSELECT count(*), min(lo) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","lo","latest"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["lo"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":123,"query_location_length":75,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":128,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":131,"query_location_length":67,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":51,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":39,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":22,"literal":{"kind":"STRING","text":"standard_vector_size"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":206,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":2,"column_names":["lo"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","lo","latest"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["lo"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":227,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":237,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":241,"query_location_length":2,"column_names":["lo"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":250,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (\n\tVALUES (1, 'a')\n\tUNION\n\tSELECT CASE ascii(v) WHEN 97 THEN 1 ELSE 2 END, upper(v) FROM t\n)\nTABLE t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":74,"query_location_length":39,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":8,"function_name":"ascii","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["ascii"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["upper"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, v) USING KEY (k, min(v)) AS (\n\tSELECT ['a' COLLATE nocase], 2\n\tUNION\n\tSELECT ['A' COLLATE nocase], v - 1 FROM t WHERE v \u003e 0\n)\nSELECT count(*), min(v), min(k[1]) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":59,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":98,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"nocase"}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":138,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":9,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":176,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":186,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE\n\t\"@loop\" (\"$label\", \"$output\", \"0\") AS (\n\t\t(SELECT '$'::VARCHAR AS \"$label\", NULL::BIGINT AS \"$output\", NULL::BIGINT AS \"0\")\n\t\tUNION ALL\n\t\t(WITH\n\t\t\t\"0\" AS (SELECT NULL FROM \"@loop\" WHERE \"$label\" IS NOT DISTINCT FROM '$'),\n\t\t\t\"1\" (i) AS (SELECT 0 AS i FROM \"0\"),\n\t\t\t\"2\" (i) AS (SELECT \"0\" AS i FROM \"@loop\" WHERE \"$label\" IS NOT DISTINCT FROM '$loop0'),\n\t\t\t\"3\" (i) AS (\n\t\t\t\tSELECT i FROM \"1\"\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT i FROM \"2\"\n\t\t\t),\n\t\t\t\"4\" (i) AS (SELECT (i + 1) % 1000 AS i FROM \"3\"),\n\t\t\t\"5\" (\"$output\") AS (SELECT i FROM \"4\"),\n\t\t\t\"6\" (\"$label\", i) AS (SELECT '$loop0', i FROM \"4\")\n\t\t\tSELECT NULL::VARCHAR, \"$output\"::BIGINT, NULL::BIGINT FROM \"5\"\n\t\t\tUNION ALL\n\t\t\tSELECT \"$label\"::VARCHAR, NULL::BIGINT, i::BIGINT FROM \"6\"\n\t\t)\n\t)\nSELECT \"$output\" FROM \"@loop\" WHERE \"$label\" IS NULL LIMIT 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":806,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"@loop","value":{"aliases":["$label","$output","0"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"@loop","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"$label","query_location":69,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"$output","query_location":96,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"0","query_location":123,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[{"key":"0","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":188,"query_location_length":7,"schema_name":"","table_name":"@loop","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["@loop"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":202,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":202,"query_location_length":8,"column_names":["$label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"1","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":260,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":272,"query_location_length":3,"schema_name":"","table_name":"0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"2","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":300,"query_location_length":3,"column_names":["0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":314,"query_location_length":7,"schema_name":"","table_name":"@loop","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["@loop"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":328,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":328,"query_location_length":8,"column_names":["$label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":358,"query_location_length":8,"literal":{"kind":"STRING","text":"$loop0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"3","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":396,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":403,"query_location_length":3,"schema_name":"","table_name":"1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":432,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":439,"query_location_length":3,"schema_name":"","table_name":"2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}},{"key":"4","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":471,"query_location_length":14,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":474,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":472,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":476,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":481,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":496,"query_location_length":3,"schema_name":"","table_name":"3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"5","value":{"aliases":["$output"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":532,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":539,"query_location_length":3,"schema_name":"","table_name":"4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["4"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"6","value":{"aliases":["$label","i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":577,"query_location_length":8,"literal":{"kind":"STRING","text":"$loop0"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":587,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":594,"query_location_length":3,"schema_name":"","table_name":"4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["4"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":613,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":609,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":615,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":633,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":624,"query_location_length":9,"column_names":["$output"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":635,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":647,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":643,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":649,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":661,"query_location_length":3,"schema_name":"","table_name":"5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["5"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":696,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":688,"query_location_length":8,"column_names":["$label"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":698,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":711,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":707,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":713,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":722,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":721,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":724,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":736,"query_location_length":3,"schema_name":"","table_name":"6","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["6"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"aliases":["$label","$output","0"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":754,"query_location_length":9,"column_names":["$output"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":769,"query_location_length":7,"schema_name":"","table_name":"@loop","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["@loop"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":792,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":783,"query_location_length":8,"column_names":["$label"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) = 1 FROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class = 'PhysicalRecursiveCTE' AND event = 'DistinctPromoted'\n AND info.partitions::UBIGINT BETWEEN 2 AND 4\n AND info.migrated_rows::UBIGINT \u003e 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":146,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":22,"literal":{"kind":"STRING","text":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":18,"literal":{"kind":"STRING","text":"DistinctPromoted"}}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":163,"query_location_length":15,"input":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":15,"column_names":["info","partitions"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":185,"query_location_length":31,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":203,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":18,"column_names":["info","migrated_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT info.direct_probe_rows::UBIGINT \u003e 0,\n info.recurring_scan_rows::UBIGINT = 0\nFROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class = 'PhysicalRecursiveCTE' AND event = 'RuntimeMetrics';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":35,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":22,"column_names":["info","direct_probe_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":37,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":24,"column_names":["info","recurring_scan_rows"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":94,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":139,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":22,"literal":{"kind":"STRING","text":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":174,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":16,"literal":{"kind":"STRING","text":"RuntimeMetrics"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT info.recurring_scan_work_ns::UBIGINT \u003e 0,\n info.final_state_drain_work_ns::UBIGINT \u003e 0\nFROM duckdb_logs_parsed('PhysicalOperator')\nWHERE class = 'PhysicalRecursiveCTE' AND event = 'EpochSummary';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":40,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":27,"column_names":["info","recurring_scan_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":56,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":30,"column_names":["info","final_state_drain_work_ns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":105,"query_location_length":38,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":18,"literal":{"kind":"STRING","text":"PhysicalOperator"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":150,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":22,"literal":{"kind":"STRING","text":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":185,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":14,"literal":{"kind":"STRING","text":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE r(iter, v) AS (\n SELECT 0, i FROM range(8) t(i)\n UNION ALL\n SELECT iter + 1, v\n FROM (SELECT iter, v, row_number() OVER () AS rn\n FROM (SELECT iter, v FROM r WHERE iter \u003c 3 ORDER BY row(v, v::VARCHAR) DESC) o) s\n WHERE rn \u003c= 2\n)\nSELECT iter, sum(v) FROM r GROUP BY iter ORDER BY iter;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":300,"query_location_length":4,"column_names":["iter"]}}]}],"cte_map":{"map":[{"key":"r","value":{"aliases":["iter","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":49,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":100,"query_location_length":130,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":4,"column_names":["iter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":117,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":156,"query_location_length":71,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":203,"query_location_length":18,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":211,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":213,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":4,"column_names":["iter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":177,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":185,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":240,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":2,"column_names":["rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["iter","v"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"query_location_length":4,"column_names":["iter"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":263,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":267,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":275,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":286,"query_location_length":4,"column_names":["iter"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(i, level) AS (\n\tSELECT i, 0 FROM range(4096) r(i) WHERE i % 2 = 0\n\tUNION\n\tSELECT i + 1, level + 1 FROM t WHERE level \u003c 3 AND i % 2 = 0\n)\nSELECT count(*), min(i), max(i) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","level"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":50,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4096"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":5,"column_names":["level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":128,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":128,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":5,"column_names":["level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","level"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":191,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with cte1 as (Select i as j from a), cte2 as (select ref.j as k from cte1 as ref), cte3 as (select ref2.j+1 as i from cte1 as ref2) select * from cte2 , cte3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":21,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"k","query_location":53,"query_location_length":5,"column_names":["ref","j"]}],"from_table":{"type":"BASE_TABLE","alias":"ref","sample":null,"query_location":69,"query_location_length":11,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte3","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":105,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":6,"column_names":["ref2","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"ref2","sample":null,"query_location":118,"query_location_length":12,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":139,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":141,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":4,"schema_name":"","table_name":"cte2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":153,"query_location_length":4,"schema_name":"","table_name":"cte3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte3"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE\n t(b) AS MATERIALIZED (\n (WITH helper(c) AS (\n SELECT 5\n ), h1 AS\n (SELECT * FROM helper h\n UNION\n SELECT 7 FROM helper h)\n SELECT * FROM h1)\n )\nSELECT * FROM t ORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["b"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"helper","value":{"aliases":["c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"h1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":105,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"h","sample":null,"query_location":112,"query_location_length":8,"schema_name":"","table_name":"helper","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["helper"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"from_table":{"type":"BASE_TABLE","alias":"h","sample":null,"query_location":149,"query_location_length":8,"schema_name":"","table_name":"helper","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["helper"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":170,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":177,"query_location_length":2,"schema_name":"","table_name":"h1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["h1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":192,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":199,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with cte as (select * from cte) select * from cte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":20,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":39,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE\n\"primary\"(c,p) AS (\n VALUES ('c1', 'c2'),\n ('c3', 'c4'),\n ('c4', 'c6')\n),\nsecondary(c,s) AS (\n VALUES ('c1', 'c3'),\n ('c3', 'c5'),\n ('c4', 'c7')\n),\nbroken(c) AS (\n VALUES ('c2'),\n ('c4'),\n ('c5')\n),\nfail(c) AS (\n SELECT b.c\n FROM broken AS b\n UNION\n SELECT p.c\n FROM \"primary\" AS p, secondary AS s, recurring.fail AS f1, recurring.fail AS f2\n WHERE f1.c = p.p\n AND f2.c = s.s\n AND p.c = s.c\n)\nTABLE fail\nORDER BY c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":496,"query_location_length":1,"column_names":["c"]}}]}],"cte_map":{"map":[{"key":"primary","value":{"aliases":["c","p"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"STRING","text":"c1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"STRING","text":"c2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"STRING","text":"c6"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"secondary","value":{"aliases":["c","s"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":4,"literal":{"kind":"STRING","text":"c1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":4,"literal":{"kind":"STRING","text":"c3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":4,"literal":{"kind":"STRING","text":"c5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":4,"literal":{"kind":"STRING","text":"c7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"broken","value":{"aliases":["c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":4,"literal":{"kind":"STRING","text":"c2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":4,"literal":{"kind":"STRING","text":"c4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":4,"literal":{"kind":"STRING","text":"c5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"fail","value":{"aliases":["c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"fail","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":3,"column_names":["b","c"]}],"from_table":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":300,"query_location_length":11,"schema_name":"","table_name":"broken","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["broken"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":331,"query_location_length":3,"column_names":["p","c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":337,"query_location_length":80,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":343,"query_location_length":14,"schema_name":"","table_name":"primary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["primary"]}},"right":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":359,"query_location_length":14,"schema_name":"","table_name":"secondary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["secondary"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"f1","sample":null,"query_location":375,"query_location_length":20,"schema_name":"recurring","table_name":"fail","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","fail"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"f2","sample":null,"query_location":397,"query_location_length":20,"schema_name":"recurring","table_name":"fail","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","fail"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":426,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":426,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":426,"query_location_length":4,"column_names":["f1","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":433,"query_location_length":3,"column_names":["p","p"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":445,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":445,"query_location_length":4,"column_names":["f2","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":452,"query_location_length":3,"column_names":["s","s"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":464,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":464,"query_location_length":3,"column_names":["p","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":470,"query_location_length":3,"column_names":["s","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["c"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"fail","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fail"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with recursive t as (select 1 as x union select m.x+f.x from t as m, t as f where m.x \u003c 3) select * from t order by x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":3,"column_names":["m","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":3,"column_names":["f","x"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"m","sample":null,"query_location":61,"query_location_length":6,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":69,"query_location_length":6,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":82,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["m","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":98,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with recursive t as (select 1 as x union all select x+1 from t as m where m.x \u003c 3) select * from t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"m","sample":null,"query_location":61,"query_location_length":6,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":74,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["m","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":90,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE r(k,v) USING KEY(k,system.not_a_schema.also_missing.max(v)) AS (VALUES(1,10) UNION ALL SELECT k+1,v+1 FROM r WHERE k\u003c3) SELECT * FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":39,"function_name":"max","schema":"also_missing","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"system","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["system","not_a_schema","also_missing","max"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":130,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":39,"function_name":"max","schema":"also_missing","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"system","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["system","not_a_schema","also_missing","max"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":142,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":149,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM myschema.t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"myschema","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["myschema","t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FILTER (WHERE i % 2 = 0) FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(i) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t PIVOT (sum(b) FOR a IN (1, 1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":23,"query_location_length":22,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DBGEN();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"dbgen","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["dbgen"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FUNFUNFUN();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"funfunfun","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["funfunfun"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with 🍞🍞 as (select 'bread' as 🍞), 🦆🦆 as (select ref.🍞 as \"🍞\" from 🍞🍞 as ref) SELECT * FROM integers9 where x LIKE '🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆' order by x+1+1+1+1+1+1+1+1+1+1+1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":238,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":236,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":234,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":230,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":228,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":226,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":224,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":222,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":220,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":218,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[{"key":"🍞🍞","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"🍞","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"bread"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"🦆🦆","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"🍞","query_location":63,"query_location_length":8,"column_names":["ref","🍞"]}],"from_table":{"type":"BASE_TABLE","alias":"ref","sample":null,"query_location":87,"query_location_length":15,"schema_name":"","table_name":"🍞🍞","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["🍞🍞"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":111,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":9,"schema_name":"","table_name":"integers9","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers9"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":71,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":66,"literal":{"kind":"STRING","text":"🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n l_returnflag,\n l_linestatus,\n sum(l_quantity) AS sum_qty,\n sum(l_extendedprice) AS sum_base_price,\n sum(l_extendedprice * (1 - l_discount)) AS sum_disc_price,\n sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) AS sum_charge,\n avg(l_quantity) AS avg_qty,\n avg(l_extendedprice) AS avg_price,\n avg(l_discount) AS avg_disc,\n count(*) AS count_order\n FROM\n lineitem\n WHERE\n l_shipdate \u003c= CAST('1998-09-02' AS date) + timestamp '2020-01-01'\n GROUP BY\n l_returnflag,\n l_linestatus\n ORDER BY\n l_returnflag,\n l_linestatus;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":576,"query_location_length":12,"column_names":["l_returnflag"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":596,"query_location_length":12,"column_names":["l_linestatus"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":12,"column_names":["l_returnflag"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":12,"column_names":["l_linestatus"]},{"class":"FUNCTION","type":"FUNCTION","alias":"sum_qty","query_location":53,"query_location_length":15,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":10,"column_names":["l_quantity"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"sum_base_price","query_location":87,"query_location_length":20,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"sum_disc_price","query_location":133,"query_location_length":39,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":34,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":15,"column_names":["l_extendedprice"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":158,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":10,"column_names":["l_discount"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"sum_charge","query_location":198,"query_location_length":53,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"query_location_length":48,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":202,"query_location_length":15,"column_names":["l_extendedprice"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":223,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":10,"column_names":["l_discount"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":242,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":244,"query_location_length":5,"column_names":["l_tax"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"avg_qty","query_location":273,"query_location_length":15,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":277,"query_location_length":10,"column_names":["l_quantity"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"avg_price","query_location":307,"query_location_length":20,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":311,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"avg_disc","query_location":348,"query_location_length":15,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":352,"query_location_length":10,"column_names":["l_discount"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"count_order","query_location":383,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":420,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":443,"query_location_length":65,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":443,"query_location_length":10,"column_names":["l_shipdate"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":484,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":457,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":462,"query_location_length":12,"literal":{"kind":"STRING","text":"1998-09-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":478,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":486,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":486,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":526,"query_location_length":12,"column_names":["l_returnflag"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":546,"query_location_length":12,"column_names":["l_linestatus"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT 42, 84)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":15,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY(regexp_matches(s, '(')) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":27,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":22,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"("}}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b, TRY((100 // b) IN (1, 3)) FROM t ORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":10,"query_location_length":25,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":28,"query_location_length":6,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN x \u003e 1 THEN TRY(COALESCE(1 // (x - 2), 999)) ELSE -1 END FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":65,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":17,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":28,"query_location_length":32,"children":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":32,"query_location_length":27,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":12,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"INTEGER","text":"999"}}]}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT abs(a + b), greatest(a, b)\nFROM (VALUES (1, 2), (NULL, 3), (4, NULL)) t(a, b)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["abs"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":14,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["greatest"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":39,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_typeof(v), variant_typeof(s.v), variant_typeof(l[1]), variant_typeof(a[1])\nFROM (\n\tSELECT v, {'v': v} AS s, [v] AS l, [v]::VARIANT[1] AS a\n\tFROM (VALUES (42::VARIANT), (42::DOUBLE::VARIANT), ('42'::VARIANT), (NULL::VARIANT)) t(v)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":19,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":3,"column_names":["s","v"]}}],"qualified_name":{"path":["variant_typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":20,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":63,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["variant_typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":20,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":85,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["variant_typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":95,"query_location_length":151,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["v"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":108,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"v","query_location":114,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":123,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":136,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":160,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":171,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":173,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":186,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":188,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":196,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":211,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":213,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":228,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":230,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT contains(content, 'written=') FROM read_text('{TEST_DIR}/tree_renderer_compact_write.txt')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":10,"literal":{"kind":"STRING","text":"written="}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/tree_renderer_compact_write.txt"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM \"view \"\".\" ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"view \".","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["view \"."]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT replace(rtrim(content, chr(10)), chr(10), ' ') FROM read_text('__TEST_DIR__/export_source/t.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":23,"function_name":"rtrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["rtrim"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":34,"literal":{"kind":"STRING","text":"__TEST_DIR__/export_source/t.csv"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM tbl1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT dedicated_schema_function_alias();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"dedicated_schema_function_alias","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["dedicated_schema_function_alias"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_extension_repositories() WHERE type='USER_PROVIDED'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_extension_repositories","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_extension_repositories"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":4,"column_names":["type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":15,"literal":{"kind":"STRING","text":"USER_PROVIDED"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 BETWEEN 0 AND 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":9,"query_location_length":15,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(DISTINCT s) FROM t WHERE id % 100 = 7","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH actual AS (\n SELECT true AS is_null, n FROM test_vector_types(NULL::INTEGER, all_flat=false) t(n) WHERE n IS NULL\n UNION ALL\n SELECT false AS is_null, n FROM test_vector_types(NULL::INTEGER, all_flat=false) t(n) WHERE n IS NOT NULL\n), expected AS (\n SELECT n IS NULL AS is_null, n FROM test_vector_types(NULL::INTEGER, all_flat=true) t(n)\n)\nSELECT count(*) FROM (\n (TABLE actual EXCEPT ALL TABLE expected)\n UNION ALL\n (TABLE expected EXCEPT ALL TABLE actual)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"actual","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"is_null","query_location":28,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":52,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":8,"column_names":["all_flat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["test_vector_types"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":114,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["n"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"is_null","query_location":147,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":172,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":196,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":8,"column_names":["all_flat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["test_vector_types"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":234,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":1,"column_names":["n"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}},{"key":"expected","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"is_null","query_location":276,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":274,"query_location_length":1,"column_names":["n"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":303,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":325,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":327,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":336,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":336,"query_location_length":8,"column_names":["all_flat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":345,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["test_vector_types"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":365,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":379,"query_location_length":107,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"actual","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["actual"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"expected","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expected"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"expected","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expected"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"actual","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["actual"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(x) FILTER (WHERE COLUMNS(*) IS NOT NULL)\nFROM (VALUES (1, 10, 100), (2, NULL, 200), (3, 30, NULL)) v(x, a, b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"sum","schema":"","filter":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":39,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":36,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":57,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE 2\u003e2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE 2 IN ((1+1)*2, 3, 4, 5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":34,"query_location_length":18,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE c1 ILIKE (CASE WHEN false THEN c1 END);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":35,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":39,"query_location_length":27,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["c1"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE a\u003e0 AND a=2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE a\u003c=2 AND a\u003c2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":29,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":38,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE a=4 AND a\u003c2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":37,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM strings WHERE s='hello' AND s\u003c\u003e'world'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":28,"query_location_length":24,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":42,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM strings WHERE s\u003c\u003e'world' AND s\u003e='hello'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":28,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":28,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":43,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM nested_structs WHERE s.a.c = true AND s.d.e = 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":14,"schema_name":"","table_name":"nested_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_structs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":35,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["s","a","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":5,"column_names":["s","d","e"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s FROM '{TEST_DIR}/throwing_filter_pushdown.parquet' WHERE s::INT = 10 LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":45,"schema_name":"","table_name":"{TEST_DIR}/throwing_filter_pushdown.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/throwing_filter_pushdown.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":11,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM vals1 WHERE i\u003c=0 AND j\u003c=i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":13,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":26,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":35,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM vals1 WHERE j\u003e=i AND i\u003e9","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":26,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":35,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM vals1 WHERE j\u003ei AND i\u003c1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":26,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":34,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0, c1\nFROM t1\nWHERE TRY(c1 - c0) IS NULL\nORDER BY c0 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":2,"column_names":["c0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["c1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":41,"query_location_length":7,"children":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":28,"query_location_length":12,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte as (\n\tselect {a: 21, b: [1,2,3]}::VARIANT a\n)\nselect IF(a == [1,2,3], 1, 0) from cte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":41,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":33,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":22,"function_name":"if","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["if"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i) FROM integers WHERE i=3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM (VALUES (1, '2'), (2, '2'), (3, '2'), (NULL, '2')) t(i,s)\nWHERE i \u003e= 1 AND s::INTEGER \u003e= i ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":50,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","s"]},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":78,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":78,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":89,"query_location_length":15,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP([MAP([ARRAY_VALUE('1', NULL), ARRAY_VALUE(NULL, '2')], [1, 2])], [1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":63,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":61,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":48,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":22,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_inner_product([1,2,3]::INT[3], ['a','b','c']::VARCHAR[3]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"array_inner_product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["array_inner_product"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_length(a, NULL) FROM null_arrays ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["array_length"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":11,"schema_name":"","table_name":"null_arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_position(array_value(1,2,3), 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":18,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_value(array_value(1, 2), array_value(3, 4, 3));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":17,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":20,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE F') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"literal":{"kind":"STRING","text":"CREATE F"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE SEQUENCE seq INC') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":25,"literal":{"kind":"STRING","text":"CREATE SEQUENCE seq INC"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('create table tbl(i INTEGER UNIQUE NO') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":38,"literal":{"kind":"STRING","text":"create table tbl(i INTEGER UNIQUE NO"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('CREATE TYPE my_type AS TIME WITH TI') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":37,"literal":{"kind":"STRING","text":"CREATE TYPE my_type AS TIME WITH TI"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT CAST(a AS INTE') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":23,"literal":{"kind":"STRING","text":"SELECT CAST(a AS INTE"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT col[1:2] FR') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":20,"literal":{"kind":"STRING","text":"SELECT col[1:2] FR"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('INSERT OR IG') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":14,"literal":{"kind":"STRING","text":"INSERT OR IG"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('WI') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":23,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"STRING","text":"WI"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl LIMIT 5 OF') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":30,"literal":{"kind":"STRING","text":"SELECT * FROM tbl LIMIT 5 OF"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl JOIN tbl2 US') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":32,"literal":{"kind":"STRING","text":"SELECT * FROM tbl JOIN tbl2 US"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT * FROM tbl QUALIFY row_number() OVER () ORD') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":71,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":52,"literal":{"kind":"STRING","text":"SELECT * FROM tbl QUALIFY row_number() OVER () ORD"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SET timez') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":11,"literal":{"kind":"STRING","text":"SET timez"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM sql_auto_complete('SHOW tab') WHERE suggestion = 'tables ';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":10,"literal":{"kind":"STRING","text":"SHOW tab"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":10,"column_names":["suggestion"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":9,"literal":{"kind":"STRING","text":"tables "}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('select ''$customer, $select'', $1') = $$SELECT '$customer, $select', $1$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":92,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":35,"literal":{"kind":"STRING","text":"select '$customer, $select', $1"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":35,"literal":{"kind":"STRING","text":"SELECT '$customer, $select', $1"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('INSERT INTO t (a, b) VALUES (1, 2)') = $$INSERT INTO t(a, b)\nVALUES (1, 2)$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":95,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":36,"literal":{"kind":"STRING","text":"INSERT INTO t (a, b) VALUES (1, 2)"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":37,"literal":{"kind":"STRING","text":"INSERT INTO t(a, b)\nVALUES (1, 2)"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('select 1', MAP {'bad_key': 'x'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":10,"literal":{"kind":"STRING","text":"select 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":20,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":9,"literal":{"kind":"STRING","text":"bad_key"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('CREATE TEMP VIEW v AS SELECT id FROM t') = $$CREATE TEMP VIEW v AS\nSELECT id\nFROM t$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":104,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":40,"literal":{"kind":"STRING","text":"CREATE TEMP VIEW v AS SELECT id FROM t"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":42,"literal":{"kind":"STRING","text":"CREATE TEMP VIEW v AS\nSELECT id\nFROM t"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('select ''🦆'', ''🏴‍☠️'' from t') = $$SELECT '🦆', '🏴‍☠️'\nFROM t$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":106,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":43,"literal":{"kind":"STRING","text":"select '🦆', '🏴‍☠️' from t"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":41,"literal":{"kind":"STRING","text":"SELECT '🦆', '🏴‍☠️'\nFROM t"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('SELECT a + b * c - d / e + f % g + h * (i + j) - k * l + m * n * o + p - q + r * s FROM t') = $$SELECT a + b * c - d / e + f % g + h *(i + j) - k * l + m * n * o + p - q + r * s\nFROM t$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":205,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":110,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":91,"literal":{"kind":"STRING","text":"SELECT a + b * c - d / e + f % g + h * (i + j) - k * l + m * n * o + p - q + r * s FROM t"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":92,"literal":{"kind":"STRING","text":"SELECT a + b * c - d / e + f % g + h *(i + j) - k * l + m * n * o + p - q + r * s\nFROM t"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('SELECT struct_pack(a := 1, b := ''hello'').a') = $$SELECT struct_pack(a := 1, b := 'hello').a$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":114,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":46,"literal":{"kind":"STRING","text":"SELECT struct_pack(a := 1, b := 'hello').a"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":46,"literal":{"kind":"STRING","text":"SELECT struct_pack(a := 1, b := 'hello').a"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('SELECT bt.k, (k = 3 AND k + 1 = 4) OR (k = 2 AND k + 1 = 3) FROM base_table bt(k)') = $$SELECT bt.k, (k = 3 AND k + 1 = 4) OR (k = 2 AND k + 1 = 3)\nFROM base_table bt(k)$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":190,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":102,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":83,"literal":{"kind":"STRING","text":"SELECT bt.k, (k = 3 AND k + 1 = 4) OR (k = 2 AND k + 1 = 3) FROM base_table bt(k)"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":85,"literal":{"kind":"STRING","text":"SELECT bt.k, (k = 3 AND k + 1 = 4) OR (k = 2 AND k + 1 = 3)\nFROM base_table bt(k)"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('CREATE OR REPLACE TABLE lineitem_sf100_random AS (SELECT * FROM lineitem ORDER BY hash(rowid + 42))') = $$CREATE OR REPLACE TABLE lineitem_sf100_random AS (\n SELECT *\n FROM lineitem\n ORDER BY hash(rowid + 42)\n )$$","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":256,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":120,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":101,"literal":{"kind":"STRING","text":"CREATE OR REPLACE TABLE lineitem_sf100_random AS (SELECT * FROM lineitem ORDER BY hash(rowid + 42))"}}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":133,"literal":{"kind":"STRING","text":"CREATE OR REPLACE TABLE lineitem_sf100_random AS (\n SELECT *\n FROM lineitem\n ORDER BY hash(rowid + 42)\n )"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duckdb_format_sql('CREATE TABLE \"foo(bar,baz\"(a INTEGER, b INTEGER)', MAP {'inline_threshold': '0'}) = 'CREATE TABLE \"foo(bar,baz\"(\n a INTEGER,\n b INTEGER\n)';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":163,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":100,"function_name":"duckdb_format_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":50,"literal":{"kind":"STRING","text":"CREATE TABLE \"foo(bar,baz\"(a INTEGER, b INTEGER)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":29,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":18,"literal":{"kind":"STRING","text":"inline_threshold"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["duckdb_format_sql"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":60,"literal":{"kind":"STRING","text":"CREATE TABLE \"foo(bar,baz\"(\n a INTEGER,\n b INTEGER\n)"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('FROM read_csv_a') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":17,"literal":{"kind":"STRING","text":"FROM read_csv_a"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT (SELECT SUM(l_orderkey) FROM lineit') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":44,"literal":{"kind":"STRING","text":"SELECT (SELECT SUM(l_orderkey) FROM lineit"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suggestion, suggestion_start FROM sql_auto_complete('SELECT row_number() OVER (RANG') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["suggestion"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":16,"column_names":["suggestion_start"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_auto_complete","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":32,"literal":{"kind":"STRING","text":"SELECT row_number() OVER (RANG"}}}],"qualified_name":{"path":["sql_auto_complete"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT base64(encode('ab'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"base64","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":12,"function_name":"encode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}}],"qualified_name":{"path":["encode"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["base64"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select from_base64('AAAA');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"from_base64","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"AAAA"}}}],"qualified_name":{"path":["from_base64"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l FROM int_list ORDER BY create_sort_key(l, 'DESC NULLS LAST')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":37,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":17,"literal":{"kind":"STRING","text":"DESC NULLS LAST"}}}],"qualified_name":{"path":["create_sort_key"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"int_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b FROM blobs ORDER BY create_sort_key(b, 'DESC NULLS FIRST')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":38,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":18,"literal":{"kind":"STRING","text":"DESC NULLS FIRST"}}}],"qualified_name":{"path":["create_sort_key"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM range(0, 81) l(len)\nWHERE octet_length(create_sort_key(repeat('\\x00\\x01'::BLOB, len), 'ASC NULLS LAST')) \u003c\u003e 4 * len + 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"l","sample":null,"query_location":21,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"81"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["len"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":93,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":78,"function_name":"octet_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":64,"function_name":"create_sort_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":29,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":10,"literal":{"kind":"STRING","text":"\\x00\\x01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":3,"column_names":["len"]}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":16,"literal":{"kind":"STRING","text":"ASC NULLS LAST"}}}],"qualified_name":{"path":["create_sort_key"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["octet_length"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":3,"column_names":["len"]}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT from_base64('A=8=');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"from_base64","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"A=8="}}}],"qualified_name":{"path":["from_base64"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select array_slice(blob '\\x00\\xF0\\x9F\\xA6\\x86\\x00', 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"\\x00\\xF0\\x9F\\xA6\\x86\\x00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[],"qualified_name":{"path":["blob"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_slice"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cell.col, cell.\"row\" FROM sheet WHERE cell \u003e {'col': 'A', 'row': 2} AND cell \u003c {'col': 'B', 'row': 1} ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["cell","col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":10,"column_names":["cell","row"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":5,"schema_name":"","table_name":"sheet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sheet"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":45,"query_location_length":63,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":4,"column_names":["cell"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col","query_location":60,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}},{"name":"row","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"row","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":79,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":4,"column_names":["cell"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col","query_location":94,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}},{"name":"row","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"row","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM many AS m, (VALUES ({'col': 'A', 'row': 100}, {'col': 'B', 'row': 200})) b(lo, hi)\nWHERE m.cell BETWEEN b.lo AND b.hi;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":87,"left":{"type":"BASE_TABLE","alias":"m","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"many","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["many"]}},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":32,"query_location_length":61,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}},{"name":"row","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"row","query_location":61,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"col","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col","query_location":75,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}},{"name":"row","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"row","query_location":87,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["lo","hi"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":117,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":6,"column_names":["m","cell"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":4,"column_names":["b","lo"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":4,"column_names":["b","hi"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT datediff('microsecond', DATE '2000-01-02', DATE '2000-01-01');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"datediff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["datediff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(epoch FROM d) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"epoch"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (t0.c0), DAYOFMONTH(t0.c0), DAYOFMONTH(t0.c0) IS NULL FROM t0 ORDER BY c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":2,"column_names":["c0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":5,"column_names":["t0","c0"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":17,"function_name":"dayofmonth","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["t0","c0"]}}],"qualified_name":{"path":["dayofmonth"]},"is_legacy_function_call":false},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":53,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":17,"function_name":"dayofmonth","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["t0","c0"]}}],"qualified_name":{"path":["dayofmonth"]},"is_legacy_function_call":false}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%Y|%G|%V') FROM (VALUES (DATE '12345-06-01'), (DATE '-0005-06-01'), (DATE '0000-01-01'), (DATE '-12345-06-01'), (DATE '2024-12-30'), (DATE '0001-01-01')) t(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y|%G|%V"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":36,"query_location_length":137,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"12345-06-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-0005-06-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"0000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-12345-06-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-12-30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":133,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":154,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"0001-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":154,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part('timezone_hour', d) FROM dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":15,"literal":{"kind":"STRING","text":"timezone_hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select timezone(interval '4 minute', '12:15:37.123456-08'::TIMETZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":10,"literal":{"kind":"STRING","text":"4 minute"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":20,"literal":{"kind":"STRING","text":"12:15:37.123456-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"qualified_name":{"path":["timezone"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d, epoch_ns(d) \nFROM dates \nWHERE d != '0044-03-15 (BC)' OR d IS NULL\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":11,"function_name":"epoch_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["epoch_ns"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":41,"query_location_length":35,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":41,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":17,"literal":{"kind":"STRING","text":"0044-03-15 (BC)"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":69,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["d"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_PART(['hour', 'minute'], '2023-09-17'::DATE) AS parts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":7,"query_location_length":49,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"literal":{"kind":"STRING","text":"2023-09-17"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc(s, CAST(d as DATE)) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('day', TIMESTAMP '2019-01-06 04:03:02') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-01-06 04:03:02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte AS (\n SELECT NULL::VARCHAR part\n FROM range(1)\n)\nSELECT date_trunc(part, TIMESTAMP '2019-01-06 04:03:02')\nFROM cte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"part","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":49,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-01-06 04:03:02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(century FROM i) FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"CENTURY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(microsecond FROM i) FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":11,"literal":{"kind":"STRING","text":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(dow FROM cast('1970-01-01' AS DATE) - 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"dow"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":12,"literal":{"kind":"STRING","text":"1970-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(week FROM cast('2008-01-01' AS DATE));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2008-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 63);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"63"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 147);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"147"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(week FROM cast('2007-01-01' AS DATE) + 231);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"2007-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"231"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime('%Y', DATE '1992-01-01');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"%Y"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(DATE '1992-01-01', 'hello world');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%u') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%u"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%G') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%G"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%Z') FROM dates ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%Z"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(date '99999-01-01', '%Y')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"99999-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"STRING","text":"%Y"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select d, time_bucket(null::interval, d, '6 days'::interval) from dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":50,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":8,"literal":{"kind":"STRING","text":"6 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('-3 hours'::interval, '2019-04-05'::date, '1 hour 30 minutes'::interval);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-3 hours"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":12,"literal":{"kind":"STRING","text":"2019-04-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":19,"literal":{"kind":"STRING","text":"1 hour 30 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('3 days'::interval, '2019-05-05'::date, '-2000000000 months'::interval);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":83,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"literal":{"kind":"STRING","text":"3 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":12,"literal":{"kind":"STRING","text":"2019-05-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":20,"literal":{"kind":"STRING","text":"-2000000000 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('1 week'::interval, '294247-01-11'::date);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"literal":{"kind":"STRING","text":"1 week"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte AS (\n SELECT NULL::INTERVAL i,\n NULL::DATE d,\n NULL::TIMESTAMP t\n FROM range(1)\n)\nSELECT time_bucket(i, d)\nFROM cte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"d","query_location":58,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":83,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":106,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":17,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM wt WHERE yearweek(d::TIMESTAMP) = -9910;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"wt","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wt"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":30,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":22,"function_name":"yearweek","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["yearweek"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"INTEGER","text":"-9910"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT enum_last(null::rainbow)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"enum_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[],"qualified_name":{"path":["rainbow"]}}}}],"qualified_name":{"path":["enum_last"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT enum_range_boundary(NULL, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"enum_range_boundary","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["enum_range_boundary"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT assert_true(i \u003c 10) FROM range(3) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"assert_true","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":19,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}}],"qualified_name":{"path":["assert_true"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":32,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('case_fill_seq');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":15,"literal":{"kind":"STRING","text":"case_fill_seq"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast_to_type('a' COLLATE nocase, NULL::VARCHAR COLLATE \"binary\") = 'A'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":70,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"cast_to_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":20,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"nocase"}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":40,"query_location_length":30,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"binary"}}],"qualified_name":{"path":["cast_to_type"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT constant_or_null(1, case when i%2=0 then null else i end) from range(5) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"constant_or_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":27,"query_location_length":36,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}}],"qualified_name":{"path":["constant_or_null"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":70,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(repeat(NULL::VARCHAR || 'z', 2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":31,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":20,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT hash(1::TINYINT::VARIANT, 'x') = hash(1::BIGINT::VARIANT, 'x'), hash(0, 'x', 1::TINYINT::VARIANT) = hash(0, 'x', 1::BIGINT::VARIANT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":62,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":29,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":68,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":33,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":32,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (VALUES ('0101'::BIT, '0101'::BIT), ('0101'::BIT, '0110'::BIT)) t(a, b) WHERE (a = b) IS DISTINCT FROM (hash(a) = hash(b))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"0101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":6,"literal":{"kind":"STRING","text":"0101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":6,"literal":{"kind":"STRING","text":"0101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":6,"literal":{"kind":"STRING","text":"0110"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":99,"query_location_length":44,"left":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["b"]}},"right":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":125,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":7,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":7,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r, HASH() FROM enums;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":5,"schema_name":"","table_name":"enums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["enums"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select invoke(lambda x, y, z: x + y + z, 1, 2, 3) as result","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"result","query_location":7,"query_location_length":42,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":14,"query_location_length":25,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["z"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["z"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["invoke"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select invoke(lambda x: x IS NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":14,"query_location_length":19,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":26,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["invoke"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT invoke(lambda x: x::INTEGER, 'abc');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"invoke","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":14,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}}],"qualified_name":{"path":["invoke"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT get_type(struct_pack(s := lower(NULL::VARCHAR COLLATE NOCASE)))=\n get_type(struct_pack(s := NULL::VARCHAR COLLATE NOCASE));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":128,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"get_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":53,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"s","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":35,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":28,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"NOCASE"}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["get_type"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":56,"function_name":"get_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":46,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"s","expression":{"class":"COLLATE","type":"COLLATE","alias":"s","query_location":105,"query_location_length":28,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"NOCASE"}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["get_type"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(NULL::BLOB || 'z'), typeof('z'::BLOB || 'z')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":17,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":24,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof((CASE WHEN 1=1 THEN NULL::INT[] END) || [1]), typeof(list_extract((CASE WHEN 1=1 THEN NULL::DATE[] END), 1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":43,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":15,"query_location_length":34,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":62,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":54,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":81,"query_location_length":35,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}],"qualified_name":{"path":["list"]}}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(NULL || 'z'), typeof([1] || NULL), typeof(NULL || NULL), typeof(list_extract(NULL, 1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":11,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":19,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":11,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":20,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":12,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":29,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":21,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT replace_type((42, 'duck', true), NULL::INTEGER, NULL::BIGINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"replace_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":18,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["replace_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT sec.s FROM secrets sec JOIN allowed a ON (sec.id = a.id) WHERE sec.s::INT = 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["sec","s"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"sec","sample":null,"query_location":18,"query_location_length":11,"schema_name":"","table_name":"secrets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["secrets"]}},"right":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":35,"query_location_length":9,"schema_name":"","table_name":"allowed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["allowed"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":6,"column_names":["sec","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["a","id"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":15,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["sec","s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT NULL BETWEEN 10 AND 20","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":12,"query_location_length":17,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM integers WHERE 9 BETWEEN 10 AND NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":19,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM integers WHERE i BETWEEN NULL AND NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM range(4) tbl(i) WHERE i \u003e 1 AND i \u003c= 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":16,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":46,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM integers WHERE 9 BETWEEN 10 AND NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":19,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM integers WHERE i BETWEEN NULL AND NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":38,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM range(4) tbl(i) WHERE i \u003e 1 AND i \u003c= 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":16,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":46,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"select false is not true","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":13,"query_location_length":11,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count FROM duckdb_connection_count();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_connection_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_connection_count"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count FROM duckdb_connection_count();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_connection_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_connection_count"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT i, i IN (1, 2, 3, 4, 5, 6, 7, 8) FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":15,"query_location_length":24,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (SELECT MAX(i) FROM integers WHERE i \u003c\u003e i1.i), (SELECT MIN(i) FROM integers WHERE i \u003c= i1.i) FROM integers i1 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":45,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":92,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":108,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LEAST(1, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["least"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT GREATEST(DATE '1992-01-01', DATE '1994-02-02', DATE '1991-01-01', DATE 'infinity', DATE '-infinity')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":100,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1994-02-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1991-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["greatest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LEAST(REPEAT(i::VARCHAR, 20), j::VARCHAR) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":22,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["repeat"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["j"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["least"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT round(99999999999999999999999999999999999999::DECIMAL(38,0), -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":38,"literal":{"kind":"INTEGER","text":"99999999999999999999999999999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CURRENT_SETTING(i::VARCHAR) FROM range(1) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":40,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, sleep_ms(1) FROM test_sleep_table WHERE id \u003c 3 ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":11,"function_name":"sleep_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sleep_ms"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":16,"schema_name":"","table_name":"test_sleep_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_sleep_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":51,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1, pg_sleep(0.001), 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":15,"function_name":"pg_sleep","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"0.001"}}}],"qualified_name":{"path":["pg_sleep"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i - 5) s FROM integers LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":13,"column_names":["s","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":60,"query_location_length":12,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_key({'catalog': NULL::VARCHAR, 'table': 'tbl1'}, 'PRIMARY_tbl1_0', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":75,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":43,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"catalog","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"catalog","query_location":33,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":53,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl1"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":16,"literal":{"kind":"STRING","text":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_key({'schema': 'main', 'table': 'tbl3'}, 'tbl3_idx', key1, key2, key3)\nFROM tbl3\nWHERE key1 BETWEEN 1 AND 4\nORDER BY key1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":4,"column_names":["key1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":35,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":45,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl3"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":10,"literal":{"kind":"STRING","text":"tbl3_idx"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["key1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["key2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["key3"]}}],"qualified_name":{"path":["index_key"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":4,"schema_name":"","table_name":"tbl3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl3"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":105,"query_location_length":15,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":4,"column_names":["key1"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_key({'table': ''}, 'PRIMARY_tbl1_0', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":16,"literal":{"kind":"STRING","text":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_key({'table': 'tbl2'}, 'FOREIGN_tbl2_2', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl2"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":16,"literal":{"kind":"STRING","text":"FOREIGN_tbl2_2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM equal_milliseconds WHERE epoch_ms(i) = 86400000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":18,"schema_name":"","table_name":"equal_milliseconds","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["equal_milliseconds"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":11,"function_name":"epoch_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["epoch_ms"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"literal":{"kind":"INTEGER","text":"86400000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT dayofyear(i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"dayofyear","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["dayofyear"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, DATE_PART(['hour', 'minute', 'second', 'epoch'], i) AS parts\nFROM intervals\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":10,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(quarter FROM i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(year FROM interval '14 months ago')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"YEAR"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":15,"literal":{"kind":"STRING","text":"14 months ago"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT span * 8.2 AS product\nFROM INTERVAL_MULDIV_TBL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"product","query_location":7,"query_location_length":10,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["span"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"8.2"}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":19,"schema_name":"","table_name":"INTERVAL_MULDIV_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["INTERVAL_MULDIV_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_TRUNC('hour', i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_approx_count_distinct([10]), list_approx_count_distinct(['hello']) from list_ints;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_approx_count_distinct"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":37,"function_name":"list_approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_approx_count_distinct"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":9,"schema_name":"","table_name":"list_ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_avg(i), list_avg(j) FROM vals;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list_avg"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":11,"function_name":"list_avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["list_avg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"vals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_bit_or([]) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_bit_or"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_count([1]) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_first(d), list_first(dt), list_first(t), list_first(s) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["list_first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":14,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["list_first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["list_first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list_first"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_histogram(['2021-08-20'::TIMESTAMP_NS])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-08-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_histogram"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggr('{func_name}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":13,"literal":{"kind":"STRING","text":"{func_name}"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggr([1, 2, NULL], 'regr_r2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"regr_r2"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggr([1, 2, NULL], 'argmax');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"STRING","text":"argmax"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_last(d), list_last(dt), list_last(t), list_last(s) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["list_last"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["list_last"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["list_last"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list_last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_mad(x) from (values (['23:59:59.999999'::time, '00:00:00'::time])) tbl(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list_mad"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":24,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":17,"literal":{"kind":"STRING","text":"23:59:59.999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_median(r) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"list_median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["list_median"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(s), MAX(s) FROM multi_member_struct;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":19,"schema_name":"","table_name":"multi_member_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["multi_member_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_mode(v) from dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"list_mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list_mode"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggregate([1, 2], 'min')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list_aggregate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"min"}}}],"qualified_name":{"path":["list_aggregate"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_sem(l) from sems;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_sem","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["list_sem"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":4,"schema_name":"","table_name":"sems","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sems"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_string_agg(['a'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_string_agg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggr(n, 'sumKahan') FROM doubles;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"sumKahan"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_var_samp([1])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list_var_samp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_var_samp"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_aggr([0, 0], 'stddev')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":8,"literal":{"kind":"STRING","text":"stddev"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT len([1]) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["len"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_to_string_comma_default([1,2,3], sep:='-')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"array_to_string_comma_default","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"sep","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"sep","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["array_to_string_comma_default"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cardinality(MAP {'a': 1, 'b': 2})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"cardinality","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":20,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["cardinality"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT flatten([NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"flatten","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["flatten"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, flatten([[1, 2], [3, 4]]) FROM nested_lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":25,"function_name":"flatten","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["flatten"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":12,"schema_name":"","table_name":"nested_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT range(0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["range"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT range(i, 5) FROM range(5) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":24,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT range(50, 1, -20)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-20"}}}],"qualified_name":{"path":["range"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT range(timestamp '2020-01-01', timestamp '2020-01-01', interval '1' day);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["range"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT generate_subscripts([4,5,6], 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"generate_subscripts","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_subscripts"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT generate_series(start, stop, step) FROM (VALUES\n\t(timestamptz '2020-01-01', timestamptz '2020-07-01', interval '3' month),\n\t(timestamptz '2020-12-04', timestamptz '2020-09-01', interval '-1 month -1 day'),\n\t(timestamptz '2020-03-08', timestamptz '2020-03-09', interval '6' hour),\n\t(timestamptz '2020-11-02', timestamptz '2020-11-01', interval '-43200' second),\n) AS _(start, stop, step);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["start"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":4,"column_names":["stop"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["step"]}}],"qualified_name":{"path":["generate_series"]}}],"from_table":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":47,"query_location_length":322,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-07-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-12-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":158,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-09-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":158,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":184,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":17,"literal":{"kind":"STRING","text":"-1 month -1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":215,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-03-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":241,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-03-09"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":241,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":267,"query_location_length":17,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":289,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-11-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":289,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":315,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-11-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":315,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":341,"query_location_length":24,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":350,"query_location_length":8,"literal":{"kind":"STRING","text":"-43200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["start","stop","step"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(['hello', 'duck', 'sunshine'], str -\u003e CASE WHEN str LIKE '%e%' THEN 'e' ELSE 'other' END)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":104,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"literal":{"kind":"STRING","text":"sunshine"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":53,"query_location_length":57,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["str"]},"expr":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":60,"query_location_length":50,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":5,"literal":{"kind":"STRING","text":"%e%"}}}],"qualified_name":{"path":["~~"]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([2], x -\u003e (SELECT 1 - x) * x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":23,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":18,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":32,"query_location_length":14,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["*"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_filter([1, NULL, -2, NULL], x -\u003e x % 2 != 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":45,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n FROM corr_test WHERE list_count(list_filter(l, elem -\u003e length(elem) \u003e= n)) \u003e= n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"corr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["corr_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":30,"query_location_length":58,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":53,"function_name":"list_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":41,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":56,"query_location_length":25,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":4,"column_names":["elem"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":64,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":12,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":4,"column_names":["elem"]}}],"qualified_name":{"path":["length"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["n"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]}}}],"qualified_name":{"path":["list_count"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["n"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([[1], [2], [3]], x -\u003e x[1]) FROM t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":39,"query_location_length":9,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":45,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_has_any(LIST_VALUE(list_has_any([1], [1])), [1])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":34,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_has_any"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_has_any"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM demo(3, 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"demo","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["demo"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT scoping_macro([11, 22], 3, 4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"scoping_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"22"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["scoping_macro"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with base as (\n\tselect [4,5,6] as l\n)\nselect [x for x,i in l if i != 2] as filtered from base;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"base","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":23,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"filtered","query_location":45,"query_location_length":26,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filter","expression":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":64,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"filter"}}}],"qualified_name":{"path":["struct_extract"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"result"}}}],"qualified_name":{"path":["struct_extract"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":4,"schema_name":"","table_name":"base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(['Once', 'upon', 'a', 'time'], (x, y) -\u003e x || ' ' || y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":6,"literal":{"kind":"STRING","text":"Once"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"upon"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":6,"literal":{"kind":"STRING","text":"time"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":50,"query_location_length":23,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":13,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], (x, y, x_i) -\u003e list_reduce([4, 5, 6], (a, b, a_i) -\u003e x + y + a + b + x_i + a_i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":103,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":79,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":64,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":68,"query_location_length":40,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["a_i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["a_i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], (x, y) -\u003e list_reduce([4, 5, 6], (a, b) -\u003e list_reduce([7, 8, 9], (c, d) -\u003e x + y + a + b + c + d)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":123,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":99,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":89,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":63,"query_location_length":65,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":55,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":96,"query_location_length":31,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], (x, y) -\u003e y - x, -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(l, (x, y) -\u003e x + y, initial) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":7,"column_names":["initial"]}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(['a', 'b'], (x, y) -\u003e list_reduce(['1', '2'], (a, b) -\u003e x || y || a || b, 'B'), 'A');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":96,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":31,"query_location_length":66,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":56,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":65,"query_location_length":26,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["list_reduce"]}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \nlist_reduce(\n [struct_pack(a:=0, b:=0), struct_pack(a:=0, b:=1), struct_pack(a:=0, b:=2)],\n (curr, next) -\u003e struct_pack(a:=curr.a + (next.b - curr.b), b:=next.b),\n struct_pack(a:=-2, b:=-3)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":200,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":75,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":106,"query_location_length":69,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":4,"column_names":["curr"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":4,"column_names":["next"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":53,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":144,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":6,"column_names":["curr","a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":154,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":6,"column_names":["next","b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":6,"column_names":["curr","b"]}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":168,"query_location_length":6,"column_names":["next","b"]}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":181,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":196,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":203,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select l, [[{'x+y': x + y, 'x': x, 'y': y, 'l': l} for y in [42, 43]] for x in l] from no_overwrite;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":71,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":58,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x+y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"x+y","query_location":22,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":32,"query_location_length":1,"column_names":["x"]}},{"name":"y","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"y","query_location":40,"query_location_length":1,"column_names":["y"]}},{"name":"l","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"l","query_location":48,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":12,"schema_name":"","table_name":"no_overwrite","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["no_overwrite"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name, prices AS cheap_options FROM cities;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"cheap_options","query_location":13,"query_location_length":6,"column_names":["prices"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":6,"schema_name":"","table_name":"cities","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cities"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(l, x -\u003e x \u003c 2) FROM lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":30,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_apply([1, NULL], arr_elem -\u003e arr_elem - 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"array_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":24,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":8,"column_names":["arr_elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":8,"column_names":["arr_elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["-"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["array_apply"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT list_transform(l, elem -\u003e elem + 1)) FROM corr_test ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":44,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":35,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":9,"schema_name":"","table_name":"corr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["corr_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1, 2, 3], x -\u003e list_transform([4, 5, 6], y -\u003e list_transform([7, 8, 9], (z, i) -\u003e x + y + z + i)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":114,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":87,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":82,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":64,"query_location_length":55,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":50,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":95,"query_location_length":23,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["z"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["z"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1, 2, 3], (x, x_i) -\u003e list_transform([4, 5, 6], (y, y_i) -\u003e x + y + x_i + y_i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":68,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":56,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":71,"query_location_length":29,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["y_i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["y_i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_filter(['hello', 'duck', 'sunshine'], lambda str: (CASE WHEN str LIKE '%e%' THEN 'e' ELSE 'other' END) LIKE 'e')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":117,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":10,"literal":{"kind":"STRING","text":"sunshine"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":50,"query_location_length":73,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["str"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":8,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":63,"query_location_length":50,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"literal":{"kind":"STRING","text":"%e%"}}}],"qualified_name":{"path":["~~"]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}}],"qualified_name":{"path":["~~"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_filter([2], lambda x: (SELECT 1 - x) * x \u003e 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":24,"query_location_length":32,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":18,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":14,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["*"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_filter([5, NULL, 7, NULL], lambda x: x IS NOT NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":39,"query_location_length":23,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":51,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["x"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT list_filter(l, lambda elem: length(elem) \u003e= 1)) FROM corr_test ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":46,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":30,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":43,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":12,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["elem"]}}],"qualified_name":{"path":["length"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":9,"schema_name":"","table_name":"corr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["corr_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_apply(i, y + 1 -\u003e x + 1) from (values (list_value(1, 2, 3))) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":21,"query_location_length":14,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_apply"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":42,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1], lambda x: lambda y: x + y) FROM dummy_tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":25,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":37,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":9,"schema_name":"","table_name":"dummy_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(qualified_tbl.x, lambda x: (qualified_tbl.x)[1] + 1 + x) FROM qualified_tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":15,"column_names":["qualified_tbl","x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":39,"query_location_length":38,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":66,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":15,"column_names":["qualified_tbl","x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":13,"schema_name":"","table_name":"qualified_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["qualified_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(list_filter([0, 1, 2, 3, 4, 5], lambda x: x % 2 = 0), lambda y: y * y)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":85,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":52,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":54,"query_location_length":19,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":76,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["*"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], lambda x, y: x * y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["*"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(a, lambda x, y: x + y) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([['a', 'b'], ['c', 'd'], ['e', 'f']], lambda x, y: list_pack(list_reduce(x, lambda a, b: a || b) || list_reduce(y, lambda c, d: c || d)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":149,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"f"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":57,"query_location_length":98,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":85,"function_name":"list_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":74,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":35,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":95,"query_location_length":19,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":35,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":134,"query_location_length":19,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":147,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["list_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(s, lambda a, b: row(a.v || b.v, a.i + b.i)) FROM t_struct;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":39,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":26,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":10,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["a","v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["b","v"]}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["a","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["b","i"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["row"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":8,"schema_name":"","table_name":"t_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(l, lambda acc, x: acc + x + v + initial, 0),\n list_reduce(l, lambda acc, x, i: acc + x + v + i, 0)\nFROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":36,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["initial"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_reduce"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":52,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":86,"query_location_length":33,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], lambda x, y: x + y, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce(l, lambda x, y, i: x + y + i, initial) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":25,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":7,"column_names":["initial"]}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([['a', 'b'], ['c', 'd'], ['e', 'f']], lambda x, y: list_pack(list_reduce(x, lambda a, b: a || b) || list_reduce(y, lambda c, d: c || d)), ['-\u003e']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":157,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"f"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":57,"query_location_length":98,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":85,"function_name":"list_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":74,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":35,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":95,"query_location_length":19,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":35,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":134,"query_location_length":19,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":147,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["||"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["list_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":4,"literal":{"kind":"STRING","text":"-\u003e"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \nlist_reduce(\n [struct_pack(a := 0, b := 0), struct_pack(a := 0, b := 1), struct_pack(a := 0, b := 2)],\n lambda curr, next: struct_pack(a := curr.a + (next.b - curr.b), b := next.b), struct_pack(a := -2, b := -3)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":219,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":87,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":118,"query_location_length":76,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["curr"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["next"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":57,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":161,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":6,"column_names":["curr","a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":6,"column_names":["next","b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":6,"column_names":["curr","b"]}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":187,"query_location_length":6,"column_names":["next","b"]}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":196,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":213,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":222,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reduce([1, 2, 3], lambda acc, x: acc + x, NULL::DOUBLE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":22,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["list_reduce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1,2], lambda x: list_transform([3,4], lambda y: x + y));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":29,"query_location_length":48,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":38,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":61,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM read_parquet('{TEST_DIR}/my_file_' ||\nlist_aggr(list_transform(list_filter(['s', 'c', 'b', NULL, 'a'], lambda x: x IS NOT NULL AND x != 's'),\nlambda s: lower(s)), 'string_agg', '') || '.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":195,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":181,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEST_DIR}/my_file_"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":142,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":113,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":77,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":26,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":124,"query_location_length":36,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":134,"query_location_length":26,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":136,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["x"]}]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":152,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":163,"query_location_length":18,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["lower"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":12,"literal":{"kind":"STRING","text":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["list_aggr"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":10,"literal":{"kind":"STRING","text":".parquet"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1, 2, 3], lambda x: x + 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([[1], [2], [3]], lambda x : list_concat(\n\tlist_transform(x, lambda y: y + 1),\n\tlist_transform(x, lambda z: z - 1)))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":130,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":39,"query_location_length":97,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":86,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":34,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":82,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":34,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":119,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["z"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["z"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}}],"qualified_name":{"path":["list_concat"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([{'b' : {'a': [{'c': 77}], 'b': 43}}], lambda x: x.b.a[1].c);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":75,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":35,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":30,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":36,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"77"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":61,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":71,"query_location_length":10,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":76,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["x","b","a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":2,"literal":{"kind":"STRING","text":"c"}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform([1, 2, 3], lambda x: list_transform([4, 5, 6], lambda y, y_i: x + y + y_i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":90,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":63,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":53,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":69,"query_location_length":26,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y_i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":3,"column_names":["y_i"]}}],"qualified_name":{"path":["+"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(a, lambda x, i: (c / b ) * (x + i)) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":31,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":18,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":5,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["/"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["*"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_concat(NULL, [3, 4])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1, 2] || [3, 4]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_concat([{a: 1}, {a: 2}], [{a: 3}, {a: 4}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":6,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_prepend(1, [2, 3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"array_prepend","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["array_prepend"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, list_contains(i,'a') from STR_TEST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":20,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"STR_TEST","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["STR_TEST"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains(NULL,NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([NULL],NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([[1,2,3],[1]],[1,2,3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([MAP([1], [2])], MAP([1], [3]))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["list_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_cosine_similarity([], []);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_cosine_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_cosine_similarity"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_distinct()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_distinct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_distinct([NULL::VARCHAR])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_distinct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name FROM wheretest WHERE name ILIKE 'one%' AND list_unique(list_distinct(l)) \u003e 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":9,"schema_name":"","table_name":"wheretest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wheretest"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":55,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"one%"}}}],"qualified_name":{"path":["~~*"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":29,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":16,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["list_distinct"]}}}],"qualified_name":{"path":["list_unique"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_has_all([1,2,3], [2,3,4]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_has_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_has_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_has_any([[1,2], [2,4]], ['abc', 'def']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"def"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_has_any"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select l1 @\u003e NULL from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"@\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["l1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["@\u003e"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_sort(list_intersect([10, 20, 30, 40, 50], [20, 40]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":46,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_intersect"]}}}],"qualified_name":{"path":["list_sort"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_sort(list_intersect([1::INT, 2::INT, 3::INT], [2.0::DOUBLE, 3.0::DOUBLE, 4.0::DOUBLE]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":92,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":81,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":24,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":39,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_intersect"]}}}],"qualified_name":{"path":["list_sort"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_position([7,2,5], 7)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_position([1,2,3,4],5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_position([NULL, 0],1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_position([[NULL],[1], [1,2,3]],[NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_position([[1,2,3],NULL],NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM no_null_elements WHERE list_position(a, NULL) IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"no_null_elements","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["no_null_elements"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":67,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":22,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_position"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_resize([1,2,3], NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_resize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_resize(list_filter([1, 2, 3, 4, 5, 6], lambda x: x \u003e 1), 4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":48,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":51,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":61,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_resize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST_RESIZE([1, 2, 3], 9999999999999999999);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9999999999999999999"}}}],"qualified_name":{"path":["list_resize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reverse(list_reverse([1, 3, 3, 42, 117, 69, NULL]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":42,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"literal":{"kind":"INTEGER","text":"117"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"69"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_reverse"]}}}],"qualified_name":{"path":["list_reverse"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reverse(42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_reverse"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([[1], [1, 2], NULL, [NULL], [], [1, 2, 3]]).list_reverse()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":14,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":42,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_reverse"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_sort([INTERVAL '25 hours', INTERVAL '1 day 1 hour', INTERVAL '1500 minutes'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":71,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":10,"literal":{"kind":"STRING","text":"25 hours"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":14,"literal":{"kind":"STRING","text":"1 day 1 hour"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":14,"literal":{"kind":"STRING","text":"1500 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_sort"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_sort([3, 1, 2]), list_grade_up([3, 1, 2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_sort"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":24,"function_name":"list_grade_up","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_grade_up"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_unique([1, 1, -5, 10, 10, 2])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_unique"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_unique(['2021-08-20 00:00:00.123456'::TIMESTAMP_NS])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":44,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":28,"literal":{"kind":"STRING","text":"2021-08-20 00:00:00.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_unique"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_value([1.5, 2.5]::DOUBLE[2], [3, 4]::INTEGER[2], [5, 6]::INTEGER[2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.5"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_value([1, 2]::INTEGER[2], [3, 4, 5]::INTEGER[3], [6]::INTEGER[1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":70,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST_VALUE(['a', 'a'], ['b', 'b', 'b'], ['c'], NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_value({'a': 1, 'b': 'a'}, {'a': 2, 'b': 'b'}, {'a': NULL, 'b': 'c'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":64,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":75,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_where([true, false, NULL, true, true, NULL], [true, false, true, true, true, true])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"list_where","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_where"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_where([INTERVAL 1 YEAR], [true])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"list_where","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":15,"function_name":"to_years","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_years"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_where"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_zip([1,2,3], [1,2,3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_zip"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_zip(a.i, b.i, b.i) FROM integers AS a, integers AS b order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["a","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["b","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["b","i"]}}],"qualified_name":{"path":["list_zip"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":36,"query_location_length":13,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":51,"query_location_length":13,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_zip(['2021-08-20'::DATE])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-08-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_zip"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_zip(e) FROM enums","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["list_zip"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":5,"schema_name":"","table_name":"enums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["enums"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT repeat([1], 10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["repeat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT repeat([1, 2, 3], 6148914691236517206);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":19,"literal":{"kind":"INTEGER","text":"6148914691236517206"}}}],"qualified_name":{"path":["repeat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (ROW(42, 84))[9223372036854775807]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":20,"query_location_length":21,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["row"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_update ({a: 1, b: 2}, c := 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_update","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":12,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_update"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_update(col, i:=col.i+1) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"struct_update","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["col"]}},{"name":"i","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":34,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["col","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["struct_update"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 10.0 % 2.4, -10.0 % 2.4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.4"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":11,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"-10.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.4"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT binom(5, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"binom","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["binom"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT binom(6, -3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"binom","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}}}],"qualified_name":{"path":["binom"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT factorial(0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"factorial","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["factorial"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT fdiv(42, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"fdiv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["fdiv"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(CEIL(n::float) as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":14,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["ceil"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT gamma(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"gamma","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["gamma"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lgamma(2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"lgamma","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["lgamma"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lcm(42, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"lcm","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["lcm"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sqrt(-1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"sqrt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["sqrt"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select nextafter('bla','bla')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"nextafter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}}],"qualified_name":{"path":["nextafter"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select nextafter(a, b) from test_twoc","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"nextafter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["nextafter"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":9,"schema_name":"","table_name":"test_twoc","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_twoc"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select sqrt(2.0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"sqrt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["sqrt"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select log(1, 64)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}],"qualified_name":{"path":["log"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select pow(b, a) from powerme","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"pow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["pow"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"powerme","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["powerme"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select setseed(a), a from seeds;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"setseed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["setseed"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":5,"schema_name":"","table_name":"seeds","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["seeds"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select round(b, 1) from roundme","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":7,"schema_name":"","table_name":"roundme","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["roundme"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT roundBankers(45, -1), roundBankers(35, -1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"45"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["roundbankers"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":20,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"35"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["roundbankers"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT round_even(1.125, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"round_even","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1.125"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["round_even"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT round(32767::SMALLINT, -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":5,"literal":{"kind":"INTEGER","text":"32767"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(SIN(n::tinyint)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":15,"function_name":"sin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[],"qualified_name":{"path":["tinyint"]}}}}],"qualified_name":{"path":["sin"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(TAN(n::tinyint)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":15,"function_name":"tan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[],"qualified_name":{"path":["tinyint"]}}}}],"qualified_name":{"path":["tan"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(ASIN(n::tinyint)*1000 as bigint) FROM numbers WHERE n between -1 and 1 ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":37,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":21,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":16,"function_name":"asin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[],"qualified_name":{"path":["tinyint"]}}}}],"qualified_name":{"path":["asin"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":67,"query_location_length":16,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["n"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(ASIN(n)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":12,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":7,"function_name":"asin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["asin"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(ATAN2(n::double, 42)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":25,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"atan2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["atan2"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cosh(-1), cosh(0), cosh(1), cosh(1000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"cosh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["cosh"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"cosh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["cosh"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":7,"function_name":"cosh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["cosh"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":10,"function_name":"cosh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["cosh"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::SMALLINT + 1::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::BIGINT + 1::SMALLINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::REAL + 1::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -+-+-+-+-i FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 2*i=6, 6=2*i FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["*"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":14,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["*"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 \u003c\u003c 2, NULL \u003c\u003c 2, 2 \u003c\u003c NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":9,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":9,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["\u003c\u003c"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::UTINYINT \u003c\u003c 7, 1::USMALLINT \u003c\u003c 15, 1::UINT32 \u003c\u003c 31, 1::UBIGINT \u003c\u003c 63","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":18,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":15,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT32","children":[],"qualified_name":{"path":["UINT32"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"literal":{"kind":"INTEGER","text":"31"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":16,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"literal":{"kind":"INTEGER","text":"63"}}}],"qualified_name":{"path":["\u003c\u003c"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '1000' \u003e 20","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":11,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"1000"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT true OR true","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i\u003e3 AND false FROM a ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":7,"query_location_length":13,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT d, ttz, ttz + d\nFROM dates, timetzs\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":3,"column_names":["ttz"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["ttz"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 7 // 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["//"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT format_bytes(1023);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"format_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1023"}}}],"qualified_name":{"path":["format_bytes"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT format_bytes(9223372036854775807);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"format_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}}],"qualified_name":{"path":["format_bytes"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT format('{:.3f}', 1.5), printf('%.2f', 2.25), length(format('{:.{}f}', 1.5, 1000000))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"{:.3f}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["format"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":20,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":6,"literal":{"kind":"STRING","text":"%.2f"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"2.25"}}}],"qualified_name":{"path":["printf"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":39,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":31,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":9,"literal":{"kind":"STRING","text":"{:.{}f}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["format"]}}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_binary(columns('^(.*int|varchar|bignum)$')) FROM test_all_types();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"to_binary","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":17,"query_location_length":35,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":26,"literal":{"kind":"STRING","text":"^(.*int|varchar|bignum)$"}},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["to_binary"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t0 WHERE t0.c0 LIKE '_';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":8,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["t0","c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"_"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select md5_number_lower('hello'), md5_number_lower(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"md5_number_lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["md5_number_lower"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":22,"function_name":"md5_number_lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["md5_number_lower"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'a': v} FROM null_byte","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":13,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"null_byte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_byte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT OVERLAY('abcdef', 'XX', 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"overlay","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":8,"literal":{"kind":"STRING","text":"abcdef"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"STRING","text":"XX"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["overlay"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT overlay('33333rce' placing 'resou' from 1 FOR -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"overlay","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":10,"literal":{"kind":"STRING","text":"33333rce"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":7,"literal":{"kind":"STRING","text":"resou"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["overlay"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT overlay('abc' placing 'XY' from 5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"overlay","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"XY"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["overlay"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_formatted_bytes('2 MB');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"2 MB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_formatted_bytes('null');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["parse_formatted_bytes"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try(parse_formatted_bytes('-5 MB'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":35,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":30,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"-5 MB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_formatted_bytes('18446744073709 KB');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":19,"literal":{"kind":"STRING","text":"18446744073709 KB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_path(NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["parse_path"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_dirname('\\', 'backslash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"parse_dirname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"backslash"}}}],"qualified_name":{"path":["parse_dirname"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_dirname();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"parse_dirname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["parse_dirname"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_dirpath('path/to/file.csv', NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":18,"literal":{"kind":"STRING","text":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["parse_dirpath"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_filename('path/to/file.csv\\file2', true, 'forward_slash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":24,"literal":{"kind":"STRING","text":"path/to/file.csv\\file2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":15,"literal":{"kind":"STRING","text":"forward_slash"}}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_filename('wh@t3ve%\\42/12 ch,ars.sth', true, 'both_slash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":27,"literal":{"kind":"STRING","text":"wh@t3ve%\\42/12 ch,ars.sth"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":12,"literal":{"kind":"STRING","text":"both_slash"}}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT parse_filename('path/to/file.csv', 'system', 'true');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":18,"literal":{"kind":"STRING","text":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":8,"literal":{"kind":"STRING","text":"system"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (VALUES (parse_path('path\\to\\file.csv/file2.csv', 'system')), (parse_path('path/to/file.csv\\file2.csv', 'both_slash')), (parse_path('path/to/file.csv', 'forward_slash')), (parse_path('path\\to\\file.csv/file2.csv', 'backslash'))) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":227,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":50,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":28,"literal":{"kind":"STRING","text":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":8,"literal":{"kind":"STRING","text":"system"}}}],"qualified_name":{"path":["parse_path"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":54,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":28,"literal":{"kind":"STRING","text":"path/to/file.csv\\file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":12,"literal":{"kind":"STRING","text":"both_slash"}}}],"qualified_name":{"path":["parse_path"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":47,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":18,"literal":{"kind":"STRING","text":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":15,"literal":{"kind":"STRING","text":"forward_slash"}}}],"qualified_name":{"path":["parse_path"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":186,"query_location_length":53,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":28,"literal":{"kind":"STRING","text":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":11,"literal":{"kind":"STRING","text":"backslash"}}}],"qualified_name":{"path":["parse_path"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT path_join('dir/subdir', '../sibling');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"path_join","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":12,"literal":{"kind":"STRING","text":"dir/subdir"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":12,"literal":{"kind":"STRING","text":"../sibling"}}}],"qualified_name":{"path":["path_join"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT path_join('/foo', 's3://foo');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"path_join","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"/foo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":10,"literal":{"kind":"STRING","text":"s3://foo"}}}],"qualified_name":{"path":["path_join"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT path_join('file://localhost');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"path_join","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":18,"literal":{"kind":"STRING","text":"file://localhost"}}}],"qualified_name":{"path":["path_join"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract(filename, 'rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)', ['rundate', 'pass', 'overflow']) AS groups\nFROM filenames","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"groups","query_location":7,"query_location_length":93,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":34,"literal":{"kind":"STRING","text":"rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":31,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":9,"literal":{"kind":"STRING","text":"rundate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":6,"literal":{"kind":"STRING","text":"pass"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":10,"literal":{"kind":"STRING","text":"overflow"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":116,"query_location_length":9,"schema_name":"","table_name":"filenames","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filenames"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_escape(c) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"regexp_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["regexp_escape"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract(s, p, i) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["regexp_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract(s, p, o) FROM test_opts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["o"]}}],"qualified_name":{"path":["regexp_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"test_opts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_opts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('1a 2b 14m', '(\\d+)', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":7,"literal":{"kind":"STRING","text":"(\\d+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('1a 2b 14m', '(\\\\d+)([a-z]+)', 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":16,"literal":{"kind":"STRING","text":"(\\\\d+)([a-z]+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regexp_extract_all('', 'abc')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regexp_extract_all('щцф', '.{3}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"щцф"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":6,"literal":{"kind":"STRING","text":".{3}"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regexp_extract_all('this_is__a___Test', '(.*?)(?:_|$)')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":19,"literal":{"kind":"STRING","text":"this_is__a___Test"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":14,"literal":{"kind":"STRING","text":"(.*?)(?:_|$)"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT str, \n REGEXP_EXTRACT_ALL(str,'a(bc)?d') AS matched\nFROM (\n VALUES ('ad'), ('abd'), ('acd'), ('abcd'), ('abce'), ('abcxd'), ('abcbcd')\n) AS t(str)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["str"]},{"class":"FUNCTION","type":"FUNCTION","alias":"matched","query_location":15,"query_location_length":33,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"STRING","text":"a(bc)?d"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":65,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"STRING","text":"ad"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":5,"literal":{"kind":"STRING","text":"abd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"literal":{"kind":"STRING","text":"acd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":6,"literal":{"kind":"STRING","text":"abce"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":7,"literal":{"kind":"STRING","text":"abcxd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":8,"literal":{"kind":"STRING","text":"abcbcd"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["str"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT str, \n REGEXP_EXTRACT_ALL(str,'(ab){2}cd') AS m1,\n REGEXP_EXTRACT_ALL(str,'(ab){1,}cd') AS m2,\n REGEXP_EXTRACT_ALL(str,'(ab){1,2}cd') AS m3,\n REGEXP_EXTRACT_ALL(str,'(ab){0,2}cd') AS m4\nFROM (\n VALUES ('acd'), ('bcd'),('abcd'), ('abbcd'), ('ababcd'), ('ab1cd')\n) AS t(str)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["str"]},{"class":"FUNCTION","type":"FUNCTION","alias":"m1","query_location":15,"query_location_length":35,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":11,"literal":{"kind":"STRING","text":"(ab){2}cd"}}}],"qualified_name":{"path":["regexp_extract_all"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"m2","query_location":62,"query_location_length":36,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":12,"literal":{"kind":"STRING","text":"(ab){1,}cd"}}}],"qualified_name":{"path":["regexp_extract_all"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"m3","query_location":109,"query_location_length":37,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":13,"literal":{"kind":"STRING","text":"(ab){1,2}cd"}}}],"qualified_name":{"path":["regexp_extract_all"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"m4","query_location":156,"query_location_length":37,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":13,"literal":{"kind":"STRING","text":"(ab){0,2}cd"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":205,"query_location_length":72,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":5,"literal":{"kind":"STRING","text":"acd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":5,"literal":{"kind":"STRING","text":"bcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":7,"literal":{"kind":"STRING","text":"abbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":8,"literal":{"kind":"STRING","text":"ababcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":7,"literal":{"kind":"STRING","text":"ab1cd"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["str"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select regexp_extract_all('foobarbaz', '(BA[R|Z])', 1, 'i');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":11,"literal":{"kind":"STRING","text":"(BA[R|Z])"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('ab ac a', '(a)(b)?(c)?', ['a','b','c']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":59,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":9,"literal":{"kind":"STRING","text":"ab ac a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":13,"literal":{"kind":"STRING","text":"(a)(b)?(c)?"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('hi', '(h|i)?(Z)?', ['ch','z']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":50,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"hi"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":12,"literal":{"kind":"STRING","text":"(h|i)?(Z)?"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"STRING","text":"ch"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('abcd', 'a(bc)*', ['g1']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":44,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":8,"literal":{"kind":"STRING","text":"a(bc)*"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"STRING","text":"g1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('abbbcd', '(ab){0,2}cd', ['g1']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":51,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"abbbcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":13,"literal":{"kind":"STRING","text":"(ab){0,2}cd"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"literal":{"kind":"STRING","text":"g1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_extract_all('', '()', ['empty']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":39,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"STRING","text":"()"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":7,"literal":{"kind":"STRING","text":"empty"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["regexp_extract_all"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM strings WHERE regexp_extract(s, '(missing)', 1, 'k') = s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":42,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":38,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":11,"literal":{"kind":"STRING","text":"(missing)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}}],"qualified_name":{"path":["regexp_extract"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["s"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM regex WHERE REGEXP_MATCHES(s, 'as(c|d|e)f') AND s = 'asdf'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"regex","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["regex"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":46,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":31,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":12,"literal":{"kind":"STRING","text":"as(c|d|e)f"}}}],"qualified_name":{"path":["regexp_matches"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":6,"literal":{"kind":"STRING","text":"asdf"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'abc' ~ ANY(['b', 'z'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":23,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}}],"qualified_name":{"path":["regexp_matches"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_contains"]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}}],"qualified_name":{"path":["regexp_matches"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}}],"qualified_name":{"path":["len"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'abc' ~* ANY(['B', 'ABC'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":26,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"literal":{"kind":"STRING","text":"ABC"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["regexp_matches"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_contains"]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"literal":{"kind":"STRING","text":"ABC"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["regexp_matches"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}}],"qualified_name":{"path":["len"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_replace('hello\nworld', '.*', 'x', 'sg')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":13,"literal":{"kind":"STRING","text":"hello\nworld"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"STRING","text":".*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"STRING","text":"sg"}}}],"qualified_name":{"path":["regexp_replace"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_replace('left-right', '^([^-]+)-([^-]+)$', '\\2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"literal":{"kind":"STRING","text":"left-right"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":19,"literal":{"kind":"STRING","text":"^([^-]+)-([^-]+)$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"STRING","text":"\\2"}}}],"qualified_name":{"path":["regexp_replace"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_replace(s, pat, repl) FROM t_repl_invalid;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":3,"column_names":["pat"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":4,"column_names":["repl"]}}],"qualified_name":{"path":["regexp_replace"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":14,"schema_name":"","table_name":"t_repl_invalid","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_repl_invalid"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_matches('', '.*yu.*')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":".*yu.*"}}}],"qualified_name":{"path":["regexp_matches"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_matches('as^/$df', '^/$')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"as^/$df"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"^/$"}}}],"qualified_name":{"path":["regexp_matches"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT regexp_replace('ä', '\\C', 'x')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"ä"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"STRING","text":"\\C"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["regexp_replace"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strip_accents(regexp_replace(s, p, '')) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"strip_accents","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":24,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["regexp_replace"]}}}],"qualified_name":{"path":["strip_accents"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from data\nwhere regexp_matches(zipcode, '^00\\x{0020}001$')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":42,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":7,"column_names":["zipcode"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":17,"literal":{"kind":"STRING","text":"^00\\x{0020}001$"}}}],"qualified_name":{"path":["regexp_matches"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sha1()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sha1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["sha1"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_extract('🦆ab', 4), array_extract('abc', 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"array_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":8,"literal":{"kind":"STRING","text":"🦆ab"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["array_extract"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":23,"function_name":"array_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["array_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_extract(s, -2147483647) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"array_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483647"}}}],"qualified_name":{"path":["array_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ASCII()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"ascii","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["ascii"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select bar(100, 200, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["bar"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select bar(1, 0, 'infinity'::double)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["bar"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select bar(1, 0, 1, 1.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["bar"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select UPPER('áaaá'), UPPER('ö'), LOWER('S̈'), UPPER('ω')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":8,"literal":{"kind":"STRING","text":"áaaá"}}}],"qualified_name":{"path":["upper"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":11,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"STRING","text":"ö"}}}],"qualified_name":{"path":["upper"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":12,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"STRING","text":"S̈"}}}],"qualified_name":{"path":["lower"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":11,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"STRING","text":"ω"}}}],"qualified_name":{"path":["upper"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT length_grapheme('🤦🏼‍♂️ L🤦🏼‍♂️R 🤦🏼‍♂️')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":74,"function_name":"length_grapheme","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":57,"literal":{"kind":"STRING","text":"🤦🏼‍♂️ L🤦🏼‍♂️R 🤦🏼‍♂️"}}}],"qualified_name":{"path":["length_grapheme"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT substring_grapheme('S̈a︍', 2, 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"substring_grapheme","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":9,"literal":{"kind":"STRING","text":"S̈a︍"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["substring_grapheme"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [1] || [2];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [1] || [2] || [3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select CONCAT_WS(a, b, 'SUFFIX') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":8,"literal":{"kind":"STRING","text":"SUFFIX"}}}],"qualified_name":{"path":["concat_ws"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select CONCAT_WS(',', '', '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["concat_ws"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select CONCAT_WS(',', ['a', NULL, 'b'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["concat_ws"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CONTAINS('hello world', 'h'),\n CONTAINS('hello world', 'he'),\n CONTAINS('hello world', 'hel'),\n CONTAINS('hello world', 'hell'),\n CONTAINS('hello world', 'hello'),\n CONTAINS('hello world', 'hello '),\n CONTAINS('hello world', 'hello w'),\n CONTAINS('hello world', 'hello wo'),\n CONTAINS('hello world', 'hello wor'),\n CONTAINS('hello world', 'hello worl')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"h"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":29,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"STRING","text":"he"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":30,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":5,"literal":{"kind":"STRING","text":"hel"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":31,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":6,"literal":{"kind":"STRING","text":"hell"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":32,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"query_location_length":33,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":8,"literal":{"kind":"STRING","text":"hello "}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":244,"query_location_length":34,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":253,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":268,"query_location_length":9,"literal":{"kind":"STRING","text":"hello w"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":287,"query_location_length":35,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":296,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":311,"query_location_length":10,"literal":{"kind":"STRING","text":"hello wo"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":331,"query_location_length":36,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":340,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":355,"query_location_length":11,"literal":{"kind":"STRING","text":"hello wor"}}}],"qualified_name":{"path":["contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":376,"query_location_length":37,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":385,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":12,"literal":{"kind":"STRING","text":"hello worl"}}}],"qualified_name":{"path":["contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT contains(s,NULL) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["contains"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT contains(s,'ñ') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"ñ"}}}],"qualified_name":{"path":["contains"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT damerau_levenshtein('abcdefghi', 'bzacdefig')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":11,"literal":{"kind":"STRING","text":"abcdefghi"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":11,"literal":{"kind":"STRING","text":"bzacdefig"}}}],"qualified_name":{"path":["damerau_levenshtein"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT damerau_levenshtein(NULL, 'drive')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"drive"}}}],"qualified_name":{"path":["damerau_levenshtein"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT damerau_levenshtein(s, '') FROM strings ORDER BY s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["damerau_levenshtein"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT damerau_levenshtein('null', s) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["damerau_levenshtein"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT format('{:04d}', 33), format('{} {:02d}:{:02d}:{:02d} {}', 'time', 12, 3, 16, 'AM'), format('{:10d}', 1992)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"{:04d}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}}}],"qualified_name":{"path":["format"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":61,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":28,"literal":{"kind":"STRING","text":"{} {:02d}:{:02d}:{:02d} {}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":6,"literal":{"kind":"STRING","text":"time"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"literal":{"kind":"STRING","text":"AM"}}}],"qualified_name":{"path":["format"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":22,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":8,"literal":{"kind":"STRING","text":"{:10d}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1992"}}}],"qualified_name":{"path":["format"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select format('{:d}', 123456789)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"{:d}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}}}],"qualified_name":{"path":["format"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select format('{:t|}', 123456789)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"{:t|}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}}}],"qualified_name":{"path":["format"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select format('{L}', 123456789)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":5,"literal":{"kind":"STRING","text":"{L}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}}}],"qualified_name":{"path":["format"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'aaa' GLOB 'a?'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":9,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"a?"}}}],"qualified_name":{"path":["~~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'a' GLOB '[!0-9]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":13,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":8,"literal":{"kind":"STRING","text":"[!0-9]"}}}],"qualified_name":{"path":["~~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1245' GLOB '**1***2*******4*5***'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":27,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"1245"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":22,"literal":{"kind":"STRING","text":"**1***2*******4*5***"}}}],"qualified_name":{"path":["~~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'xxa' GLOB '*\\*'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":10,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"xxa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"*\\*"}}}],"qualified_name":{"path":["~~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'aaa' ILIKE 'A%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":10,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"A%"}}}],"qualified_name":{"path":["~~*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM strings WHERE s LIKE 'ab%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"ab%"}}}],"qualified_name":{"path":["~~"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t WHERE s ILIKE 'duckdb%' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":15,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"duckdb%"}}}],"qualified_name":{"path":["~~*"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t WHERE s ILIKE NULL ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":10,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["~~*"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'a%c' ilike 'a$%C' escape '$';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":23,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"a%c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"a$%C"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}}}],"qualified_name":{"path":["ilike_escape"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT str ILIKE pat ESCAPE str FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":20,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["pat"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["str"]}}],"qualified_name":{"path":["ilike_escape"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t WHERE s ILIKE '%DÉJÀ%' ESCAPE '\\' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":27,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":10,"literal":{"kind":"STRING","text":"%DÉJÀ%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["ilike_escape"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t WHERE s ILIKE '' ESCAPE '\\' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":19,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["ilike_escape"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT instr(s,'he') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"instr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"he"}}}],"qualified_name":{"path":["instr"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INSTR(s,'你好世界') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"instr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":14,"literal":{"kind":"STRING","text":"你好世界"}}}],"qualified_name":{"path":["instr"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT jaccard('hello', 'hello')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["jaccard"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT round(jaccard('aabbccddeeffg', 'ab'), 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":30,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":15,"literal":{"kind":"STRING","text":"aabbccddeeffg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}}],"qualified_name":{"path":["jaccard"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select round(jaccard(s, ''), 1) from strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":14,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["jaccard"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select jaro_winkler_similarity(null, null)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["jaro_winkler_similarity"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select jaro_winkler_similarity('fly', 'ant')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"literal":{"kind":"STRING","text":"fly"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"STRING","text":"ant"}}}],"qualified_name":{"path":["jaro_winkler_similarity"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select jaro_winkler_similarity('000000000000000000000000000000000000000000000000000000000000000', '00000000000000000000000000000000000000000000000000000000000000000', 0.995)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":166,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":65,"literal":{"kind":"STRING","text":"000000000000000000000000000000000000000000000000000000000000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":67,"literal":{"kind":"STRING","text":"00000000000000000000000000000000000000000000000000000000000000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"0.995"}}}],"qualified_name":{"path":["jaro_winkler_similarity"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT levenshtein('hallo', 'hello')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"hallo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["levenshtein"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT levenshtein(NULL, '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["levenshtein"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT levenshtein(s, 'hi') from strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"hi"}}}],"qualified_name":{"path":["levenshtein"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'aaa' LIKE 'aaa'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'ababac' LIKE 'abab%%%%%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":16,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"ababac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":11,"literal":{"kind":"STRING","text":"abab%%%%%"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'zebra elephant tiger horse' LIKE 'zebra elephant tiger horse blabla%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":41,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":36,"literal":{"kind":"STRING","text":"zebra elephant tiger horse blabla%"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'zebra elephant tiger horse' NOT LIKE '%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":8,"function_name":"!~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"%"}}}],"qualified_name":{"path":["!~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'zebra elephant tiger horse' NOT LIKE 'zebra%tiger%elephant%horse'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":33,"function_name":"!~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra%tiger%elephant%horse"}}}],"qualified_name":{"path":["!~~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ' a ' LIKE '*_ ' ESCAPE '*';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":21,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":" a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"*_ "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"*"}}}],"qualified_name":{"path":["like_escape"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'abc' LIKE 'abc%%' ESCAPE '%', 'abc%' LIKE 'abc%%' ESCAPE '%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":23,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"abc%%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"%"}}}],"qualified_name":{"path":["like_escape"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":23,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":6,"literal":{"kind":"STRING","text":"abc%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":7,"literal":{"kind":"STRING","text":"abc%%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"%"}}}],"qualified_name":{"path":["like_escape"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT like_escape('x%y%z', '%\\%%\\%%\\%%', '\\');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"x%y%z"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"literal":{"kind":"STRING","text":"%\\%%\\%%\\%%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["like_escape"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT mismatches(NULL, s) FROM strings ORDER BY s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"mismatches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["mismatches"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT hamming(s, 'hallo') FROM strings WHERE s = 'hello'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"hamming","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"hallo"}}}],"qualified_name":{"path":["hamming"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select LPAD(a, 12, b), RPAD(a, 12, b), UCASE(a), LCASE(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"lpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["lpad"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":14,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["rpad"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":8,"function_name":"ucase","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["ucase"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":8,"function_name":"lcase","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["lcase"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":79,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select RPAD('', 1100000000, '😀')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"INTEGER","text":"1100000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"😀"}}}],"qualified_name":{"path":["rpad"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT prefix('abcdefgh', 'ab')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"literal":{"kind":"STRING","text":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}}],"qualified_name":{"path":["prefix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT prefix('abcdefghijklmnopqrstuvwxyz', 'abcfefghijklmnopqrstuvwx')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":28,"literal":{"kind":"STRING","text":"abcdefghijklmnopqrstuvwxyz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":26,"literal":{"kind":"STRING","text":"abcfefghijklmnopqrstuvwx"}}}],"qualified_name":{"path":["prefix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT prefix('two ñ three ₡ four 🦆 end', 'two n')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":32,"literal":{"kind":"STRING","text":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":7,"literal":{"kind":"STRING","text":"two n"}}}],"qualified_name":{"path":["prefix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT printf('%d', 33), printf('%d + %d = %d', 3, 5, 3 + 5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}}}],"qualified_name":{"path":["printf"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":35,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":14,"literal":{"kind":"STRING","text":"%d + %d = %d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["printf"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select printf('%x', 255::utinyint);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"INTEGER","text":"255"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"utinyint","children":[],"qualified_name":{"path":["utinyint"]}}}}],"qualified_name":{"path":["printf"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT printf('%c', i) FROM range(200, 300) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%c"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["printf"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":28,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT printf(fmt, 10, pstring) FROM strings ORDER BY idx","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["idx"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["fmt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["pstring"]}}],"qualified_name":{"path":["printf"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select REPEAT(NULL, NULL), REPEAT(NULL, 3), REPEAT('MySQL', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["repeat"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["repeat"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":21,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":7,"literal":{"kind":"STRING","text":"MySQL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["repeat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select REPEAT('hello', 'world', 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["repeat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select REPLACE(1, 2, 3, 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["replace"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT right_grapheme('a', 9223372036854775808);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"right_grapheme","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775808"}}}],"qualified_name":{"path":["right_grapheme"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'aaa' SIMILAR TO '[a-z]{3}'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":21,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":10,"literal":{"kind":"STRING","text":"[a-z]{3}"}}}],"qualified_name":{"path":["regexp_full_match"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM strings WHERE s NOT SIMILAR TO p","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":28,"query_location_length":18,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":12,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["regexp_full_match"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select split_part('',',',1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"split_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["split_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT starts_with(s,'he') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"STRING","text":"he"}}}],"qualified_name":{"path":["starts_with"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'hello world' ^@ 'h',\n 'hello world' ^@ 'he',\n 'hello world' ^@ 'hel',\n 'hello world' ^@ 'hell',\n 'hello world' ^@ 'hello',\n 'hello world' ^@ 'hello ',\n 'hello world' ^@ 'hello w',\n 'hello world' ^@ 'hello wo',\n 'hello world' ^@ 'hello wor',\n 'hello world' ^@ 'hello worl'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"h"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":21,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"STRING","text":"he"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":22,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":5,"literal":{"kind":"STRING","text":"hel"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":23,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":6,"literal":{"kind":"STRING","text":"hell"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":24,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":25,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":8,"literal":{"kind":"STRING","text":"hello "}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":196,"query_location_length":26,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":9,"literal":{"kind":"STRING","text":"hello w"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":231,"query_location_length":27,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":10,"literal":{"kind":"STRING","text":"hello wo"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":267,"query_location_length":28,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":284,"query_location_length":11,"literal":{"kind":"STRING","text":"hello wor"}}}],"qualified_name":{"path":["^@"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":304,"query_location_length":29,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":304,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":12,"literal":{"kind":"STRING","text":"hello worl"}}}],"qualified_name":{"path":["^@"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s ^@ '你好世界' FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":14,"literal":{"kind":"STRING","text":"你好世界"}}}],"qualified_name":{"path":["^@"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_slice(s, off, 2+off) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["off"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":3,"column_names":["off"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["array_slice"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_slice(s, -4, -2) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}}],"qualified_name":{"path":["array_slice"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'MotörHead'[:5]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":19,"query_location_length":4,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"MotörHead"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n[NULL:length+NULL] FROM strings, nulltable","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["length"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["+"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"nulltable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nulltable"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s[(-2147483646-1):-2147483647] FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":29,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483646"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483647"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST(string_split('🦆🐈🐈🦆🐈🐈🦆🐈🐈🦆🐈🐈🦆', '🐈🐈'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":80,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":54,"literal":{"kind":"STRING","text":"🦆🐈🐈🦆🐈🐈🦆🐈🐈🦆🐈🐈🦆"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":10,"literal":{"kind":"STRING","text":"🐈🐈"}}}],"qualified_name":{"path":["string_split"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST(string_split('aaaaa', NULL))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":27,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"aaaaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["string_split"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select UNNEST(string_split_regex('abc', '(,|abc)'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":36,"function_name":"string_split_regex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"literal":{"kind":"STRING","text":"(,|abc)"}}}],"qualified_name":{"path":["string_split_regex"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '🦆ab'[1], 'abc'[2]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"🦆ab"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":25,"query_location_length":3,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT substring(s from 1 for 2) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["substring"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT substring(NULL from NULL for NULL) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["substring"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suffix('abcd', 'cd')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"cd"}}}],"qualified_name":{"path":["suffix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suffix('abcdefghijklmnopqrstuvwxyz', 'yz')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":28,"literal":{"kind":"STRING","text":"abcdefghijklmnopqrstuvwxyz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"yz"}}}],"qualified_name":{"path":["suffix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT suffix('omotá', 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"omotá"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["suffix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_base(-10, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_base"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_base(42, 36)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"36"}}}],"qualified_name":{"path":["to_base"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select TRANSLATE('12345', '14367', 'ax')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"translate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"12345"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"literal":{"kind":"STRING","text":"14367"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"STRING","text":"ax"}}}],"qualified_name":{"path":["translate"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select TRANSLATE(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"translate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["translate"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select LTRIM('', 'ho'), LTRIM('hello', 'ho'), LTRIM('papapapa', 'pa'), LTRIM('blaHblabla', 'bla'), LTRIM('blabla', NULL), LTRIM(NULL, 'blabla'), LTRIM('blabla', '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"STRING","text":"ho"}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":20,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"STRING","text":"ho"}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":23,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":10,"literal":{"kind":"STRING","text":"papapapa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"STRING","text":"pa"}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":26,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":12,"literal":{"kind":"STRING","text":"blaHblabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":21,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":21,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}}],"qualified_name":{"path":["ltrim"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":19,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["ltrim"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select UNICODE(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"unicode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unicode"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":39,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_duckdb('__TEST_DIR__/rd_empty_projection.db', table_name := 't')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_duckdb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":37,"literal":{"kind":"STRING","text":"__TEST_DIR__/rd_empty_projection.db"}}},{"name":"table_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table_name","query_location":86,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["read_duckdb"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT abs(i), upper(s), i + 10 FROM executor_input ORDER BY rowid;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["abs"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["upper"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"executor_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["executor_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_part('hour', d) FROM times;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT isodow(i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"isodow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["isodow"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT d, DATE_PART('{partcode}', d) AS p, DATE_PART(['{partcode}'], d) AS st\nFROM times\nWHERE p \u003c\u003e st['{partcode}'];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":10,"query_location_length":26,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"literal":{"kind":"STRING","text":"{partcode}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"st","query_location":43,"query_location_length":28,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":12,"literal":{"kind":"STRING","text":"{partcode}"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":95,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["p"]},"right":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":102,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["st"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":12,"literal":{"kind":"STRING","text":"{partcode}"}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(microseconds FROM i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"literal":{"kind":"STRING","text":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(week FROM i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"WEEK"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('3 months'::interval, null::time, '2 seconds'::interval) from times;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"3 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":11,"literal":{"kind":"STRING","text":"2 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('-3 hours'::interval, '00:00:00'::time, '00:00:00'::time);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-3 hours"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('3 months'::interval, '00:00:00'::time, '2000000000 months'::interval);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"3 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":19,"literal":{"kind":"STRING","text":"2000000000 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('-1 month'::interval, null::time, '10:00:00'::time);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":10,"literal":{"kind":"STRING","text":"10:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t1 - t2 FROM timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["t1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":2,"column_names":["t2"]}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AGE('{lspecial}'::TIMESTAMP, '{rspecial}'::TIMESTAMP);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":12,"literal":{"kind":"STRING","text":"{lspecial}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":12,"literal":{"kind":"STRING","text":"{rspecial}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["age"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUFFIX(CURRENT_TIMESTAMP::VARCHAR, '-06');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":17,"column_names":["CURRENT_TIMESTAMP"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"STRING","text":"-06"}}}],"qualified_name":{"path":["suffix"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM wt WHERE yearweek(x) = -9910;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"wt","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wt"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":11,"function_name":"yearweek","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["yearweek"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"INTEGER","text":"-9910"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TIMESTAMPTZ_NS '2262-04-11 23:47:16.854775+00'::DATE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2262-04-11 23:47:16.854775+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tmake_date(2021, 12, 30),\n\tmake_date(NULL, 12, 30),\n\tmake_date(2021, NULL, 30),\n\tmake_date(2021, 12, NULL)\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":23,"function_name":"make_date","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}],"qualified_name":{"path":["make_date"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":23,"function_name":"make_date","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}],"qualified_name":{"path":["make_date"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":25,"function_name":"make_date","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}}],"qualified_name":{"path":["make_date"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":25,"function_name":"make_date","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["make_date"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamp_ns(9223372036854775806);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"make_timestamp_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775806"}}}],"qualified_name":{"path":["make_timestamp_ns"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \n\tstart_ts, \n\tend_ts, \n\tDATEDIFF('millisecond', start_ts, end_ts) AS dd_second \nFROM VALUES (\n\t'1970-01-01 00:00:12.456789'::TIMESTAMP, \n\t'1969-12-31 23:59:05.123456'::TIMESTAMP\n\t) x(start_ts, end_ts);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":8,"column_names":["start_ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["end_ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"dd_second","query_location":31,"query_location_length":41,"function_name":"datediff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":13,"literal":{"kind":"STRING","text":"millisecond"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":8,"column_names":["start_ts"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["end_ts"]}}],"qualified_name":{"path":["datediff"]}}],"from_table":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":92,"query_location_length":115,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":130,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":28,"literal":{"kind":"STRING","text":"1970-01-01 00:00:12.456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":173,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":28,"literal":{"kind":"STRING","text":"1969-12-31 23:59:05.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":175,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["start_ts","end_ts"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_PART(['weekday', 'isodow', 'doy', 'julian'], '2008-01-01 00:00:01.894'::TIMESTAMP) AS parts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":7,"query_location_length":87,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":38,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":9,"literal":{"kind":"STRING","text":"weekday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"isodow"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"literal":{"kind":"STRING","text":"doy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":8,"literal":{"kind":"STRING","text":"julian"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":25,"literal":{"kind":"STRING","text":"2008-01-01 00:00:01.894"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts, epoch_us(ts) FROM timestamps ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":12,"function_name":"epoch_us","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["epoch_us"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_PART(['year', NULL, 'month'], ts) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(DOW FROM i) FROM timestamps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"DOW"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(microseconds FROM i) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"literal":{"kind":"STRING","text":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AGE(t1, t2) FROM timestamps WHERE t1 \u003e '2001-12-12';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["t1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["t2"]}}],"qualified_name":{"path":["age"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":2,"column_names":["t1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":12,"literal":{"kind":"STRING","text":"2001-12-12"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'epoch'::timestamptz + '-9223372022400001000 microseconds'::interval","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"-9223372022400001000 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2000-04-09 17:00:00-07'::timestamptz - interval 2400 hours","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2000-04-09 17:00:00-07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":19,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2400"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts + (INTERVAL (-1) hour) FROM limits WHERE label = 'tsmin';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":6,"schema_name":"","table_name":"limits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":7,"literal":{"kind":"STRING","text":"tsmin"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT iv, ts + iv FROM limits, intervals\nWHERE label = 'tsmax'\n AND iv \u003c (INTERVAL (-1) millisecond);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["iv"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["iv"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":6,"schema_name":"","table_name":"limits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":54,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":7,"literal":{"kind":"STRING","text":"tsmax"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":70,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["iv"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":25,"function_name":"to_milliseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_milliseconds"]}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts + (INTERVAL 6 minute) FROM limits WHERE label = 'tsmax';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":17,"function_name":"to_minutes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_minutes"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":6,"schema_name":"","table_name":"limits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"literal":{"kind":"STRING","text":"tsmax"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TIMESTAMPTZ 'Infinity' - TIMESTAMPTZ 'Infinity';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"Infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"Infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATEDIFF('day', 'infinity'::TIMESTAMPTZ_NS, enddate) FROM datetime_ns;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"datediff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["enddate"]}}],"qualified_name":{"path":["datediff"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":11,"schema_name":"","table_name":"datetime_ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["datetime_ns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT starttime, recordtime, date_diff('minute', starttime, recordtime)\nFROM issue9673_ns;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["starttime"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":10,"column_names":["recordtime"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":42,"function_name":"date_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":9,"column_names":["starttime"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":10,"column_names":["recordtime"]}}],"qualified_name":{"path":["date_diff"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":12,"schema_name":"","table_name":"issue9673_ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue9673_ns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT millisecond(ts), millisecond(ts::TIMESTAMP) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"millisecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["millisecond"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":26,"function_name":"millisecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["millisecond"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT isoyear(ts), isoyear(ts::TIMESTAMP) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"isoyear","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["isoyear"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":22,"function_name":"isoyear","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["isoyear"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_PART('timezone_hour', '2021-07-31 00:00:00-07'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":15,"literal":{"kind":"STRING","text":"timezone_hour"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":24,"literal":{"kind":"STRING","text":"2021-07-31 00:00:00-07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE_PART(['epoch', 'second', 'timezone', 'timezone_hour', 'timezone_minute'], ts), ts\nFROM timestamps\nORDER BY 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":67,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":10,"literal":{"kind":"STRING","text":"timezone"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":15,"literal":{"kind":"STRING","text":"timezone_hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":17,"literal":{"kind":"STRING","text":"timezone_minute"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DAYOFMONTH(c0), DAYOFMONTH(c0) IS NULL FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"dayofmonth","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["dayofmonth"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":38,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":14,"function_name":"dayofmonth","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["dayofmonth"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select DATESUB('decade', '1994-02-28 12:00:00-08'::TIMESTAMPTZ, '2004-02-29 13:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":8,"literal":{"kind":"STRING","text":"decade"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":24,"literal":{"kind":"STRING","text":"1994-02-28 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-29 13:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select DATESUB('{datepart}', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-28 13:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":99,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"literal":{"kind":"STRING","text":"{datepart}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-01-31 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-28 13:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select DATESUB('millisecond', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-01 12:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":100,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":13,"literal":{"kind":"STRING","text":"millisecond"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-01-31 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-01 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc('minute', TIMESTAMPTZ '1992-02-02 04:03:02Z') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-02-02 04:03:02Z"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc('year', TIMESTAMPTZ '2019-01-06 04:03:02-08') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-01-06 04:03:02-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts, mts\nFROM (SELECT ts, make_timestamptz(yeartz(ts), month(ts), day(ts), hour(ts), minute(ts), microsecond(ts) / 1000000.0) mts\n\tFROM timestamps) t\nWHERE mts IS DISTINCT FROM ts\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["mts"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":20,"query_location_length":133,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"mts","query_location":32,"query_location_length":99,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":10,"function_name":"yeartz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["yeartz"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":9,"function_name":"month","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["month"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":7,"function_name":"day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["day"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":8,"function_name":"hour","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["hour"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":10,"function_name":"minute","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["minute"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":27,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":15,"function_name":"microsecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["microsecond"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":9,"literal":{"kind":"NUMERIC","text":"1000000.0"}}}],"qualified_name":{"path":["/"]}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":142,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":162,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":3,"column_names":["mts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":2,"column_names":["ts"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(2021, 12, 30, 10, 12, 4.123, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"4.123"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts, strftime(ts, '%Y-%m-%d %H:%M:%S.%f %Z') FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":39,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":25,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f %Z"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '1582-01-01 10:33:41+01'::timestamptz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-01-01 10:33:41+01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'infinity'::timestamptz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('3 years'::interval, null::timestamptz) from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"3 years"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select t, time_bucket(null::interval, t, '1990-01-06 08:08:10'::timestamptz) from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":66,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":21,"literal":{"kind":"STRING","text":"1990-01-06 08:08:10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select w, t, timezone, time_bucket(w, t, timezone) from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["w"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["t"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":8,"column_names":["timezone"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":27,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":8,"column_names":["timezone"]}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('1 month 1 day'::interval, '2018-05-05 00:00:00+02'::timestamptz, '2018-05-05 00:00:00+02'::timestamptz);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":116,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"1 month 1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":24,"literal":{"kind":"STRING","text":"2018-05-05 00:00:00+02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":24,"literal":{"kind":"STRING","text":"2018-05-05 00:00:00+02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n time_bucket(interval '1' day, timestamptz '2000-01-03 17:40:00+00', origin)\nfrom\n generate_series(timestamptz '2000-01-03 00:00:00+00',\n timestamptz '2000-01-04 00:00:00+00',\n\t\t interval '1' hour) as t(origin)\norder by\n origin\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":249,"query_location_length":6,"column_names":["origin"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":75,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-03 17:40:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["origin"]}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":92,"query_location_length":145,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-03 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":164,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-04 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":164,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"query_location_length":17,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["origin"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, '%d') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%d"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, '%-H') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"literal":{"kind":"STRING","text":"%-H"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(d, '%Z') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%Z"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('20182010', '%Y%d%m')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"20182010"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"literal":{"kind":"STRING","text":"%Y%d%m"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('30', '%U'), strftime('1900-07-29'::DATE, '%U')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"%U"}}}],"qualified_name":{"path":["strptime"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":34,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"literal":{"kind":"STRING","text":"1900-07-29"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"STRING","text":"%U"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select strptime('2024 100', '%Y %j');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"2024 100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"STRING","text":"%Y %j"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (\n SELECT dt, strftime(dt, '%Y-%W-%w') AS ft, strptime(strftime(dt, '%Y-%W-%w'), '%Y-%W-%w') AS rt\n FROM (SELECT '2021-01-01'::DATE + (INTERVAL (d) DAY) AS dt FROM range(365) tbl(d)) days\n) diffs\nWHERE rt \u003c\u003e dt","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"diffs","sample":null,"query_location":14,"query_location_length":195,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["dt"]},{"class":"FUNCTION","type":"FUNCTION","alias":"ft","query_location":31,"query_location_length":24,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["dt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%W-%w"}}}],"qualified_name":{"path":["strftime"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"rt","query_location":63,"query_location_length":46,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":24,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":2,"column_names":["dt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%W-%w"}}}],"qualified_name":{"path":["strftime"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%W-%w"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"SUBQUERY","alias":"days","sample":null,"query_location":125,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"dt","query_location":152,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":145,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":147,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":155,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":184,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":3,"literal":{"kind":"INTEGER","text":"365"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":222,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":2,"column_names":["rt"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":2,"column_names":["dt"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select strptime('2020-12-31 21:25:58.745232-02', '%Y-%m-%d %H:%M:%S.%f%z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":31,"literal":{"kind":"STRING","text":"2020-12-31 21:25:58.745232-02"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":24,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f%z"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('Mon Oct 17 2022 22:00:00 GMT+0000 (GMT', '%a %b %d %Y %X GMT%z (%Z') as working;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"working","query_location":7,"query_location_length":78,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":40,"literal":{"kind":"STRING","text":"Mon Oct 17 2022 22:00:00 GMT+0000 (GMT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":26,"literal":{"kind":"STRING","text":"%a %b %d %Y %X GMT%z (%Z"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('2000/10/10', '%Y-%m-%d')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":12,"literal":{"kind":"STRING","text":"2000/10/10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime(' ', '%d')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":14,"literal":{"kind":"STRING","text":" "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"STRING","text":"%d"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('500', '%j')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"500"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"STRING","text":"%j"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('20 19', '%U %j')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"%U %j"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strptime('2021 1950', '%Y %G')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":11,"literal":{"kind":"STRING","text":"2021 1950"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"literal":{"kind":"STRING","text":"%Y %G"}}}],"qualified_name":{"path":["strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('2024 01 002', '%G %V %j') IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":47,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":13,"literal":{"kind":"STRING","text":"2024 01 002"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"%G %V %j"}}}],"qualified_name":{"path":["try_strptime"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select t, time_bucket('3 years'::interval, t) from timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":35,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"3 years"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select t, time_bucket('11 days'::interval, t, '1990-01-06 08:08:10'::timestamp) from timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":69,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"11 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":21,"literal":{"kind":"STRING","text":"1990-01-06 08:08:10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('1 day - 172800 seconds'::interval, '2018-05-05 00:00:00'::timestamp);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":81,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":24,"literal":{"kind":"STRING","text":"1 day - 172800 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":21,"literal":{"kind":"STRING","text":"2018-05-05 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select time_bucket('1 microseconds'::interval, '294247-01-10 04:00:54.775807'::timestamp);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":16,"literal":{"kind":"STRING","text":"1 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":30,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["time_bucket"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('2018-20-10', '%Y-%d-%m')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"literal":{"kind":"STRING","text":"2018-20-10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%d-%m"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('1', '%U')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"STRING","text":"%U"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('1992-01-30 30', '%Y-%m-%d %j')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":15,"literal":{"kind":"STRING","text":"1992-01-30 30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":13,"literal":{"kind":"STRING","text":"%Y-%m-%d %j"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (\n SELECT dt, strftime(dt, '%G-%V-%u') AS ft, try_strptime(strftime(dt, '%G-%V-%u'), '%G-%V-%u') AS rt\n FROM (SELECT '2021-01-01'::DATE + (INTERVAL (d) DAY) AS dt FROM range(365) tbl(d)) days\n) diffs\nWHERE rt \u003c\u003e dt","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"diffs","sample":null,"query_location":14,"query_location_length":199,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["dt"]},{"class":"FUNCTION","type":"FUNCTION","alias":"ft","query_location":31,"query_location_length":24,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["dt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"literal":{"kind":"STRING","text":"%G-%V-%u"}}}],"qualified_name":{"path":["strftime"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"rt","query_location":63,"query_location_length":50,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":24,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":2,"column_names":["dt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":10,"literal":{"kind":"STRING","text":"%G-%V-%u"}}}],"qualified_name":{"path":["strftime"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":10,"literal":{"kind":"STRING","text":"%G-%V-%u"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"SUBQUERY","alias":"days","sample":null,"query_location":129,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"dt","query_location":156,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":149,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":151,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":159,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":188,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":3,"literal":{"kind":"INTEGER","text":"365"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":226,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":2,"column_names":["rt"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":2,"column_names":["dt"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_strptime('2020-12-31 03:25:58.745232+04', '%Y-%m-%d %H:%M:%S.%f%z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":31,"literal":{"kind":"STRING","text":"2020-12-31 03:25:58.745232+04"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":24,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f%z"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('2018-20-10', '%Y-%m-%d')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"literal":{"kind":"STRING","text":"2018-20-10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('2000-10-01 23:59:59.1000000000000000000000000000', '%Y-%m-%d %H:%M:%S.%f')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":50,"literal":{"kind":"STRING","text":"2000-10-01 23:59:59.1000000000000000000000000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":22,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('junee', '%B')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"junee"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"%B"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('20 2021', '%U %G')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":9,"literal":{"kind":"STRING","text":"20 2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"%U %G"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_strptime('2021 1950', '%G %Y')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":11,"literal":{"kind":"STRING","text":"2021 1950"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"%G %Y"}}}],"qualified_name":{"path":["try_strptime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '12:00:00'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"12:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_part('hour', d) FROM timetzs;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT isodow(d) FROM timetzs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"isodow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["isodow"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(second FROM i) FROM timetzs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"SECOND"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select start, token_type, word from sql_tokenize($$select a;$$);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":10,"column_names":["token_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["word"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_tokenize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":13,"literal":{"kind":"STRING","text":"select a;"}}}],"qualified_name":{"path":["sql_tokenize"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select start, token_type, word from sql_tokenize($$select 'O''Neil', \"My \"\"Table\"\"\";$$);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":10,"column_names":["token_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["word"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_tokenize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":37,"literal":{"kind":"STRING","text":"select 'O''Neil', \"My \"\"Table\"\"\";"}}}],"qualified_name":{"path":["sql_tokenize"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT substring(uuidv7()::varchar, 15, 1) FROM range(100);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":35,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":8,"function_name":"uuidv7","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["uuidv7"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["substring"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), bool_and(\n v[1]::VARCHAR IS NOT DISTINCT FROM a AND\n v[2]::VARCHAR IS NOT DISTINCT FROM b AND\n v[3]::VARCHAR IS NOT DISTINCT FROM c\n) FROM encoded;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":142,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":31,"query_location_length":126,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":31,"query_location_length":36,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":32,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["a"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":76,"query_location_length":36,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":9,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":77,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["b"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":121,"query_location_length":36,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":125,"query_location_length":9,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":122,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["c"]}}]}}],"qualified_name":{"path":["bool_and"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":165,"query_location_length":7,"schema_name":"","table_name":"encoded","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["encoded"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_array_length(NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"variant_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["variant_array_length"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select range % 2 g, sum(variant_array_length(j, 'duck')) c\nfrom t1\ngroup by g\norder by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":20,"query_location_length":36,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":31,"function_name":"variant_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["variant_array_length"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ((300000000000000000000000000000000000000::UHUGEINT)::VARIANT)::UHUGEINT =\n 300000000000000000000000000000000000000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":121,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":39,"literal":{"kind":"INTEGER","text":"300000000000000000000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":39,"literal":{"kind":"INTEGER","text":"300000000000000000000000000000000000000"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ((12345678901234567890.123456::DECIMAL(38,6))::VARIANT)::DECIMAL(38,6) =\n 12345678901234567890.123456;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":107,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":27,"literal":{"kind":"NUMERIC","text":"12345678901234567890.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"qualified_name":{"path":["DECIMAL"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":27,"literal":{"kind":"NUMERIC","text":"12345678901234567890.123456"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_cast((42::VARIANT) AS TUPLE(INTEGER));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":14,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["TUPLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n variant_contains('{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}'::JSON::VARIANT,\n '{\"d\": 2}'::JSON::VARIANT),\n variant_contains('{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}'::JSON::VARIANT,\n '{\"a\": {\"b\": [{\"c\": 1}]}}'::JSON::VARIANT),\n variant_contains('{\"a\": {\"b\": 42}}'::JSON::VARIANT, '{\"a\": 42}'::JSON::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":115,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":34,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"d\": 2}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":131,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":189,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":183,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":34,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":185,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":191,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":253,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":247,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":26,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": [{\"c\": 1}]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":249,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":255,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":269,"query_location_length":79,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":310,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":304,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":286,"query_location_length":18,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": 42}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":306,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":312,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":338,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":332,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\": 42}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":334,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":340,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n variant_contains({'a': NULL}::VARIANT, {'a': NULL}::VARIANT),\n variant_contains({'x': {'a': NULL}}::VARIANT, {'a': NULL}::VARIANT),\n variant_contains([{'a': NULL}]::VARIANT, {'a': NULL}::VARIANT),\n variant_contains({'a': 1}::VARIANT, {'a': NULL}::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":60,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":67,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":100,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":106,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":134,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":129,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"query_location_length":62,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":180,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":167,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":168,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":174,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":182,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":202,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":191,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":197,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":204,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":218,"query_location_length":57,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":243,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":235,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":241,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":245,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":265,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":254,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":260,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":267,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_exists(a, 'c') from struct_cast_data();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"variant_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["variant_exists"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_cast_data","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_cast_data"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_exists({'a': 1}::VARIANT, [1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"variant_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["variant_exists"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_extract({'a': 1234}::VARIANT, 'a')::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":29,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1234"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["variant_extract"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT variant_extract( ['A','B']::variant, 1::UINTEGER)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}}],"qualified_name":{"path":["variant_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_extract_string('{}'::VARIANT, '');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["variant_extract_string"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT variant_extract_string({'geometry': geometry}::VARIANT, '')\nFROM test_all_types()\nWHERE bool = false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"geometry","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"geometry","query_location":43,"query_location_length":8,"column_names":["geometry"]}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["variant_extract_string"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":72,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":4,"column_names":["bool"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_extract_string({'a': 1}::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_extract_string"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select col.a_number::BIGINT from tbl order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["col","a_number"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_array_length(variant_group_array(i)) from integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"variant_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":22,"function_name":"variant_group_array","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["variant_group_array"]}}}],"qualified_name":{"path":["variant_array_length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_keys(a, ['', 'c']) from struct_cast_data();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["variant_keys"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_cast_data","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_cast_data"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_keys(j, ['a', 'b']) from (values ({'a': {'x': 1}}::VARIANT), (NULL::VARIANT)) t(j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["variant_keys"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":40,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":55,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select range % 2 g, sum(length(variant_keys(j))) c\nfrom t1\ngroup by g\norder by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":20,"query_location_length":28,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":23,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":15,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["variant_keys"]}}}],"qualified_name":{"path":["length"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_type('{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}"}}}],"qualified_name":{"path":["variant_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [*COLUMNS(*)] FROM (\n\tSELECT variant_type(\n\t\tCOLUMNS(lambda c: NOT regexp_matches(c, 'array|struct|map|union|tuple'))::VARIANT\n\t)\n\tFROM test_all_types()\n\t-- strip NULLs from output\n\tWHERE bool IS NOT NULL\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":8,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":17,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":26,"query_location_length":187,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":100,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":9,"child":{"class":"STAR","type":"STAR","alias":"","query_location":52,"query_location_length":72,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":60,"query_location_length":63,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c"]},"expr":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":70,"query_location_length":53,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":49,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":30,"literal":{"kind":"STRING","text":"array|struct|map|union|tuple"}}}],"qualified_name":{"path":["regexp_matches"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}},"qualified_exclude_list":[],"rename_list":[]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_type"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":143,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":200,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":4,"column_names":["bool"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_type({'a': 1}::VARIANT, [NULL::VARCHAR]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["variant_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_typeof(struct_pack(*COLUMNS(*))::VARIANT) test from test_all_types();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"test","query_location":7,"query_location_length":49,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":34,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":43,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_typeof"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT profit_total FROM unit2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["profit_total"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"unit2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select column_name, generation_expression from duckdb_columns order by column_index;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":12,"column_names":["column_index"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":21,"column_names":["generation_expression"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":14,"schema_name":"","table_name":"duckdb_columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_columns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tz from t1 WHERE tr \u003c 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["tz"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":24,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["tr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, u, rowid FROM tunion_5807 WHERE id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["u"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":11,"schema_name":"","table_name":"tunion_5807","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tunion_5807"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c FROM a WHERE id=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, payload FROM tbl WHERE id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(i) FROM integers WHERE i \u003c 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":36,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE i \u003e= 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE j=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM up WHERE b = 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"up","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["up"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT j FROM integers WHERE j=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT payload\nFROM db.t\nWHERE k = repeat('a', 80) || 'gath' || repeat('b', 80) || 'tail';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":4,"schema_name":"db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":58,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["k"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":54,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"80"}}}],"qualified_name":{"path":["repeat"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"literal":{"kind":"STRING","text":"gath"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"literal":{"kind":"INTEGER","text":"80"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":6,"literal":{"kind":"STRING","text":"tail"}}}],"qualified_name":{"path":["||"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(i) FROM integers WHERE i \u003e= 10 AND i \u003c= 15","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":34,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":34,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":46,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM blobs WHERE b \u003e= '\\x01' ORDER BY b::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":26,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":6,"literal":{"kind":"STRING","text":"\\x01"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c0 FROM t0_varchar WHERE t0_varchar.c0 \u003c= 'a';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":10,"schema_name":"","table_name":"t0_varchar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0_varchar"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":32,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":13,"column_names":["t0_varchar","c0"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM tbl WHERE i IS NOT DISTINCT FROM 499995;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":31,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"literal":{"kind":"INTEGER","text":"499995"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t where id = getvariable('u3');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["id"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":17,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"STRING","text":"u3"}}}],"qualified_name":{"path":["getvariable"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM tbl WHERE i = 3000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, name FROM pk_tbl ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"pk_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pk_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM upgrade_db.old_t WHERE k=1023","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":16,"schema_name":"upgrade_db","table_name":"old_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["upgrade_db","old_t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1023"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM int128_point WHERE id = 2048;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":12,"schema_name":"","table_name":"int128_point","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int128_point"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l FROM integers WHERE l \u003c= 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(i) FROM strings WHERE i = 'test';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM tbl2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t5"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM a_t ASOF JOIN b_t ON a_t.k = b_t.k AND a_t.t \u003e= b_t.t AND a_t.m NOT IN ('sad', 'ok', 'happy');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":89,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"a_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a_t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":3,"schema_name":"","table_name":"b_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b_t"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":42,"query_location_length":72,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["a_t","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["b_t","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":60,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["a_t","t"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["b_t","t"]}},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":79,"query_location_length":35,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":92,"query_location_length":22,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":5,"column_names":["a_t","m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":5,"literal":{"kind":"STRING","text":"sad"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}}]}]}]},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p.begin, e.value\nFROM range(0,10) p(begin) ASOF JOIN events0 e\nUSING (begin)\nORDER BY p.begin ASC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":7,"column_names":["p","begin"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":33,"left":{"type":"TABLE_FUNCTION","alias":"p","sample":null,"query_location":29,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["begin"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":60,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":null,"join_type":"INNER","ref_type":"ASOF","using_columns":["begin"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p.key, p.begin, e.value\nFROM \n\t(SELECT key, ts AS begin FROM probes) p \nASOF LEFT JOIN \n\tevents e\nUSING (key, begin)\nORDER BY 1, 2 ASC NULLS FIRST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ASCENDING","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["p","key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":79,"query_location_length":44,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":38,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"begin","query_location":51,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":6,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":96,"query_location_length":8,"schema_name":"","table_name":"events","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events"]}},"condition":null,"join_type":"LEFT","ref_type":"ASOF","using_columns":["key","begin"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table l\nASOF LEFT JOIN right_table r\nON l.symbol = r.symbol AND l.ts \u003e= r.ts AND l.price + r.bid \u003e 300;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":94,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":42,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":59,"query_location_length":62,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":8,"column_names":["l","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":8,"column_names":["r","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":83,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["l","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":4,"column_names":["r","ts"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":100,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["r","bid"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}]},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p.begin, e.value\nFROM probe0 p ASOF LEFT JOIN events0 e\nON p.begin \u003e= e.begin\nORDER BY p.begin ASC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":7,"column_names":["p","begin"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"probe0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe0"]}},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":53,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":66,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":7,"column_names":["p","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":7,"column_names":["e","begin"]}},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), count(*) FILTER (l2.g \u003c\u003e r.g) FROM l2 ASOF JOIN r ON row(l2.g, 1) = row(r.g, 1) AND l2.ts \u003e= r.ts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":29,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":34,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["l2","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["r","g"]}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":59,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":2,"schema_name":"","table_name":"l2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":4,"column_names":["l2","g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["r","g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":101,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["l2","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["r","ts"]}}]},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.id, p.id\nFROM (VALUES (1, NULL::INTEGER, 1)) t(id, symbol, ts)\nASOF LEFT JOIN (VALUES (40, NULL::INTEGER, 65537)) p(id, symbol, ts)\n ON t.symbol IS NOT DISTINCT FROM p.symbol AND t.ts \u003c= p.ts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["p","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":72,"query_location_length":129,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":23,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","symbol","ts"]},"right":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":87,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":5,"literal":{"kind":"INTEGER","text":"65537"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","symbol","ts"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":146,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":146,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":8,"column_names":["t","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":8,"column_names":["p","symbol"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":189,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":4,"column_names":["t","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":4,"column_names":["p","ts"]}}]},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.*, p.price\nFROM trades_multiple t ASOF JOIN prices_multiple p \n ON t.symbol = p.symbol \n AND t.exchange = p.exchange\n AND t.when \u003e= p.when","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"t","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":7,"column_names":["p","price"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":43,"query_location_length":105,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":25,"query_location_length":17,"schema_name":"","table_name":"trades_multiple","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["trades_multiple"]}},"right":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":53,"query_location_length":17,"schema_name":"","table_name":"prices_multiple","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices_multiple"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":77,"query_location_length":71,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":8,"column_names":["t","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":8,"column_names":["p","symbol"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":10,"column_names":["t","exchange"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":10,"column_names":["p","exchange"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":132,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":6,"column_names":["t","when"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":6,"column_names":["p","when"]}}]},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM r t1\nASOF LEFT JOIN (SELECT * FROM a EXCEPT ALL SELECT * FROM b) t0 ON t1.d \u003e= t0.d\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":78,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":34,"query_location_length":44,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":42,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":69,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":85,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["t1","d"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["t0","d"]}},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * \nFROM left_table l \nASOF SEMI JOIN right_table r \n\t ON l.symbol = r.symbol \n\tAND l.ts \u003e= r.ts \n\tAND l.price + r.bid \u003e 300\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":101,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":15,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":44,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":64,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":8,"column_names":["l","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":8,"column_names":["r","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":90,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":4,"column_names":["l","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":4,"column_names":["r","ts"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":109,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["r","bid"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}]},"join_type":"SEMI","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM integers_empty JOIN integers2 ON (integers_empty.i\u003eintegers2.i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":48,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"integers_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers_empty"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":16,"column_names":["integers_empty","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["integers2","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers RIGHT JOIN integers2_empty USING (i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":15,"schema_name":"","table_name":"integers2_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2_empty"]}},"condition":null,"join_type":"RIGHT","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM bigtable RIGHT OUTER JOIN smalltable USING (a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"bigtable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigtable"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":10,"schema_name":"","table_name":"smalltable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smalltable"]}},"condition":null,"join_type":"RIGHT","ref_type":"REGULAR","using_columns":["a"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i\u003c\u003eintegers2.k ORDER BY 1, 2, 3, 4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":52,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":61,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":11,"column_names":["integers2","k"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (DESCRIBE SELECT 1 AS a, 2 AS b) l FULL JOIN (DESCRIBE SELECT 1 AS c, 2 AS d, 3 AS e) r ON true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":60,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":66,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"e","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT 'CHF' AS ccy, id FROM fact) t LEFT JOIN dim d ON t.ccy = d.k WHERE d.k IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":30,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ccy","query_location":29,"query_location_length":5,"literal":{"kind":"STRING","text":"CHF"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":4,"schema_name":"","table_name":"fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fact"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":69,"query_location_length":5,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["t","ccy"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["d","k"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":100,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["d","k"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n.n_name, COUNT(*) AS cnt\nFROM nation n\nJOIN customer c ON n.nk = c.nk\nJOIN orders_c o ON o.ck = c.ck\nJOIN lineitem l ON l.ok = o.ok\nGROUP BY n.n_name ORDER BY n.n_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":8,"column_names":["n","n_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["n","n_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":17,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":109,"query_location_length":30,"left":{"type":"JOIN","alias":"","sample":null,"query_location":78,"query_location_length":30,"left":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"nation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":52,"query_location_length":10,"schema_name":"","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":4,"column_names":["c","nk"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":83,"query_location_length":10,"schema_name":"","table_name":"orders_c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders_c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":4,"column_names":["c","ck"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":114,"query_location_length":10,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":4,"column_names":["l","ok"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":4,"column_names":["o","ok"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":8,"column_names":["n","n_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n.n_names[1] AS nm, COUNT(*) AS cnt\nFROM nation_list n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck\nGROUP BY nm ORDER BY nm","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":2,"column_names":["nm"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"nm","query_location":16,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["n","n_names"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":27,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":93,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":62,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":48,"query_location_length":13,"schema_name":"","table_name":"nation_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation_list"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":67,"query_location_length":10,"schema_name":"","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["c","nk"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":98,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":4,"column_names":["c","ck"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":2,"column_names":["nm"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (FROM mixed_dictionaries)\nSELECT count(*), count(DISTINCT b.label)\nFROM probe p JOIN (\n SELECT c.k, c.label FROM c JOIN small_dim d ON c.k % 25=d.k WHERE c.k % 2000 \u003c 1000\n) b ON p.k=b.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":18,"schema_name":"","table_name":"mixed_dictionaries","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed_dictionaries"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":23,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["b","label"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":103,"query_location_length":109,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":95,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":108,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":3,"column_names":["c","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":7,"column_names":["c","label"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":141,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":139,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":146,"query_location_length":11,"schema_name":"","table_name":"small_dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["small_dim"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":161,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":3,"column_names":["c","k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["d","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":180,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":180,"query_location_length":10,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":3,"column_names":["c","k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2000"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE r(iter, k, x) AS (\n SELECT 0, 0::BIGINT, NULL::BIGINT\n UNION ALL\n SELECT r.iter + 1, b.ck, b.x\n FROM r JOIN (\n SELECT c.ck, n.x\n FROM customer2 c\n JOIN (\n SELECT nk, nextval('dict_epoch') AS x FROM nation2\n ) n ON c.nk = n.nk\n ) b ON r.k = b.ck\n WHERE r.iter \u003c 3\n)\nSELECT iter, k, x FROM r ORDER BY iter","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":371,"query_location_length":4,"column_names":["iter"]}}]}],"cte_map":{"map":[{"key":"r","value":{"aliases":["iter","k","x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["r","iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":4,"column_names":["b","ck"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":3,"column_names":["b","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":130,"query_location_length":183,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":128,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":135,"query_location_length":162,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":4,"column_names":["c","ck"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":3,"column_names":["n","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":195,"query_location_length":96,"left":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":175,"query_location_length":11,"schema_name":"","table_name":"customer2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer2"]}},"right":{"type":"SUBQUERY","alias":"n","sample":null,"query_location":200,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":2,"column_names":["nk"]},{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":225,"query_location_length":21,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":12,"literal":{"kind":"STRING","text":"dict_epoch"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":257,"query_location_length":7,"schema_name":"","table_name":"nation2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":280,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":4,"column_names":["c","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":4,"column_names":["n","nk"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":303,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":303,"query_location_length":3,"column_names":["r","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":309,"query_location_length":4,"column_names":["b","ck"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":324,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":324,"query_location_length":6,"column_names":["r","iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["iter","k","x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":4,"column_names":["iter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":350,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":353,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":360,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT in_dim, count(*) FROM (\n SELECT f.id, f.k IN (SELECT k FROM dim WHERE name IN ('Alpha','Beta')) AS in_dim FROM fact f\n) GROUP BY in_dim ORDER BY in_dim NULLS FIRST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":6,"column_names":["in_dim"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["in_dim"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":100,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["f","id"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"in_dim","query_location":55,"query_location_length":50,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":3,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":7,"literal":{"kind":"STRING","text":"Alpha"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":6,"literal":{"kind":"STRING","text":"Beta"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":3,"column_names":["f","k"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":121,"query_location_length":6,"schema_name":"","table_name":"fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fact"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":6,"column_names":["in_dim"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT o.o_orderkey, o.o_custkey, o.o_totalprice, o.o_orderstatus, l.l_orderkey, l.l_partkey, l.l_quantity, l.l_extendedprice\nFROM orders o\nLEFT JOIN lineitem l ON o.o_orderkey = l.l_orderkey\n AND o.o_orderstatus != 'O';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["o","o_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":11,"column_names":["o","o_custkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":14,"column_names":["o","o_totalprice"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":15,"column_names":["o","o_orderstatus"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":12,"column_names":["l","l_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":11,"column_names":["l","l_partkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":12,"column_names":["l","l_quantity"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":17,"column_names":["l","l_extendedprice"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":140,"query_location_length":82,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":131,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"right":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":150,"query_location_length":10,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":164,"query_location_length":58,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":12,"column_names":["o","o_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":12,"column_names":["l","l_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":200,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":15,"column_names":["o","o_orderstatus"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":3,"literal":{"kind":"STRING","text":"O"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM lineitem l\nINNER JOIN orders o ON l.l_orderkey = o.o_orderkey\n AND l.l_quantity + l.l_extendedprice \u003e o.o_totalprice\n AND l.l_quantity + o.o_totalprice \u003e 100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":152,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":43,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":129,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":12,"column_names":["l","l_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":12,"column_names":["o","o_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":91,"query_location_length":49,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":12,"column_names":["l","l_quantity"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":17,"column_names":["l","l_extendedprice"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":14,"column_names":["o","o_totalprice"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":149,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":12,"column_names":["l","l_quantity"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":14,"column_names":["o","o_totalprice"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(r.u), count(*) FROM l LEFT JOIN r ON l.i \u003c r.i AND l.i + 2 \u003e r.i AND (l.i + r.i) % 7 = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["r","u"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":66,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":50,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":50,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["l","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["r","i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":64,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["l","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["r","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":15,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":3,"column_names":["l","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["r","i"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with joined as (\n\tselect lhs.k l, rhs.k r\n\tfrom states lhs \n\tinner join states rhs\n\t on lhs.b \u003c rhs.e\n\t and rhs.b \u003c lhs.e\n\t and lhs.k = rhs.k\n)\nselect count(*) \nfrom joined","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"joined","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"l","query_location":25,"query_location_length":5,"column_names":["lhs","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"r","query_location":34,"query_location_length":5,"column_names":["rhs","k"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":84,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":48,"query_location_length":10,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":72,"query_location_length":10,"schema_name":"","table_name":"states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["states"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":90,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":90,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":5,"column_names":["lhs","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":5,"column_names":["rhs","e"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":111,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":5,"column_names":["rhs","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["lhs","e"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":5,"column_names":["lhs","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":5,"column_names":["rhs","k"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":155,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":170,"query_location_length":6,"schema_name":"","table_name":"joined","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["joined"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH data_table AS (\n SELECT epoch(ts) as ts\n FROM issue3486\n WHERE ts IS NOT NULL\n ),\n S AS (\n SELECT\n min(ts) as minVal,\n max(ts) as maxVal,\n (max(ts) - min(ts)) as range\n FROM data_table\n ),\n buckets AS (\n SELECT\n range as bucket,\n (range) * (select range FROM S) / 40 + (select minVal from S) as low,\n (range + 1) * (select range FROM S) / 40 + (select minVal from S) as high\n FROM range(0, 40, 1)\n )\n SELECT\n bucket,\n low,\n high,\n count(data_table.ts) as count\n FROM buckets\n LEFT JOIN data_table ON (data_table.ts \u003e= low AND data_table.ts \u003c high)\n GROUP BY bucket, low, high\n ORDER BY bucket;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":682,"query_location_length":6,"column_names":["bucket"]}}]}],"cte_map":{"map":[{"key":"data_table","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ts","query_location":32,"query_location_length":9,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["epoch"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":9,"schema_name":"","table_name":"issue3486","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue3486"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":80,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":2,"column_names":["ts"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"S","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"minVal","query_location":123,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"maxVal","query_location":148,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"range","query_location":182,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":174,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["max"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":184,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["min"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":213,"query_location_length":10,"schema_name":"","table_name":"data_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"buckets","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"bucket","query_location":261,"query_location_length":5,"column_names":["range"]},{"class":"FUNCTION","type":"FUNCTION","alias":"low","query_location":321,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":284,"query_location_length":36,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":285,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":294,"query_location_length":21,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":302,"query_location_length":5,"column_names":["range"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":313,"query_location_length":1,"schema_name":"","table_name":"S","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["S"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":318,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}],"qualified_name":{"path":["/"]}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":323,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":331,"query_location_length":6,"column_names":["minVal"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":343,"query_location_length":1,"schema_name":"","table_name":"S","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["S"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"high","query_location":401,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":360,"query_location_length":40,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":367,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":361,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":369,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":374,"query_location_length":21,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":382,"query_location_length":5,"column_names":["range"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":393,"query_location_length":1,"schema_name":"","table_name":"S","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["S"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":398,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}}],"qualified_name":{"path":["/"]}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":403,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":411,"query_location_length":6,"column_names":["minVal"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":423,"query_location_length":1,"schema_name":"","table_name":"S","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["S"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":443,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":449,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":452,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":456,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":478,"query_location_length":6,"column_names":["bucket"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":492,"query_location_length":3,"column_names":["low"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":503,"query_location_length":4,"column_names":["high"]},{"class":"FUNCTION","type":"FUNCTION","alias":"count","query_location":515,"query_location_length":20,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":521,"query_location_length":13,"column_names":["data_table","ts"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":566,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":554,"query_location_length":7,"schema_name":"","table_name":"buckets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["buckets"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":576,"query_location_length":10,"schema_name":"","table_name":"data_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":591,"query_location_length":45,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":591,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":591,"query_location_length":13,"column_names":["data_table","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":608,"query_location_length":3,"column_names":["low"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":616,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":616,"query_location_length":13,"column_names":["data_table","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":632,"query_location_length":4,"column_names":["high"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":651,"query_location_length":6,"column_names":["bucket"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":659,"query_location_length":3,"column_names":["low"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":664,"query_location_length":4,"column_names":["high"]}],"group_sets":[[0,1,2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select l.k100 as lid, r.k100 as rid\nfrom tleft l \nleft join tleft r \non l.b100 \u003c r.e100\nand r.b100 \u003c l.e100\nand l.k100 + r.k100 \u003c 10\norder by 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"lid","query_location":7,"query_location_length":6,"column_names":["l","k100"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"rid","query_location":22,"query_location_length":6,"column_names":["r","k100"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":82,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":41,"query_location_length":7,"schema_name":"","table_name":"tleft","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tleft"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":60,"query_location_length":7,"schema_name":"","table_name":"tleft","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tleft"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":72,"query_location_length":60,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":72,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["l","b100"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["r","e100"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":92,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":6,"column_names":["r","b100"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":6,"column_names":["l","e100"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":112,"query_location_length":20,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":6,"column_names":["l","k100"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":6,"column_names":["r","k100"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t1 INNER JOIN t2 ON t1.c0 = t2.c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":5,"column_names":["t1","c0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["t2","c0"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM p WHERE p.pb NOT IN (SELECT x.f FROM v x JOIN v y ON x.s = y.s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":29,"query_location_length":55,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":41,"query_location_length":43,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["x","f"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":62,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":58,"query_location_length":3,"schema_name":"","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":67,"query_location_length":3,"schema_name":"","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["x","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":3,"column_names":["y","s"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["p","pb"]},"comparison_type":"COMPARE_EQUAL"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test WHERE EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003c\u003etest2.c) AND NOT EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003ctest2.c);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":25,"query_location_length":144,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":25,"query_location_length":68,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":39,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":34,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":77,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["test2","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":98,"query_location_length":71,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":102,"query_location_length":67,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":116,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":123,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":135,"query_location_length":33,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":135,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":154,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":7,"column_names":["test2","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table l\nINNER JOIN right_table r ON l.id = r.id AND l.amount + r.budget \u003e 1100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":70,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":38,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["r","id"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":71,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":8,"column_names":["l","amount"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":8,"column_names":["r","budget"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1100"}}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, test.b, c FROM test INNER JOIN test2 ON NULL = 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":6,"column_names":["test","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":8,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x.col1, y.col1 FROM tbl_null x JOIN tbl_null y\nON x.col0 = y.col0 AND (x.col1 IS DISTINCT FROM y.col1)\nORDER BY x.col1, y.col1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":6,"column_names":["x","col1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":6,"column_names":["y","col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":10,"schema_name":"","table_name":"tbl_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_null"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":43,"query_location_length":10,"schema_name":"","table_name":"tbl_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_null"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":78,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x.col1, y.col1 FROM tbl_l_null x JOIN tbl_l_null y\nON x.col0 = y.col0 AND x.col1 = y.col1\nORDER BY x.col1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["x","col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":56,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":12,"schema_name":"","table_name":"tbl_l_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l_null"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":45,"query_location_length":12,"schema_name":"","table_name":"tbl_l_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l_null"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":61,"query_location_length":35,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x.col1, y.col1 FROM tbl_s_null x JOIN tbl_s_null y\nON x.col0 = y.col0 AND x.col1 = y.col1\nORDER BY x.col1.x, y.col1.x NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":8,"column_names":["x","col1","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":8,"column_names":["y","col1","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":56,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":12,"schema_name":"","table_name":"tbl_s_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_s_null"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":45,"query_location_length":12,"schema_name":"","table_name":"tbl_s_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_s_null"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":61,"query_location_length":35,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM probe_varchar p\nJOIN build_varchar b\n ON p.k = b.k\n AND p.g \u003e= b.g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":21,"query_location_length":15,"schema_name":"","table_name":"probe_varchar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe_varchar"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":42,"query_location_length":15,"schema_name":"","table_name":"build_varchar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build_varchar"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":3,"column_names":["b","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":78,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["b","g"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test.b, test2.b FROM test, test2 WHERE test.b \u003c\u003e test2.b AND test.b \u003c\u003e 1 AND test2.b \u003c\u003e 2 ORDER BY test.b, test2.b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["test","b"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":7,"column_names":["test2","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["test","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["test2","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":46,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":46,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":7,"column_names":["test2","b"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":68,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":84,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":7,"column_names":["test2","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a+1 FROM t1 JOIN t2 USING(a) ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["a"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t1 left join t2 on t1.id \u003e t2.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":33,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["t1","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":5,"column_names":["t2","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table l\nLEFT JOIN right_table r ON l.id = r.id AND r.category = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":37,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":54,"query_location_length":30,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["r","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":10,"column_names":["r","category"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers LEFT OUTER JOIN integers2 ON TRUE ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers LEFT OUTER JOIN integers2 ON i=1 OR l=20 ORDER BY i, k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":40,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":52,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f.fk, f.value, d.label\nFROM fact f LEFT JOIN dim_unique d ON f.fk = d.id\nWHERE f.fk \u003c= 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["f","fk"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["f","value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["d","label"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":35,"query_location_length":6,"schema_name":"","table_name":"fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fact"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":52,"query_location_length":12,"schema_name":"","table_name":"dim_unique","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim_unique"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["f","fk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":4,"column_names":["d","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":86,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":4,"column_names":["f","fk"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT p.i,__mark_join_marker FROM probe p JOIN BY (TYPE MARK) build b ON 2=b.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["p","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":43,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":63,"query_location_length":7,"schema_name":"","table_name":"build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":3,"column_names":["b","i"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT __mark_join_marker FROM (SELECT NULL::INTEGER AS dummy) l JOIN BY(TYPE MARK) (SELECT 1 AS i) r ON 1=r.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":45,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":31,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"dummy","query_location":43,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":84,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":3,"column_names":["r","i"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a,__mark_join_marker FROM distinct_probe JOIN BY (TYPE MARK) distinct_build ON a\u003c\u003eb;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":48,"query_location_length":42,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":14,"schema_name":"","table_name":"distinct_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_probe"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":14,"schema_name":"","table_name":"distinct_build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":86,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["b"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT __mark_join_marker FROM (VALUES (1,2)) p(a,c) JOIN BY(TYPE MARK) (VALUES (1,3)) b(b,d) ON a=b-1 AND a=a+1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":59,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","c"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":72,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","d"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":97,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}]},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, p.v = ANY(SELECT c.v FROM candidates c WHERE p.g IS NOT DISTINCT FROM c.g) FROM probes p ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":11,"query_location_length":74,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["c","v"]}],"from_table":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":37,"query_location_length":12,"schema_name":"","table_name":"candidates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["candidates"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":56,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["c","g"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["p","v"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":91,"query_location_length":8,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT __mark_join_marker FROM (VALUES (row(1,NULL::INT))) p(c) JOIN BY(TYPE MARK) (VALUES (row(1,2))) b(d) ON c = d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":52,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":16,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":83,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["d"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM residual_vectors_probe JOIN BY(TYPE SEMI) residual_vectors_build ON a\u003c2 AND a+b=2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":22,"schema_name":"","table_name":"residual_vectors_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["residual_vectors_probe"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":22,"schema_name":"","table_name":"residual_vectors_build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["residual_vectors_build"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":82,"query_location_length":13,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":82,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT row(NULL::INT,2) \u003c ANY (SELECT row(1,2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":40,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_LESSTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from (select 42) tbl(a) natural join (select 42) tbl2(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":46,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.product_id FROM (SELECT [1.0,0.0,0.0]::FLOAT[3] AS embedding) q\n INNER JOIN products t EXACT NEAREST 3 BY DISTANCE array_distance(q.embedding, t.embedding)\n ORDER BY t.product_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":12,"column_names":["t","product_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["t","product_id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":90,"left":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":25,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"embedding","query_location":46,"query_location_length":10,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":86,"query_location_length":10,"schema_name":"","table_name":"products","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["products"]}},"condition":null,"join_type":"INNER","ref_type":"NEAREST","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":40,"function_name":"array_distance","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":11,"column_names":["q","embedding"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":11,"column_names":["t","embedding"]}}],"qualified_name":{"path":["array_distance"]}},"nearest_count":3,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT q.id, t.y FROM lnums q\n INNER JOIN all_null t NEAREST 2 BY DISTANCE abs(q.x - t.y)\n ORDER BY q.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["q","id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["q","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["t","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"q","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"lnums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lnums"]}},"right":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":43,"query_location_length":10,"schema_name":"","table_name":"all_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_null"]}},"condition":null,"join_type":"INNER","ref_type":"NEAREST","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":14,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":3,"column_names":["q","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["t","y"]}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["abs"]}},"nearest_count":2,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sql LIKE '%EXACT NEAREST 2 BY DISTANCE%' FROM duckdb_views() WHERE view_name = 'default_view';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":36,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sql"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":31,"literal":{"kind":"STRING","text":"%EXACT NEAREST 2 BY DISTANCE%"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_views","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_views"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":9,"column_names":["view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":14,"literal":{"kind":"STRING","text":"default_view"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, r.b, s.c, (SELECT coalesce(l.a, r.b, s.c)) AS first_value\nFROM ((VALUES (1), (2)) l(a)\nFULL OUTER JOIN (VALUES (10), (20)) r(b)\n\tON EXISTS (SELECT 1 WHERE l.a = 1 AND r.b = 10))\nFULL OUTER JOIN (VALUES (100), (200)) s(c)\n\tON EXISTS (SELECT 1 WHERE l.a = 1 AND s.c = 100)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["s","c"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"first_value","query_location":22,"query_location_length":32,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":30,"query_location_length":23,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["r","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["s","c"]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":190,"query_location_length":92,"left":{"type":"JOIN","alias":"","sample":null,"query_location":99,"query_location_length":89,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":76,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":115,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":144,"query_location_length":44,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":167,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":167,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":179,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":3,"column_names":["r","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":206,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":237,"query_location_length":45,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":252,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":260,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":260,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":260,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":272,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM LATERAL (SELECT r.b) l(a)\nRIGHT JOIN (VALUES (1)) r(b) ON EXISTS (\n\tSELECT 1 WHERE l.a = r.b\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":68,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":22,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":51,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":72,"query_location_length":36,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.i, r.i, r.j\nFROM non_inner_l l\nFULL OUTER JOIN non_inner_r r ON l.i = (SELECT MIN(i) FROM non_inner_s)\nORDER BY l.i, r.i NULLS LAST, r.j NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":3,"column_names":["l","i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":3,"column_names":["r","i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["r","j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","j"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":26,"query_location_length":13,"schema_name":"","table_name":"non_inner_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":56,"query_location_length":13,"schema_name":"","table_name":"non_inner_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_r"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["l","i"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":79,"query_location_length":32,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":11,"schema_name":"","table_name":"non_inner_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM (VALUES (1, 1)) l(a, x)\nLEFT JOIN (VALUES (2, 1)) r(b, y)\nON #1 = 1\nAND #3 = 2\nAND EXISTS (\n\tSELECT 1\n\tWHERE l.x = r.y\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":96,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":48,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":75,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":6,"left":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":75,"query_location_length":2,"index":1},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":6,"left":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":86,"query_location_length":2,"index":3},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":97,"query_location_length":37,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":3,"column_names":["r","y"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, r.b\nFROM pair_l l\nFULL OUTER JOIN pair_r r ON r.b IN (\n\tSELECT s.b FROM pair_s s WHERE s.a = l.a\n)\nORDER BY l.a NULLS LAST, r.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":3,"column_names":["l","a"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":80,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":46,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":65,"query_location_length":45,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":84,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["l","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["r","b"]},"comparison_type":"COMPARE_EQUAL"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM pair_nested_outer_o o\nWHERE EXISTS (\n\tSELECT 1\n\tFROM pair_nested_l l\n\tFULL OUTER JOIN pair_nested_r r ON EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_nested_local_t t\n\t\tWHERE EXISTS (\n\t\t\tSELECT 1\n\t\t\tFROM pair_nested_local_s s\n\t\t\tWHERE s.a = l.a\n\t\t\t AND s.b = r.b\n\t\t\t AND s.c = t.c\n\t\t\t AND s.c = o.x\n\t\t)\n\t)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":14,"query_location_length":21,"schema_name":"","table_name":"pair_nested_outer_o","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_outer_o"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":42,"query_location_length":269,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":84,"query_location_length":225,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":67,"query_location_length":15,"schema_name":"","table_name":"pair_nested_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":100,"query_location_length":15,"schema_name":"","table_name":"pair_nested_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":119,"query_location_length":190,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":146,"query_location_length":21,"schema_name":"","table_name":"pair_nested_local_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_local_t"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":176,"query_location_length":130,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":205,"query_location_length":21,"schema_name":"","table_name":"pair_nested_local_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_local_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":236,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":236,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":236,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":255,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":255,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":274,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":274,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":3,"column_names":["t","c"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":293,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":293,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":299,"query_location_length":3,"column_names":["o","x"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.rowid, l.a, r.rowid, r.b\nFROM pair_rowid_l l\nFULL OUTER JOIN pair_rowid_r r ON EXISTS (\n\tSELECT 1 FROM pair_rowid_s s WHERE s.a = l.a AND s.b = r.b\n)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["l","rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":7,"column_names":["r","rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":54,"query_location_length":104,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":39,"query_location_length":14,"schema_name":"","table_name":"pair_rowid_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_rowid_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":70,"query_location_length":14,"schema_name":"","table_name":"pair_rowid_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_rowid_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":88,"query_location_length":70,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":112,"query_location_length":14,"schema_name":"","table_name":"pair_rowid_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_rowid_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":133,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":133,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, r.b, r2.c\nFROM pair_multi_l l\nFULL OUTER JOIN (\n\tpair_multi_r r\n\tJOIN pair_multi_l2 r2 ON true\n) ON EXISTS (\n\tSELECT 1\n\tFROM pair_multi_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n\t AND s.c = r2.c\n)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["r2","c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":163,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":27,"query_location_length":14,"schema_name":"","table_name":"pair_multi_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_l"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":77,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":61,"query_location_length":14,"schema_name":"","table_name":"pair_multi_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_r"]}},"right":{"type":"BASE_TABLE","alias":"r2","sample":null,"query_location":82,"query_location_length":16,"schema_name":"","table_name":"pair_multi_l2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_l2"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":112,"query_location_length":93,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":137,"query_location_length":14,"schema_name":"","table_name":"pair_multi_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":159,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":159,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":193,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":4,"column_names":["r2","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, r.b\nFROM pair_empty_l l\nFULL OUTER JOIN pair_empty_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_empty_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":109,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"pair_empty_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_empty_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":52,"query_location_length":14,"schema_name":"","table_name":"pair_empty_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_empty_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":70,"query_location_length":75,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":95,"query_location_length":14,"schema_name":"","table_name":"pair_empty_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_empty_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":117,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":117,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":134,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, l.x, r.b\nFROM pair_l l\nLEFT JOIN pair_r r ON l.a IN (\n\tSELECT s.a FROM pair_s s WHERE s.b = r.b\n)\nORDER BY l.x, r.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":3,"column_names":["l","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":74,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":26,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":64,"query_location_length":45,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["s","a"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":83,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":3,"column_names":["r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["l","a"]},"comparison_type":"COMPARE_EQUAL"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.a, l.x, r.b\nFROM pair_l l\nLEFT JOIN pair_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_left_nested_t t\n\tWHERE EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_left_multi_s s\n\t\tWHERE s.a = l.a\n\t\t AND s.b = r.b\n\t\t AND s.c = t.c\n\t)\n)\nORDER BY l.a, l.x, r.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":3,"column_names":["l","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":3,"column_names":["l","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":235,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":180,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":26,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":158,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":82,"query_location_length":20,"schema_name":"","table_name":"pair_left_nested_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_nested_t"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":110,"query_location_length":103,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":137,"query_location_length":19,"schema_name":"","table_name":"pair_left_multi_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_multi_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":165,"query_location_length":45,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":165,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":183,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":201,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":3,"column_names":["t","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH q AS (\n\tSELECT count(*)::INTEGER AS count_value\n\tFROM pair_left_effect_l l\n\tSEMI JOIN (SELECT b, nextval('pair_exists_right_effect_seq') AS v FROM pair_left_effect_r) r ON EXISTS (\n\t\tSELECT 1 WHERE l.a = r.v\n\t)\n)\nSELECT count_value, currval('pair_exists_right_effect_seq') FROM q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"q","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"count_value","query_location":28,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":81,"query_location_length":134,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":59,"query_location_length":20,"schema_name":"","table_name":"pair_left_effect_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_effect_l"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":91,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":102,"query_location_length":39,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":30,"literal":{"kind":"STRING","text":"pair_exists_right_effect_seq"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":152,"query_location_length":18,"schema_name":"","table_name":"pair_left_effect_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_effect_r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":177,"query_location_length":38,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":3,"column_names":["r","v"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":11,"column_names":["count_value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":238,"query_location_length":39,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":30,"literal":{"kind":"STRING","text":"pair_exists_right_effect_seq"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":283,"query_location_length":1,"schema_name":"","table_name":"q","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["q"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), count(lid), currval('pair_volatile_right_seq')\nFROM pair_volatile_right_result;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["lid"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":34,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":25,"literal":{"kind":"STRING","text":"pair_volatile_right_seq"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":26,"schema_name":"","table_name":"pair_volatile_right_result","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_volatile_right_result"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT outer_l.a, q.a, q.x, q.b\nFROM pair_right_corr_outer_l outer_l\nLEFT JOIN LATERAL (\n\tWITH cl AS (SELECT a, x FROM pair_l WHERE pair_l.a = outer_l.a)\n\tSELECT cl.a, cl.x, r.b\n\tFROM cl\n\tLEFT JOIN pair_r r ON EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_s s\n\t\tWHERE s.a = cl.a\n\t\t AND s.b = r.b\n\t)\n) q ON true\nORDER BY outer_l.a, q.a, q.x, q.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":307,"query_location_length":9,"column_names":["outer_l","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":318,"query_location_length":3,"column_names":["q","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":323,"query_location_length":3,"column_names":["q","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":328,"query_location_length":3,"column_names":["q","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["outer_l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["q","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["q","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["q","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":69,"query_location_length":228,"left":{"type":"BASE_TABLE","alias":"outer_l","sample":null,"query_location":37,"query_location_length":31,"schema_name":"","table_name":"pair_right_corr_outer_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_right_corr_outer_l"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":87,"query_location_length":200,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cl","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"query_location_length":6,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":8,"column_names":["pair_l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":9,"column_names":["outer_l","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":4,"column_names":["cl","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":4,"column_names":["cl","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":188,"query_location_length":97,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":184,"query_location_length":2,"schema_name":"","table_name":"cl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cl"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":198,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":210,"query_location_length":75,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":237,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":254,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":254,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":254,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":260,"query_location_length":4,"column_names":["cl","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":273,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":293,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r.b\nFROM (VALUES (1), (2)) l(a)\nJOIN BY (TYPE RIGHT_SEMI) (VALUES (1), (3)) r(b)\nON EXISTS (SELECT 1 WHERE l.a = r.b)\nORDER BY r.b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":85,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":16,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":65,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":91,"query_location_length":33,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":3,"column_names":["r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"RIGHT_SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM \n\t(SELECT * FROM threek WHERE id % 2 = 0) t1\n\tPOSITIONAL JOIN\n\t(SELECT * FROM threek WHERE id % 2 = 1) t2\nWHERE t1.id + 1 \u003c\u003e t2.id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":60,"query_location_length":59,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":16,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":6,"schema_name":"","table_name":"threek","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["threek"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":77,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":85,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":6,"schema_name":"","table_name":"threek","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["threek"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"POSITIONAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":126,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":5,"column_names":["t1","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["t2","id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE i IN (SELECT MAX(i) FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":29,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table l\nRIGHT JOIN right_table r ON l.id = r.id AND r.category = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":38,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":30,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["r","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["r","category"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT integers.*, integers2.* FROM integers2 RIGHT OUTER JOIN integers ON l=20 ORDER BY i, k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":10,"relation_name":"integers","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":19,"query_location_length":11,"relation_name":"integers2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select l.* from test_int l anti join test_int_del r on l.k is not distinct from r.pk;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"l","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":16,"query_location_length":10,"schema_name":"","table_name":"test_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_int"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"test_int_del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_int_del"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":55,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":3,"column_names":["l","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["r","pk"]}},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table ANTI JOIN right_table ON (left_table.a \u003e right_table.a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":55,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":51,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":12,"column_names":["left_table","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":13,"column_names":["right_table","a"]}},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r.i FROM left_input l JOIN BY (TYPE RIGHT_SEMI) right_input r ON r.i IS NOT DISTINCT FROM NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["r","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":72,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":16,"query_location_length":12,"schema_name":"","table_name":"left_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_input"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":55,"query_location_length":13,"schema_name":"","table_name":"right_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_input"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":72,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"join_type":"RIGHT_SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table SEMI JOIN right_table ON ([left_table.a, left_table.b] = [right_table.a, right_table.b]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":88,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":61,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":12,"column_names":["left_table","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":12,"column_names":["left_table","b"]}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":13,"column_names":["right_table","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":13,"column_names":["right_table","b"]}}],"qualified_name":{"path":["list_value"]}}},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a as outer_a, (SELECT ANY_VALUE(b) FROM right_table where right_table.a != outer_a) right_table_b FROM left_table SEMI JOIN right_table ON (left_table.a = right_table.a) Order by outer_a, right_table_b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":7,"column_names":["outer_a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":13,"column_names":["right_table_b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"outer_a","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"right_table_b","query_location":21,"query_location_length":69,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":12,"function_name":"any_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["any_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":65,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":13,"column_names":["right_table","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":7,"column_names":["outer_a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":121,"query_location_length":55,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":131,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":12,"column_names":["left_table","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":13,"column_names":["right_table","a"]}},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * FROM t1 WHERE NOT EXISTS (SELECT 1 FROM t0 WHERE null);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":40,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":27,"query_location_length":36,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (\n SELECT 1 FROM t1 RIGHT JOIN (SELECT 1 AS col0 FROM t1) AS sub0\n ON ((EXISTS (SELECT 1 FROM t1 WHERE t1.c2 \u003c 0)) NOT BETWEEN (t1.c2 = t1.c1) AND t1.c0)\n UNION ALL\n SELECT 1 FROM t1 RIGHT JOIN (SELECT 1 AS col0 FROM t1) AS sub0\n ON ((EXISTS (SELECT 1 FROM t1 WHERE t1.c2 \u003c 0)) NOT BETWEEN (t1.c2 = t1.c1) AND t1.c0)\n) x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":21,"query_location_length":327,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":136,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"SUBQUERY","alias":"sub0","sample":null,"query_location":53,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":96,"query_location_length":81,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":144,"query_location_length":33,"input":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":97,"query_location_length":41,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":128,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":5,"column_names":["t1","c2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"lower":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":5,"column_names":["t1","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":5,"column_names":["t1","c1"]}},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":5,"column_names":["t1","c0"]}}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":210,"query_location_length":136,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":207,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"SUBQUERY","alias":"sub0","sample":null,"query_location":221,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col0","query_location":229,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":244,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":264,"query_location_length":81,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":312,"query_location_length":33,"input":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":265,"query_location_length":41,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":280,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":287,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":296,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":5,"column_names":["t1","c2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":304,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"lower":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":321,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":321,"query_location_length":5,"column_names":["t1","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":329,"query_location_length":5,"column_names":["t1","c1"]}},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":340,"query_location_length":5,"column_names":["t1","c0"]}}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, z\nFROM wide_nulls, limits_nulls\nWHERE c0 \u003c z\n AND c1 \u003c z\n AND c2 \u003c z\n AND c3 \u003c z\n AND c4 \u003c z\n AND c5 \u003c z\n AND c6 \u003c z\n AND c7 \u003c z\n AND c8 \u003c z\n AND c9 \u003c z\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":12,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":10,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_nulls"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":12,"schema_name":"","table_name":"limits_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits_nulls"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":123,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":48,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["c0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":61,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":2,"column_names":["c1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":74,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":2,"column_names":["c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":87,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["c3"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":100,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["c4"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":2,"column_names":["c5"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":126,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":2,"column_names":["c6"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":139,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":2,"column_names":["c7"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":152,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":2,"column_names":["c8"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":1,"column_names":["z"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":165,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":2,"column_names":["c9"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":1,"column_names":["z"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM left_table l\nSEMI JOIN empty_table e ON TRUE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":37,"query_location_length":13,"schema_name":"","table_name":"empty_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empty_table"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t1 JOIN BY (TYPE left) t2 ON (a = b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["b"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select l.c2\nfrom tleft l\nleft join tright r\non l.c0 \u003e= r.c0\nand l.c2 != r.c1\nand l.c2\norder by 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["l","c2"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":60,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":17,"query_location_length":7,"schema_name":"","table_name":"tleft","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tleft"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"tright","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tright"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":38,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":47,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["l","c0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["r","c0"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":64,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["l","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["r","c1"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":4,"column_names":["l","c2"]}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t1.i, t1.s1, t1.s2, t2.s1, t2.s2 FROM test1 t1, test2 t2 WHERE t1.i = t2.i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t1","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["t1","s1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["t1","s2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["t2","s1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":5,"column_names":["t2","s2"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":55,"query_location_length":8,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":4,"column_names":["t1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":4,"column_names":["t2","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT replace(replace(trim(content, chr(10)), chr(10), ' '), chr(9), '') FROM read_text('{TEST_DIR}/formats.geojsonl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":45,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}}],"qualified_name":{"path":["trim"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["replace"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["replace"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":79,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/formats.geojsonl"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT replace(replace(trim(content, chr(10)), chr(10), ' '), chr(9), '') FROM read_text('{TEST_DIR}/no_geom_ok.geojsonl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":45,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}}],"qualified_name":{"path":["trim"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["replace"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["chr"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["replace"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":79,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/no_geom_ok.geojsonl"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_json('{DATA_DIR}/json/internal_2732.json', map_inference_threshold=0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":74,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":36,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/internal_2732.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":23,"column_names":["map_inference_threshold"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_json_auto('{DATA_DIR}/json/arr.json', columns={'v':'VARCHAR','k':'VARCHAR'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":81,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":26,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/arr.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":70,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"k","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":84,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_json_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof(test) from '{TEST_DIR}/manynulls.json' limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":4,"column_names":["test"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/manynulls.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/manynulls.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH path AS (\n SELECT '$.\"Status / SubStatus\"' p\n)\nSELECT '{\"Status / SubStatus\": \"test\"}' -\u003e p\nFROM path","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"path","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"p","query_location":26,"query_location_length":24,"literal":{"kind":"STRING","text":"$.\"Status / SubStatus\""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":62,"query_location_length":37,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":32,"literal":{"kind":"STRING","text":"{\"Status / SubStatus\": \"test\"}"}},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["p"]},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":4,"schema_name":"","table_name":"path","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["path"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT to_json((1::UHUGEINT \u003c\u003c 100)::DECIMAL(38,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":15,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":18,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["\u003c\u003c"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["to_json"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select from_hex('aa')::json;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"aa"}}}],"qualified_name":{"path":["from_hex"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[],"qualified_name":{"path":["json"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT JSON_OBJECT('key_1', 'one', 'key_2', NULL) AS KEEP_NULL_1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"KEEP_NULL_1","query_location":7,"query_location_length":42,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"key_1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"STRING","text":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"key_2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_object"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM '{DATA_DIR}/json/duplicate_column_names.json'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":45,"schema_name":"","table_name":"{DATA_DIR}/json/duplicate_column_names.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/json/duplicate_column_names.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cast(['[1, 2]', '[3, 4]'] as json[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":8,"literal":{"kind":"STRING","text":"[1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":8,"literal":{"kind":"STRING","text":"[3, 4]"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[],"qualified_name":{"path":["json"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('{\"duck\":42' AS JSON)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":12,"literal":{"kind":"STRING","text":"{\"duck\":42"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('{\"duck\":42}'::JSON AS MAP(INTEGER, INTEGER))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":54,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"{\"duck\":42}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '[{\"some_key\":\"some_v}alue\"}]'::json[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":30,"literal":{"kind":"STRING","text":"[{\"some_key\":\"some_v}alue\"}]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[],"qualified_name":{"path":["json"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT from_json('{\"x\":{\"b\":1}}', '{\"x\":{\"b\":\"INT\",\"B\":\"INT\"}}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"from_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"x\":{\"b\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":29,"literal":{"kind":"STRING","text":"{\"x\":{\"b\":\"INT\",\"B\":\"INT\"}}"}}}],"qualified_name":{"path":["from_json"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(from_json('{\"g\":{\"type\":\"Point\",\"coordinates\":[5,6]}}', '{\"g\":\"GEOMETRY\"}').g);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":17,"query_location_length":77,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":75,"function_name":"from_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":44,"literal":{"kind":"STRING","text":"{\"g\":{\"type\":\"Point\",\"coordinates\":[5,6]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":18,"literal":{"kind":"STRING","text":"{\"g\":\"GEOMETRY\"}"}}}],"qualified_name":{"path":["from_json"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":2,"literal":{"kind":"STRING","text":"g"}}]}}],"qualified_name":{"path":["st_astext"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT json_extract(example, k) AS v FROM (SELECT 'key' AS k) keys)\nFROM testjson;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":68,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":15,"query_location_length":24,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["example"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"SUBQUERY","alias":"keys","sample":null,"query_location":50,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":58,"query_location_length":5,"literal":{"kind":"STRING","text":"key"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":8,"schema_name":"","table_name":"testjson","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["testjson"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_contains('{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}', '[{\"d\": 2, \"c\": 1}]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"json_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":34,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":20,"literal":{"kind":"STRING","text":"[{\"d\": 2, \"c\": 1}]"}}}],"qualified_name":{"path":["json_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [{'a': 1, 'b': [1]}::VARIANT]::JSON","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":22,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_object('nested', map(['duck', 'goose'], [42, 7]))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"literal":{"kind":"STRING","text":"nested"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":31,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["json_object"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_quote(map(list(b), list(c))) from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_quote","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":21,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["list"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["json_quote"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select array_to_json({a: 42})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"array_to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":7,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["array_to_json"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_object('a',2,'c',json_object('e',5));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":18,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["json_object"]}}}],"qualified_name":{"path":["json_object"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deep_merge('{\"a\": 1}', '{\"b\": 2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"a\": 1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"b\": 2}"}}}],"qualified_name":{"path":["json_deep_merge"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deep_merge('{\"name\": \"x\"}', '{\"id\": 47}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"name\": \"x\"}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":12,"literal":{"kind":"STRING","text":"{\"id\": 47}"}}}],"qualified_name":{"path":["json_deep_merge"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deep_merge('{\"a\":1}', '{\"b\":2}', '{\"c\":3}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"c\":3}"}}}],"qualified_name":{"path":["json_deep_merge"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deep_merge('{\"a\":{\"b\":1},\"c\":{\"d\":2}}', '{\"a\":null,\"c\":{\"d\":null}}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":{\"b\":1},\"c\":{\"d\":2}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":null,\"c\":{\"d\":null}}"}}}],"qualified_name":{"path":["json_deep_merge"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deep_merge('{\"a\":1}', '{\"b\":null}') FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":12,"literal":{"kind":"STRING","text":"{\"b\":null}"}}}],"qualified_name":{"path":["json_deep_merge"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT MAX(i) FROM integers WHERE i \u003c\u003e i1.i), (SELECT MIN(i) FROM integers WHERE i \u003c= i1.i) FROM integers i1 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":45,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":92,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":108,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LEAST(1, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["least"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GREATEST(DATE '1992-01-01', DATE '1994-02-02', DATE '1991-01-01', DATE 'infinity', DATE '-infinity')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":100,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1994-02-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1991-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["greatest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LEAST(REPEAT(i::VARCHAR, 20), j::VARCHAR) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":22,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["j"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["least"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT round(99999999999999999999999999999999999999::DECIMAL(38,0), -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":38,"literal":{"kind":"INTEGER","text":"99999999999999999999999999999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CURRENT_SETTING(i::VARCHAR) FROM range(1) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":40,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, sleep_ms(1) FROM test_sleep_table WHERE id \u003c 3 ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":11,"function_name":"sleep_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sleep_ms"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":16,"schema_name":"","table_name":"test_sleep_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_sleep_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":51,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1, pg_sleep(0.001), 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":15,"function_name":"pg_sleep","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"0.001"}}}],"qualified_name":{"path":["pg_sleep"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i - 5) s FROM integers LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":13,"column_names":["s","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":60,"query_location_length":12,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'catalog': NULL::VARCHAR, 'table': 'tbl1'}, 'PRIMARY_tbl1_0', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":75,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":43,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"catalog","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"catalog","query_location":33,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":53,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":16,"literal":{"kind":"STRING","text":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'schema': 'main', 'table': 'tbl3'}, 'tbl3_idx', key1, key2, key3)\nFROM tbl3\nWHERE key1 BETWEEN 1 AND 4\nORDER BY key1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":4,"column_names":["key1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":35,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":45,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl3"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":10,"literal":{"kind":"STRING","text":"tbl3_idx"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["key1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["key2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["key3"]}}],"qualified_name":{"path":["index_key"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":4,"schema_name":"","table_name":"tbl3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl3"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":105,"query_location_length":15,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":4,"column_names":["key1"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'table': ''}, 'PRIMARY_tbl1_0', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":16,"literal":{"kind":"STRING","text":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'table': 'tbl2'}, 'FOREIGN_tbl2_2', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"index_key","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"tbl2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":16,"literal":{"kind":"STRING","text":"FOREIGN_tbl2_2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["index_key"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM equal_milliseconds WHERE epoch_ms(i) = 86400000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":18,"schema_name":"","table_name":"equal_milliseconds","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["equal_milliseconds"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":11,"function_name":"epoch_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["epoch_ms"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"literal":{"kind":"INTEGER","text":"86400000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT dayofyear(i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"dayofyear","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["dayofyear"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, DATE_PART(['hour', 'minute', 'second', 'epoch'], i) AS parts\nFROM intervals\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":10,"query_location_length":51,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(quarter FROM i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(year FROM interval '14 months ago')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"YEAR"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":15,"literal":{"kind":"STRING","text":"14 months ago"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT span * 8.2 AS product\nFROM INTERVAL_MULDIV_TBL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"product","query_location":7,"query_location_length":10,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["span"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"8.2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":19,"schema_name":"","table_name":"INTERVAL_MULDIV_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["INTERVAL_MULDIV_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_TRUNC('hour', i) FROM intervals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_approx_count_distinct([10]), list_approx_count_distinct(['hello']) from list_ints;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_approx_count_distinct"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":37,"function_name":"list_approx_count_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_approx_count_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":9,"schema_name":"","table_name":"list_ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_avg(i), list_avg(j) FROM vals;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list_avg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":11,"function_name":"list_avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["list_avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"vals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_bit_or([]) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_bit_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_bit_or"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_count([1]) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_first(d), list_first(dt), list_first(t), list_first(s) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["list_first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":14,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["list_first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["list_first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":13,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list_first"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_histogram(['2021-08-20'::TIMESTAMP_NS])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-08-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggr('{func_name}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":13,"literal":{"kind":"STRING","text":"{func_name}"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggr([1, 2, NULL], 'regr_r2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"regr_r2"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggr([1, 2, NULL], 'argmax');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"STRING","text":"argmax"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_last(d), list_last(dt), list_last(t), list_last(s) FROM five_dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["list_last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["list_last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["list_last"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":12,"function_name":"list_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list_last"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":10,"schema_name":"","table_name":"five_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_mad(x) from (values (['23:59:59.999999'::time, '00:00:00'::time])) tbl(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list_mad"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":24,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":43,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":17,"literal":{"kind":"STRING","text":"23:59:59.999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_median(r) FROM quantile","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"list_median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["list_median"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"quantile","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantile"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(s), MAX(s) FROM multi_member_struct;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":19,"schema_name":"","table_name":"multi_member_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["multi_member_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_mode(v) from dates;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"list_mode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list_mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggregate([1, 2], 'min')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list_aggregate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"min"}}}],"qualified_name":{"path":["list_aggregate"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_sem(l) from sems;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"list_sem","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["list_sem"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":4,"schema_name":"","table_name":"sems","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sems"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_string_agg(['a'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggr(n, 'sumKahan') FROM doubles;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"sumKahan"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_var_samp([1])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list_var_samp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_var_samp"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_aggr([0, 0], 'stddev')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":8,"literal":{"kind":"STRING","text":"stddev"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT len([1]) FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_to_string_comma_default([1,2,3], sep:='-')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"array_to_string_comma_default","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"sep","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"sep","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["array_to_string_comma_default"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cardinality(MAP {'a': 1, 'b': 2})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"cardinality","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":20,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["cardinality"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT flatten([NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"flatten","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["flatten"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, flatten([[1, 2], [3, 4]]) FROM nested_lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":25,"function_name":"flatten","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["flatten"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":12,"schema_name":"","table_name":"nested_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT range(0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT range(i, 5) FROM range(5) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":24,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT range(50, 1, -20)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-20"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT range(timestamp '2020-01-01', timestamp '2020-01-01', interval '1' day);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM generate_series(TIMESTAMP '294247-01-01', TIMESTAMP '294247-01-10', INTERVAL 3 DAY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":83,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT generate_subscripts([[1,2],[3,4],[5,6]], 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"generate_subscripts","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["generate_subscripts"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT generate_series('294247-01-10'::TIMESTAMPTZ, 'infinity'::TIMESTAMPTZ, INTERVAL '1 DAY');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":87,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":7,"literal":{"kind":"STRING","text":"1 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM glob('{TEST_DIR}/arrow_wal_v1_5.db.wal')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":34,"literal":{"kind":"STRING","text":"{TEST_DIR}/arrow_wal_v1_5.db.wal"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([True, False, NULL], x -\u003e x AND true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":43,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1] AS l, list_filter([1], l -\u003e l \u003e 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":28,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":34,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["l"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":39,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_filter(['x', 'abc', 'z'], x -\u003e contains(x || '0', 'a'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":38,"query_location_length":28,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":23,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":8,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_apply(col1, x -\u003e list_filter(col2, y -\u003e y)) from lambdas;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":24,"query_location_length":30,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":25,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["col2"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":47,"query_location_length":6,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["y"]},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_apply"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":7,"schema_name":"","table_name":"lambdas","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lambdas"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([1, 2], x -\u003e list_transform([3, 4], x -\u003e x));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":35,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":30,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":58,"query_location_length":6,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["x"]},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_intersect(LIST_VALUE(list_has_all(LIST_VALUE(list_has_any([1], [1])), [1])), [1])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":86,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":65,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":53,"function_name":"list_has_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":34,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":22,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_has_any"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_has_all"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_intersect"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM test_all_types() GROUP BY ALL HAVING array_intersect(NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":27,"function_name":"array_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["array_intersect"]},"is_legacy_function_call":false},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_filter(['apple', 'banana', 'cherry', 'kiwi', 'mango'], fruit -\u003e contains(fruit, 'a'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":90,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":46,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"apple"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"banana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"literal":{"kind":"STRING","text":"cherry"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":6,"literal":{"kind":"STRING","text":"kiwi"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":7,"literal":{"kind":"STRING","text":"mango"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":67,"query_location_length":29,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":5,"column_names":["fruit"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":20,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":5,"column_names":["fruit"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([100, 10, 1], (x, y, i) -\u003e x - y - i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":22,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(a, (x, y) -\u003e x + y) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([['a', 'b'], ['c', 'd'], ['e', 'f']], (x, y) -\u003e list_pack(list_reduce(x, (a, b) -\u003e a || b) || list_reduce(y, (c, d) -\u003e c || d)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":140,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"f"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":57,"query_location_length":89,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":79,"function_name":"list_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":68,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":32,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":92,"query_location_length":16,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":32,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":128,"query_location_length":16,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":6,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_pack"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(s, (a, b) -\u003e row(a.v || b.v, a.i + b.i)) FROM t_struct;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":36,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":26,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":10,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["a","v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["b","v"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":3,"column_names":["a","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["b","i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":8,"schema_name":"","table_name":"t_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(['Once', 'upon', 'a', 'time'], (x, y) -\u003e x || ' ' || y, '--\u003e');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":74,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":6,"literal":{"kind":"STRING","text":"Once"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"upon"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":6,"literal":{"kind":"STRING","text":"time"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":50,"query_location_length":23,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":13,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":5,"literal":{"kind":"STRING","text":"--\u003e"}}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([1, 2, 3], (x, y) -\u003e list_reduce([], (a, b) -\u003e x + y + a + b), 1000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":80,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":50,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":40,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":56,"query_location_length":23,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(n, (x, y) -\u003e list_reduce(l, (a, b) -\u003e x || y || a || b, initialL), initialN) FROM nested;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":62,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":52,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":47,"query_location_length":26,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":8,"column_names":["initialL"]}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":8,"column_names":["initialN"]}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":101,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_transform([[2, 4, 6]], x -\u003e list_transform(x, y -\u003e list_sum([y] || x)))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":35,"query_location_length":47,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":42,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":58,"query_location_length":23,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":18,"function_name":"list_sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":8,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_sum"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM read_parquet('{TEST_DIR}/my_file_' ||\nlist_aggr(list_transform(list_sort(['a', 'b', 'c'], 'DESC'), s -\u003e lower(s)), 'string_agg', '') || '.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":147,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":133,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":21,"literal":{"kind":"STRING","text":"{TEST_DIR}/my_file_"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":94,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":65,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":34,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":6,"literal":{"kind":"STRING","text":"DESC"}}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":120,"query_location_length":13,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["s"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":12,"literal":{"kind":"STRING","text":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":10,"literal":{"kind":"STRING","text":".parquet"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([1, 2, 3], x -\u003e 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":6,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform(list_value(list_unique(list_concat([1,2],[2,2]))), x -\u003e (x + 1)::INTEGER);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":49,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":37,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":24,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_unique"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":73,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([{'a': [1, 2, 3]}], x -\u003e x.a[2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":29,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":11,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":50,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["x","a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([[2, 3], [4]], x -\u003e list_transform(x, y -\u003e y + 1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":37,"query_location_length":34,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":29,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":60,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform(['1', '2', '3', '4'], (x, i) -\u003e (x || ' + ' || CAST(i AS string)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":81,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":44,"query_location_length":43,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":5,"literal":{"kind":"STRING","text":" + "}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":6,"catalog":"","schema":"","type_name":"string","children":[],"qualified_name":{"path":["string"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT (JSON '{ \"key\" : \"value\" }')-\u003ek AS v FROM (SELECT 'key' AS k) keys);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":75,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"v","query_location":15,"query_location_length":31,"lhs":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"{ \"key\" : \"value\" }"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["k"]},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"SUBQUERY","alias":"keys","sample":null,"query_location":57,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":65,"query_location_length":5,"literal":{"kind":"STRING","text":"key"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_filter([True, False, NULL], lambda x: x AND true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":50,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_filter([True], lambda x: x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":11,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_concat(list_filter([42, -42, 8, -5, 2], lambda elem: elem \u003e 0)::varchar[],\n\tlist_filter(['enjoy', 'life', 'to', 'the', 'fullest'], lambda str: str ILIKE '%e%'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":165,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":55,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":52,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":65,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["elem"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":83,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":41,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":7,"literal":{"kind":"STRING","text":"enjoy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":6,"literal":{"kind":"STRING","text":"life"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":4,"literal":{"kind":"STRING","text":"to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":5,"literal":{"kind":"STRING","text":"the"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":9,"literal":{"kind":"STRING","text":"fullest"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":143,"query_location_length":27,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["str"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":159,"query_location_length":11,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":5,"literal":{"kind":"STRING","text":"%e%"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_apply([[5,6]], lambda x: list_filter(x, lambda y: y));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":37,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":27,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":52,"query_location_length":11,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["y"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cos([1], x -\u003e x + 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"cos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":16,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["cos"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([1, 2], lambda x: x + sum(i)) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT list_transform([-2], lambda y: y.abs())) FROM t_scope;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":48,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":39,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":36,"query_location_length":17,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":7,"function_name":"abs","schema":"y","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["y","abs"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":7,"schema_name":"","table_name":"t_scope","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_scope"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r FROM upd_scope;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"upd_scope","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["upd_scope"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([-2], y -\u003e list_transform([1], lambda z: y.abs() + z));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":28,"query_location_length":47,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":42,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":53,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["z"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":7,"function_name":"abs","schema":"y","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["y","abs"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["z"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT max(list_transform([1, 2], lambda x: struct_pack(a := x))[2].a) FROM range(3)) FROM tt","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":86,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":63,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":19,"query_location_length":58,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":72,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":53,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":29,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":69,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"STRING","text":"a"}}]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":84,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":2,"schema_name":"","table_name":"tt","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tt"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_has_any(['b'], list_transform(['a'], lambda variable_has_any: variable_has_any)) AS list_transform_result;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"list_transform_result","query_location":7,"query_location_length":85,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":64,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":41,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["variable_has_any"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":16,"column_names":["variable_has_any"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_has_any"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([[1, NULL, 2], [3, NULL]], lambda a: list_filter(a, lambda x: x IS NOT NULL))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":92,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":49,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":39,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":74,"query_location_length":23,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":86,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["x"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([1, 2, 3], lambda x, y: x - y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(v, lambda x, y: y[i]) FROM right_only;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":17,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":36,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":10,"schema_name":"","table_name":"right_only","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_only"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(n, lambda x, y, x_i: list_reduce(l, lambda a, b, a_i: x + y + x_i \u003c a + b + a_i)) FROM nested;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":93,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":77,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x_i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":59,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":55,"query_location_length":43,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a_i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":73,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["a_i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([1, 2], lambda x, y: error('test error'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":32,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":19,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":12,"literal":{"kind":"STRING","text":"test error"}}}],"qualified_name":{"path":["error"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(l, lambda acc, x: acc + x + v, 0)\nFROM (VALUES ([1], NULL), ([1, 2], 30)) t(l, v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":26,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":3,"column_names":["acc"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":58,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["l","v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(NULL, lambda x, y, i: x + y + i, 100);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":25,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(l, lambda x, y: x || ' ' || y) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":26,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":13,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(n, lambda x, y, x_i: list_reduce(l, lambda a, b, a_i: x + y + x_i \u003c a + b + a_i), initial) FROM nested;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":102,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":77,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x_i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":59,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":55,"query_location_length":43,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a_i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":73,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["x_i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["a_i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["initial"]}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":115,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([1, 2, 3], lambda x, y: x + y, 10.5);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.5"}}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce(l, lambda x, y: x * y, initial) FROM cast_test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":7,"column_names":["initial"]}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":9,"schema_name":"","table_name":"cast_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cast_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, list_reduce(lst, lambda x, y: x + y) FROM t ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":36,"function_name":"list_reduce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["lst"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_apply(range(8), lambda x: list_aggr(list_apply(range(8),\n\tlambda y: list_element('▁▂▃▄▅▆▇█', 1+abs(y-x))), 'string_agg', ''));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":146,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":28,"query_location_length":124,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":114,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":85,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":8,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":70,"query_location_length":62,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":52,"function_name":"list_element","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":26,"literal":{"kind":"STRING","text":"▁▂▃▄▅▆▇█"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":8,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["abs"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_element"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":12,"literal":{"kind":"STRING","text":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lambda_macro(1, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"lambda_macro","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["lambda_macro"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform(['x', 'abc', 'z'], lambda x: x || '0')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":41,"query_location_length":18,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":8,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_apply([1, NULL], lambda arr_elem: arr_elem - 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":29,"query_location_length":29,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["arr_elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":8,"column_names":["arr_elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT (SELECT (SELECT list_transform(l, lambda elem: elem + 1)))) FROM corr_test ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":67,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":58,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"query_location_length":49,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":40,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":9,"schema_name":"","table_name":"corr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["corr_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([1, 2, 3, 4, 5, 6], lambda x, i: x * i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":18,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tlist_transform([1, 2, 3], lambda x, i:\n\t\tlist_transform([4, 5, 6], lambda y:\n\t\t\tlist_transform([7, 8, 9], lambda z:\n\t\t\t\tx + y + z + i)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":136,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":34,"query_location_length":109,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":94,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":75,"query_location_length":67,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":54,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":114,"query_location_length":27,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["z"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["z"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_concat([1, 2], [3, 4], [5, 6])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_concat([1, 2], [NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, list_concat(j, k, j, k, j, k) FROM lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":29,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1, 2] || NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains([], 7)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains([1.0,2.0,3.0,4.0],4.0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.0"}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT contains([], NULL), list_contains([]::VARCHAR[], NULL), list_contains([1], NULL), list_contains(NULL::INT[], NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":34,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":24,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":32,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains([[1,3],[1], [1,2,3]],[1,2,3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains([MAP([1], [2]), NULL], MAP([1], [2]))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_contains(m, NULL::INT) FROM (VALUES (map([1], [1]))) t(m);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"map_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["map_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":39,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["m"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_cosine_similarity([], []);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_cosine_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_cosine_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_distinct()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_distinct([NULL::VARCHAR])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_distinct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name FROM wheretest WHERE name ILIKE 'one%' AND list_unique(list_distinct(l)) \u003e 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":9,"schema_name":"","table_name":"wheretest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wheretest"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":55,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["name"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"one%"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":29,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":16,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["list_distinct"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_unique"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_sort(CAST({'a': 1, 'z': 2} AS VARIANT))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":33,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_has_any(l1) from list_of_strings;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"list_has_any","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["l1"]}}],"qualified_name":{"path":["list_has_any"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":15,"schema_name":"","table_name":"list_of_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_of_strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select l1 \u0026\u0026 NULL from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"\u0026\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["l1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["\u0026\u0026"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_intersect(l1, l2) from large_lists;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["l1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["l2"]}}],"qualified_name":{"path":["list_intersect"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"large_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_sort(list_intersect([true, false, 1], [1, 0, 1, 1, 1, 1, 1]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":55,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_intersect"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, list_position(i,'a') from STR_TEST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":20,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"STR_TEST","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["STR_TEST"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_position([1.0,2.0,3.0]::varchar[], 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_position(NULL,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_position([[1,2,3],[1]],[2])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_position([{a: 1, b: 3}, {a: 2, b: 2}], {a: 1, b: 2})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":12,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":12,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":12,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, list_position(a, NULL) IS NOT NULL\nFROM VALUES ([2, 2, 3, NULL, NULL]), (NULL), ([]::INTEGER[]), ([NULL]) df(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":33,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":22,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false}]}],"from_table":{"type":"SUBQUERY","alias":"df","sample":null,"query_location":50,"query_location_length":71,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_resize([], 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_resize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_resize([{'i': 1,'j': [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}]}, NULL, {'i': 1, 'j': [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}]}], 4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":127,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":111,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":50,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":33,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":51,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":92,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_resize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_resize([1, 2, 3], 4000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4000"}}}],"qualified_name":{"path":["list_resize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(list_resize([1, 2], 3, b)) FROM test_vector_types(NULL::INT) t(b)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":25,"function_name":"list_resize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list_resize"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["test_vector_types"]},"is_legacy_function_call":false},"column_name_alias":["b"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, list_reverse(list) FROM tbl ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":18,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":4,"column_names":["list"]}}],"qualified_name":{"path":["list_reverse"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reverse(*)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_reverse"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_select([1, 2, 3], [NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"list_select","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_select"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_sort(list_distinct([INTERVAL '31 days', INTERVAL '1 month', INTERVAL '31 days']))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":86,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":75,"function_name":"list_distinct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":60,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":9,"literal":{"kind":"STRING","text":"31 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":9,"literal":{"kind":"STRING","text":"1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":9,"literal":{"kind":"STRING","text":"31 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_distinct"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(l), typeof(g) FROM t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_unique([1, 1, NULL, 2, 2, 2, 3, NULL, NULL])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":36,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_unique"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_unique(['2021-08-20 00:00:00.123'::TIMESTAMP_MS])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"list_unique","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":41,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":25,"literal":{"kind":"STRING","text":"2021-08-20 00:00:00.123"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_unique"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_value([1, 2]::INTEGER[2], [3, 4]::DOUBLE[2], [5, 6]::INTEGER[2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":69,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_value(a, b, c) FROM nested_array_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":18,"schema_name":"","table_name":"nested_array_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_array_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_VALUE(['a', 'a'], ['b', 'b', 'b'], ['c']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_value(NULL, {'a': 1, 'b': 'a'}, {'a': 2, 'b': 'b'}, NULL, {'a': 3, 'b': 'c'});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":84,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select g, list_where(l, s) l from lists, bools","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":10,"query_location_length":16,"function_name":"list_where","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["list_where"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"bools","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bools"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_where(['2021-08-20'::TIMESTAMPTZ], [true])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"list_where","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":27,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-08-20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_where"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_zip([1,2,3], [2,3,4], [3,4,5], []);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_zip"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_zip(a.i, b.i) as zipped_list FROM integers AS a, integers as b order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"zipped_list","query_location":7,"query_location_length":18,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["a","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["b","i"]}}],"qualified_name":{"path":["list_zip"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":46,"query_location_length":13,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":61,"query_location_length":13,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_zip([NULL::VARCHAR])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_zip"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_zip([NULL::BLOB])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_zip"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_zip(TRUE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"list_zip","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_zip"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT repeat([1], 99999999999999999);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":17,"literal":{"kind":"INTEGER","text":"99999999999999999"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (ROW(42, 84))[-1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":20,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_insert(col, a := NULL, b := NULL::VARCHAR, c := [NULL]) FROM tbl ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"struct_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["col"]}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":46,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"c","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":62,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_insert"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_update(col, i:=10) FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"struct_update","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["col"]}},{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["struct_update"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bit_count(-1::HUGEINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY(10.0 % 0.0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":15,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":10,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t1 using sample 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":5},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT binom(0, 0), binom(1, 0), binom(1, 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"binom","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["binom"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":11,"function_name":"binom","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["binom"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":11,"function_name":"binom","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["binom"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bit_count(t), bit_count(s), bit_count(i), bit_count(b), bit_count(h) from bits","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":12,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":12,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":12,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":12,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["h"]}}],"qualified_name":{"path":["bit_count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT factorial(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"factorial","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["factorial"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT fdiv(-42, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"fdiv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["fdiv"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(CEILING(n::double) as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":18,"function_name":"ceiling","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["ceiling"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT gamma(2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"gamma","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["gamma"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lgamma(10)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"lgamma","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["lgamma"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select lcm(4200000000000000000,5700000000000000000)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"lcm","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4200000000000000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":19,"literal":{"kind":"INTEGER","text":"5700000000000000000"}}}],"qualified_name":{"path":["lcm"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT POW(1e300,100), POW(-1e300,100), POW(-1.0, 0.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"pow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e300"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["pow"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":15,"function_name":"pow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"-1e300"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["pow"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":14,"function_name":"pow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["pow"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-128)::TINYINT % (-1)::TINYINT, (-32768)::SMALLINT % (-1)::SMALLINT, (-2147483648)::INTEGER % (-1)::INTEGER,\n (-9223372036854775808)::BIGINT % (-1)::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-128"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":35,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":6,"literal":{"kind":"INTEGER","text":"-32768"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":38,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483648"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":45,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":146,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":148,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":161,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select nextafter(99.0::FLOAT, 1.0::FLOAT) \u003c 99","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":39,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"nextafter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"99.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["nextafter"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select log(100.0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"100.0"}}}],"qualified_name":{"path":["log"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select log(0, 64)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}],"qualified_name":{"path":["log"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select log(64, '-Inf'::DOUBLE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"-Inf"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["log"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT a FROM t1 JOIN t2 ON (a=b) JOIN t3 ON (b=c)) s1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"s1","sample":null,"query_location":21,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":16,"left":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["c"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select round(42.12345::DOUBLE, 4), round(42.1235::DOUBLE, 1000)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":8,"literal":{"kind":"NUMERIC","text":"42.12345"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":28,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"42.1235"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT round(2.675::DOUBLE, 2)::VARCHAR, round(-2.675::DOUBLE, 2)::VARCHAR, round(1.005::DOUBLE, 2)::VARCHAR, round(4.025::DOUBLE, 2)::VARCHAR, round(1.115::DOUBLE, 2)::VARCHAR, round(0.45::DOUBLE, 1)::VARCHAR, round(1.0005::DOUBLE, 3)::VARCHAR, round(-1.0005::DOUBLE, 3)::VARCHAR, round(123.456785::DOUBLE, 5)::VARCHAR, round(2.675::FLOAT, 2)::VARCHAR, round(0.125::DOUBLE, 2)::VARCHAR, round(0.375::DOUBLE, 2)::VARCHAR, round(2.5::DOUBLE, 0)::VARCHAR, round(3.5::DOUBLE, 0)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"2.675"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":24,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":14,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"2.675"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1.005"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"4.025"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":167,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":155,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1.115"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":157,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":169,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":200,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":178,"query_location_length":22,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":188,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.45"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":190,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":202,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":235,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":211,"query_location_length":24,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":223,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"1.0005"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":225,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":237,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":271,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":246,"query_location_length":25,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":252,"query_location_length":15,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":259,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":253,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"1.0005"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":261,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":269,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":273,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":310,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":282,"query_location_length":28,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":298,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":10,"literal":{"kind":"NUMERIC","text":"123.456785"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":300,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":308,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":312,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":343,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":321,"query_location_length":22,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":332,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":327,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"2.675"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":334,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":341,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":345,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":377,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":354,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":365,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":360,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"0.125"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":367,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":375,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":379,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":411,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":388,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":399,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":394,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"0.375"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":401,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":409,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":413,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":443,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":422,"query_location_length":21,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":431,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":428,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":433,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":441,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":445,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":475,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":454,"query_location_length":21,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":463,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":460,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":465,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":473,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":477,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select i, roundBankers(i + 0.55, 0) from generate_series(-2,4) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":25,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.55"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["roundbankers"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":41,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT roundBankers(NULL, 1), roundBankers(45, NULL), roundBankers(NULL, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["roundbankers"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":22,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"45"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["roundbankers"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":24,"function_name":"roundbankers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["roundbankers"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT round((-128)::TINYINT, -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-128"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT signbit(1.0 / 0.0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"signbit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":9,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["signbit"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(COS(n::double)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":19,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":14,"function_name":"cos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["cos"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ATAN(n::double)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":15,"function_name":"atan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["atan"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ACOS(n::double)*1000 as bigint) FROM numbers WHERE n between -1 and 1 ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":15,"function_name":"acos","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["acos"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":66,"query_location_length":16,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["n"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ATAN2(n::float, 42)*1000 as bigint) FROM numbers ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":24,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":19,"function_name":"atan2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["atan2"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select tanh(-0.5), tanh(0), tanh(0.5), tanh(1000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"tanh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"-0.5"}}}],"qualified_name":{"path":["tanh"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":7,"function_name":"tanh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["tanh"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":9,"function_name":"tanh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["tanh"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":10,"function_name":"tanh","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["tanh"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::SMALLINT + 1::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::BIGINT + 1::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::REAL + 1::DOUBLE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT +++++++i FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i*2=6, 6=i*2 FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":14,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * - + 16 * CASE + + AVG ( ALL 97 ) WHEN ( + NULLIF ( SUM ( CAST ( NULL AS REAL ) ), 6 ) ) THEN 51 * 31 + - 6 WHEN + 48 * - 34 THEN NULL WHEN 91 * + ( SUM ( CAST ( NULL AS INTEGER ) ) ) THEN NULL END * - 4 + - 67;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":270,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":262,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":26,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":11,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":6,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":76,"query_location_length":187,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":18,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":14,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":45,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":43,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"query_location_length":29,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":139,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["nullif"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":168,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":160,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":2,"literal":{"kind":"INTEGER","text":"51"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":2,"literal":{"kind":"INTEGER","text":"31"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-6"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":18,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":14,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":2,"literal":{"kind":"INTEGER","text":"48"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-34"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":18,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":14,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"97"}}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"query_location_length":43,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":2,"literal":{"kind":"INTEGER","text":"91"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":211,"query_location_length":38,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":215,"query_location_length":32,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":221,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":236,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-4"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":272,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-67"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2.0 \u003c\u003c 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["\u003c\u003c"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 20.0 = 'abc'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":12,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"20.0"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM range(10) t(i) WHERE \"\u003e\"(i, 4.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":21,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":11,"function_name":"\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.5"}}}],"qualified_name":{"path":["\u003e"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT true OR NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT false OR i\u003e3 FROM a ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":16,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d, t, d + t\nFROM dates, times\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1 day' / 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test WHERE a IN ('a', 'b', 'c', 'd', 'e')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":30,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT format_bytes(pow(1024.0,4)::BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"format_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":13,"function_name":"pow","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"1024.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["pow"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["format_bytes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT formatReadableSize(500*1000*1000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"formatreadablesize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":13,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["formatreadablesize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT from_hex(to_hex(columns('^(.*int|varchar)$'))) FROM test_all_types();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":36,"function_name":"to_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":23,"query_location_length":28,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":19,"literal":{"kind":"STRING","text":"^(.*int|varchar)$"}},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["to_hex"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["from_hex"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":59,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, hex(v), bin(v) FROM with_nulls ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["hex"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"bin","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["bin"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"with_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["with_nulls"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT hive_partition_component('k', TIMESTAMP '2024-01-15 10:30:00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"hive_partition_component","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-15 10:30:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["hive_partition_component"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select md5('hello'), md5(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"md5","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["md5"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":9,"function_name":"md5","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["md5"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM hangul WHERE s COLLATE NFC = chr(44032) ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":6,"schema_name":"","table_name":"hangul","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hangul"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":26,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":28,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]},"collation":"NFC"},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":10,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"INTEGER","text":"44032"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM null_byte WHERE regexp_matches(v, chr(0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"null_byte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_byte"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":25,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM null_byte JOIN more_null_bytes USING(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"null_byte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_byte"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":15,"schema_name":"","table_name":"more_null_bytes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["more_null_bytes"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["v"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT overlay('33333rce' placing 'resou' from -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"overlay","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":10,"literal":{"kind":"STRING","text":"33333rce"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":7,"literal":{"kind":"STRING","text":"resou"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["overlay"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT overlay('' placing '' from 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"overlay","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["overlay"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_formatted_bytes('1 KB');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"1 KB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_formatted_bytes(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["parse_formatted_bytes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_formatted_bytes(' -1 KiB');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":9,"literal":{"kind":"STRING","text":" -1 KiB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_formatted_bytes('18014398509481982 KiB');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"parse_formatted_bytes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":23,"literal":{"kind":"STRING","text":"18014398509481982 KiB"}}}],"qualified_name":{"path":["parse_formatted_bytes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_path('file.csv', 'both_slash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":10,"literal":{"kind":"STRING","text":"file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":12,"literal":{"kind":"STRING","text":"both_slash"}}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select parse_path('///');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"///"}}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_dirname('wh@t3ve%\\42/12 ch,ars.sth', 'both_slash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"parse_dirname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":27,"literal":{"kind":"STRING","text":"wh@t3ve%\\42/12 ch,ars.sth"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":12,"literal":{"kind":"STRING","text":"both_slash"}}}],"qualified_name":{"path":["parse_dirname"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_dirpath('\\', 'backslash');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"backslash"}}}],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_dirpath();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select parse_filename('/');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["parse_filename"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_filename('path/to/file.csv', NULL, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":18,"literal":{"kind":"STRING","text":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["parse_filename"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, parse_path(path[1], separator)\nFROM (VALUES (0, ['a/b\\c'], 'forward_slash'), (1, ['a/b\\c'], 'backslash'), (2, ['a/b\\c'], NULL)) t(id, path, separator)\nWHERE id \u003c\u003e 0 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":30,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":26,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["path"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":9,"column_names":["separator"]}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":7,"literal":{"kind":"STRING","text":"a/b\\c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":15,"literal":{"kind":"STRING","text":"forward_slash"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":7,"literal":{"kind":"STRING","text":"a/b\\c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":11,"literal":{"kind":"STRING","text":"backslash"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":7,"literal":{"kind":"STRING","text":"a/b\\c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","path","separator"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":168,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (parse_dirpath('path\\to\\file.csv/file2.csv', 'system')), (parse_dirpath('path/to/file.csv\\file2.csv', 'both_slash')), (parse_dirpath('path/to/file.csv', 'forward_slash')), (parse_dirpath('path\\to\\file.csv/file2.csv', 'backslash'))) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":239,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":53,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":28,"literal":{"kind":"STRING","text":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":8,"literal":{"kind":"STRING","text":"system"}}}],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":57,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":28,"literal":{"kind":"STRING","text":"path/to/file.csv\\file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":12,"literal":{"kind":"STRING","text":"both_slash"}}}],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"query_location_length":50,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":18,"literal":{"kind":"STRING","text":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":15,"literal":{"kind":"STRING","text":"forward_slash"}}}],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":195,"query_location_length":56,"function_name":"parse_dirpath","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":28,"literal":{"kind":"STRING","text":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":11,"literal":{"kind":"STRING","text":"backslash"}}}],"qualified_name":{"path":["parse_dirpath"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT path_join('/usr/local', '../..');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"path_join","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":12,"literal":{"kind":"STRING","text":"/usr/local"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"../.."}}}],"qualified_name":{"path":["path_join"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT path_join(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"path_join","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["path_join"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH files AS (\n\tSELECT f.*, payload FROM filenames f, range(3) t(payload)\n), extracted AS (\n\tSELECT regexp_extract(filename, 'rundate_(\\d+-\\d+-\\d+)_([a-z]+?)_(\\d+)', ['rundate', 'opt', 'pass']) AS groups, payload \n\tFROM files\n)\nSELECT groups.rundate::DATE AS rundate, groups.opt AS opt, groups.pass::SMALLINT AS pass, SUM(payload)\nFROM extracted\nWHERE LENGTH(groups.rundate) \u003e 0\nGROUP BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"files","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":3,"relation_name":"f","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":42,"query_location_length":11,"schema_name":"","table_name":"filenames","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filenames"]}},"right":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":55,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["payload"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"extracted","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"groups","query_location":101,"query_location_length":93,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":39,"literal":{"kind":"STRING","text":"rundate_(\\d+-\\d+-\\d+)_([a-z]+?)_(\\d+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":167,"query_location_length":26,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":9,"literal":{"kind":"STRING","text":"rundate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":5,"literal":{"kind":"STRING","text":"opt"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":6,"literal":{"kind":"STRING","text":"pass"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":221,"query_location_length":5,"schema_name":"","table_name":"files","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["files"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"rundate","query_location":250,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":236,"query_location_length":14,"column_names":["groups","rundate"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":252,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"opt","query_location":269,"query_location_length":10,"column_names":["groups","opt"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"pass","query_location":299,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":11,"column_names":["groups","pass"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":301,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":319,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":323,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":337,"query_location_length":9,"schema_name":"","table_name":"extracted","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["extracted"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":353,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":353,"query_location_length":22,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":360,"query_location_length":14,"column_names":["groups","rundate"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":378,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_escape('a.b[c]*');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"regexp_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":9,"literal":{"kind":"STRING","text":"a.b[c]*"}}}],"qualified_name":{"path":["regexp_escape"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract('foobarbaz', 'B..', 0, 'i')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"B.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract('foobarbaz', 'b..', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"b.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract('abcdefg', 'A..', 'i', 'c');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"abcdefg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"A.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('1a 2b 14m', '\\\\d+', 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"\\\\d+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('a 2b 14m', '(\\\\d+)?([a-z]+)', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"literal":{"kind":"STRING","text":"a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":17,"literal":{"kind":"STRING","text":"(\\\\d+)?([a-z]+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regexp_extract_all('abcdef', 'ac.*e.')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"abcdef"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":8,"literal":{"kind":"STRING","text":"ac.*e."}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regexp_extract_all('', '(abc)')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"(abc)"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regexp_extract_all('', '(')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"("}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT str, \n REGEXP_EXTRACT_ALL(str,'a[bc]*d') AS matched\nFROM (\n VALUES ('ad'), ('abd'), ('acd'), ('abcd'), ('abcbbcd'), ('abce')\n) AS t(str)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["str"]},{"class":"FUNCTION","type":"FUNCTION","alias":"matched","query_location":15,"query_location_length":33,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"STRING","text":"a[bc]*d"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":65,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"STRING","text":"ad"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":5,"literal":{"kind":"STRING","text":"abd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"literal":{"kind":"STRING","text":"acd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":9,"literal":{"kind":"STRING","text":"abcbbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":6,"literal":{"kind":"STRING","text":"abce"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["str"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select REGEXP_EXTRACT_ALL('hello', '.', 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('abc', '(a)(b)(c)', ['x','x']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":11,"literal":{"kind":"STRING","text":"(a)(b)(c)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all(NULL, '(a)', ['g']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":38,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"literal":{"kind":"STRING","text":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('1a 2b 14m', '(\\d+)', ['g1']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":48,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"literal":{"kind":"STRING","text":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":7,"literal":{"kind":"STRING","text":"(\\d+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"STRING","text":"g1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('ababcd', '(ab){1,}cd', ['g1']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":50,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"ababcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":12,"literal":{"kind":"STRING","text":"(ab){1,}cd"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"STRING","text":"g1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('щцф', 'щ(..)..', ['g1']) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":48,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"щцф"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":10,"literal":{"kind":"STRING","text":"щ(..).."}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"STRING","text":"g1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('abc', '(a)', ['dup','dup']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"literal":{"kind":"STRING","text":"dup"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"dup"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM strings WHERE regexp_extract(s, '^([^:]+)://', ['protocol']).protocol = 'äabcdefghijk'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":73,"left":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":35,"query_location_length":55,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":46,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":13,"literal":{"kind":"STRING","text":"^([^:]+)://"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":10,"literal":{"kind":"STRING","text":"protocol"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":9,"literal":{"kind":"STRING","text":"protocol"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":15,"literal":{"kind":"STRING","text":"äabcdefghijk"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'abc' ~ '^a'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":6,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"^a"}}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'abc' ~ ANY([]::VARCHAR[])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":26,"case_checks":[{"when_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_pattern"]}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]},"expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__regex_match"]}]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_replace('foobarbaz', 'b..', 'X')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"b.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"X"}}}],"qualified_name":{"path":["regexp_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_replace('asdf', '.*SD.*', 'a', 'q')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"asdf"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":".*SD.*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"q"}}}],"qualified_name":{"path":["regexp_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_replace(s, '^a(.*)$|b(.*).*$', '\\1') FROM (VALUES ('xxbzz'), ('azz')) v(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":18,"literal":{"kind":"STRING","text":"^a(.*)$|b(.*).*$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"STRING","text":"\\1"}}}],"qualified_name":{"path":["regexp_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":56,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":7,"literal":{"kind":"STRING","text":"xxbzz"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"STRING","text":"azz"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM strings WHERE regexp_replace(s, '[aeiou]', '_', 'g') LIKE '%_%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":38,"function_name":"regexp_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":9,"literal":{"kind":"STRING","text":"[aeiou]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":3,"literal":{"kind":"STRING","text":"_"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}}],"qualified_name":{"path":["regexp_replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":5,"literal":{"kind":"STRING","text":"%_%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_full_match(c0, 'sd') from t0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"sd"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_matches(c0, '.*SD.*', 'i') from t0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":".*SD.*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_matches(c0, '.*SD.*', 'g') from t0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":".*SD.*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}}],"qualified_name":{"path":["regexp_matches"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract(s, p) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"regexp_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["regexp_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_split_to_table('a b c', ' ')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"regexp_split_to_table","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"literal":{"kind":"STRING","text":"a b c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["regexp_split_to_table"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sha1('\\xff\\xff'::BLOB)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"sha1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":10,"literal":{"kind":"STRING","text":"\\xff\\xff"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["sha1"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strip_accents('hello'), strip_accents('héllo')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"strip_accents","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["strip_accents"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":23,"function_name":"strip_accents","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}}],"qualified_name":{"path":["strip_accents"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_extract(s, 1) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"array_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["array_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ASCII('Ä')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"ascii","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"STRING","text":"Ä"}}}],"qualified_name":{"path":["ascii"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bar(9, 10, 20)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["bar"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bar(1, null, 10)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["bar"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bar(1, 0, 1, 1.125)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"bar","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1.125"}}}],"qualified_name":{"path":["bar"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select BIT_LENGTH(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"bit_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["bit_length"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":42,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UPPER(a), LOWER(a), UCASE(a), LCASE(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["upper"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"ucase","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["ucase"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":8,"function_name":"lcase","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["lcase"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":67,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT REVERSE('🤦🏼‍♂️ L🤦🏼‍♂️R 🤦🏼‍♂️')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":57,"literal":{"kind":"STRING","text":"🤦🏼‍♂️ L🤦🏼‍♂️R 🤦🏼‍♂️"}}}],"qualified_name":{"path":["reverse"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CONCAT('hello', 33, 22)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"22"}}}],"qualified_name":{"path":["concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_concat([1, 2], 4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select CONCAT_WS(',',a, 'SUFFIX') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":8,"literal":{"kind":"STRING","text":"SUFFIX"}}}],"qualified_name":{"path":["concat_ws"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select CONCAT_WS(',', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["concat_ws"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select CONCAT_WS(',', ['a', 'b'], 'c')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["concat_ws"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select CONCAT_WS(',', [], 'a', ['b','c'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["concat_ws"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT contains(s,'he-man') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"he-man"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT contains(s,'olá mundo') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":12,"literal":{"kind":"STRING","text":"olá mundo"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT damerau_levenshtein('laos', 'also')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"laos"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"literal":{"kind":"STRING","text":"also"}}}],"qualified_name":{"path":["damerau_levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT damerau_levenshtein('', 'great')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"great"}}}],"qualified_name":{"path":["damerau_levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT damerau_levenshtein('herse', s) FROM strings ORDER BY s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"herse"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["damerau_levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT damerau_levenshtein(s, NULL) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"damerau_levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["damerau_levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT format('{}', 120381902481294715712::HUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":21,"literal":{"kind":"INTEGER","text":"120381902481294715712"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["format"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT format('{:s}', 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"{:s}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["format"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select format('{:''}', 123456789)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"literal":{"kind":"STRING","text":"{:'}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}}}],"qualified_name":{"path":["format"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select format('{:t}', 123456789)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"format","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"{:t}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}}}],"qualified_name":{"path":["format"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aaa' GLOB 'a*'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":9,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"a*"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '012a' GLOB '[0-9][0-9][0-9]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":22,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"012a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":17,"literal":{"kind":"STRING","text":"[0-9][0-9][0-9]"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '3' GLOB '\\\\'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":9,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"\\\\"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'abac' GLOB '*a[bc]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":13,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"abac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"literal":{"kind":"STRING","text":"*a[bc]"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aébc' GLOB '*b?', '🦆x' GLOB '[🦆]x', 'x🦆' GLOB '*[!a]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":10,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"aébc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"STRING","text":"*b?"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":14,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"🦆x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"literal":{"kind":"STRING","text":"[🦆]x"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":12,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":7,"literal":{"kind":"STRING","text":"x🦆"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":7,"literal":{"kind":"STRING","text":"*[!a]"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aaa' ILIKE '____%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":13,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"____%"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'MÜHLEISEN' ILIKE 'mühleisen'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":18,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"MÜHLEISEN"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":12,"literal":{"kind":"STRING","text":"mühleisen"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t WHERE s ILIKE '%strasse%' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":17,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":11,"literal":{"kind":"STRING","text":"%strasse%"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('goo' || chr(0) || 'se') ILIKE ('goo' || chr(0) || 'se')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":31,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":23,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"STRING","text":"goo"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"STRING","text":"se"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":23,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":5,"literal":{"kind":"STRING","text":"goo"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"STRING","text":"se"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'a%c' ilike 'a$%C' escape NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":24,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"a%c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"a$%C"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["ilike_escape"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t WHERE s ILIKE '%hello%' ESCAPE '\\' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":26,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"%hello%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["ilike_escape"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t WHERE s ILIKE '%\\_%' ESCAPE '\\' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":23,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":6,"literal":{"kind":"STRING","text":"%\\_%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["ilike_escape"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM pats WHERE s ILIKE pat ESCAPE '\\' ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":4,"schema_name":"","table_name":"pats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pats"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":20,"function_name":"ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["pat"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["ilike_escape"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT instr(s,'o'),s FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"instr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"o"}}}],"qualified_name":{"path":["instr"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM t WHERE str LIKE '%o%'; -- 6","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":10,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"STRING","text":"%o%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT jaccard('aabb', 'ab')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"aabb"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}}],"qualified_name":{"path":["jaccard"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT jaccard('', '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["jaccard"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select jaro_winkler_similarity('0', '00')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"STRING","text":"00"}}}],"qualified_name":{"path":["jaro_winkler_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select jaro_winkler_similarity('foo', 'foo ')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":6,"literal":{"kind":"STRING","text":"foo "}}}],"qualified_name":{"path":["jaro_winkler_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select jaro_winkler_similarity('ABC Corporation', 'ABC Corp')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":17,"literal":{"kind":"STRING","text":"ABC Corporation"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":10,"literal":{"kind":"STRING","text":"ABC Corp"}}}],"qualified_name":{"path":["jaro_winkler_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT jaro_similarity(NULL, other)\nFROM (VALUES ('duck'), ('db')) strings(other);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"jaro_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["other"]}}],"qualified_name":{"path":["jaro_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"strings","sample":null,"query_location":41,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"STRING","text":"db"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["other"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT levenshtein('sitting', 'kitten')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"sitting"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":"kitten"}}}],"qualified_name":{"path":["levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT levenshtein('hallo', s) FROM strings ORDER BY s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"hallo"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT levenshtein(s, 'hi') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"levenshtein","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"hi"}}}],"qualified_name":{"path":["levenshtein"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aaa' LIKE 'a%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":9,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"a%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aabbccc' LIKE '%aa%bb%cc'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":16,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"aabbccc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"%aa%bb%cc"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'zebra elephant tiger horse' LIKE 'zebra%elephant%tiger%horse'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":33,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra%elephant%tiger%horse"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'zebra elephant tiger horse' NOT LIKE '%horse'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":13,"function_name":"!~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":8,"literal":{"kind":"STRING","text":"%horse"}}}],"qualified_name":{"path":["!~~"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '%++' LIKE '*%++' ESCAPE '*';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":22,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"%++"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"*%++"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"*"}}}],"qualified_name":{"path":["like_escape"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '%_' LIKE '%_' ESCAPE '**';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":21,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"%_"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"STRING","text":"%_"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"**"}}}],"qualified_name":{"path":["like_escape"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'ab' LIKE 'ab%' ESCAPE '%';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":21,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"STRING","text":"ab%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"%"}}}],"qualified_name":{"path":["like_escape"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mismatches('aloha', 'hallo')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"mismatches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"aloha"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"hallo"}}}],"qualified_name":{"path":["mismatches"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mismatches('', 'hallo')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"mismatches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"literal":{"kind":"STRING","text":"hallo"}}}],"qualified_name":{"path":["mismatches"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select RPAD(NULL, 7, '-'), RPAD('Base', NULL, '-'), RPAD('Base', 7, NULL), RPAD(NULL, NULL, '-'), RPAD(NULL, 7, NULL), RPAD('Base', NULL, NULL), RPAD(NULL, NULL, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":23,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"STRING","text":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":21,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"literal":{"kind":"STRING","text":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":21,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":19,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":24,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":6,"literal":{"kind":"STRING","text":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":22,"function_name":"rpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["rpad"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select LPAD('Hello', 10, '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"lpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"literal":{"kind":"STRING","text":"Hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["lpad"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select LPAD('ab', 7, 'xy😀')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"lpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":8,"literal":{"kind":"STRING","text":"xy😀"}}}],"qualified_name":{"path":["lpad"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT prefix('abcdefgh', 'b')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"literal":{"kind":"STRING","text":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["prefix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT prefix('átomo', 'á')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"átomo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"STRING","text":"á"}}}],"qualified_name":{"path":["prefix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT prefix('two ñ three ₡ four 🦆 end', 'two ñ three ₡ four 🦆 end')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":74,"function_name":"prefix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":32,"literal":{"kind":"STRING","text":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":32,"literal":{"kind":"STRING","text":"two ñ three ₡ four 🦆 end"}}}],"qualified_name":{"path":["prefix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT printf('%d %lld %hhd %hd', 33::TINYINT, 12::SMALLINT, 40::INTEGER, 80::BIGINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":78,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":18,"literal":{"kind":"STRING","text":"%d %lld %hhd %hd"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"80"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["printf"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select printf('%x', '340282366920938463463374607431768211455'::uhugeint);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":41,"literal":{"kind":"STRING","text":"340282366920938463463374607431768211455"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":8,"catalog":"","schema":"","type_name":"uhugeint","children":[],"qualified_name":{"path":["uhugeint"]}}}}],"qualified_name":{"path":["printf"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT printf('%s')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"printf","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%s"}}}],"qualified_name":{"path":["printf"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_extract_all('ab', '$'), regexp_extract_all('ab', 'x*'), regexp_extract_all('axb', 'x*'), regexp_extract_all('aé中', '');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":30,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"STRING","text":"x*"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":31,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"literal":{"kind":"STRING","text":"axb"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"STRING","text":"x*"}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":32,"function_name":"regexp_extract_all","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":8,"literal":{"kind":"STRING","text":"aé中"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["regexp_extract_all"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select REPEAT(a, 4) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":41,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select REPLACE('This is the main test string', 'main', 'ALT')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":30,"literal":{"kind":"STRING","text":"This is the main test string"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"literal":{"kind":"STRING","text":"main"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"STRING","text":"ALT"}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select REVERSE(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["reverse"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":39,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aaa' SIMILAR TO 'a.*'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":16,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"literal":{"kind":"STRING","text":"a.*"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'aaa' SIMILAR TO '^a'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":15,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"STRING","text":"^a"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT jaccard('é', 'ü'), jaccard('éa', 'aé'), jaro_similarity('é', 'ü'), jaro_winkler_similarity('é', 'ü'), jaro_similarity('héllo', 'héllo')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"é"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"STRING","text":"ü"}}}],"qualified_name":{"path":["jaccard"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":21,"function_name":"jaccard","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"literal":{"kind":"STRING","text":"éa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"STRING","text":"aé"}}}],"qualified_name":{"path":["jaccard"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":27,"function_name":"jaro_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"STRING","text":"é"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"STRING","text":"ü"}}}],"qualified_name":{"path":["jaro_similarity"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":35,"function_name":"jaro_winkler_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":4,"literal":{"kind":"STRING","text":"é"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"STRING","text":"ü"}}}],"qualified_name":{"path":["jaro_winkler_similarity"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":35,"function_name":"jaro_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":8,"literal":{"kind":"STRING","text":"héllo"}}}],"qualified_name":{"path":["jaro_similarity"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select split_part('a,b,c',',',-1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"split_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"a,b,c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["split_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select split_part()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"split_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["split_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT starts_with(s,'') FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["starts_with"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s ^@ 'he-man' FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"^@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"he-man"}}}],"qualified_name":{"path":["^@"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('hello')[0:2]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":16,"query_location_length":5,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_slice('hello', off+1, NULL+off) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["off"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["off"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["array_slice"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_slice(s, (-2147483646-1), -1) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"array_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483646"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["array_slice"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s[off:2+off] FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":3,"column_names":["off"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["off"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s[0:1] FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(string_split('üüüüü', '◌̈'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":35,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":12,"literal":{"kind":"STRING","text":"üüüüü"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"literal":{"kind":"STRING","text":"◌̈"}}}],"qualified_name":{"path":["string_split"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(string_split('🦆b🦆b', 'b'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":31,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":12,"literal":{"kind":"STRING","text":"🦆b🦆b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["string_split"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNNEST(string_split('', '|'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":21,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["string_split"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNNEST(string_split_regex('1,2,3,4,*,6', '(,|\\*)'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":43,"function_name":"string_split_regex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":13,"literal":{"kind":"STRING","text":"1,2,3,4,*,6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":8,"literal":{"kind":"STRING","text":"(,|\\*)"}}}],"qualified_name":{"path":["string_split_regex"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'hello'[NULL] FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":14,"query_location_length":6,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT substring('hello' from off for length) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["off"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":6,"column_names":["length"]}}],"qualified_name":{"path":["substring"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUBSTRING('hello' FROM 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["substring"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suffix('abcd', 'cd')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"abcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"cd"}}}],"qualified_name":{"path":["suffix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suffix('abcdefghijklmnopqrstuvwxyz', 'yz')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":28,"literal":{"kind":"STRING","text":"abcdefghijklmnopqrstuvwxyz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"yz"}}}],"qualified_name":{"path":["suffix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT suffix('omotá', 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"suffix","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":8,"literal":{"kind":"STRING","text":"omotá"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["suffix"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_base(-10, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_base"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_base(42, 36)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"36"}}}],"qualified_name":{"path":["to_base"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select TRANSLATE('12345', '14367', 'ax')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"translate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"12345"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"literal":{"kind":"STRING","text":"14367"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"STRING","text":"ax"}}}],"qualified_name":{"path":["translate"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select TRANSLATE(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"translate","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["translate"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select LTRIM('', 'ho'), LTRIM('hello', 'ho'), LTRIM('papapapa', 'pa'), LTRIM('blaHblabla', 'bla'), LTRIM('blabla', NULL), LTRIM(NULL, 'blabla'), LTRIM('blabla', '')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"STRING","text":"ho"}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":20,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"STRING","text":"ho"}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":23,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":10,"literal":{"kind":"STRING","text":"papapapa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"STRING","text":"pa"}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":26,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":12,"literal":{"kind":"STRING","text":"blaHblabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":21,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":21,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":19,"function_name":"ltrim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":8,"literal":{"kind":"STRING","text":"blabla"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["ltrim"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNICODE(a) FROM strings WHERE b IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"unicode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unicode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":39,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(struct_extract_at(NULL::STRUCT(a VARCHAR, b DOUBLE), 2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":55,"function_name":"struct_extract_at","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_extract_at"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_duckdb('__TEST_DIR__/rd_empty_projection.db', table_name := 't')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_duckdb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":37,"literal":{"kind":"STRING","text":"__TEST_DIR__/rd_empty_projection.db"}}},{"name":"table_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table_name","query_location":86,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["read_duckdb"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT abs(i), upper(s), i + 10 FROM executor_input ORDER BY rowid;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["abs"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["upper"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"executor_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["executor_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part(NULL::VARCHAR, NULL::TIME) FROM times;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT century(i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"century","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["century"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select extract(era from time '10:00:00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"era"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"10:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(second FROM i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"SECOND"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(quarter FROM i) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t, time_bucket('4 seconds'::interval, t, '2 seconds'::interval) from times;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":60,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"4 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":11,"literal":{"kind":"STRING","text":"2 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t, time_bucket('7 months'::interval, t, null::time) from times;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":48,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":10,"literal":{"kind":"STRING","text":"7 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('1 month 1 day'::interval, '00:00:00'::time, '1 hour 30 minutes':: interval);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"1 month 1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":19,"literal":{"kind":"STRING","text":"1 hour 30 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('1 month 1 day'::interval, null::time, '10:00:00'::time);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"1 month 1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":10,"literal":{"kind":"STRING","text":"10:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":" SELECT age(timestamp '2019-06-11 12:00:00', timestamp '2019-07-11 11:00:00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":69,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-06-11 12:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-07-11 11:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["age"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select age(timestamp '1992-01-01 01:01:02.200', timestamp '1992-01-01 01:01:02.400');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":77,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:01:02.200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:01:02.400"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["age"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CURRENT_TIME + interval (1) second AS TIME","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"TIME","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["CURRENT_TIME"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":19,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('day', TIMESTAMP '2020-01-01 12:34:56');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 12:34:56"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT function_name, parameter_types::VARCHAR, stability\nFROM duckdb_functions()\nWHERE function_name IN ('age', 'current_localtimestamp', 'epoch', 'make_timestamptz', 'strftime')\n\tAND (list_contains(parameter_types, 'TIMESTAMP WITH TIME ZONE') OR function_name IN ('current_localtimestamp', 'make_timestamptz'))\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["function_name"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":15,"column_names":["parameter_types"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":9,"column_names":["stability"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":63,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_functions"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":88,"query_location_length":224,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":105,"query_location_length":74,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":13,"column_names":["function_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":5,"literal":{"kind":"STRING","text":"age"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":24,"literal":{"kind":"STRING","text":"current_localtimestamp"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":18,"literal":{"kind":"STRING","text":"make_timestamptz"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":10,"literal":{"kind":"STRING","text":"strftime"}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":186,"query_location_length":125,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":186,"query_location_length":58,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":15,"column_names":["parameter_types"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":26,"literal":{"kind":"STRING","text":"TIMESTAMP WITH TIME ZONE"}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":265,"query_location_length":46,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":13,"column_names":["function_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":24,"literal":{"kind":"STRING","text":"current_localtimestamp"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":18,"literal":{"kind":"STRING","text":"make_timestamptz"}}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('290309-12-22 (BC) 00:00:00 Asia/Tokyo' AS TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":64,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":39,"literal":{"kind":"STRING","text":"290309-12-22 (BC) 00:00:00 Asia/Tokyo"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT md\nFROM (\n\tSELECT make_timestamp(year(ts), NULL, day(ts), hour(ts), minute(ts), microsecond(ts) / 1000000.0) md\n\tFROM timestamps) t\nWHERE md IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["md"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":15,"query_location_length":121,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"md","query_location":25,"query_location_length":90,"function_name":"make_timestamp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["year"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":7,"function_name":"day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["day"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":8,"function_name":"hour","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["hour"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":10,"function_name":"minute","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["minute"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":27,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":15,"function_name":"microsecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["microsecond"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":9,"literal":{"kind":"NUMERIC","text":"1000000.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["make_timestamp"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":148,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":2,"column_names":["md"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT md\nFROM (SELECT make_time(NULL, minute(d), microsecond(d) / 1000000.0) md FROM dates) t\nWHERE md IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["md"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":15,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"md","query_location":23,"query_location_length":54,"function_name":"make_time","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":9,"function_name":"minute","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["minute"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":26,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":14,"function_name":"microsecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["microsecond"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":9,"literal":{"kind":"NUMERIC","text":"1000000.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["make_time"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":104,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["md"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('2021 366', '%Y %j');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"2021 366"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"literal":{"kind":"STRING","text":"%Y %j"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_PART('julian', ts), ts\nFROM timestamps\nORDER BY 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":8,"literal":{"kind":"STRING","text":"julian"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts, DATE_PART(['hour', 'minute', 'microsecond'], ts) AS parts\nFROM millennia\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":11,"query_location_length":48,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":9,"schema_name":"","table_name":"millennia","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["millennia"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts::TIMESTAMPTZ, epoch_ns(ts::TIMESTAMPTZ) FROM timestamps ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":25,"function_name":"epoch_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["epoch_ns"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(year FROM i) FROM timestamps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"STRING","text":"YEAR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(millennium FROM i) FROM timestamps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":10,"literal":{"kind":"STRING","text":"MILLENNIUM"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT age(TIMESTAMPTZ '2014-04-25', TIMESTAMPTZ '2014-01-01');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2014-04-25"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2014-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["age"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT AGE(TIMESTAMPTZ '1992-01-01 01:01:02.200', TIMESTAMPTZ '1992-01-01 01:01:02.400');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":81,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:01:02.200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:01:02.400"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["age"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '9223372036854775000 microseconds'::interval + 'epoch'::timestamptz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":34,"literal":{"kind":"STRING","text":"9223372036854775000 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'epoch'::timestamptz - '9223372022400001000 microseconds'::interval","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":34,"literal":{"kind":"STRING","text":"9223372022400001000 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT iv, ts + iv FROM limits, intervals\nWHERE label = 'tsmin'\n AND iv \u003c INTERVAL 0 SECONDS\n AND iv \u003e INTERVAL (-2) HOUR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["iv"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["iv"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":6,"schema_name":"","table_name":"limits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":9,"schema_name":"","table_name":"intervals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intervals"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":75,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":7,"literal":{"kind":"STRING","text":"tsmin"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":70,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["iv"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":18,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":100,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["iv"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"query_location_length":18,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts + (INTERVAL 1 minute) FROM limits WHERE label = 'tsmax';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":17,"function_name":"to_minutes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_minutes"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":6,"schema_name":"","table_name":"limits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["limits"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"literal":{"kind":"STRING","text":"tsmax"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ('1920-12-12 01:02:02+05:30'::timestamptz + interval '1 month -400 day')::timestamptz as r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"r","query_location":79,"query_location_length":13,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":27,"literal":{"kind":"STRING","text":"1920-12-12 01:02:02+05:30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":18,"literal":{"kind":"STRING","text":"1 month -400 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL 2400 hours + '1999-12-31 16:00:00.000000001-08'::TIMESTAMPTZ_NS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2400"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":34,"literal":{"kind":"STRING","text":"1999-12-31 16:00:00.000000001-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2262-04-11 23:47:16.854775806+00'::TIMESTAMPTZ_NS - INTERVAL (-1) microsecond;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":34,"literal":{"kind":"STRING","text":"2262-04-11 23:47:16.854775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":25,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_microseconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2000-01-31 01:02:03.123456789+05:30'::TIMESTAMPTZ_NS + INTERVAL 1 month,\n\t'2000-03-31 01:02:03.123456789+05:30'::TIMESTAMPTZ_NS - INTERVAL 1 month;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":37,"literal":{"kind":"STRING","text":"2000-01-31 01:02:03.123456789+05:30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":119,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":37,"literal":{"kind":"STRING","text":"2000-03-31 01:02:03.123456789+05:30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT part, date_diff(part, startdate, enddate)\nFROM datetime_ns, (VALUES ('era'), ('year'), ('month'), ('day'), ('hour')) parts(part)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":35,"function_name":"date_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":9,"column_names":["startdate"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":7,"column_names":["enddate"]}}],"qualified_name":{"path":["date_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":86,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":11,"schema_name":"","table_name":"datetime_ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["datetime_ns"]}},"right":{"type":"SUBQUERY","alias":"parts","sample":null,"query_location":67,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"STRING","text":"era"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["part"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_diff('week', '2015-10-06 04:22:11'::timestamptz, '2016-11-25 23:19:37'::timestamptz);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":89,"function_name":"date_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":21,"literal":{"kind":"STRING","text":"2015-10-06 04:22:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":21,"literal":{"kind":"STRING","text":"2016-11-25 23:19:37"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["date_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decade(ts), decade(ts::TIMESTAMP) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"decade","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["decade"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":21,"function_name":"decade","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["decade"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT week(ts), week(ts::TIMESTAMP) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"week","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["week"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"week","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["week"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_PART('timezone', ts) FROM timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":10,"literal":{"kind":"STRING","text":"timezone"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_PART(['hour', 'minute', 'microsecond'], ts), ts\nFROM timestamps\nORDER BY 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE_PART(['timezone', 'timezone_hour', 'timezone_minute'], '2021-12-22'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":86,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":48,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":10,"literal":{"kind":"STRING","text":"timezone"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":15,"literal":{"kind":"STRING","text":"timezone_hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":17,"literal":{"kind":"STRING","text":"timezone_minute"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-12-22"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part(['day', 'microsecond',], ns)\nFROM nanos;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ns"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":5,"schema_name":"","table_name":"nanos","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nanos"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select DATESUB('decade', '1994-02-28 12:00:00-08'::TIMESTAMPTZ, '2004-02-29 13:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":8,"literal":{"kind":"STRING","text":"decade"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":24,"literal":{"kind":"STRING","text":"1994-02-28 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-29 13:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select DATESUB('{datepart}', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-28 13:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":99,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"literal":{"kind":"STRING","text":"{datepart}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-01-31 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-28 13:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select DATESUB('millisecond', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-01 12:00:00-08'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":100,"function_name":"datesub","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":13,"literal":{"kind":"STRING","text":"millisecond"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-01-31 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":24,"literal":{"kind":"STRING","text":"2004-02-01 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["datesub"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('minute', TIMESTAMPTZ '1992-02-02 04:03:02Z') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-02-02 04:03:02Z"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('year', TIMESTAMPTZ '2019-01-06 04:03:02-08') FROM timestamps LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2019-01-06 04:03:02-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('microsecond', '2026-10-12 12:34:56.123456789'::TIMESTAMP_NS AT TIME ZONE 'UTC');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":91,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":64,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":31,"literal":{"kind":"STRING","text":"2026-10-12 12:34:56.123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["timezone"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(2021, 12, 30, NULL, 12, 4.123, 'America/New_York');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"4.123"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":18,"literal":{"kind":"STRING","text":"America/New_York"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(9223372036854775807); -- Infinity","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select strptime(NULL, '%Y-%m-%d %H:%M:%S.%g %Z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":25,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%g %Z"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'fnord'::timestamptz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"fnord"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t, time_bucket('3 days'::interval, t) from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":34,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"literal":{"kind":"STRING","text":"3 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t, time_bucket('11 seconds'::interval, t, '1990-12-10 08:08:10+03'::timestamptz) from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":77,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"literal":{"kind":"STRING","text":"11 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":24,"literal":{"kind":"STRING","text":"1990-12-10 08:08:10+03"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t, time_bucket(null::interval, t, 'Asia/Calcutta') from timestamps_tz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":47,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":15,"literal":{"kind":"STRING","text":"Asia/Calcutta"}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":13,"schema_name":"","table_name":"timestamps_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('1 day - 172800 seconds'::interval, '2018-05-05 00:00:00+07'::timestamptz, '2018-05-05 00:00:00+07'::timestamptz);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":125,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":24,"literal":{"kind":"STRING","text":"1 day - 172800 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":24,"literal":{"kind":"STRING","text":"2018-05-05 00:00:00+07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":24,"literal":{"kind":"STRING","text":"2018-05-05 00:00:00+07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('1 microseconds'::interval, '294247-01-10 04:00:54.774999+00'::timestamptz);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":87,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":16,"literal":{"kind":"STRING","text":"1 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":33,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.774999+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select w, t, time_bucket(w, t) from timestamps_tz_ns;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["w"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":17,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":16,"schema_name":"","table_name":"timestamps_tz_ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz_ns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('7 months'::interval, null::timestamptz, '1990-01-06 08:08:10'::timestamptz) from timestamps_tz_ns;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"7 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":21,"literal":{"kind":"STRING","text":"1990-01-06 08:08:10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":101,"query_location_length":16,"schema_name":"","table_name":"timestamps_tz_ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_tz_ns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n time_bucket(interval '1' day, timestamptz_ns '2000-01-03 17:40:00+00', origin)\nfrom\n generate_series(timestamptz '2000-01-03 00:00:00+00',\n timestamptz '2000-01-04 00:00:00+00',\n\t\t interval '1' hour) as t(origin)\norder by\n origin\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":6,"column_names":["origin"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":78,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":39,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-03 17:40:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":14,"catalog":"","schema":"","type_name":"timestamptz_ns","children":[],"qualified_name":{"path":["timestamptz_ns"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":6,"column_names":["origin"]}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":95,"query_location_length":145,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":111,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-03 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":167,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-04 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":167,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":209,"query_location_length":17,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["origin"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%d') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%d"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%-H') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"literal":{"kind":"STRING","text":"%-H"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(d, '%Z') FROM timestamps ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"%Z"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime(TIMESTAMP '2020-01-01 00:00:00.123456' + to_microseconds(i), '%n|%n|%f|%g') FROM range(3) t(i) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 00:00:00.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":18,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["to_microseconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":13,"literal":{"kind":"STRING","text":"%n|%n|%f|%g"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":97,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('tuesday', '%A')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"tuesday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"STRING","text":"%A"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('1-4', '%W-%w'), strftime('1900-01-04'::DATE, '%W-%w')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"1-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"STRING","text":"%W-%w"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":37,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":12,"literal":{"kind":"STRING","text":"1900-01-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"literal":{"kind":"STRING","text":"%W-%w"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('2021-05-12 19-4', '%Y-%m-%d %U-%w')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":17,"literal":{"kind":"STRING","text":"2021-05-12 19-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":16,"literal":{"kind":"STRING","text":"%Y-%m-%d %U-%w"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select strptime('2020-12-31 21:25:58.745232', '%Y-%m-%d %H:%M:%S.%f');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":28,"literal":{"kind":"STRING","text":"2020-12-31 21:25:58.745232"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select strptime('infinity', '%m/%d/%Y');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":10,"literal":{"kind":"STRING","text":"%m/%d/%Y"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select strptime('2020-12-31 21:25:58.745232X00', '%Y-%m-%d %H:%M:%S.%f%z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":31,"literal":{"kind":"STRING","text":"2020-12-31 21:25:58.745232X00"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":24,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S.%f%z"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('2000-10-01 23:59:60', '%Y-%m-%d %H:%M:%S')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":21,"literal":{"kind":"STRING","text":"2000-10-01 23:59:60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":19,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('mondayy', '%A')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"mondayy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"STRING","text":"%A"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('9', '%u')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"STRING","text":"%u"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('2021 19', '%G %U')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"2021 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"%G %U"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('infinity trailing', '%Y-%m-%d') IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":53,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":19,"literal":{"kind":"STRING","text":"infinity trailing"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('10 äm', '%I %p')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":8,"literal":{"kind":"STRING","text":"10 äm"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"%I %p"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('3 months'::interval, null::timestamp, '2 seconds'::interval) from timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"3 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":11,"literal":{"kind":"STRING","text":"2 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('-3 hours'::interval, '2019-04-05 00:00:00'::timestamp, '2019-04-05 00:00:00'::timestamp);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":101,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-3 hours"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":21,"literal":{"kind":"STRING","text":"2019-04-05 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":21,"literal":{"kind":"STRING","text":"2019-04-05 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('3 months'::interval, '2019-05-05 00:00:00'::timestamp, '2000000000 months'::interval);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":98,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"3 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":21,"literal":{"kind":"STRING","text":"2019-05-05 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":19,"literal":{"kind":"STRING","text":"2000000000 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time_bucket('-1 month'::interval, null::timestamp, '2022-12-20 10:00:00'::timestamp);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"time_bucket","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"literal":{"kind":"STRING","text":"-1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":21,"literal":{"kind":"STRING","text":"2022-12-20 10:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["time_bucket"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT epoch_ms(-9223372022400001)::VARCHAR, make_timestamp_ms(-9223372022400001)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"epoch_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":17,"literal":{"kind":"INTEGER","text":"-9223372022400001"}}}],"qualified_name":{"path":["epoch_ms"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":36,"function_name":"make_timestamp_ms","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":17,"literal":{"kind":"INTEGER","text":"-9223372022400001"}}}],"qualified_name":{"path":["make_timestamp_ms"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('Mon 30, December 2003, 7:3:5 PM', '%a %d, %B %Y, %I:%M:%S %p')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":33,"literal":{"kind":"STRING","text":"Mon 30, December 2003, 7:3:5 PM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":27,"literal":{"kind":"STRING","text":"%a %d, %B %Y, %I:%M:%S %p"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('30', '%V'), strftime('1900-07-23'::DATE, '%V')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"STRING","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"%V"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":34,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":12,"literal":{"kind":"STRING","text":"1900-07-23"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"STRING","text":"%V"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('2021-0-5', '%Y-%U-%w'), strftime('2021-01-01'::DATE, '%Y-%U-%w')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"literal":{"kind":"STRING","text":"2021-0-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%U-%w"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":40,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":12,"literal":{"kind":"STRING","text":"2021-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%U-%w"}}}],"qualified_name":{"path":["strftime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('Jun 30 2003 2:03:10AM', '%b %d %Y %-I:%M:%S%p');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":24,"literal":{"kind":"STRING","text":"Jun 30 2003 2:03:10AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"literal":{"kind":"STRING","text":"%b %d %Y %-I:%M:%S%p"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('Mon Oct 17 2022 22:00:00 GMT+0000 (GMT)', '%a %b %d %Y %X GMT%z (%Z') as broken;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"broken","query_location":7,"query_location_length":83,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":41,"literal":{"kind":"STRING","text":"Mon Oct 17 2022 22:00:00 GMT+0000 (GMT)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":26,"literal":{"kind":"STRING","text":"%a %b %d %Y %X GMT%z (%Z"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('2001-02-30', '%Y-%m-%d')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"literal":{"kind":"STRING","text":"2001-02-30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('mp', '%p')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"STRING","text":"mp"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"STRING","text":"%p"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('0', '%-j')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"STRING","text":"%-j"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('20 2021', '%W %G')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":9,"literal":{"kind":"STRING","text":"20 2021"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"%W %G"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_strptime('Mon 30, December 30, 20:3:5 PM', '%a %d, %B %y, %H:%M:%S %p')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":75,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":32,"literal":{"kind":"STRING","text":"Mon 30, December 30, 20:3:5 PM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":27,"literal":{"kind":"STRING","text":"%a %d, %B %y, %H:%M:%S %p"}}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT w, try_strptime(w, ['%d/%m/%Y', '%n']), strptime(w, ['%d/%m/%Y', '%n']) FROM words ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["w"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":35,"function_name":"try_strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":10,"literal":{"kind":"STRING","text":"%d/%m/%Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"STRING","text":"%n"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["try_strptime"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":31,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":10,"literal":{"kind":"STRING","text":"%d/%m/%Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"STRING","text":"%n"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":5,"schema_name":"","table_name":"words","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["words"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d, typeof(d) FROM read_csv('{TEST_DIR}/special_words_detected.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":49,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/special_words_detected.csv"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '12:00:00+01'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"12:00:00+01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT month(d) FROM timetzs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"month","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["month"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d, DATE_PART(['hour', 'minute', 'microsecond'], d) AS parts\nFROM timetzs\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":10,"query_location_length":47,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":33,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(epoch FROM i) FROM timetzs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"epoch"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select start, token_type, word from sql_tokenize($$select (a + b) * 2, c;$$);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":10,"column_names":["token_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["word"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_tokenize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":26,"literal":{"kind":"STRING","text":"select (a + b) * 2, c;"}}}],"qualified_name":{"path":["sql_tokenize"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select start, token_type, word from sql_tokenize('from ''hello world');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":10,"column_names":["token_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["word"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sql_tokenize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":20,"literal":{"kind":"STRING","text":"from 'hello world"}}}],"qualified_name":{"path":["sql_tokenize"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT uuid_extract_version(uuidv4());","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"uuid_extract_version","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":8,"function_name":"uuidv4","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["uuidv4"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["uuid_extract_version"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_array_length(a, ['']) from struct_cast_data();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"variant_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["variant_array_length"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_cast_data","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_cast_data"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_array_length({'a': 1, 'b': {'c': [1, 2, 3]}}::VARIANT, '$.b.c');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"variant_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":31,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":42,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":48,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":7,"literal":{"kind":"STRING","text":"$.b.c"}}}],"qualified_name":{"path":["variant_array_length"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT vector_type(v) FROM fully_shredded_arrays;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":14,"function_name":"vector_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["vector_type"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":21,"schema_name":"","table_name":"fully_shredded_arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fully_shredded_arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ((TIMETZ '12:34:56+02')::VARIANT)::TIMETZ = TIMETZ '12:34:56+02';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":64,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"12:34:56+02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":9,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"12:34:56+02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (([1, 2, 3]::INTEGER[3])::VARIANT)::INTEGER[3] = [1, 2, 3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":58,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":12,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v::BIGINT FROM shredded_primitive;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":18,"schema_name":"","table_name":"shredded_primitive","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["shredded_primitive"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n variant_contains([1, 2]::VARIANT, []::INTEGER[]::VARIANT),\n variant_contains('{\"a\": [1, 2]}'::JSON::VARIANT, '[]'::JSON::VARIANT),\n variant_contains('{\"a\": 1}'::JSON::VARIANT, '[]'::JSON::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":57,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":69,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\": [1, 2]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":127,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"query_location_length":64,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":182,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"a\": 1}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":184,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":203,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":197,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":199,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_contains(1::VARIANT, 1::VARIANT, 1::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"variant_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_exists(NULL::VARIANT, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"variant_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["variant_exists"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_exists('{\"a\"\\: 1}'::VARIANT, 'a');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"variant_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\"\\: 1}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["variant_exists"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ('{\"a\": 42, \"b\": [true, \"test\", true]}'::JSON::VARIANT)['b']['1'];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":67,"query_location_length":5,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":62,"query_location_length":5,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":38,"literal":{"kind":"STRING","text":"{\"a\": 42, \"b\": [true, \"test\", true]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_extract_string('{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}"}}}],"qualified_name":{"path":["variant_extract_string"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_extract_string(float::VARIANT, '')::DOUBLE = float::DOUBLE,\n variant_extract_string(double::VARIANT, '')::DOUBLE = double\nFROM test_all_types()\nWHERE bool IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":66,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["float"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["variant_extract_string"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["float"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":60,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":125,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":43,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":111,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":6,"column_names":["double"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":113,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["variant_extract_string"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":6,"column_names":["double"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":148,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["test_all_types"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":176,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":4,"column_names":["bool"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_extract_string(j, 'a') from (values ({'a': {'x': 1}}::VARIANT), (NULL::VARIANT)) t(j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["variant_extract_string"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":15,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":58,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_extract_string({'c': 1}::VARIANT, []::VARCHAR[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"variant_extract_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["variant_extract_string"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_group_array(i) from (values (1), (NULL), (2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"variant_group_array","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["variant_group_array"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":35,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_keys('{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}"}}}],"qualified_name":{"path":["variant_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_keys(''::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"STRING","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_keys({'a': 1, 'b': {'c': {'d': 12}}}::VARIANT, '$.b.c');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":31,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":34,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"c","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":40,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"literal":{"kind":"STRING","text":"$.b.c"}}}],"qualified_name":{"path":["variant_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_keys(v) FROM fully_shredded_objects ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":22,"schema_name":"","table_name":"fully_shredded_objects","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fully_shredded_objects"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_type(a, 'c') from struct_cast_data();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["variant_type"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_cast_data","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_cast_data"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_type({'a': 1, 'b': null}::VARIANT, 'b');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["variant_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_type(v, 'z') FROM variants ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"variant_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["variant_type"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"variants","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["variants"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_typeof(variant_extract(test, 'dec_18_6')) from all_types","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":33,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":4,"column_names":["test"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"literal":{"kind":"STRING","text":"dec_18_6"}}}],"qualified_name":{"path":["variant_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["variant_typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":9,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT total_profit FROM unit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["total_profit"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":4,"schema_name":"","table_name":"unit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from non_generated;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"non_generated","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_generated"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM tbl_comp","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":8,"schema_name":"","table_name":"tbl_comp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_comp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, c1, c2, rowid FROM tbl_1631 ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["c1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["c2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"tbl_1631","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_1631"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, payload, rowid FROM tbl_list WHERE id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":8,"schema_name":"","table_name":"tbl_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_list"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_name FROM duckdb_indexes() ORDER BY index_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":10,"column_names":["index_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["index_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_indexes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_indexes"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i) FROM integers WHERE i \u003e 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT getvariable('x') + 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["getvariable"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE i \u003c 3 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM indexed_strings WHERE b = 42 ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":15,"schema_name":"","table_name":"indexed_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["indexed_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select z, y, x from test_view where upper(x) = '526';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["z"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"test_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_view"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":8,"function_name":"upper","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["upper"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"526"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM integers WHERE i \u003e 15","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM integers WHERE i\u003e=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":36,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM blobs WHERE b = '\\x00'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":26,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"\\x00"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pk FROM tab1 WHERE (col4 \u003e 71.47) OR col0 IN (98,26,25,60)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["pk"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":4,"schema_name":"","table_name":"tab1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tab1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":26,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":27,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":4,"column_names":["col4"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"71.47"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":52,"query_location_length":13,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["col0"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"98"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"26"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"60"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM tbl WHERE i IN (2, 42, 100, 42, 101) AND i = 42 AND i \u003c= 100 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":24,"query_location_length":50,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":29,"query_location_length":21,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"INTEGER","text":"101"}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":66,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, i IS NOT DISTINCT FROM 7 AS not_distinct_from, i = 7 AS equals\nFROM nulls WHERE i IS NULL OR i = 7 ORDER BY i NULLS LAST LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"not_distinct_from","query_location":10,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"equals","query_location":57,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":5,"schema_name":"","table_name":"nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nulls"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":90,"query_location_length":18,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":92,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT used_blocks FROM pragma_database_size();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["used_blocks"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM tbl WHERE i = 14500;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"literal":{"kind":"INTEGER","text":"14500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT used_blocks \u003e 2621440 / get_block_size('test_art_import') FROM pragma_database_size();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":57,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["used_blocks"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":43,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"literal":{"kind":"INTEGER","text":"2621440"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":33,"function_name":"get_block_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":17,"literal":{"kind":"STRING","text":"test_art_import"}}}],"qualified_name":{"path":["get_block_size"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":70,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM leaf_db.t WHERE k=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"leaf_db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["leaf_db","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c0 FROM t0 WHERE (c0 - 0 BETWEEN 0 AND 0) AND (c0 - 0 = c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":24,"query_location_length":42,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":32,"query_location_length":15,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":2,"column_names":["c0"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers WHERE i \u003e 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(i) FROM numbers WHERE i = CAST(-0 AS REAL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM leaf_db.t WHERE k = 816;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"leaf_db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["leaf_db","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"INTEGER","text":"816"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i), SUM(j), COUNT(*), COUNT(i), COUNT(j) FROM integers2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM i2 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"i2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["i2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.ts, e.value\nFROM range(0,10) p(ts) ASOF JOIN events0 e\nON 1 = 1 AND p.ts \u003e= e.begin\nORDER BY p.ts ASC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["p","ts"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["p","ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":48,"left":{"type":"TABLE_FUNCTION","alias":"p","sample":null,"query_location":26,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["ts"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":77,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":4,"column_names":["p","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["e","begin"]}}]},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.begin, e.value\nFROM range(0,10) p(begin) ASOF LEFT JOIN events0 e\nUSING (begin)\nORDER BY p.begin ASC NULLS FIRST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["p","begin"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":38,"left":{"type":"TABLE_FUNCTION","alias":"p","sample":null,"query_location":29,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["begin"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":65,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":null,"join_type":"LEFT","ref_type":"ASOF","using_columns":["begin"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.key, p.begin, e.value\nFROM \n\t(SELECT key, ts AS begin FROM probes) p \nASOF RIGHT JOIN \n\tevents e\nUSING (key, begin)\nORDER BY 1 ASC NULLS FIRST, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["p","key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":79,"query_location_length":45,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":38,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"begin","query_location":51,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":6,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":97,"query_location_length":8,"schema_name":"","table_name":"events","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events"]}},"condition":null,"join_type":"RIGHT","ref_type":"ASOF","using_columns":["key","begin"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.begin, e.begin, e.value\nFROM probe0 p ASOF RIGHT JOIN events0 e\nON p.begin \u003e e.begin\nORDER BY ALL ASC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["e","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"probe0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe0"]}},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":63,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":76,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["p","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":7,"column_names":["e","begin"]}},"join_type":"RIGHT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.begin, e.value\nFROM probe0 p ASOF RIGHT JOIN events0 e\nUSING (begin)\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["p","begin"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"probe0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe0"]}},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"events0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events0"]}},"condition":null,"join_type":"RIGHT","ref_type":"ASOF","using_columns":["begin"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(*) FILTER (l2.g \u003c\u003e r.g) FROM l2 ASOF JOIN r ON l2.g::VARIANT = r.g::VARIANT AND l2.ts \u003e= r.ts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":29,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":34,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["l2","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["r","g"]}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":61,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":2,"schema_name":"","table_name":"l2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":28,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":4,"column_names":["l2","g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["r","g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":103,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":5,"column_names":["l2","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":4,"column_names":["r","ts"]}}]},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.id, p.id\nFROM null_trades t ASOF LEFT JOIN null_prices p\n ON t.symbol IS NOT DISTINCT FROM p.symbol\n AND t.venue = p.venue\n AND t.ts \u003e= p.ts\nWHERE t.id = 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["p","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":113,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":23,"query_location_length":13,"schema_name":"","table_name":"null_trades","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_trades"]}},"right":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":52,"query_location_length":13,"schema_name":"","table_name":"null_prices","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_prices"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":71,"query_location_length":79,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":71,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":8,"column_names":["t","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":8,"column_names":["p","symbol"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":7,"column_names":["t","venue"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":7,"column_names":["p","venue"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":138,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":4,"column_names":["t","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":4,"column_names":["p","ts"]}}]},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":4,"column_names":["t","id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\td1.time,\n\td2.time,\n\td1.value, \n\td2.value\nFROM right_pushdown d1 \nASOF JOIN (\n\tSELECT * FROM right_pushdown WHERE value is not NULL\n\t) d2\n\tON d1.time \u003e= d2.time\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":7,"column_names":["d1","time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["d2","time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":8,"column_names":["d1","value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":8,"column_names":["d2","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":74,"query_location_length":94,"left":{"type":"BASE_TABLE","alias":"d1","sample":null,"query_location":55,"query_location_length":17,"schema_name":"","table_name":"right_pushdown","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_pushdown"]}},"right":{"type":"SUBQUERY","alias":"d2","sample":null,"query_location":84,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":94,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":101,"query_location_length":14,"schema_name":"","table_name":"right_pushdown","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_pushdown"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":128,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":5,"column_names":["value"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":150,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":7,"column_names":["d1","time"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":7,"column_names":["d2","time"]}},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM r t1\nASOF LEFT JOIN (SELECT * FROM a INTERSECT ALL SELECT * FROM a) t0 ON t1.d \u003e= t0.d\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":81,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":34,"query_location_length":47,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":42,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":72,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":88,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["t1","d"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":4,"column_names":["t0","d"]}},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * \nFROM left_table l \nASOF ANTI JOIN right_table r \n\t ON l.symbol = r.symbol \n\tAND l.ts \u003e= r.ts \n\tAND l.price + r.bid \u003e 300;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":101,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":15,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":44,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":64,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":8,"column_names":["l","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":8,"column_names":["r","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":90,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":4,"column_names":["l","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":4,"column_names":["r","ts"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":109,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["r","bid"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}}]},"join_type":"ANTI","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM generate_series(1, 3) AS input(n),\nLATERAL (\n\tWITH RECURSIVE subquery(x) AS (\n\t\t(SELECT n, true AS exists)\n\t\tUNION ALL\n\t\tSELECT x - 1, y\n\t\tFROM subquery AS current(x),\n\t\tLATERAL (\n\t\t\tSELECT NOT EXISTS (\n\t\t\t\tSELECT 1\n\t\t\t\tFROM subquery AS previous(a)\n\t\t\t\tWHERE a \u003e current.x\n\t\t\t)\n\t\t) AS next(y)\n\t\tWHERE x \u003e 0\n\t)\n\tTABLE subquery\n)\nORDER BY n, x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":351,"query_location_length":1,"column_names":["n"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":354,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":332,"left":{"type":"TABLE_FUNCTION","alias":"input","sample":null,"query_location":14,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":57,"query_location_length":284,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"subquery","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"subquery","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["n"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"exists","query_location":105,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":153,"query_location_length":153,"left":{"type":"BASE_TABLE","alias":"current","sample":null,"query_location":158,"query_location_length":22,"schema_name":"","table_name":"subquery","column_name_alias":["x"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"right":{"type":"SUBQUERY","alias":"next","sample":null,"query_location":192,"query_location_length":103,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":204,"query_location_length":87,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":208,"query_location_length":83,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"previous","sample":null,"query_location":239,"query_location_length":23,"schema_name":"","table_name":"subquery","column_name_alias":["a"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":273,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":277,"query_location_length":9,"column_names":["current","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["y"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":315,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":315,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":319,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"subquery","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM integers LEFT JOIN integers2_empty USING (i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":15,"schema_name":"","table_name":"integers2_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2_empty"]}},"condition":null,"join_type":"LEFT","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM fold_probe WHERE k IN (SELECT range FROM range(2000000) WHERE range % 2000 = 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"fold_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fold_probe"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":43,"query_location_length":57,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":5,"column_names":["range"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":7,"literal":{"kind":"INTEGER","text":"2000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":12,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2000"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["k"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k AND integers.j \u003e integers2.l ORDER BY 1, 2, 3, 4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":80,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":61,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":11,"column_names":["integers2","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":10,"column_names":["integers","j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["integers2","l"]}}]},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, k, l FROM integers FULL OUTER JOIN (SELECT * FROM integers2 WHERE 1=0) integers2 ON integers.i\u003cintegers2.k ORDER BY 1, 2, 3, 4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":87,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"integers2","sample":null,"query_location":48,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":56,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":97,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":11,"column_names":["integers2","k"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM range(10000) r(i) WHERE 0 NOT IN (SELECT 1 FROM range(10000));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":21,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":45,"query_location_length":37,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":54,"query_location_length":28,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":69,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"comparison_type":"COMPARE_EQUAL"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM cdb.fact_num f JOIN cdb.dim_i d ON f.k = d.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"query_location_length":14,"schema_name":"cdb","table_name":"fact_num","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cdb","fact_num"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":41,"query_location_length":11,"schema_name":"cdb","table_name":"dim_i","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cdb","dim_i"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["f","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["d","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT 'EUR' AS ccy) t JOIN dim d ON t.ccy = d.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":25,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ccy","query_location":29,"query_location_length":5,"literal":{"kind":"STRING","text":"EUR"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":50,"query_location_length":5,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":5,"column_names":["t","ccy"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":3,"column_names":["d","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COALESCE(u.n_name, 'NO_MATCH') AS nm, COUNT(*) AS cnt\nFROM orders_miss o\nLEFT JOIN (SELECT c.ck, n.n_name FROM nation n JOIN customer c ON n.nk = c.nk) u ON o.ck = u.ck\nGROUP BY nm ORDER BY nm","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":2,"column_names":["nm"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"nm","query_location":7,"query_location_length":30,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":8,"column_names":["u","n_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"literal":{"kind":"STRING","text":"NO_MATCH"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":45,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":95,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":66,"query_location_length":13,"schema_name":"","table_name":"orders_miss","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders_miss"]}},"right":{"type":"SUBQUERY","alias":"u","sample":null,"query_location":90,"query_location_length":68,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":4,"column_names":["c","ck"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":8,"column_names":["n","n_name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":127,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":118,"query_location_length":8,"schema_name":"","table_name":"nation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":132,"query_location_length":10,"schema_name":"","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":4,"column_names":["c","nk"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":4,"column_names":["u","ck"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":2,"column_names":["nm"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT u.n_name, COUNT(*) AS cnt\nFROM (SELECT c.ck, n.n_name FROM nation n JOIN customer c ON n.nk = c.nk WHERE 1=0) u\nJOIN orders o ON o.ck = u.ck\nGROUP BY u.n_name ORDER BY u.n_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":8,"column_names":["u","n_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["u","n_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":17,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":119,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"u","sample":null,"query_location":38,"query_location_length":78,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["c","ck"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":8,"column_names":["n","n_name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":66,"query_location_length":8,"schema_name":"","table_name":"nation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":80,"query_location_length":10,"schema_name":"","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":94,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":4,"column_names":["c","nk"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":112,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":124,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":136,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":4,"column_names":["u","ck"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":8,"column_names":["u","n_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (FROM mixed_dictionaries)\nSELECT count(*), count(DISTINCT b.label)\nFROM probe p JOIN (SELECT * FROM c ORDER BY k) b ON p.k=b.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":18,"schema_name":"","table_name":"mixed_dictionaries","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed_dictionaries"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":23,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["b","label"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":103,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":95,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":108,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":116,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":123,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT ST_SetCRS(b.g, 'OGC:CRS84') AS x FROM probe p JOIN build b ON p.k = b.k) j JOIN sel s ON j.x = s.g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":104,"query_location_length":23,"left":{"type":"SUBQUERY","alias":"j","sample":null,"query_location":21,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":29,"query_location_length":27,"function_name":"st_setcrs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["b","g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":11,"literal":{"kind":"STRING","text":"OGC:CRS84"}}}],"qualified_name":{"path":["st_setcrs"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":67,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":80,"query_location_length":7,"schema_name":"","table_name":"build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":109,"query_location_length":5,"schema_name":"","table_name":"sel","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sel"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":3,"column_names":["j","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":3,"column_names":["s","g"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT coalesce(d.name, '\u003cno-dim\u003e') AS dim_name, count(*) AS rows\nFROM fact f FULL OUTER JOIN dim d ON f.k = d.k\nGROUP BY dim_name ORDER BY dim_name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":8,"column_names":["dim_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"dim_name","query_location":7,"query_location_length":28,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["d","name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":10,"literal":{"kind":"STRING","text":"\u003cno-dim\u003e"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"rows","query_location":49,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":78,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":71,"query_location_length":6,"schema_name":"","table_name":"fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fact"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":94,"query_location_length":5,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["f","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":3,"column_names":["d","k"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":8,"column_names":["dim_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM (SELECT unnest(back) AS x, i, l FROM t) p JOIN (SELECT unnest(back) AS x, i, l FROM t) q\nON p.i = q.i AND p.l = q.l AND p.x = q.x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":63,"query_location_length":87,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":21,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":29,"query_location_length":12,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["back"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":68,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":76,"query_location_length":12,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["back"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":113,"query_location_length":37,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":3,"column_names":["p","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":3,"column_names":["q","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":3,"column_names":["p","l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":3,"column_names":["q","l"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":141,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":3,"column_names":["p","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["q","x"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.o_orderkey, o.o_custkey, o.o_totalprice, l.l_orderkey, l.l_partkey, l.l_quantity, l.l_extendedprice\nFROM orders o\nLEFT JOIN lineitem l ON o.o_orderkey = l.l_orderkey\n AND o.o_totalprice + l.l_extendedprice \u003e 250;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["o","o_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":11,"column_names":["o","o_custkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":14,"column_names":["o","o_totalprice"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":12,"column_names":["l","l_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":11,"column_names":["l","l_partkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":12,"column_names":["l","l_quantity"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":17,"column_names":["l","l_extendedprice"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":123,"query_location_length":100,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":114,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"right":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":133,"query_location_length":10,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":147,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":147,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":12,"column_names":["o","o_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":12,"column_names":["l","l_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":183,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":198,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":14,"column_names":["o","o_totalprice"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":17,"column_names":["l","l_extendedprice"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":3,"literal":{"kind":"INTEGER","text":"250"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM lineitem l\nINNER JOIN orders o ON l.l_orderkey = o.o_orderkey\n AND l.l_extendedprice \u003e o.o_totalprice + o.o_custkey + o.o_shippriority;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":126,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":43,"query_location_length":8,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":103,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":12,"column_names":["l","l_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":12,"column_names":["o","o_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":91,"query_location_length":67,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":17,"column_names":["l","l_extendedprice"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":140,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":14,"column_names":["o","o_totalprice"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":11,"column_names":["o","o_custkey"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":16,"column_names":["o","o_shippriority"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(r.s) FROM l LEFT JOIN r ON l.i \u003c r.i AND l.i + 2 \u003e r.i AND (l.i + r.i) % 7 = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["r","s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":66,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":40,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":40,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["l","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["r","i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":54,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["l","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["r","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":15,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["l","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["r","i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM bigtbl JOIN smalltbl ON (bigtbl.i BETWEEN low AND high AND bigtbl.i IS NOT DISTINCT FROM high - low)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":93,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"bigtbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigtbl"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"smalltbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smalltbl"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":46,"query_location_length":74,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":55,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":8,"column_names":["bigtbl","i"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["low"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":4,"column_names":["high"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":80,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":8,"column_names":["bigtbl","i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":4,"column_names":["high"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":3,"column_names":["low"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM wide_ranges l\nANTI JOIN narrow_ranges r\n\t ON l.start \u003c r.stop\n\t AND r.start \u003c l.stop\n\t AND r.symbol = l.symbol\n\t AND l.price + r.bid \u003c 375\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":129,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":5,"query_location_length":13,"schema_name":"","table_name":"wide_ranges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_ranges"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":29,"query_location_length":15,"schema_name":"","table_name":"narrow_ranges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["narrow_ranges"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":52,"query_location_length":96,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":52,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["l","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":6,"column_names":["r","stop"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":76,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["r","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":6,"column_names":["l","stop"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":8,"column_names":["r","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":8,"column_names":["l","symbol"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":127,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":5,"column_names":["r","bid"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":3,"literal":{"kind":"INTEGER","text":"375"}}}]},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t1.x, t1.y\nfrom (\n select (case when x \u003c 100 then null else 99 end) x, (case when x \u003c 100 then 99 else 99 end) y\n from tt2\n) t1 left join tt2 t2\non t1.x \u003c t2.x and t1.y \u003c t2.x\norder by t1.x nulls first, t1.y nulls first;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":4,"column_names":["t1","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":4,"column_names":["t1","y"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t1","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["t1","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":141,"query_location_length":47,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":23,"query_location_length":114,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"x","query_location":37,"query_location_length":39,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":47,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}},{"class":"CASE","type":"CASE_EXPR","alias":"y","query_location":82,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":92,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"query_location_length":3,"schema_name":"","table_name":"tt2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tt2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":151,"query_location_length":6,"schema_name":"","table_name":"tt2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tt2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":161,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":161,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":4,"column_names":["t1","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":4,"column_names":["t2","x"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":177,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":4,"column_names":["t1","y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":4,"column_names":["t2","x"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM wide_ranges l\nSEMI JOIN narrow_ranges r\n\t ON l.start \u003c r.stop\n\t AND r.start \u003c l.stop\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":19,"query_location_length":73,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":5,"query_location_length":13,"schema_name":"","table_name":"wide_ranges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_ranges"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":29,"query_location_length":15,"schema_name":"","table_name":"narrow_ranges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["narrow_ranges"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":52,"query_location_length":40,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":52,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["l","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":6,"column_names":["r","stop"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":76,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["r","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":6,"column_names":["l","stop"]}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t1 join t2 on (i=j), lateral (select * from t3 join t4 on (i+k=j+l)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":78,"left":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["j"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":51,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":2,"schema_name":"","table_name":"t4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t4"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":7,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM p JOIN b ON p.a IS NOT DISTINCT FROM b.b AND p.g=b.g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":50,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":40,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":33,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["p","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["b","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":3,"column_names":["b","g"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT test.a, b, c FROM test, test2 WHERE test.a = test2.a AND test.b \u003e= test2.c ORDER BY test.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":6,"column_names":["test","a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["test","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":43,"query_location_length":38,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":64,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":7,"column_names":["test2","c"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table l\nINNER JOIN right_table r ON l.id = r.id AND true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":48,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":38,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["r","id"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, test.b, c FROM test INNER JOIN test2 ON test2.b = test.b and 2 = 2 ORDER BY c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["c"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":6,"column_names":["test","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":50,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":7,"column_names":["test2","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":6,"column_names":["test","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x.col1, y.col1 FROM tbl_l x JOIN tbl_l y\nON x.col0 = y.col0 AND x.col1 != y.col1\nORDER BY x.col1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["x","col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":52,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":7,"schema_name":"","table_name":"tbl_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":40,"query_location_length":7,"schema_name":"","table_name":"tbl_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":71,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x.col1, y.col1 FROM tbl_l_null x JOIN tbl_l_null y\nON x.col0 = y.col0 AND x.col1 != y.col1\nORDER BY x.col1, y.col1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":6,"column_names":["x","col1"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":6,"column_names":["y","col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":12,"schema_name":"","table_name":"tbl_l_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l_null"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":45,"query_location_length":12,"schema_name":"","table_name":"tbl_l_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_l_null"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":61,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":81,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x.col1, y.col1 FROM tbl_null x JOIN tbl_null y\nON x.col0 = y.col0 AND (x.col1 IS NOT DISTINCT FROM y.col1)\nORDER BY x.col1, y.col1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":6,"column_names":["x","col1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":6,"column_names":["y","col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["x","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["y","col1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":75,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":10,"schema_name":"","table_name":"tbl_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_null"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":43,"query_location_length":10,"schema_name":"","table_name":"tbl_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_null"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":56,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":78,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["y","col1"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), min(p.k), max(p.k) FROM prf_probe_mixed p JOIN prf_build b ON p.k = b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["p","k"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["p","k"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":41,"query_location_length":17,"schema_name":"","table_name":"prf_probe_mixed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_probe_mixed"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":64,"query_location_length":11,"schema_name":"","table_name":"prf_build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT test.b, test2.b FROM test, test2 WHERE test.b\u003ctest2.b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["test","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["test2","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":46,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":7,"column_names":["test2","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 JOIN t2 USING(a) JOIN t2 t2b USING (a) ORDER BY 1, 2, 3, 4, 5, 6, 7;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":21,"left":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["a"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"t2b","sample":null,"query_location":39,"query_location_length":6,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["a"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (select 42 as a, NULL::varchar as b) sq1, (select 42 as a, 'asdf' as b) sq2 where sq1.b \u003c\u003e sq2.b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":80,"left":{"type":"SUBQUERY","alias":"sq1","sample":null,"query_location":14,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":35,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"sq2","sample":null,"query_location":56,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":73,"query_location_length":6,"literal":{"kind":"STRING","text":"asdf"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":96,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":5,"column_names":["sq1","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":5,"column_names":["sq2","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT foo.ts foo, bar.ts bar FROM foo LEFT JOIN bar ON foo.ts \u003c bar.ts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"foo","query_location":7,"query_location_length":6,"column_names":["foo","ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"bar","query_location":19,"query_location_length":6,"column_names":["bar","ts"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":3,"schema_name":"","table_name":"foo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":3,"schema_name":"","table_name":"bar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bar"]}},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":56,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["foo","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["bar","ts"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t AS (\n SELECT 1 AS r, ARRAY[1, 2, 3] AS a\n UNION SELECT 2 AS r, ARRAY[4] AS a\n UNION SELECT 4 AS r, ARRAY[]::INTEGER[] AS a\n)\nSELECT r, a.value\nFROM t\nLEFT JOIN UNNEST(a) AS a(value) ON TRUE AND a.value IS NULL\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"r","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"a","query_location":29,"query_location_length":14,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"r","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"a","query_location":72,"query_location_length":8,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"r","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":116,"query_location_length":11,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":109,"query_location_length":7,"children":[]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":7,"column_names":["a","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":160,"query_location_length":59,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":158,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":170,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["value"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":195,"query_location_length":24,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":212,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":7,"column_names":["a","value"]}]}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers LEFT OUTER JOIN (SELECT * FROM integers2 WHERE 1\u003c\u003e1) tbl2 ON 1=2 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":39,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":47,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":70,"query_location_length":4,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (values(1), (2)) t1(i) left join (values (2), (3)) t2(i) on t1.i=t2.i AND t1.i+t2.i=4 ORDER BY 1, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":62,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":14,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":47,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":74,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":4,"column_names":["t1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":4,"column_names":["t2","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["t1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["t2","i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f.fk, f.value, d.label\nFROM fact f FULL OUTER JOIN dim d ON f.fk = d.id\nWHERE d.id \u003e 3 OR f.fk IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["f","fk"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["f","value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["d","label"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":35,"query_location_length":6,"schema_name":"","table_name":"fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fact"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":58,"query_location_length":5,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["f","fk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":4,"column_names":["d","id"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":85,"query_location_length":24,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":85,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["d","id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":102,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["f","fk"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT p.i,__mark_join_marker FROM probe p JOIN BY (TYPE MARK) build b ON 1=b.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["p","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":43,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":63,"query_location_length":7,"schema_name":"","table_name":"build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":3,"column_names":["b","i"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a,__mark_join_marker FROM distinct_probe JOIN BY (TYPE MARK) distinct_build ON a IS DISTINCT FROM b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":48,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":14,"schema_name":"","table_name":"distinct_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_probe"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":14,"schema_name":"","table_name":"distinct_build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":86,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["b"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT __mark_join_marker FROM (VALUES (1,2)) p(a,c) JOIN BY(TYPE MARK) (VALUES (1,3)) b(b,d) ON a+b=3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":49,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","c"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":72,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","d"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g,u=ANY(SELECT b.u FROM union_candidates b WHERE b.g=p.g) FROM union_probes p ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":9,"query_location_length":55,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["b","u"]}],"from_table":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":31,"query_location_length":18,"schema_name":"","table_name":"union_candidates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_candidates"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["b","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["p","g"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["u"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":70,"query_location_length":14,"schema_name":"","table_name":"union_probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_probes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT __mark_join_marker FROM (VALUES (row(1,2))) p(c) JOIN BY(TYPE MARK) (VALUES (row(1,NULL::INT))) b(d) ON c \u003c= d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":61,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":75,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":16,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":111,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["d"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT __mark_join_marker FROM (VALUES (row(1,NULL::INT))) p(c) JOIN BY(TYPE MARK) (VALUES (row(1,2))) b(d) ON c IS NOT DISTINCT FROM d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":71,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":16,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":83,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":111,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["d"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM a WHERE EXISTS (SELECT 1 FROM p WHERE a.x IS NOT DISTINCT FROM p.k);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"query_location_length":59,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":59,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":3,"column_names":["p","k"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 NATURAL JOIN t2 NATURAL JOIN t3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":15,"left":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(t1.rowid) FROM t1, v0 RIGHT JOIN t0 ON v0.c0=t0.c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":8,"column_names":["t1","rowid"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":40,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":2,"schema_name":"","table_name":"v0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v0"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":5,"column_names":["v0","c0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["t0","c0"]}},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT q.user_id, products.product_id FROM users q\n INNER JOIN products APPROX NEAREST 1 BY SIMILARITY array_cosine_similarity(q.embedding, products.embedding)\n ORDER BY q.user_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":9,"column_names":["q","user_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["q","user_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":19,"column_names":["products","product_id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":107,"left":{"type":"BASE_TABLE","alias":"q","sample":null,"query_location":43,"query_location_length":7,"schema_name":"","table_name":"users","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["users"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":8,"schema_name":"","table_name":"products","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["products"]}},"condition":null,"join_type":"INNER","ref_type":"NEAREST","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":56,"function_name":"array_cosine_similarity","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":11,"column_names":["q","embedding"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":18,"column_names":["products","embedding"]}}],"qualified_name":{"path":["array_cosine_similarity"]},"is_legacy_function_call":false},"nearest_count":1,"nearest_order_type":"DESCENDING","nearest_approx":true},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM users q\n INNER JOIN products NEAREST 1 BY DISTANCE array_distance(q.embedding, products.embedding);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":89,"left":{"type":"BASE_TABLE","alias":"q","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"users","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["users"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"products","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["products"]}},"condition":null,"join_type":"INNER","ref_type":"NEAREST","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":47,"function_name":"array_distance","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":11,"column_names":["q","embedding"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":18,"column_names":["products","embedding"]}}],"qualified_name":{"path":["array_distance"]},"is_legacy_function_call":false},"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, r.b\nFROM (VALUES (1), (2)) l(a)\nFULL OUTER JOIN (VALUES (10), (20)) r(b)\n ON EXISTS (SELECT 1 WHERE l.a = 1 AND r.b = 10)\nANTI JOIN (VALUES (100), (200)) s(c)\n ON EXISTS (SELECT 1 WHERE l.a = 1 AND s.c = 100)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":135,"query_location_length":87,"left":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":90,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":60,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":90,"query_location_length":44,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":113,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":125,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["r","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":145,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":177,"query_location_length":45,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":200,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":200,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":212,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.x, EXISTS (\n\tSELECT *\n\tFROM (VALUES (1)) l(a)\n\tANTI JOIN (VALUES (2)) r(b)\n\t\tON l.a = r.b AND o.x = 10\n) AS ex\nFROM (VALUES (10), (20)) o(x)\nORDER BY o.x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["o","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","x"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"ex","query_location":12,"query_location_length":101,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":55,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":37,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":66,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":89,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["o","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":125,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.i, r.i\nFROM non_inner_l l\nLEFT JOIN non_inner_r r ON r.i IN (SELECT s.i FROM non_inner_s s WHERE s.i = r.i)\nORDER BY l.i, r.i NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":3,"column_names":["l","i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["r","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":81,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"non_inner_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":45,"query_location_length":13,"schema_name":"","table_name":"non_inner_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":69,"query_location_length":47,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["s","i"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":86,"query_location_length":13,"schema_name":"","table_name":"non_inner_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":3,"column_names":["s","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":3,"column_names":["r","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["r","i"]},"comparison_type":"COMPARE_EQUAL"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM (VALUES ('a')) l(v)\nLEFT JOIN (VALUES ('A')) r(v)\nON EXISTS (\n\tSELECT 1\n\tWHERE lower(v) = l.v\n\t AND r.v = 'A'\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":92,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":44,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":67,"query_location_length":59,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":93,"query_location_length":31,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":3,"column_names":["l","v"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":3,"column_names":["r","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.x, a.x\nFROM (VALUES (1)) l(x)\nLEFT JOIN ((VALUES (1)) a(x) JOIN (VALUES (1)) b(x) USING (x))\nON EXISTS (\n\tSELECT 1\n\tWHERE l.x = x\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["a","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":101,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"right":{"type":"JOIN","alias":"","sample":null,"query_location":68,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":50,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":73,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["x"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":105,"query_location_length":35,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":1,"column_names":["x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.i, r.i, r.j FROM l LEFT JOIN r ON EXISTS (SELECT 1 FROM s WHERE s.i = r.i AND s.j * 10 = r.j) AND l.i = r.i ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","j"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":88,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":43,"query_location_length":73,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":43,"query_location_length":59,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":73,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["s","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["r","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":8,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":3,"column_names":["s","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":3,"column_names":["r","j"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":3,"column_names":["l","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":3,"column_names":["r","i"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, r.b\nFROM pair_nested_l l\nFULL OUTER JOIN pair_nested_r r ON EXISTS (\n\tSELECT 1\n\tWHERE EXISTS (\n\t\tSELECT 1 FROM pair_split_l sl WHERE sl.a = l.a\n\t)\n\tAND EXISTS (\n\t\tSELECT 1 FROM pair_split_r sr WHERE sr.b = r.b\n\t)\n)\nORDER BY l.a NULLS LAST, r.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":236,"query_location_length":3,"column_names":["l","a"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":189,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":15,"schema_name":"","table_name":"pair_nested_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":53,"query_location_length":15,"schema_name":"","table_name":"pair_nested_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_nested_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":72,"query_location_length":154,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":98,"query_location_length":126,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":98,"query_location_length":60,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"sl","sample":null,"query_location":123,"query_location_length":15,"schema_name":"","table_name":"pair_split_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_split_l"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":145,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["sl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":3,"column_names":["l","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":164,"query_location_length":60,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"sr","sample":null,"query_location":189,"query_location_length":15,"schema_name":"","table_name":"pair_split_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_split_r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":211,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":4,"column_names":["sr","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":3,"column_names":["r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, l.x, r.b, r.y, count(*)::INTEGER\nFROM pair_l l\nFULL OUTER JOIN pair_r r ON l.x \u003e 10 AND r.b IN (\n\tSELECT s.b FROM pair_s s WHERE s.a = l.a\n)\nGROUP BY ALL\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["r","y"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":93,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":75,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":87,"query_location_length":65,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":87,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":107,"query_location_length":45,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":126,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":141,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["l","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":3,"column_names":["r","b"]},"comparison_type":"COMPARE_EQUAL"}]},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, r.b\nFROM pair_l l\nFULL OUTER JOIN pair_r r ON EXISTS (\n\tSELECT 1 FROM pair_s s WHERE s.a = l.a AND s.b = r.b AND random() \u003e= 0\n)\nORDER BY l.a NULLS LAST, r.b NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":3,"column_names":["l","a"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":3,"column_names":["r","b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":110,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":46,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":58,"query_location_length":82,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":82,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":97,"query_location_length":41,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":125,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, r.b\nFROM (VALUES (1), (2)) l(a)\nFULL OUTER JOIN range(10, 40, 10) r(b) ON EXISTS (\n\tSELECT 1\n\tFROM pair_multi_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":117,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":60,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["b"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":86,"query_location_length":75,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":111,"query_location_length":14,"schema_name":"","table_name":"pair_multi_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":133,"query_location_length":26,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":133,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH q AS (\n\tSELECT count(*)::INTEGER AS count_value\n\tFROM (SELECT a, nextval('pair_effect_seq') AS v FROM pair_effect_l) l\n\tFULL OUTER JOIN pair_effect_r r ON EXISTS (\n\t\tSELECT 1 WHERE l.v = r.b\n\t)\n)\nSELECT count_value, currval('pair_effect_seq') FROM q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"q","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"count_value","query_location":28,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":125,"query_location_length":73,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":59,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":70,"query_location_length":26,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":17,"literal":{"kind":"STRING","text":"pair_effect_seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":107,"query_location_length":13,"schema_name":"","table_name":"pair_effect_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_effect_l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":141,"query_location_length":15,"schema_name":"","table_name":"pair_effect_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_effect_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":160,"query_location_length":38,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":186,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":3,"column_names":["l","v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":3,"column_names":["r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":11,"column_names":["count_value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":221,"query_location_length":26,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":17,"literal":{"kind":"STRING","text":"pair_effect_seq"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":253,"query_location_length":1,"schema_name":"","table_name":"q","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["q"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, l.x\nFROM pair_l l\nSEMI JOIN pair_r r ON EXISTS (\n\tSELECT 1 FROM pair_s s WHERE s.a = l.a AND s.b = r.b\n) OR l.x * 10 = r.y\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["l","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":104,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":52,"query_location_length":82,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":64,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":76,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":91,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":120,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":8,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":3,"column_names":["l","x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["r","y"]}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.a, r.b, count(*)::INTEGER\nFROM pair_left_null_l l\nLEFT JOIN pair_left_null_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_left_null_s s\n\tWHERE s.a IS NOT DISTINCT FROM l.a\n\t AND s.b IS NOT DISTINCT FROM r.b\n)\nGROUP BY ALL\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","b"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":149,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":40,"query_location_length":18,"schema_name":"","table_name":"pair_left_null_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_null_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":69,"query_location_length":18,"schema_name":"","table_name":"pair_left_null_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_null_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":91,"query_location_length":117,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":116,"query_location_length":18,"schema_name":"","table_name":"pair_left_null_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_null_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":142,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":142,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":178,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.b, q.a, q.x, q.b\nFROM pair_right_corr_outer_r o\nLEFT JOIN LATERAL (\n\tSELECT l.a, l.x, r.b\n\tFROM pair_right_corr_l l\n\tRIGHT JOIN (SELECT * FROM pair_right_corr_r WHERE pair_right_corr_r.b = o.b) r ON EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_right_corr_s s\n\t\tWHERE s.a = l.a\n\t\t AND s.b = r.b\n\t)\n) q ON true\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["q","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["q","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["q","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":57,"query_location_length":248,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":31,"query_location_length":25,"schema_name":"","table_name":"pair_right_corr_outer_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_right_corr_outer_r"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":75,"query_location_length":220,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":126,"query_location_length":167,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":105,"query_location_length":19,"schema_name":"","table_name":"pair_right_corr_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_right_corr_l"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":137,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":145,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":152,"query_location_length":17,"schema_name":"","table_name":"pair_right_corr_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_right_corr_r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":176,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":19,"column_names":["pair_right_corr_r","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":3,"column_names":["o","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":208,"query_location_length":85,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":235,"query_location_length":19,"schema_name":"","table_name":"pair_right_corr_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_right_corr_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":263,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":263,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":269,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":281,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":281,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":3,"column_names":["r","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":301,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT outer_l.x, q.a, q.x\nFROM pair_l outer_l\nLEFT JOIN LATERAL (\n\tSELECT l.a, l.x\n\tFROM pair_l l\n\tSEMI JOIN pair_r r ON EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_s s\n\t\tWHERE s.a = l.a\n\t\t AND s.b = r.b\n\t\t AND s.a = outer_l.a\n\t)\n\tWHERE l.x = outer_l.x\n) q ON true\nORDER BY outer_l.x, q.a NULLS LAST, q.x NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":9,"column_names":["outer_l","x"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":276,"query_location_length":3,"column_names":["q","a"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":3,"column_names":["q","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["outer_l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["q","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["q","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":208,"left":{"type":"BASE_TABLE","alias":"outer_l","sample":null,"query_location":32,"query_location_length":14,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":65,"query_location_length":180,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":3,"column_names":["l","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":100,"query_location_length":120,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":90,"query_location_length":8,"schema_name":"","table_name":"pair_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":110,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":122,"query_location_length":98,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":149,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":166,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":166,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":202,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":202,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":9,"column_names":["outer_l","a"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":228,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":9,"column_names":["outer_l","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT outer_r.b, q.flag\nFROM pair_r outer_r\nLEFT JOIN LATERAL (\n\tWITH cr AS (SELECT b FROM pair_r WHERE pair_r.b = outer_r.b)\n\tSELECT 1 AS flag\n\tFROM (SELECT 1) ll\n\tSEMI JOIN cr ON EXISTS (\n\t\tSELECT 1\n\t\tFROM pair_s s\n\t\tWHERE s.b = cr.b\n\t)\n) q ON true\nORDER BY outer_r.b, q.flag;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":9,"column_names":["outer_r","b"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":6,"column_names":["q","flag"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["outer_r","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":6,"column_names":["q","flag"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":206,"left":{"type":"BASE_TABLE","alias":"outer_r","sample":null,"query_location":30,"query_location_length":14,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":63,"query_location_length":178,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cr","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":6,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":8,"column_names":["pair_r","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":9,"column_names":["outer_r","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"flag","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":166,"query_location_length":73,"left":{"type":"SUBQUERY","alias":"ll","sample":null,"query_location":151,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":176,"query_location_length":2,"schema_name":"","table_name":"cr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cr"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":182,"query_location_length":57,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":209,"query_location_length":8,"schema_name":"","table_name":"pair_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":226,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":4,"column_names":["cr","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":247,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * \nFROM two t1 POSITIONAL JOIN three t2 ","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":22,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":15,"query_location_length":6,"schema_name":"","table_name":"two","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["two"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"three","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["three"]}},"condition":null,"join_type":"INNER","ref_type":"POSITIONAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers JOIN (SELECT MAX(i) AS max_i FROM integers) ON i=max_i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":54,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":28,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"max_i","query_location":36,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":5,"column_names":["max_i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM bigtbl JOIN (FROM smalltbl WHERE small_key=1) smalltbl USING (small_key) JOIN (FROM mediumtbl WHERE medium_key=1) mediumtbl ON (mediumtbl.medium_key=smalltbl.small_key)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":94,"query_location_length":95,"left":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":65,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"bigtbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigtbl"]}},"right":{"type":"SUBQUERY","alias":"smalltbl","sample":null,"query_location":33,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":8,"schema_name":"","table_name":"smalltbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smalltbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":9,"column_names":["small_key"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["small_key"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"mediumtbl","sample":null,"query_location":99,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":9,"schema_name":"","table_name":"mediumtbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mediumtbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":10,"column_names":["medium_key"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":20,"column_names":["mediumtbl","medium_key"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":18,"column_names":["smalltbl","small_key"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT integers.*, integers2.* FROM integers2 RIGHT OUTER JOIN integers ON integers.i=integers2.k AND integers2.k IS NOT NULL ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":10,"relation_name":"integers","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":19,"query_location_length":11,"relation_name":"integers2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":79,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":75,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":11,"column_names":["integers2","k"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":114,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":11,"column_names":["integers2","k"]}]}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT integers.*, integers2.* FROM integers2 RIGHT OUTER JOIN integers ON integers.i\u003cintegers2.k AND integers.i\u003cintegers2.l WHERE integers.i \u003c= 2 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":10,"relation_name":"integers","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":19,"query_location_length":11,"relation_name":"integers2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":78,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"integers2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":75,"query_location_length":49,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":75,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":11,"column_names":["integers2","k"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":102,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":11,"column_names":["integers2","l"]}}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":131,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM a JOIN b ON a.id=b.id AND a.k=b.k JOIN c ON TRY_CAST(b.k AS TINYINT)=c.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":38,"left":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["a","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":4,"column_names":["b","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["a","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["b","k"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":28,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["b","k"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["c","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*),sum(p.rn) FROM (\n SELECT b.k,row_number() OVER (PARTITION BY b.k ORDER BY a.id) AS rn FROM a JOIN b USING(id)\n) p JOIN c ON p.k=c.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["p","rn"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":133,"query_location_length":17,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":31,"query_location_length":99,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["b","k"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":48,"query_location_length":50,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":3,"column_names":["b","k"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["a","id"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":112,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":117,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["id"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":138,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["c","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n WITH RECURSIVE r(i) AS (VALUES(0) UNION ALL SELECT i+1 FROM r WHERE i\u003c2)\n SELECT b.k FROM a JOIN b USING(id) CROSS JOIN r\n) p JOIN c ON p.k=c.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":156,"query_location_length":17,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":21,"query_location_length":132,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":95,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":3,"column_names":["b","k"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":139,"query_location_length":12,"left":{"type":"JOIN","alias":"","sample":null,"query_location":122,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":127,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["id"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":161,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":166,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["c","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, v FROM (SELECT a, nextval('target_seq') AS v FROM probe) p JOIN build ON a=b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":69,"query_location_length":17,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":17,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":28,"query_location_length":21,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":12,"literal":{"kind":"STRING","text":"target_seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":5,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":5,"schema_name":"","table_name":"build","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["b"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select l.* from test_str l anti join test_str_del r on l.k = r.pk;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"l","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":38,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":16,"query_location_length":10,"schema_name":"","table_name":"test_str","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_str"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"test_str_del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_str_del"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":3,"column_names":["l","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["r","pk"]}},"join_type":"ANTI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table\nNATURAL ANTI JOIN (select right_table.a FROM right_table JOIN other ON (other.a = right_table.a)) joined_right_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":116,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"SUBQUERY","alias":"joined_right_table","sample":null,"query_location":43,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":13,"column_names":["right_table","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":82,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":5,"schema_name":"","table_name":"other","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":7,"column_names":["other","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":13,"column_names":["right_table","a"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"ANTI","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r.i FROM left_input l JOIN BY (TYPE RIGHT_SEMI) right_input r ON NULL::INTEGER=l.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["r","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":60,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":16,"query_location_length":12,"schema_name":"","table_name":"left_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_input"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":55,"query_location_length":13,"schema_name":"","table_name":"right_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_input"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":17,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["l","i"]}},"join_type":"RIGHT_SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table SEMI JOIN right_table ON left_table.a = right_table.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":53,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":12,"column_names":["left_table","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":13,"column_names":["right_table","a"]}},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table SEMI JOIN right_table ON (left_table.a + right_table.a = 85 OR left_table.a + right_table.b = 84) order by left_table.a, left_table.c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":12,"column_names":["left_table","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":12,"column_names":["left_table","c"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":97,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":51,"query_location_length":70,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":12,"column_names":["left_table","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":13,"column_names":["right_table","a"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"85"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":12,"column_names":["left_table","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":13,"column_names":["right_table","b"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table l\nSEMI JOIN right_table r ON l.id = r.id AND l.amount + r.budget \u003e 1100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":69,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":37,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":54,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["r","id"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":70,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":8,"column_names":["l","amount"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":8,"column_names":["r","budget"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1100"}}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, l, u, (CASE WHEN random() \u003c 2 THEN x ELSE x END) BETWEEN l AND u FROM tt ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["l"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["u"]},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":59,"query_location_length":15,"input":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":17,"query_location_length":40,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":27,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]}},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["l"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["u"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":2,"schema_name":"","table_name":"tt","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tt"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM wide_nulls;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_nulls"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM left_table l\nFULL OUTER JOIN right_table r ON TRUE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"left_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_table"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":43,"query_location_length":13,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM t1 JOIN BY (TYPE single) t2 ON (a = b) ORDER BY a NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}},"join_type":"SINGLE","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select l.k100 as lid, r.k100 as rid\nfrom tleft l \nright join tleft r \non r.b100 \u003c l.e100\nand l.k100 + r.k100 \u003c 10\norder by 2, 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"lid","query_location":7,"query_location_length":6,"column_names":["l","k100"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"rid","query_location":22,"query_location_length":6,"column_names":["r","k100"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":63,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":41,"query_location_length":7,"schema_name":"","table_name":"tleft","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tleft"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":61,"query_location_length":7,"schema_name":"","table_name":"tleft","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tleft"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":73,"query_location_length":40,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":73,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":6,"column_names":["r","b100"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["l","e100"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":93,"query_location_length":20,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":6,"column_names":["l","k100"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":6,"column_names":["r","k100"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t5.created_at\nFROM (SELECT 'YEAR' AS c0\n FROM t AS t1 \n INNER JOIN t AS t2 \n ON t1.created_at \u003c= t2.created_at\n WHERE COALESCE(t1.id, t2.id) IS NOT NULL\n) AS sq4\nINNER JOIN t AS t5 \nON sq4.c0 = t5.created_at;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["t5","created_at"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":189,"query_location_length":45,"left":{"type":"SUBQUERY","alias":"sq4","sample":null,"query_location":26,"query_location_length":155,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c0","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"YEAR"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":59,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":58,"query_location_length":7,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":84,"query_location_length":7,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":102,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":13,"column_names":["t1","created_at"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":13,"column_names":["t2","created_at"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":168,"query_location_length":11,"children":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":145,"query_location_length":22,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":5,"column_names":["t1","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":5,"column_names":["t2","id"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"t5","sample":null,"query_location":200,"query_location_length":7,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":212,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":6,"column_names":["sq4","c0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":13,"column_names":["t5","created_at"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, name, ST_AsText(geometry) FROM places3 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":8,"column_names":["geometry"]}}],"qualified_name":{"path":["st_astext"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":7,"schema_name":"","table_name":"places3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["places3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT replace(replace(trim(content, chr(10)), chr(10), ' '), chr(9), '') FROM read_text('{TEST_DIR}/geom_pick.geojsonl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":45,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["trim"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":6,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":79,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/geom_pick.geojsonl"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT filename, trim(content, chr(10))\nFROM read_text('{TEST_DIR}/json_partition_multi/*/*/*.json') ORDER BY filename;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":8,"column_names":["filename"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["filename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["trim"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/json_partition_multi/*/*/*.json"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select min(j), max(j) from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_type(JSON 'null') = 'NULL';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"null"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_type"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"STRING","text":"NULL"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*)\nfrom read_json_objects('{DATA_DIR}/json/13725/month=*/*.json', hive_partitioning = true, format = auto, hive_types = {'month': int}, filename = true)\nwhere month = 7;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":144,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/13725/month=*/*.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":6,"column_names":["format"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":4,"column_names":["auto"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":120,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":10,"column_names":["hive_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"month","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"month","query_location":143,"query_location_length":3,"column_names":["int"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json_objects"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":5,"column_names":["month"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH path AS (\n SELECT '0' p\n)\nSELECT '[1, 2, 3]' -\u003e p\nFROM path","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"path","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"p","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":41,"query_location_length":16,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"literal":{"kind":"STRING","text":"[1, 2, 3]"}},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["p"]},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":4,"schema_name":"","table_name":"path","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["path"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t1 AS (\n SELECT 9007199254740993 AS id\n UNION ALL\n SELECT 1.2 AS id\n)\nSELECT to_json(id) AS json_objects\nFROM t1 AS t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":24,"query_location_length":16,"literal":{"kind":"INTEGER","text":"9007199254740993"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":72,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"json_objects","query_location":91,"query_location_length":11,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":124,"query_location_length":7,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof(id), id from read_json('{TEST_DIR}/ubigint.json')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/ubigint.json"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_object(CAST(NULL AS VARCHAR), 'two');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"STRING","text":"two"}}}],"qualified_name":{"path":["json_object"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE nums AS (\n SELECT 0 AS n\n UNION ALL\n SELECT n + 1 FROM nums\n WHERE n \u003c (SELECT MAX(JSON_ARRAY_LENGTH(filter_keystage))::int - 1 FROM read_json_auto('{DATA_DIR}/json/filter_keystage.ndjson'))\n)\nSELECT * FROM nums;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"nums","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"nums","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"n","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":4,"schema_name":"","table_name":"nums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nums"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":94,"query_location_length":123,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["n"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":98,"query_location_length":119,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":145,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":39,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":34,"function_name":"json_array_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":15,"column_names":["filter_keystage"]}}],"qualified_name":{"path":["json_array_length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":147,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":160,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":40,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/filter_keystage.ndjson"}}}],"qualified_name":{"path":["read_json_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":227,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":234,"query_location_length":4,"schema_name":"","table_name":"nums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nums"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_json_objects('{DATA_DIR}/json/example_rn.ndjson', format='nd');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":67,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_rn.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"STRING","text":"nd"}}}}],"qualified_name":{"path":["read_json_objects"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'a': 'boom', 'b': '[1, 2]'}::ROW(a JSON, b INT[])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":22,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"boom"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":26,"query_location_length":8,"literal":{"kind":"STRING","text":"[1, 2]"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":20,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":51,"query_location_length":5,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '[\"duck\"]'::JSON::VARCHAR[]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"[\"duck\"]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM maps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"maps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["maps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('{\"a\":1,\"a\":2}'::JSON AS MAP(VARCHAR, INT));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":52,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":1,\"a\":2}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_transform('{\"a\":1,\"b\":\"x\"}', '{\"a\":\"UBIGINT\",\"b\":\"VARCHAR\"}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":17,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":\"x\"}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":31,"literal":{"kind":"STRING","text":"{\"a\":\"UBIGINT\",\"b\":\"VARCHAR\"}"}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{\"type\":\"Point\",\"coordinates\":[\"a\",\"b\"]}'::JSON::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":42,"literal":{"kind":"STRING","text":"{\"type\":\"Point\",\"coordinates\":[\"a\",\"b\"]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'x' = j-\u003e'a'-\u003e\u003e'b' FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":18,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":12,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["j"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NOT j-\u003e'a'-\u003e\u003e'b' = 'x' FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":11,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":12,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["j"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT j-\u003e'a'-\u003e\u003e'b'::INT FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_transform([j], lambda x: CASE WHEN x-\u003e'a'-\u003e\u003e'b' = 'x' THEN x-\u003e'a'-\u003e'c'-\u003e\u003e'd' END) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":86,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":65,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":37,"query_location_length":55,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":12,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":17,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"syntax_type":"SINGLE_ARROW"},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_contains('[1, 2]', '[2, 1]');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":8,"literal":{"kind":"STRING","text":"[1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"STRING","text":"[2, 1]"}}}],"qualified_name":{"path":["json_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tto_json(TIMESTAMP '2026-01-02 03:04:05.123456'),\n\tto_json(TIMESTAMP_MS '2026-01-02 03:04:05.123'),\n\tto_json(TIMESTAMP_S '2026-01-02 03:04:05'),\n\tto_json(TIMESTAMPTZ '2026-01-02 03:04:05+00'),\n\tto_json(TIMESTAMPTZ_NS '2026-01-02 03:04:05.123456789+00')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":47,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-02 03:04:05.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":47,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-02 03:04:05.123"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":42,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-02 03:04:05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"query_location_length":45,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":161,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-02 03:04:05+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":201,"query_location_length":58,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":209,"query_location_length":49,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-02 03:04:05.123456789+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":209,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_object('duck', '{\"goose\": [1, 2, 3, 4, 5, 6, 7]}'::JSON)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":34,"literal":{"kind":"STRING","text":"{\"goose\": [1, 2, 3, 4, 5, 6, 7]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_object"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_object(a::varchar, a, b::varchar, b, c, c, 'd', d, 'e', e) from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["json_object"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select array_to_json([42])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"array_to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["array_to_json"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_object('ex','[52,3.14159]'::JSON);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"ex"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":14,"literal":{"kind":"STRING","text":"[52,3.14159]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_object"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_json(row(1, 'a', [2, 3]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"to_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":19,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_json"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deep_merge('{\"a\": 1}', '{\"b\": 2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"a\": 1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"b\": 2}"}}}],"qualified_name":{"path":["json_deep_merge"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deep_merge('{\"name\": \"x\"}', '{\"id\": 47}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"name\": \"x\"}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":12,"literal":{"kind":"STRING","text":"{\"id\": 47}"}}}],"qualified_name":{"path":["json_deep_merge"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deep_merge('{\"a\":1}', '{\"b\":2}', '{\"c\":3}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"c\":3}"}}}],"qualified_name":{"path":["json_deep_merge"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deep_merge('{\"a\":{\"b\":1},\"c\":{\"d\":2}}', '{\"a\":null,\"c\":{\"d\":null}}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":73,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":{\"b\":1},\"c\":{\"d\":2}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":null,\"c\":{\"d\":null}}"}}}],"qualified_name":{"path":["json_deep_merge"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deep_merge('{\"a\":1}', '{\"b\":null}') FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_deep_merge","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":12,"literal":{"kind":"STRING","text":"{\"b\":null}"}}}],"qualified_name":{"path":["json_deep_merge"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":53,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"select ('{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}'::JSON).my_field.my_nested_field.\"1\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":91,"children":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":54,"literal":{"kind":"STRING","text":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":9,"literal":{"kind":"STRING","text":"my_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":16,"literal":{"kind":"STRING","text":"my_nested_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"literal":{"kind":"STRING","text":"1"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json('{\"a\":2,\"c\":[4,5,{\"f\":7}]}').x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":35,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}}],"qualified_name":{"path":["json"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"STRING","text":"x"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with path AS (\n SELECT '$.goose' p\n)\nSELECT json_exists('{\"duck\": null}', p) FROM path","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"path","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"p","query_location":26,"query_location_length":9,"literal":{"kind":"STRING","text":"$.goose"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":32,"function_name":"json_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":16,"literal":{"kind":"STRING","text":"{\"duck\": null}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["json_exists"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":4,"schema_name":"","table_name":"path","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["path"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}'::JSON-\u003e\u003e'/my_field/my_nested_field/1'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":92,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":54,"literal":{"kind":"STRING","text":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":29,"literal":{"kind":"STRING","text":"/my_field/my_nested_field/1"}}}],"qualified_name":{"path":["-\u003e\u003e"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_extract('{\"a\":2,\"c\":[4,5,{\"f\":7}]}', '$.x');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"$.x"}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_extract(j, '$.b[#-4]'), json_extract(j, '$.b[-4]') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"literal":{"kind":"STRING","text":"$.b[#-4]"}}}],"qualified_name":{"path":["json_extract"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":26,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":9,"literal":{"kind":"STRING","text":"$.b[-4]"}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_extract(j, '$.b[#-1') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"$.b[#-1"}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '{\"\\\"du\\nck\\\"\": 42}'-\u003e('$.\"\\\"du' || chr(10) || 'ck\\\"\"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":7,"query_location_length":55,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"\\\"du\\nck\\\"\": 42}"}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":9,"literal":{"kind":"STRING","text":"$.\"\\\"du"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":7,"literal":{"kind":"STRING","text":"ck\\\"\""}}}],"qualified_name":{"path":["||"]}},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json('{\"a\":2,\"c\":[4,5,{\"f\":7}]}').x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":35,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}}],"qualified_name":{"path":["json"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"STRING","text":"x"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with path AS (\n SELECT '$.goose' p\n)\nSELECT json_exists('{\"duck\": null}', p) FROM path","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"path","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"p","query_location":26,"query_location_length":9,"literal":{"kind":"STRING","text":"$.goose"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":32,"function_name":"json_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":16,"literal":{"kind":"STRING","text":"{\"duck\": null}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["json_exists"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":4,"schema_name":"","table_name":"path","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["path"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}'::JSON-\u003e\u003e'/my_field/my_nested_field/1'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":92,"function_name":"-\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":54,"literal":{"kind":"STRING","text":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":29,"literal":{"kind":"STRING","text":"/my_field/my_nested_field/1"}}}],"qualified_name":{"path":["-\u003e\u003e"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_extract('{\"a\":2,\"c\":[4,5,{\"f\":7}]}', '$.x');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"$.x"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_extract(j, '$.b[#-4]'), json_extract(j, '$.b[-4]') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"literal":{"kind":"STRING","text":"$.b[#-4]"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":26,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":9,"literal":{"kind":"STRING","text":"$.b[-4]"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_extract(j, '$.b[#-1') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":9,"literal":{"kind":"STRING","text":"$.b[#-1"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '{\"\\\"du\\nck\\\"\": 42}'-\u003e('$.\"\\\"du' || chr(10) || 'ck\\\"\"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":7,"query_location_length":55,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"\\\"du\\nck\\\"\": 42}"}},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":9,"literal":{"kind":"STRING","text":"$.\"\\\"du"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":7,"literal":{"kind":"STRING","text":"ck\\\"\""}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT ('{\"a\":[10,20,30]}'::JSON)-\u003e'$.a[#-1]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":7,"query_location_length":38,"lhs":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":18,"literal":{"kind":"STRING","text":"{\"a\":[10,20,30]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"$.a[#-1]"}},"syntax_type":"SINGLE_ARROW"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_insert('[1,2]', '$[5]', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"$[5]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_insert"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_insert('{\"a\":1}', '$.b', '2') FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"$.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["json_insert"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":47,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_insert('{}', '$.a[0]', '1')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":8,"literal":{"kind":"STRING","text":"$.a[0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["json_insert"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT length(json_merge_patch(repeat('{\"a\":', 200000) || '1' || repeat('}', 200000), '{}'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":85,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":77,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":53,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":23,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"literal":{"kind":"STRING","text":"{\"a\":"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200000"}}}],"qualified_name":{"path":["repeat"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":19,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200000"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}}],"qualified_name":{"path":["json_merge_patch"]}}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT JSON_MERGE_PATCH('{ \"a\": 1, \"b\":2 }','{ \"a\": 3, \"c\":4 }');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":19,"literal":{"kind":"STRING","text":"{ \"a\": 1, \"b\":2 }"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":19,"literal":{"kind":"STRING","text":"{ \"a\": 3, \"c\":4 }"}}}],"qualified_name":{"path":["json_merge_patch"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_merge_patch_diff('{\"a\":1}', '{\"a\":1,\"b\":2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":2}"}}}],"qualified_name":{"path":["json_merge_patch_diff"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_merge_patch_diff('\"hello\"', '\"world\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":9,"literal":{"kind":"STRING","text":"\"hello\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"literal":{"kind":"STRING","text":"\"world\""}}}],"qualified_name":{"path":["json_merge_patch_diff"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_merge_patch_diff('{\"a\":1}', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_merge_patch_diff"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_merge_patch('{\"a\":1,\"b\":2}', json_merge_patch_diff('{\"a\":1,\"b\":2}', '{\"a\":1}')) = '{\"a\":1}'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":96,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":2}"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":49,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}}],"qualified_name":{"path":["json_merge_patch_diff"]}}}],"qualified_name":{"path":["json_merge_patch"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_normalize('{\"b\":1,\"a\":2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"b\":1,\"a\":2}"}}}],"qualified_name":{"path":["json_normalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_normalize(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_normalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_normalize('{\"z\":1,\"a\":2}'::JSON)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"z\":1,\"a\":2}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_normalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_normalize('{\"b\":{\"c\":[{\"z\":1,\"a\":2}]},\"a\":1}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"b\":{\"c\":[{\"z\":1,\"a\":2}]},\"a\":1}"}}}],"qualified_name":{"path":["json_normalize"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_extract(j, '$.my_field.my_nested_field[-2]') from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":32,"literal":{"kind":"STRING","text":"$.my_field.my_nested_field[-2]"}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_extract('{\"a\": {\"b\": \"c\"}}', '$[[');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":19,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": \"c\"}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"literal":{"kind":"STRING","text":"$[["}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with tbl as (\n select '{\"aaaaaaaaaaaa\":1}' j, '$.aaaaaaaaaaaa.*' p\n)\nselect json_extract(j, p) from tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":25,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"aaaaaaaaaaaa\":1}"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"p","query_location":49,"query_location_length":18,"literal":{"kind":"STRING","text":"$.aaaaaaaaaaaa.*"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":18,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_extract('[[{\"a\":[1,2,3]}], [{\"a\":[4,5,6]}]]','$[*]..a[*]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":36,"literal":{"kind":"STRING","text":"[[{\"a\":[1,2,3]}], [{\"a\":[4,5,6]}]]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":12,"literal":{"kind":"STRING","text":"$[*]..a[*]"}}}],"qualified_name":{"path":["json_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_remove('[1,2,3]', '$[0]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"[1,2,3]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"$[0]"}}}],"qualified_name":{"path":["json_remove"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_remove('{\"a\":1,\"b\":2}', 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["json_remove"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_remove('[1,2]', '$[#-5]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"literal":{"kind":"STRING","text":"$[#-5]"}}}],"qualified_name":{"path":["json_remove"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_remove(d, '$.x') FROM (VALUES ('{\"x\":1,\"y\":2}'), (NULL)) t(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"literal":{"kind":"STRING","text":"$.x"}}}],"qualified_name":{"path":["json_remove"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":34,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"x\":1,\"y\":2}"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["d"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_replace('{\"a\":{\"x\":1}}', '$.a', '42')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"json_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"literal":{"kind":"STRING","text":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}}],"qualified_name":{"path":["json_replace"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, json_replace(payload, '$.status', '\"done\"') FROM events ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":43,"function_name":"json_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":7,"column_names":["payload"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":10,"literal":{"kind":"STRING","text":"$.status"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":8,"literal":{"kind":"STRING","text":"\"done\""}}}],"qualified_name":{"path":["json_replace"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":6,"schema_name":"","table_name":"events","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('{\"a\":1}', '$.a', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"STRING","text":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('{}', '$.obj', '{\"x\":1}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"literal":{"kind":"STRING","text":"$.obj"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"x\":1}"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('{\"a\":1}', '$.b', '2') FROM range(3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"STRING","text":"$.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('{\"log\":[{\"v\":1},{\"v\":2}]}', '$.log[#-1].v', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":27,"literal":{"kind":"STRING","text":"{\"log\":[{\"v\":1},{\"v\":2}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":14,"literal":{"kind":"STRING","text":"$.log[#-1].v"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('[1,2]', '$[#-]', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"$[#-]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_set('{\"a\":1}', '$.a[0]', '2')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":8,"literal":{"kind":"STRING","text":"$.a[0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["json_set"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_strip_nulls('{\"a\":1,\"b\":null,\"c\":null,\"d\":2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"json_strip_nulls","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":33,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":null,\"c\":null,\"d\":2}"}}}],"qualified_name":{"path":["json_strip_nulls"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_strip_nulls('null')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"json_strip_nulls","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["json_strip_nulls"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_structure('null')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["json_structure"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_structure('[null,null]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":13,"literal":{"kind":"STRING","text":"[null,null]"}}}],"qualified_name":{"path":["json_structure"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_structure('[1, {\"a\": 1}]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":15,"literal":{"kind":"STRING","text":"[1, {\"a\": 1}]"}}}],"qualified_name":{"path":["json_structure"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('4.2', '\"DOUBLE\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"literal":{"kind":"STRING","text":"4.2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":10,"literal":{"kind":"STRING","text":"\"DOUBLE\""}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('{\"a\": 42}', '{\"a\":\"ARRAY\"}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\": 42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":\"ARRAY\"}"}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('[{\"a\": 42}, {\"a\": null, \"b\": 33}, {\"b\": 7}]', '[{\"a\": \"UBIGINT\", \"b\": \"UBIGINT\"}]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":99,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":45,"literal":{"kind":"STRING","text":"[{\"a\": 42}, {\"a\": null, \"b\": 33}, {\"b\": 7}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":36,"literal":{"kind":"STRING","text":"[{\"a\": \"UBIGINT\", \"b\": \"UBIGINT\"}]"}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform_strict('{}', '\"{type}\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_transform_strict","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"\"{type}\""}}}],"qualified_name":{"path":["json_transform_strict"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('{}', '\"VARCHAR\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"literal":{"kind":"STRING","text":"\"VARCHAR\""}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('true', '\"DECIMAL(3,1)\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":16,"literal":{"kind":"STRING","text":"\"DECIMAL(3,1)\""}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform_strict('42', '\"UUID\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"json_transform_strict","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":8,"literal":{"kind":"STRING","text":"\"UUID\""}}}],"qualified_name":{"path":["json_transform_strict"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform('null', '\"DATE\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":"\"DATE\""}}}],"qualified_name":{"path":["json_transform"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_transform_strict('42', '\"TIMESTAMP\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"json_transform_strict","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":13,"literal":{"kind":"STRING","text":"\"TIMESTAMP\""}}}],"qualified_name":{"path":["json_transform_strict"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_type(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_type(json, 'double') from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":8,"literal":{"kind":"STRING","text":"double"}}}],"qualified_name":{"path":["json_type"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_type('{\"a\":[2,3.5,true,false,null,\"x\"]}','$.a[2]');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"a\":[2,3.5,true,false,null,\"x\"]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"literal":{"kind":"STRING","text":"$.a[2]"}}}],"qualified_name":{"path":["json_type"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('{\"a\":55,\"b\":72}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":17,"literal":{"kind":"STRING","text":"{\"a\":55,\"b\":72}"}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\) \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\) \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\5 \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\5 \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\A \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\A \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\M \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\M \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\Y \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\Y \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\e \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\e \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\q \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\q \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('\" \\w \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\w \""}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_valid('{\"x\":0.1}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"x\":0.1}"}}}],"qualified_name":{"path":["json_valid"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_value('{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}', '/my_field/my_nested_field/1')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":97,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":54,"literal":{"kind":"STRING","text":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":29,"literal":{"kind":"STRING","text":"/my_field/my_nested_field/1"}}}],"qualified_name":{"path":["json_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_value(j, '$.b[#]') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":8,"literal":{"kind":"STRING","text":"$.b[#]"}}}],"qualified_name":{"path":["json_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_value(x, '$.settings.layer2.\"tris.legomenon\"') FROM t12;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":36,"literal":{"kind":"STRING","text":"$.settings.layer2.\"tris.legomenon\""}}}],"qualified_name":{"path":["json_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":3,"schema_name":"","table_name":"t12","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t12"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsGeoJSON('POINT(-122.4194 37.7749)'::GEOMETRY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"st_asgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":26,"literal":{"kind":"STRING","text":"POINT(-122.4194 37.7749)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["st_asgeojson"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_GeomFromGeoJSON(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"st_geomfromgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["st_geomfromgeojson"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_GeomFromGeoJSON('{\"type\":\"GeometryCollection\",\"geometries\":[' || repeat('{\"type\":\"GeometryCollection\",\"geometries\":[', 100000) || '{\"type\":\"Point\",\"coordinates\":[1,2]}' || repeat(']}', 100000) || ']}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":204,"function_name":"st_geomfromgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":184,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":45,"literal":{"kind":"STRING","text":"{\"type\":\"GeometryCollection\",\"geometries\":["}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":61,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":45,"literal":{"kind":"STRING","text":"{\"type\":\"GeometryCollection\",\"geometries\":["}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":38,"literal":{"kind":"STRING","text":"{\"type\":\"Point\",\"coordinates\":[1,2]}"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":20,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":4,"literal":{"kind":"STRING","text":"]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":4,"literal":{"kind":"STRING","text":"]}"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["st_geomfromgeojson"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select *, parse_filename(filename) from read_json_auto('{DATA_DIR}/json/example_*.ndjson') order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":24,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":40,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_*.ndjson"}}}],"qualified_name":{"path":["read_json_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_json_auto(['{DATA_DIR}/json/with_uuid.json', '{DATA_DIR}/json/example_n.ndjson'], sample_size=1, union_by_name=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":121,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":70,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":32,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/with_uuid.json"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_n.ndjson"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM json_each('{\"a.b\": 1, \"a b\": 2, \"0a\": 3, \"_x\": 4, \"a[0]\": 6, \"a\\\"b\": 7, \"a\\\\b\": 8, \"é\": 9, \"x1\": 10}')\nWHERE json_extract('{\"a.b\": 1, \"a b\": 2, \"0a\": 3, \"_x\": 4, \"a[0]\": 6, \"a\\\"b\": 7, \"a\\\\b\": 8, \"é\": 9, \"x1\": 10}',\n fullkey) IS DISTINCT FROM value","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":103,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_each","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":92,"literal":{"kind":"STRING","text":"{\"a.b\": 1, \"a b\": 2, \"0a\": 3, \"_x\": 4, \"a[0]\": 6, \"a\\\"b\": 7, \"a\\\\b\": 8, \"é\": 9, \"x1\": 10}"}}}],"qualified_name":{"path":["json_each"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":131,"query_location_length":157,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":134,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":92,"literal":{"kind":"STRING","text":"{\"a.b\": 1, \"a b\": 2, \"0a\": 3, \"_x\": 4, \"a[0]\": 6, \"a\\\"b\": 7, \"a\\\\b\": 8, \"é\": 9, \"x1\": 10}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"query_location_length":7,"column_names":["fullkey"]}}],"qualified_name":{"path":["json_extract"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":283,"query_location_length":5,"column_names":["value"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(geometry), name, pop, area\nFROM read_json('data/json/geojson/features.geojson');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":8,"column_names":["geometry"]}}],"qualified_name":{"path":["st_astext"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["pop"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":4,"column_names":["area"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":49,"query_location_length":47,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":36,"literal":{"kind":"STRING","text":"data/json/geojson/features.geojson"}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(geometry), k FROM read_json('{TEST_DIR}/fc_reorder.geojson');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":8,"column_names":["geometry"]}}],"qualified_name":{"path":["st_astext"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/fc_reorder.geojson"}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_json('data/json/geojson/features.geojsonl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":37,"literal":{"kind":"STRING","text":"data/json/geojson/features.geojsonl"}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_name, column_type\nFROM (DESCRIBE SELECT * FROM read_json('data/json/geojson/pseudo_columns.geojsonl'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":43,"literal":{"kind":"STRING","text":"data/json/geojson/pseudo_columns.geojsonl"}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(geometry), id, name FROM feature_ids ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":8,"column_names":["geometry"]}}],"qualified_name":{"path":["st_astext"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":11,"schema_name":"","table_name":"feature_ids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["feature_ids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_json_auto('{DATA_DIR}/json/example_n.ndjson')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_n.ndjson"}}}],"qualified_name":{"path":["read_json_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_json('{DATA_DIR}/json/top_level_array.json', columns={conclusion: 'VARCHAR'}, format='unstructured', records=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":119,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/top_level_array.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"conclusion","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"conclusion","query_location":85,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":14,"literal":{"kind":"STRING","text":"unstructured"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":120,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_json('{TEMP_DIR}/my_file.json', format='array', records='false', auto_detect=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":87,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"literal":{"kind":"STRING","text":"array"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof(t), t from '{TEMP_DIR}/my_file.json'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["typeof"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":25,"schema_name":"","table_name":"{TEMP_DIR}/my_file.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/my_file.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(ts1), ts1, typeof(ts2), ts2, typeof(ts3), ts3, typeof(ts4), ts4\nFROM read_json_auto('{TEMP_DIR}/issue_22103.json')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["ts1"]}}],"qualified_name":{"path":["typeof"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":3,"column_names":["ts1"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":3,"column_names":["ts2"]}}],"qualified_name":{"path":["typeof"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["ts2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["ts3"]}}],"qualified_name":{"path":["typeof"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["ts3"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["ts4"]}}],"qualified_name":{"path":["typeof"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["ts4"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":83,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEMP_DIR}/issue_22103.json"}}}],"qualified_name":{"path":["read_json_auto"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select t from '{TEMP_DIR}/my_file.json'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":25,"schema_name":"","table_name":"{TEMP_DIR}/my_file.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/my_file.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT filename, trim(content, chr(10))\nFROM read_text('{TEMP_DIR}/timestamptz_ns_partition/*/*.json') ORDER BY filename;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":8,"column_names":["filename"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["filename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}}],"qualified_name":{"path":["trim"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":46,"literal":{"kind":"STRING","text":"{TEMP_DIR}/timestamptz_ns_partition/*/*.json"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_ndjson_objects('{DATA_DIR}/json/example_n.ndjson')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_n.ndjson"}}}],"qualified_name":{"path":["read_ndjson_objects"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) from read_ndjson_objects('{DATA_DIR}/json/example_*n.ndjson')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_*n.ndjson"}}}],"qualified_name":{"path":["read_ndjson_objects"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from read_json_objects('{DATA_DIR}/json/top_level_array.json')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/top_level_array.json"}}}],"qualified_name":{"path":["read_json_objects"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('__TEST_DIR__/r.csv', hive_types := {})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":20,"literal":{"kind":"STRING","text":"__TEST_DIR__/r.csv"}}},{"name":"hive_types","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"hive_types","query_location":59,"query_location_length":2,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_ndjson('{DATA_DIR}/json/malformed/union/bad_key.ndjson', columns={data: 'UNION(name VARCHAR, age INT, veteran BOOL)'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":123,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":48,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/malformed/union/bad_key.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":60,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":52,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"data","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"data","query_location":91,"query_location_length":44,"literal":{"kind":"STRING","text":"UNION(name VARCHAR, age INT, veteran BOOL)"}}}],"qualified_name":{"path":["struct_pack"]}}}}],"qualified_name":{"path":["read_ndjson"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_single_json_file(['data/json/example_n.ndjson'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":53,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_json_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":28,"literal":{"kind":"STRING","text":"data/json/example_n.ndjson"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_single_json_file"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM read_json('data/json/unterminated_quotes.ndjson', ignore_errors=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":38,"literal":{"kind":"STRING","text":"data/json/unterminated_quotes.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM read_json('{TEST_DIR}/sample_schema_*.ndjson', maximum_sample_files=1) ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/sample_schema_*.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":20,"column_names":["maximum_sample_files"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_type FROM (DESCRIBE SELECT * FROM read_json('{TEST_DIR}/combine_list_*.ndjson'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":45,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":34,"literal":{"kind":"STRING","text":"{TEST_DIR}/combine_list_*.ndjson"}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json.duck.goose FROM read_json('{TEST_DIR}/nested.json', records=false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["json","duck","goose"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":24,"literal":{"kind":"STRING","text":"{TEST_DIR}/nested.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_json"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::TINYINT::JSON::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::DECIMAL(10, 2)::JSON::DECIMAL(10, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'blob'::BLOB::JSON::BLOB","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"blob"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'POINT(0 1)'::GEOMETRY::JSON::GEOMETRY","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(0 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(v AS JSON[]) FROM (VALUES ('[1,null,{\"a\":2}]')) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["v"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":34,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":18,"literal":{"kind":"STRING","text":"[1,null,{\"a\":2}]"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_IS_NULL\",\"alias\":\"\",\"query_location\":9,\"query_location_length\":7,\"children\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}]}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":819,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":797,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_IS_NULL\",\"alias\":\"\",\"query_location\":9,\"query_location_length\":7,\"children\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}]}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_deserialize_sql"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"JOIN\",\"alias\":\"\",\"sample\":null,\"query_location\":30,\"query_location_length\":35,\"left\":{\"type\":\"SUBQUERY\",\"alias\":\"t1\",\"sample\":null,\"query_location\":14,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":22,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"right\":{\"type\":\"SUBQUERY\",\"alias\":\"t2\",\"sample\":null,\"query_location\":35,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":43,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"condition\":null,\"join_type\":\"INNER\",\"ref_type\":\"REGULAR\",\"using_columns\":[],\"delim_flipped\":false,\"duplicate_eliminated_columns\":[],\"is_implicit\":false,\"ranking_expression\":null,\"nearest_count\":1,\"nearest_order_type\":\"ASCENDING\",\"nearest_approx\":false},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2162,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2140,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"JOIN\",\"alias\":\"\",\"sample\":null,\"query_location\":30,\"query_location_length\":35,\"left\":{\"type\":\"SUBQUERY\",\"alias\":\"t1\",\"sample\":null,\"query_location\":14,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":22,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"right\":{\"type\":\"SUBQUERY\",\"alias\":\"t2\",\"sample\":null,\"query_location\":35,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":43,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"condition\":null,\"join_type\":\"INNER\",\"ref_type\":\"REGULAR\",\"using_columns\":[],\"delim_flipped\":false,\"duplicate_eliminated_columns\":[],\"is_implicit\":false,\"ranking_expression\":null,\"nearest_count\":1,\"nearest_order_type\":\"ASCENDING\",\"nearest_approx\":false},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_deserialize_sql"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"TABLE_FUNCTION\",\"alias\":\"\",\"sample\":null,\"query_location\":14,\"query_location_length\":8,\"function\":{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},\"column_name_alias\":[],\"with_ordinality\":\"WITHOUT_ORDINALITY\"},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":841,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":819,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"TABLE_FUNCTION\",\"alias\":\"\",\"sample\":null,\"query_location\":14,\"query_location_length\":8,\"function\":{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},\"column_name_alias\":[],\"with_ordinality\":\"WITHOUT_ORDINALITY\"},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_deserialize_sql"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql($json$\n{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"value\":{\"type\":{\"id\":\"VARCHAR\",\"type_info\":{\"type\":\"GENERIC_TYPE_INFO\",\"alias\":\"JSON\"}},\"is_null\":false,\"value\":\"[42]\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}\n$json$);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":610,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":581,"literal":{"kind":"STRING","text":"\n{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"value\":{\"type\":{\"id\":\"VARCHAR\",\"type_info\":{\"type\":\"GENERIC_TYPE_INFO\",\"alias\":\"JSON\"}},\"is_null\":false,\"value\":\"[42]\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}\n"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"DECIMAL\",\"type_info\":{\"type\":\"DECIMAL_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"width\":4,\"scale\":2}},\"is_null\":false,\"value\":12345}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":668,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":639,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"DECIMAL\",\"type_info\":{\"type\":\"DECIMAL_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"width\":4,\"scale\":2}},\"is_null\":false,\"value\":12345}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"MAP\",\"type_info\":{\"type\":\"LIST_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"child_type\":{\"id\":\"STRUCT\",\"type_info\":{\"type\":\"STRUCT_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"child_types\":[{\"first\":\"key\",\"second\":{\"id\":\"INTEGER\",\"type_info\":null}},{\"first\":\"value\",\"second\":{\"id\":\"INTEGER\",\"type_info\":null}}]}}}},\"is_null\":false,\"value\":{\"children\":[{\"is_null\":false,\"value\":{\"children\":[{\"is_null\":false,\"value\":1},{\"is_null\":false,\"value\":2}]}}]}}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":985,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":956,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"MAP\",\"type_info\":{\"type\":\"LIST_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"child_type\":{\"id\":\"STRUCT\",\"type_info\":{\"type\":\"STRUCT_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"child_types\":[{\"first\":\"key\",\"second\":{\"id\":\"INTEGER\",\"type_info\":null}},{\"first\":\"value\",\"second\":{\"id\":\"INTEGER\",\"type_info\":null}}]}}}},\"is_null\":false,\"value\":{\"children\":[{\"is_null\":false,\"value\":{\"children\":[{\"is_null\":false,\"value\":1},{\"is_null\":false,\"value\":2}]}}]}}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"LIST\", \"type_info\": {\"type\": \"STRUCT_TYPE_INFO\", \"alias\": \"\", \"child_types\": []}}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":1717,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1688,"literal":{"kind":"STRING","text":"{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"LIST\", \"type_info\": {\"type\": \"STRUCT_TYPE_INFO\", \"alias\": \"\", \"child_types\": []}}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"INTEGER\", \"type_info\": {\"type\": \"GENERIC_TYPE_INFO\", \"alias\": \"myint\"}}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":1707,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1678,"literal":{"kind":"STRING","text":"{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"INTEGER\", \"type_info\": {\"type\": \"GENERIC_TYPE_INFO\", \"alias\": \"myint\"}}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select json_group_object(n, v) from t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"json_group_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["json_group_object"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_serialize_plan('SELECT *, 1 + 2 FROM tbl1', skip_null := true, skip_empty := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":87,"function_name":"json_serialize_plan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":27,"literal":{"kind":"STRING","text":"SELECT *, 1 + 2 FROM tbl1"}}},{"name":"skip_null","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_null","query_location":69,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"skip_empty","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_empty","query_location":89,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["json_serialize_plan"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT json_serialize_sql('SELECT * FROM (SELECT 1 + 2)', skip_default := true, skip_empty := true, skip_null := true, format := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":127,"function_name":"json_serialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":30,"literal":{"kind":"STRING","text":"SELECT * FROM (SELECT 1 + 2)"}}},{"name":"skip_default","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_default","query_location":74,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"skip_empty","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_empty","query_location":94,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"skip_null","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_null","query_location":113,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"format","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"format","query_location":129,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["json_serialize_sql"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM json_execute_serialized_sql(json_serialize_sql('SELECT * FROM tbl2', skip_null := true, skip_empty := true));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":108,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":79,"function_name":"json_serialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":20,"literal":{"kind":"STRING","text":"SELECT * FROM tbl2"}}},{"name":"skip_null","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_null","query_location":96,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"skip_empty","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_empty","query_location":116,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["json_serialize_sql"]}}}],"qualified_name":{"path":["json_execute_serialized_sql"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"TA\"\"BLE\".\"COL\"\"UMN\" FROM \"SCH\"\"EMA\".\"TA\"\"BLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":20,"column_names":["TA\"BLE","COL\"UMN"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":20,"schema_name":"SCH\"EMA","table_name":"TA\"BLE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["SCH\"EMA","TA\"BLE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"SCHEMA\".\"TABLE\".\"COLUMN\".\"SOME\".\"IN\" FROM \"SCHEMA\".\"TABLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":37,"column_names":["SCHEMA","TABLE","COLUMN","SOME","IN"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":16,"schema_name":"SCHEMA","table_name":"TABLE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["SCHEMA","TABLE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(i), MAX(i), COUNT(*) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM 'https://raw.githubusercontent.com/duckdb/duckdb/v2.0-cyanoptera/data/csv/header.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":85,"schema_name":"","table_name":"https://raw.githubusercontent.com/duckdb/duckdb/v2.0-cyanoptera/data/csv/header.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["https://raw.githubusercontent.com/duckdb/duckdb/v2.0-cyanoptera/data/csv/header.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT write_log('hello from the connection log scope', level := 'error', scope := 'connection') from range(0,2999);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":89,"function_name":"write_log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":37,"literal":{"kind":"STRING","text":"hello from the connection log scope"}}},{"name":"level","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"level","query_location":65,"query_location_length":7,"literal":{"kind":"STRING","text":"error"}}},{"name":"scope","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"scope","query_location":83,"query_location_length":12,"literal":{"kind":"STRING","text":"connection"}}}],"qualified_name":{"path":["write_log"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2999"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n transaction_id - getvariable('base_transaction_id') as relative_transaction_id,\n query_id - getvariable('base_query_id') as relative_query_id,\nFROM duckdb_logs\nWHERE\n connection_id=current_connection_id() and\n type='test_logging_autocommit';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"relative_transaction_id","query_location":26,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":14,"column_names":["transaction_id"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":34,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":21,"literal":{"kind":"STRING","text":"base_transaction_id"}}}],"qualified_name":{"path":["getvariable"]}}}],"qualified_name":{"path":["-"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"relative_query_id","query_location":104,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":8,"column_names":["query_id"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":28,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":15,"literal":{"kind":"STRING","text":"base_query_id"}}}],"qualified_name":{"path":["getvariable"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":162,"query_location_length":11,"schema_name":"","table_name":"duckdb_logs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_logs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":13,"column_names":["connection_id"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":198,"query_location_length":23,"function_name":"current_connection_id","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["current_connection_id"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":230,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":4,"column_names":["type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":25,"literal":{"kind":"STRING","text":"test_logging_autocommit"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) FROM \"{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":64,"schema_name":"","table_name":"{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM \"{TEMP_DIR}/logging_truncate_rewrite.csv\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":41,"schema_name":"","table_name":"{TEMP_DIR}/logging_truncate_rewrite.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/logging_truncate_rewrite.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT type, log_level, scope, fs, parse_filename(path), op, sum(bytes), min(pos), max(pos + bytes)\nFROM duckdb_logs_parsed('FileSystem')\nWHERE op = 'WRITE'\nGROUP BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":9,"column_names":["log_level"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":5,"column_names":["scope"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["fs"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":20,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["path"]}}],"qualified_name":{"path":["parse_filename"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["op"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":5,"column_names":["bytes"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["pos"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":16,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":3,"column_names":["pos"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":5,"column_names":["bytes"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":105,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":12,"literal":{"kind":"STRING","text":"FileSystem"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":2,"column_names":["op"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":7,"literal":{"kind":"STRING","text":"WRITE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT write_log('hello', scope := 'thread');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"write_log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"scope","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"scope","query_location":35,"query_location_length":8,"literal":{"kind":"STRING","text":"thread"}}}],"qualified_name":{"path":["write_log"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM target6 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"target6","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["target6"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k, v FROM tc;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"tc","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tc"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet('{TEMP_DIR}/frn_*.parquet', file_row_number=true, filename=true) ORDER BY filename, v","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":8,"column_names":["filename"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":77,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEMP_DIR}/frn_*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv([{'filename': '{TEST_DIR}/open_options.csv'}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":45,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":43,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":37,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options.csv"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/open_options_1.parquet', 'file_size': 631}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":83,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":69,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":67,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":41,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options_1.parquet"}}},{"name":"file_size","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"file_size","query_location":91,"query_location_length":3,"literal":{"kind":"INTEGER","text":"631"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/open_options_1.parquet', 'footer_size': 1::UBIGINT}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":92,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":78,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":76,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":41,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options_1.parquet"}}},{"name":"footer_size","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"footer_size","query_location":94,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, parse_filename(filename) FROM read_csv('{TEMP_DIR}/schema_*.csv', schema=map {\n\t'a': {name: 'id', type: 'BIGINT', default_value: NULL}\n}, filename=true) ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":24,"function_name":"parse_filename","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_filename"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":122,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEMP_DIR}/schema_*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":70,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["schema"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":63,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":49,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":103,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":115,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"default_value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"default_value","query_location":140,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT g, min(x) AS m FROM tn GROUP BY g HAVING m \u003c= 20000) sub;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"sub","sample":null,"query_location":21,"query_location_length":60,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":32,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":2,"schema_name":"","table_name":"tn","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tn"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":70,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["m"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}},"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x \u003e ANY(SELECT y FROM t2 WHERE t2.id = t1.id) FROM t1 WHERE id = 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":45,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":5,"column_names":["t2","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["t1","id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_GREATERTHAN"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM nullable_arrays WHERE a[2] IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":15,"schema_name":"","table_name":"nullable_arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_arrays"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":48,"query_location_length":7,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":44,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(x) FROM tb WHERE b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":2,"schema_name":"","table_name":"tb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb"]}},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["b"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM case_pruning\nWHERE (CASE WHEN x % 2 = 0 THEN x ELSE 0 END) \u003e 5000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"case_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["case_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":40,"query_location_length":46,"left":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":41,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["x"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM const_db.constant_strings WHERE reverse(s) = '0lkjihgfedcba';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":25,"schema_name":"const_db","table_name":"constant_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["const_db","constant_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":10,"function_name":"reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["reverse"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":15,"literal":{"kind":"STRING","text":"0lkjihgfedcba"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(x) FROM t WHERE x \u003c 100 OR s \u003e '00008000' OR y = 3000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":37,"query_location_length":37,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":37,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":48,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":10,"literal":{"kind":"STRING","text":"00008000"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM months WHERE month(d) BETWEEN 6 AND 9;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"months","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["months"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":43,"query_location_length":15,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":8,"function_name":"month","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["month"]}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM cross_month WHERE day(d) = 30;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"cross_month","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cross_month"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":6,"function_name":"day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["day"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM pre_epoch WHERE hour(ts) = 12;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"pre_epoch","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pre_epoch"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":8,"function_name":"hour","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["hour"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM divide_pruning WHERE i / 0.0 = 123;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"divide_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["divide_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":7,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["/"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"INTEGER","text":"123"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM dates WHERE date_trunc('dow', d) \u003c= DATE '2020-06-15'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":33,"query_location_length":41,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":20,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"dow"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["date_trunc"]}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-06-15"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM guard_check WHERE m IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"guard_check","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["guard_check"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":41,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["m"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(\n\tlist_filter(list_transform(l, lambda x: struct_pack(filter := x, result := x)),\n\t lambda s: s.filter::DECIMAL(1,0)::BOOLEAN),\n\tlambda s: s.result\n) FROM (VALUES ([0.1,0.9])) t(l);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":175,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":135,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":66,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":54,"query_location_length":47,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":37,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filter","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"filter","query_location":86,"query_location_length":1,"column_names":["x"]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"result","query_location":99,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":117,"query_location_length":41,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":149,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":135,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":8,"column_names":["s","filter"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":151,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":162,"query_location_length":18,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":8,"column_names":["s","result"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":188,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":197,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":202,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["l"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [x + c FOR x IN l IF x \u003e c] FROM capture_t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_apply","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filter","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["c"]}}},{"name":"result","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["struct_pack"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"filter"}}}],"qualified_name":{"path":["struct_extract"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":18446744073709551615,"query_location_length":0,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"result"}}}],"qualified_name":{"path":["struct_extract"]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_apply"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":9,"schema_name":"","table_name":"capture_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["capture_t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers WHERE (i=1) OR (i=1) ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":29,"query_location_length":14,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (i IS NOT NULL AND i\u003e1) OR (i IS NOT NULL AND i\u003c10) FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":51,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":8,"query_location_length":21,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":10,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":26,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":35,"query_location_length":22,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":37,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":53,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_insert('[1,2,3]', '$[1]', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"[1,2,3]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"$[1]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_insert"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_insert('{\"a\":1}', '$.a', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"literal":{"kind":"STRING","text":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_insert"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_insert('{\"a\":[1]}', '$.a[#]', '2')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_insert","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\":[1]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":8,"literal":{"kind":"STRING","text":"$.a[#]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["json_insert"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select range % 2 g, sum(length(json_keys(j))) c\nfrom t1\ngroup by g\norder by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["range"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":20,"query_location_length":25,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":20,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":12,"function_name":"json_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["json_keys"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT JSON_MERGE_PATCH('[1, 2]', '[true, false]');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":8,"literal":{"kind":"STRING","text":"[1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":15,"literal":{"kind":"STRING","text":"[true, false]"}}}],"qualified_name":{"path":["json_merge_patch"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_merge_patch(NULL, '{\"b\":2}', '{\"c\":3}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"c\":3}"}}}],"qualified_name":{"path":["json_merge_patch"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_merge_patch_diff('{\"a\":{\"x\":1},\"b\":2}', '{\"b\":2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":21,"literal":{"kind":"STRING","text":"{\"a\":{\"x\":1},\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"b\":2}"}}}],"qualified_name":{"path":["json_merge_patch_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_merge_patch_diff('null', 'null')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["json_merge_patch_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_merge_patch_diff('{\"active\":true}', '{\"active\":false}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":17,"literal":{"kind":"STRING","text":"{\"active\":true}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":18,"literal":{"kind":"STRING","text":"{\"active\":false}"}}}],"qualified_name":{"path":["json_merge_patch_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_merge_patch(\n '{\"a\":1,\"b\":{\"x\":1,\"y\":2},\"c\":3,\"d\":{\"e\":5}}',\n json_merge_patch_diff(\n '{\"a\":1,\"b\":{\"x\":1,\"y\":2},\"c\":3,\"d\":{\"e\":5}}',\n '{\"a\":1,\"b\":{\"x\":1,\"z\":3},\"d\":{\"e\":5,\"f\":6},\"g\":7}'\n )\n) = '{\"a\":1,\"b\":{\"x\":1,\"z\":3},\"d\":{\"e\":5,\"f\":6},\"g\":7}'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":272,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":218,"function_name":"json_merge_patch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":45,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":{\"x\":1,\"y\":2},\"c\":3,\"d\":{\"e\":5}}"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":143,"function_name":"json_merge_patch_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":45,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":{\"x\":1,\"y\":2},\"c\":3,\"d\":{\"e\":5}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":51,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":{\"x\":1,\"z\":3},\"d\":{\"e\":5,\"f\":6},\"g\":7}"}}}],"qualified_name":{"path":["json_merge_patch_diff"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_merge_patch"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":51,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":{\"x\":1,\"z\":3},\"d\":{\"e\":5,\"f\":6},\"g\":7}"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_normalize('\"hello\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"literal":{"kind":"STRING","text":"\"hello\""}}}],"qualified_name":{"path":["json_normalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_normalize('{\"b\":{},\"a\":[]}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":17,"literal":{"kind":"STRING","text":"{\"b\":{},\"a\":[]}"}}}],"qualified_name":{"path":["json_normalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_normalize('{\"b\":null,\"a\":1}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":18,"literal":{"kind":"STRING","text":"{\"b\":null,\"a\":1}"}}}],"qualified_name":{"path":["json_normalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_extract(j, '$.my_field.my_nested_field[#-2]') from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":33,"literal":{"kind":"STRING","text":"$.my_field.my_nested_field[#-2]"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_extract('{\"a\": {\"b\": \"c\"}}', '$[#');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":19,"literal":{"kind":"STRING","text":"{\"a\": {\"b\": \"c\"}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"literal":{"kind":"STRING","text":"$[#"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_extract('[{\"duck\":42},{\"duck\":43}]', '$.*')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":27,"literal":{"kind":"STRING","text":"[{\"duck\":42},{\"duck\":43}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"$.*"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_extract('{\"a\":{\"b\":1,\"c\":2},\"d\":[\"g\",\"h\",[{\"b\":5},{\"x\":42}]]}', '$..[0]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":78,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":54,"literal":{"kind":"STRING","text":"{\"a\":{\"b\":1,\"c\":2},\"d\":[\"g\",\"h\",[{\"b\":5},{\"x\":42}]]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":8,"literal":{"kind":"STRING","text":"$..[0]"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_pretty(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"json_pretty","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["json_pretty"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_remove('{\"a\":[1,[2,3],4]}', '/a/1/0')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":19,"literal":{"kind":"STRING","text":"{\"a\":[1,[2,3],4]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"literal":{"kind":"STRING","text":"/a/1/0"}}}],"qualified_name":{"path":["json_remove"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_normalize(json_remove('{\"z\":1,\"a\":2}', '$.z'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":35,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"z\":1,\"a\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"literal":{"kind":"STRING","text":"$.z"}}}],"qualified_name":{"path":["json_remove"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_normalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_remove('{\"a\":1}', '$not_a_path')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"json_remove","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":13,"literal":{"kind":"STRING","text":"$not_a_path"}}}],"qualified_name":{"path":["json_remove"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_replace('{\"a\":1}', '/a', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"json_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"STRING","text":"/a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_replace('{\"a\":1,\"b\":2,\"c\":3}', '$.b', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":21,"literal":{"kind":"STRING","text":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"STRING","text":"$.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_replace('[1,2]', '$[#-1]', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"json_replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"literal":{"kind":"STRING","text":"$[#-1]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_replace"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_set('{\"a\":{\"x\":1}}', '$.a.x', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"$.a.x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_set('{\"a\":{\"b\":{\"c\":1}}}', '$.a.b.c', '99')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":21,"literal":{"kind":"STRING","text":"{\"a\":{\"b\":{\"c\":1}}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":9,"literal":{"kind":"STRING","text":"$.a.b.c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"STRING","text":"99"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_normalize(json_set('{\"z\":1}', '$.a', '2'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"json_normalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":31,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"z\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"STRING","text":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_normalize"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_set('[1,2]', '$[2]', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"literal":{"kind":"STRING","text":"$[2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY(json_set('{}', '$not_a_path', '1'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":39,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":34,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":13,"literal":{"kind":"STRING","text":"$not_a_path"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_set('{\"a\":[[1]]}', '$.a[0][0]', '9')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"json_set","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"{\"a\":[[1]]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":11,"literal":{"kind":"STRING","text":"$.a[0][0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}}],"qualified_name":{"path":["json_set"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_strip_nulls('{\"a\":{\"x\":1,\"y\":null},\"b\":2}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_strip_nulls","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":30,"literal":{"kind":"STRING","text":"{\"a\":{\"x\":1,\"y\":null},\"b\":2}"}}}],"qualified_name":{"path":["json_strip_nulls"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_strip_nulls('[]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"json_strip_nulls","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}}}],"qualified_name":{"path":["json_strip_nulls"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_structure('{\"a\": 42}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\": 42}"}}}],"qualified_name":{"path":["json_structure"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_structure('[true,null,false,1,-1]')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":24,"literal":{"kind":"STRING","text":"[true,null,false,1,-1]"}}}],"qualified_name":{"path":["json_structure"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_structure(j) from test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["json_structure"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_structure('[{\"a\":[1],\"b\":{\"q\":2}},{\"a\":true,\"b\":3,\"c\":null}]');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"json_structure","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":51,"literal":{"kind":"STRING","text":"[{\"a\":[1],\"b\":{\"q\":2}},{\"a\":true,\"b\":3,\"c\":null}]"}}}],"qualified_name":{"path":["json_structure"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('42', '\"UBIGINT\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"literal":{"kind":"STRING","text":"\"UBIGINT\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('{\"a\": 42}', '{\"a\":\"NULL\"}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":11,"literal":{"kind":"STRING","text":"{\"a\": 42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":14,"literal":{"kind":"STRING","text":"{\"a\":\"NULL\"}"}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT from_json_strict(j, '{\"a\":\"INTEGER\"}')\nFROM (VALUES ('[]'::JSON), ('{\"a\":1}'::JSON)) values_(j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"from_json_strict","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":17,"literal":{"kind":"STRING","text":"{\"a\":\"INTEGER\"}"}}}],"qualified_name":{"path":["from_json_strict"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"values_","sample":null,"query_location":51,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"a\":1}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform_strict('[]', '\"{type}\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_transform_strict","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"literal":{"kind":"STRING","text":"\"{type}\""}}}],"qualified_name":{"path":["json_transform_strict"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('-42', '\"VARCHAR\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"literal":{"kind":"STRING","text":"-42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":11,"literal":{"kind":"STRING","text":"\"VARCHAR\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('42.42', '\"DECIMAL(10,2)\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"literal":{"kind":"STRING","text":"42.42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":17,"literal":{"kind":"STRING","text":"\"DECIMAL(10,2)\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('42', '\"DECIMAL(2,4)\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":16,"literal":{"kind":"STRING","text":"\"DECIMAL(2,4)\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('42', '\"DATE\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"literal":{"kind":"STRING","text":"\"DATE\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('\"1996-03-27 11:59:59\"', '\"TIMESTAMP_NS\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":23,"literal":{"kind":"STRING","text":"\"1996-03-27 11:59:59\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":16,"literal":{"kind":"STRING","text":"\"TIMESTAMP_NS\""}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_type('\"other\"')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":9,"literal":{"kind":"STRING","text":"\"other\""}}}],"qualified_name":{"path":["json_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_type('{\"null\": Infinity}', 'null')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"null\": Infinity}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}}],"qualified_name":{"path":["json_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_type('{\"a\":[2,3.5,true,false,null,\"x\"]}','$');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":35,"literal":{"kind":"STRING","text":"{\"a\":[2,3.5,true,false,null,\"x\"]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}}}],"qualified_name":{"path":["json_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_valid('{\"bla\": inf}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":14,"literal":{"kind":"STRING","text":"{\"bla\": inf}"}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\% \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\% \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\1 \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\1 \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\= \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\= \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\I \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\I \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\U \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\U \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\a \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\a \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\m \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"\" \\m \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('\" \\uabcd \"');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":12,"literal":{"kind":"STRING","text":"\" \\uabcd \""}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_valid('{\"x\":01}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"json_valid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":10,"literal":{"kind":"STRING","text":"{\"x\":01}"}}}],"qualified_name":{"path":["json_valid"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_value('{\"foo\": null}', '$.foo')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":15,"literal":{"kind":"STRING","text":"{\"foo\": null}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"$.foo"}}}],"qualified_name":{"path":["json_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with tbl as (\n select '{\"a\":2,\"c\":[4,5],\"f\":7}' j, ['$.c','$.a'] p\n)\nSELECT json_value(j, p);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":25,"query_location_length":25,"literal":{"kind":"STRING","text":"{\"a\":2,\"c\":[4,5],\"f\":7}"}},{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":54,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"STRING","text":"$.c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":5,"literal":{"kind":"STRING","text":"$.a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":16,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["json_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_value(j, '$.b[#-1x]') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"json_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":11,"literal":{"kind":"STRING","text":"$.b[#-1x]"}}}],"qualified_name":{"path":["json_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ST_AsGeoJSON('LINESTRING M(1 2 3, 4 5 6)'::GEOMETRY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"st_asgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":28,"literal":{"kind":"STRING","text":"LINESTRING M(1 2 3, 4 5 6)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["st_asgeojson"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ST_AsText(ST_GeomFromGeoJSON('{\"type\":\"Polygon\",\"coordinates\":[[[1.0,2.0,3.0],[4.0,5.0,6.0],[7.0,8.0,9.0],[1.0,2.0,3.0]]]}'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":125,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":114,"function_name":"st_geomfromgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":94,"literal":{"kind":"STRING","text":"{\"type\":\"Polygon\",\"coordinates\":[[[1.0,2.0,3.0],[4.0,5.0,6.0],[7.0,8.0,9.0],[1.0,2.0,3.0]]]}"}}}],"qualified_name":{"path":["st_geomfromgeojson"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["st_astext"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ST_GeomFromGeoJSON('{\"type\":\"Polygon\",\"coordinates\":[[1,2],[3,4]]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"st_geomfromgeojson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":48,"literal":{"kind":"STRING","text":"{\"type\":\"Polygon\",\"coordinates\":[[1,2],[3,4]]}"}}}],"qualified_name":{"path":["st_geomfromgeojson"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_json_auto('{DATA_DIR}/json/malformed/empty_array_trailing.json', format='array')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/malformed/empty_array_trailing.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":7,"literal":{"kind":"STRING","text":"array"}}}}],"qualified_name":{"path":["read_json_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT j, count(*)\nFROM read_json_auto('{TEMP_DIR}/json_part/j=*/*.csv', HIVE_PARTITIONING=1)\nwhere sqrt(j[2]::int) \u003e 1.5\ngroup by j\norder by j;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEMP_DIR}/json_part/j=*/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_json_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":100,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":15,"function_name":"sqrt","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":106,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["j"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["sqrt"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["j"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT key, fullkey FROM json_each('{\"a\\\"b\": 1}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":7,"column_names":["fullkey"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_each","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":13,"literal":{"kind":"STRING","text":"{\"a\\\"b\": 1}"}}}],"qualified_name":{"path":["json_each"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT probe, span = (SELECT span FROM probe_spans WHERE probe = 'probe_unnest')\nFROM probe_spans WHERE probe IN ('probe_json_each', 'probe_json_tree') ORDER BY probe;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":5,"column_names":["probe"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["probe"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":14,"query_location_length":66,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":4,"column_names":["span"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"query_location_length":59,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["span"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":11,"schema_name":"","table_name":"probe_spans","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe_spans"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":5,"column_names":["probe"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":14,"literal":{"kind":"STRING","text":"probe_unnest"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":11,"schema_name":"","table_name":"probe_spans","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe_spans"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":113,"query_location_length":38,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["probe"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":17,"literal":{"kind":"STRING","text":"probe_json_each"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":17,"literal":{"kind":"STRING","text":"probe_json_tree"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g FROM read_json('{TEST_DIR}/shallow.geojsonl');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":29,"literal":{"kind":"STRING","text":"{TEST_DIR}/shallow.geojsonl"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM read_json('{TEST_DIR}/fc_copy.json');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEST_DIR}/fc_copy.json"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, column_type\nFROM (DESCRIBE SELECT * FROM read_json('data/json/geojson/geometries.geojsonl', geojson=false));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":39,"literal":{"kind":"STRING","text":"data/json/geojson/geometries.geojsonl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":112,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, column_type\nFROM (DESCRIBE SELECT * FROM read_json('{TEST_DIR}/lowercase.geojsonl'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":67,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/lowercase.geojsonl"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, column_type\nFROM (DESCRIBE SELECT * FROM read_json('data/json/geojson/property_id.geojsonl'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":76,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":40,"literal":{"kind":"STRING","text":"data/json/geojson/property_id.geojsonl"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM read_json('{DATA_DIR}/json/example_n.ndjson', columns={id: 'INTEGER', name: 'VARCHAR'}, format='newline_delimited')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":15,"query_location_length":115,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_n.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":32,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":74,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":91,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":19,"literal":{"kind":"STRING","text":"newline_delimited"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_json('{DATA_DIR}/json/top_level_array.json', columns={conclusion: 'VARCHAR'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":38,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/top_level_array.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"conclusion","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"conclusion","query_location":85,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_json('{TEMP_DIR}/my_file.json', format='auto', records='false', auto_detect=false)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":87,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":6,"literal":{"kind":"STRING","text":"auto"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_json('{TEST_DIR}/case_keys.json', columns := {UserId: 'INTEGER', URL: 'VARCHAR'}, format := 'newline_delimited', case_insensitive_keys := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":148,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":27,"literal":{"kind":"STRING","text":"{TEST_DIR}/case_keys.json"}}},{"name":"columns","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"columns","query_location":64,"query_location_length":35,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"UserId","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"UserId","query_location":73,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"URL","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"URL","query_location":89,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"format","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"format","query_location":111,"query_location_length":19,"literal":{"kind":"STRING","text":"newline_delimited"}}},{"name":"case_insensitive_keys","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"case_insensitive_keys","query_location":157,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_json('{TEST_DIR}/case_keys_array.json', case_insensitive_keys := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":75,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/case_keys_array.json"}}},{"name":"case_insensitive_keys","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"case_insensitive_keys","query_location":84,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof(d), d from read_ndjson('{TEMP_DIR}/my_file.json', columns={d: 'DATE'}, dateformat='%d-%Y-%m')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":76,"query_location_length":6,"literal":{"kind":"STRING","text":"DATE"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":10,"literal":{"kind":"STRING","text":"%d-%Y-%m"}}}}],"qualified_name":{"path":["read_ndjson"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof(ts), ts from read_json_auto('{TEMP_DIR}/iso8601_offset_spellings.json') order by ts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":2,"column_names":["ts"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":58,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_auto","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":42,"literal":{"kind":"STRING","text":"{TEMP_DIR}/iso8601_offset_spellings.json"}}}],"qualified_name":{"path":["read_json_auto"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('2026-04-01T06:03:00+00:01', '%Y-%m-%dT%H:%M:%S');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":27,"literal":{"kind":"STRING","text":"2026-04-01T06:03:00+00:01"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":19,"literal":{"kind":"STRING","text":"%Y-%m-%dT%H:%M:%S"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT filename, trim(content, chr(10))\nFROM read_text('{TEMP_DIR}/nested_dateformat_partition/*/*.json') ORDER BY filename;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":8,"column_names":["filename"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["filename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"trim","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["content"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["trim"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":49,"literal":{"kind":"STRING","text":"{TEMP_DIR}/nested_dateformat_partition/*/*.json"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d FROM read_json('{TEMP_DIR}/decimal_values.json', columns = {d: 'DECIMAL(38,18)'}, records = false) ORDER BY d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":93,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEMP_DIR}/decimal_values.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":72,"query_location_length":16,"literal":{"kind":"STRING","text":"DECIMAL(38,18)"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b, i, u, h, f, s FROM read_json('{TEMP_DIR}/siblings.json', columns = {b: 'BOOLEAN', i: 'BIGINT', u: 'UBIGINT', h: 'HUGEINT', f: 'FLOAT', s: 'INTEGER'}) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["u"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["h"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["f"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":130,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEMP_DIR}/siblings.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":91,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":81,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":81,"query_location_length":9,"literal":{"kind":"STRING","text":"BOOLEAN"}}},{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":95,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"u","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"u","query_location":108,"query_location_length":9,"literal":{"kind":"STRING","text":"UBIGINT"}}},{"name":"h","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"h","query_location":122,"query_location_length":9,"literal":{"kind":"STRING","text":"HUGEINT"}}},{"name":"f","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"f","query_location":136,"query_location_length":7,"literal":{"kind":"STRING","text":"FLOAT"}}},{"name":"s","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"s","query_location":148,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), max(d) FROM read_json(['{TEMP_DIR}/siblings.json', '{TEMP_DIR}/decimals.json'], columns = {d: 'DECIMAL(38,18)'}, maximum_sample_files = 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":126,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":56,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEMP_DIR}/siblings.json"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":26,"literal":{"kind":"STRING","text":"{TEMP_DIR}/decimals.json"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":111,"query_location_length":16,"literal":{"kind":"STRING","text":"DECIMAL(38,18)"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":20,"column_names":["maximum_sample_files"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_json_objects('{DATA_DIR}/json/unterminated_quotes.ndjson')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":63,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/unterminated_quotes.ndjson"}}}],"qualified_name":{"path":["read_json_objects"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) from read_ndjson_objects(['{DATA_DIR}/json/example_n.ndjson', '{DATA_DIR}/json/example_rn.ndjson'])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":94,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":73,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":34,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_n.ndjson"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":35,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/example_rn.ndjson"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_ndjson_objects"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from read_json_objects('{DATA_DIR}/parquet-testing/blob.parquet')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json_objects","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":41,"literal":{"kind":"STRING","text":"{DATA_DIR}/parquet-testing/blob.parquet"}}}],"qualified_name":{"path":["read_json_objects"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(a), min(a), max(a) FROM read_json('{TEST_DIR}/parallel_buffers_records.ndjson', format='newline_delimited', columns={a: 'INTEGER'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":107,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":44,"literal":{"kind":"STRING","text":"{TEST_DIR}/parallel_buffers_records.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":19,"literal":{"kind":"STRING","text":"newline_delimited"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":141,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM read_json('{DATA_DIR}/json/malformed_last_line.ndjson', format='newline_delimited', columns={a: 'INTEGER'}, maximum_object_size=64, ignore_errors=true) ORDER BY a NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":151,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":44,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/malformed_last_line.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":19,"literal":{"kind":"STRING","text":"newline_delimited"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":110,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":19,"column_names":["maximum_object_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('__TEST_DIR__/r.parquet', hive_types := {})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":24,"literal":{"kind":"STRING","text":"__TEST_DIR__/r.parquet"}}},{"name":"hive_types","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"hive_types","query_location":67,"query_location_length":2,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_ndjson('{DATA_DIR}/json/malformed/union/empty_object.ndjson', columns={data: 'UNION(name VARCHAR, age INT, veteran BOOL)'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":128,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":53,"literal":{"kind":"STRING","text":"{DATA_DIR}/json/malformed/union/empty_object.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":60,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":52,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"data","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"data","query_location":96,"query_location_length":44,"literal":{"kind":"STRING","text":"UNION(name VARCHAR, age INT, veteran BOOL)"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_ndjson"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name FROM read_single_json_file('data/json/example_n.ndjson') WHERE id \u003e 3 ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":51,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_single_json_file","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":28,"literal":{"kind":"STRING","text":"data/json/example_n.ndjson"}}}],"qualified_name":{"path":["read_single_json_file"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":75,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_json('data/json/example_n.ndjson', unknown_option=true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":60,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":28,"literal":{"kind":"STRING","text":"data/json/example_n.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":14,"column_names":["unknown_option"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM read_json('{TEST_DIR}/sample_schema_*.ndjson', maximum_sample_files=2) ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":70,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/sample_schema_*.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":20,"column_names":["maximum_sample_files"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_type FROM (DESCRIBE SELECT * FROM read_json('{TEST_DIR}/combine_map_*.ndjson'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":69,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/combine_map_*.ndjson"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT duck.nested_duck.goose FROM '{TEST_DIR}/nested.json'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":22,"column_names":["duck","nested_duck","goose"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":24,"schema_name":"","table_name":"{TEST_DIR}/nested.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/nested.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deserialize_sql(json_serialize_sql('SELECT sum(a) OVER w, sum(a) OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) FROM t WINDOW w AS (PARTITION BY b)'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":167,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":145,"function_name":"json_serialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":125,"literal":{"kind":"STRING","text":"SELECT sum(a) OVER w, sum(a) OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) FROM t WINDOW w AS (PARTITION BY b)"}}}],"qualified_name":{"path":["json_serialize_sql"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date '2024-01-01'::DATE::JSON::DATE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-(1::HUGEINT \u003c\u003c 100))::DECIMAL(38, 0)::JSON::DECIMAL(38, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":16,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":20,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":17,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["\u003c\u003c"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2024-06-01 00:00:00+00'::TIMESTAMPTZ::JSON::TIMESTAMPTZ","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":13,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::UNION(a INTEGER, b VARCHAR)::JSON::UNION(a INTEGER, b VARCHAR)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":29,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"cte_map\":{\"map\":[]},\"select_list\":[' || repeat('{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_NOT\",\"children\":[', 100000) || '{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}' || repeat(']}', 100000) || '],\"from_table\":{\"type\":\"EMPTY\"},\"aggregate_handling\":\"STANDARD_HANDLING\"}}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":391,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":369,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":97,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"cte_map\":{\"map\":[]},\"select_list\":["}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":72,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":56,"literal":{"kind":"STRING","text":"{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_NOT\",\"children\":["}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":86,"literal":{"kind":"STRING","text":"{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":295,"query_location_length":20,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":302,"query_location_length":4,"literal":{"kind":"STRING","text":"]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":308,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":319,"query_location_length":78,"literal":{"kind":"STRING","text":"],\"from_table\":{\"type\":\"EMPTY\"},\"aggregate_handling\":\"STANDARD_HANDLING\"}}]}"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_IS_NULL\",\"alias\":\"\",\"query_location\":9,\"query_location_length\":7,\"children\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}]}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":826,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":797,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"OPERATOR\",\"type\":\"OPERATOR_IS_NULL\",\"alias\":\"\",\"query_location\":9,\"query_location_length\":7,\"children\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}]}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"JOIN\",\"alias\":\"\",\"sample\":null,\"query_location\":30,\"query_location_length\":35,\"left\":{\"type\":\"SUBQUERY\",\"alias\":\"t1\",\"sample\":null,\"query_location\":14,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":22,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"right\":{\"type\":\"SUBQUERY\",\"alias\":\"t2\",\"sample\":null,\"query_location\":35,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":43,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"condition\":null,\"join_type\":\"INNER\",\"ref_type\":\"REGULAR\",\"using_columns\":[],\"delim_flipped\":false,\"duplicate_eliminated_columns\":[],\"is_implicit\":false,\"ranking_expression\":null,\"nearest_count\":1,\"nearest_order_type\":\"ASCENDING\",\"nearest_approx\":false},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":2169,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2140,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"JOIN\",\"alias\":\"\",\"sample\":null,\"query_location\":30,\"query_location_length\":35,\"left\":{\"type\":\"SUBQUERY\",\"alias\":\"t1\",\"sample\":null,\"query_location\":14,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":22,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"right\":{\"type\":\"SUBQUERY\",\"alias\":\"t2\",\"sample\":null,\"query_location\":35,\"query_location_length\":12,\"subquery\":{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"a\",\"query_location\":43,\"query_location_length\":1,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":18446744073709551615,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]},\"column_name_alias\":[]},\"condition\":null,\"join_type\":\"INNER\",\"ref_type\":\"REGULAR\",\"using_columns\":[],\"delim_flipped\":false,\"duplicate_eliminated_columns\":[],\"is_implicit\":false,\"ranking_expression\":null,\"nearest_count\":1,\"nearest_order_type\":\"ASCENDING\",\"nearest_approx\":false},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"TABLE_FUNCTION\",\"alias\":\"\",\"sample\":null,\"query_location\":14,\"query_location_length\":8,\"function\":{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},\"column_name_alias\":[],\"with_ordinality\":\"WITHOUT_ORDINALITY\"},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":848,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":819,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"STAR\",\"type\":\"STAR\",\"alias\":\"\",\"query_location\":7,\"query_location_length\":1,\"relation_name\":\"\",\"exclude_list\":[],\"replace_list\":[],\"columns\":false,\"expr\":null,\"qualified_exclude_list\":[],\"rename_list\":[]}],\"from_table\":{\"type\":\"TABLE_FUNCTION\",\"alias\":\"\",\"sample\":null,\"query_location\":14,\"query_location_length\":8,\"function\":{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}},\"column_name_alias\":[],\"with_ordinality\":\"WITHOUT_ORDINALITY\"},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"ENUM\",\"type_info\":{\"type\":\"ENUM_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"values_count\":2,\"values\":[\"a\",\"b\"]}},\"is_null\":false,\"value\":200}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":669,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":647,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"ENUM\",\"type_info\":{\"type\":\"ENUM_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"values_count\":2,\"values\":[\"a\",\"b\"]}},\"is_null\":false,\"value\":200}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"ENUM\",\"type_info\":{\"type\":\"ENUM_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"values_count\":2,\"values\":[\"a\",\"b\"]}},\"is_null\":false,\"value\":1}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":674,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":645,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"query_location\":0,\"query_location_length\":0,\"value\":{\"type\":{\"id\":\"ENUM\",\"type_info\":{\"type\":\"ENUM_TYPE_INFO\",\"alias\":\"\",\"extension_info\":null,\"values_count\":2,\"values\":[\"a\",\"b\"]}},\"is_null\":false,\"value\":1}}],\"from_table\":{\"type\":\"EMPTY\",\"alias\":\"\",\"sample\":null,\"query_location\":0,\"query_location_length\":0},\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deserialize_sql('{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":398,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":376,"literal":{"kind":"STRING","text":"{\"error\":false,\"statements\":[{\"node\":{\"type\":\"SELECT_NODE\",\"modifiers\":[],\"cte_map\":{\"map\":[]},\"select_list\":[{\"class\":\"CONSTANT\",\"type\":\"VALUE_CONSTANT\",\"alias\":\"\",\"literal\":{\"kind\":\"INTEGER\",\"text\":\"1\"}}],\"where_clause\":null,\"group_expressions\":[],\"group_sets\":[],\"aggregate_handling\":\"STANDARD_HANDLING\",\"having\":null,\"sample\":null,\"qualify\":null},\"named_param_map\":[]}]}"}}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select json_transform('{}', '{}')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"json_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"STRING","text":"{}"}}}],"qualified_name":{"path":["json_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM json_execute_serialized_sql('{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"LIST\"}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":1642,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"json_execute_serialized_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1613,"literal":{"kind":"STRING","text":"{\"error\": false, \"statements\": [{\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 7, \"query_location_length\": 1, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"SUBQUERY\", \"alias\": \"t\", \"sample\": null, \"query_location\": 14, \"query_location_length\": 12, \"subquery\": {\"node\": {\"type\": \"SELECT_NODE\", \"modifiers\": [], \"cte_map\": {\"map\": []}, \"select_list\": [{\"class\": \"STAR\", \"type\": \"STAR\", \"alias\": \"\", \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"relation_name\": \"\", \"exclude_list\": [], \"replace_list\": [], \"columns\": false, \"expr\": null, \"qualified_exclude_list\": [], \"rename_list\": []}], \"from_table\": {\"type\": \"EXPRESSION_LIST\", \"alias\": \"valueslist\", \"sample\": null, \"query_location\": 18446744073709551615, \"query_location_length\": 0, \"expected_names\": [], \"expected_types\": [{\"id\": \"LIST\"}], \"values\": [[{\"class\": \"CONSTANT\", \"type\": \"VALUE_CONSTANT\", \"alias\": \"\", \"query_location\": 23, \"query_location_length\": 1, \"literal\": {\"kind\": \"INTEGER\", \"text\": \"1\"}}]]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}, \"column_name_alias\": [\"a\"]}, \"where_clause\": null, \"group_expressions\": [], \"group_sets\": [], \"aggregate_handling\": \"STANDARD_HANDLING\", \"having\": null, \"sample\": null, \"qualify\": null}, \"named_param_map\": []}]}"}}}],"qualified_name":{"path":["json_execute_serialized_sql"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_object('g', 'LINESTRING(0 0, 1 1)'::GEOMETRY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"json_object","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":22,"literal":{"kind":"STRING","text":"LINESTRING(0 0, 1 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["json_object"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_extract('[1,2]', '$[#-1234567890123456789')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"literal":{"kind":"STRING","text":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":25,"literal":{"kind":"STRING","text":"$[#-1234567890123456789"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_extract(\n\tjson_serialize_plan(\n\t\t'SELECT 1::TINYINT, 2::UTINYINT, 3::SMALLINT, 4::USMALLINT, '\n\t\t'170141183460469231731687303715884105727::HUGEINT, '\n\t\t'340282366920938463463374607431768211455::UHUGEINT, '\n\t\t'1.25::FLOAT, 2.5::DOUBLE, ''NaN''::DOUBLE',\n\t\toptimize := true\n\t),\n\t'$.plans[0].expressions[*].value.type.id'\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":325,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":264,"function_name":"json_serialize_plan","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":218,"literal":{"kind":"STRING","text":"SELECT 1::TINYINT, 2::UTINYINT, 3::SMALLINT, 4::USMALLINT, 170141183460469231731687303715884105727::HUGEINT, 340282366920938463463374607431768211455::UHUGEINT, 1.25::FLOAT, 2.5::DOUBLE, 'NaN'::DOUBLE"}}},{"name":"optimize","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"optimize","query_location":279,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["json_serialize_plan"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":289,"query_location_length":41,"literal":{"kind":"STRING","text":"$.plans[0].expressions[*].value.type.id"}}}],"qualified_name":{"path":["json_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT json_deserialize_sql(json_serialize_sql('SELECT 1 + 2 FROM tbl1'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":66,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":44,"function_name":"json_serialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":24,"literal":{"kind":"STRING","text":"SELECT 1 + 2 FROM tbl1"}}}],"qualified_name":{"path":["json_serialize_sql"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM json_deserialize_filter_pushdown\nWHERE json_exists(j, '$.statements[0]')\n AND json_deserialize_sql(j) IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":32,"schema_name":"","table_name":"json_deserialize_filter_pushdown","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["json_deserialize_filter_pushdown"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":60,"query_location_length":75,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":33,"function_name":"json_exists","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":17,"literal":{"kind":"STRING","text":"$.statements[0]"}}}],"qualified_name":{"path":["json_exists"]},"is_legacy_function_call":false},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":124,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":23,"function_name":"json_deserialize_sql","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["json_deserialize_sql"]},"is_legacy_function_call":false}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"SCH\"\"EMA\".\"TA\"\"BLE\".\"COL\"\"UMN\" FROM \"SCH\"\"EMA\".\"TA\"\"BLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":31,"column_names":["SCH\"EMA","TA\"BLE","COL\"UMN"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":20,"schema_name":"SCH\"EMA","table_name":"TA\"BLE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["SCH\"EMA","TA\"BLE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ((\"SCHEMA\".\"TABLE\".\"COLUMN\").\"SOME\").\"IN\" FROM \"SCHEMA\".\"TABLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":41,"children":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":8,"query_location_length":34,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":25,"column_names":["SCHEMA","TABLE","COLUMN"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"SOME"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"STRING","text":"IN"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":16,"schema_name":"SCHEMA","table_name":"TABLE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["SCHEMA","TABLE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers LIMIT 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\trequest.type, \n\trequest.duration_ms \u003e= 0,\n\trequest.duration_ms \u003c= 1000 * 1000,\n\trequest.duration_us // 1000 = request.duration_ms,\n\trequest.request_body_length\nFROM \n\tduckdb_logs_parsed('HTTP')\nWHERE \n\trequest.type='HEAD'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":12,"column_names":["request","type"]},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":25,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":19,"column_names":["request","duration_ms"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":52,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":19,"column_names":["request","duration_ms"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":49,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":27,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":19,"column_names":["request","duration_us"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":19,"column_names":["request","duration_ms"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":27,"column_names":["request","request_body_length"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":176,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":6,"literal":{"kind":"STRING","text":"HTTP"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":211,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":12,"column_names":["request","type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":6,"literal":{"kind":"STRING","text":"HEAD"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM duckdb_logs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":11,"schema_name":"","table_name":"duckdb_logs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_logs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_logs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"duckdb_logs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_logs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT write_log('hey2', log_type := 'test_logging_autocommit')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"write_log","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"hey2"}}},{"name":"log_type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"log_type","query_location":37,"query_location_length":25,"literal":{"kind":"STRING","text":"test_logging_autocommit"}}}],"qualified_name":{"path":["write_log"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"DESCRIBE FROM '{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":64,"schema_name":"","table_name":"{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/logging_csv_logs_normalized/duckdb_log_contexts.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT message FROM duckdb_logs_parsed('QueryLog') WHERE starts_with(message, 'SELECT 1');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["message"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":10,"literal":{"kind":"STRING","text":"QueryLog"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":32,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["message"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":10,"literal":{"kind":"STRING","text":"SELECT 1"}}}],"qualified_name":{"path":["starts_with"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_logs();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_logs"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM enable_logging('a', storage_path := '{TEST_DIR}/enable_logging_unknown_2.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":78,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"enable_logging","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"storage_path","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"storage_path","query_location":50,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/enable_logging_unknown_2.csv"}}}],"qualified_name":{"path":["enable_logging"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM Items","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":5,"schema_name":"","table_name":"Items","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Items"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM Totals ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":6,"schema_name":"","table_name":"Totals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Totals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM live_orders;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"live_orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["live_orders"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet([{\n\t'filename': '{TEST_DIR}/open_options_1.parquet',\n\t'validate_external_file_cache': false,\n\t'etag': 'my_etag'}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":127,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":113,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":111,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":43,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options_1.parquet"}}},{"name":"validate_external_file_cache","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"validate_external_file_cache","query_location":113,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"name":"etag","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"etag","query_location":129,"query_location_length":9,"literal":{"kind":"STRING","text":"my_etag"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/open_options_1.parquet', 'etag': 42}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":77,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":63,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":61,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":41,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options_1.parquet"}}},{"name":"etag","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"etag","query_location":86,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet([{'filename': '{TEST_DIR}/open_options_1.parquet', 'has_deletes': 'notabool'}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":92,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":78,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":76,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":41,"query_location_length":35,"literal":{"kind":"STRING","text":"{TEST_DIR}/open_options_1.parquet"}}},{"name":"has_deletes","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"has_deletes","query_location":93,"query_location_length":10,"literal":{"kind":"STRING","text":"notabool"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["read_parquet"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(id) FROM read_csv('{TEMP_DIR}/schema_*.csv', schema=map {\n\t'a': {name: 'id', type: 'BIGINT', default_value: NULL}\n})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":107,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":25,"literal":{"kind":"STRING","text":"{TEMP_DIR}/schema_*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":70,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["schema"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":63,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":49,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":82,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":94,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}},{"name":"default_value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"default_value","query_location":119,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT g, min(x) AS m FROM t GROUP BY g HAVING m \u003e 20000) sub;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"sub","sample":null,"query_location":21,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":32,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":69,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["m"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}},"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x \u003e ANY(SELECT y FROM t2 WHERE t2.id = t1.id) FROM t1 WHERE id = 99;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":45,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":5,"column_names":["t2","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["t1","id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_GREATERTHAN"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM arrays WHERE a[1] BETWEEN 2900 AND 3100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":39,"query_location_length":21,"input":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":35,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2900"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(x) FROM tb WHERE b = TRUE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":2,"schema_name":"","table_name":"tb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM booleans WHERE (nextval('s') \u003e 0) IS TRUE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"booleans","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["booleans"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":55,"query_location_length":7,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":12,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM const_db.constant_inputs WHERE x%100=42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":24,"schema_name":"const_db","table_name":"constant_inputs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["const_db","constant_inputs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM with_nulls WHERE contains(s, 'ckd');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"with_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["with_nulls"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":18,"function_name":"contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"STRING","text":"ckd"}}}],"qualified_name":{"path":["contains"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM expression_t WHERE greatest(a, 0) \u003e 5000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"expression_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expression_t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":40,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":14,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["greatest"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM month_ts WHERE month(ts) = 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"month_ts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["month_ts"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":9,"function_name":"month","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["month"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM seconds_ts WHERE millisecond(ts) = 25000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"seconds_ts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["seconds_ts"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":23,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":15,"function_name":"millisecond","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["millisecond"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":5,"literal":{"kind":"INTEGER","text":"25000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.id, p.name FROM person p\nJOIN (SELECT DISTINCT id, tag FROM keys) s ON s.id = p.id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["s","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":6,"column_names":["p","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":57,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"right":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":39,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["tag"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":4,"schema_name":"","table_name":"keys","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["keys"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["s","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":4,"column_names":["p","id"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM divide_float WHERE d / 2.0 \u003e 1e308;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"divide_float","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["divide_float"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":40,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":7,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM covered;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"covered","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["covered"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t_upd WHERE x = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"t_upd","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_upd"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n\tSELECT list_transform(\n\t\tlist_filter(list_transform([i + 2], lambda x: struct_pack(filter := true, result := x)), lambda s: s.filter),\n\t\tlambda s: s.result::BOOLEAN::BIGINT\n\t) AS l FROM range(6145) t(i)\n) t WHERE l = [1];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":207,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":31,"query_location_length":168,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":108,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":75,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":85,"query_location_length":50,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":40,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"filter","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filter","query_location":117,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"result","query_location":133,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":138,"query_location_length":18,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":8,"column_names":["s","filter"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":161,"query_location_length":35,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":188,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":179,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":8,"column_names":["s","result"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":181,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":190,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":210,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6145"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":237,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":237,"query_location_length":1,"column_names":["l"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":241,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":242,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s FROM (SELECT n::VARCHAR FROM range(10) t(n)) t(s) WHERE s \u003e '1' AND s \u003c= '8' ORDER BY s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":38,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":65,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":65,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":77,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"literal":{"kind":"STRING","text":"8"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n name,\n MAX(SUM(n)) OVER (PARTITION BY name) AS w1,\n SUM(n) / MAX(SUM(n)) OVER (PARTITION BY name) AS w2\nFROM (VALUES ('a',1),('a',2),('b',3)) t(name, n)\nGROUP BY name\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":4,"column_names":["name"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w1","query_location":17,"query_location_length":36,"function_name":"max","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":4,"column_names":["name"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"w2","query_location":72,"query_location_length":45,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":81,"query_location_length":36,"function_name":"max","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":4,"column_names":["name"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":129,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["name","n"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":4,"column_names":["name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (i=1 AND i\u003e0) OR (i=1 AND i\u003c3) FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":30,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":8,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":8,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":16,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":25,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":33,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test WHERE ((a*2)+(a*2)+(a*2)+(a*2)+(a*2))\u003e400","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":25,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":3,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"INTEGER","text":"400"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT\n\tsym NOT IN (\n\t\t'0',\n\t\t'1',\n\t\t'2',\n\t\t'3',\n\t\t'4',\n\t\t'5',\n\t\t'6',\n\t\t'7',\n\t\t'8',\n\t\t'9'\n\t),\n\tNOT (sym IN (\n\t\t'0',\n\t\t'1',\n\t\t'2',\n\t\t'3',\n\t\t'4',\n\t\t'5',\n\t\t'6',\n\t\t'7',\n\t\t'8',\n\t\t'9'\n\t))\nFROM (VALUES ('0'::sym_enum), ('1'::sym_enum)) tbl(sym)\nORDER BY sym","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":247,"query_location_length":3,"column_names":["sym"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":8,"query_location_length":84,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":19,"query_location_length":73,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":3,"column_names":["sym"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"8"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}]}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":95,"query_location_length":86,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":107,"query_location_length":73,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":3,"column_names":["sym"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":3,"literal":{"kind":"STRING","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":3,"literal":{"kind":"STRING","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":3,"literal":{"kind":"STRING","text":"7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":3,"literal":{"kind":"STRING","text":"8"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}]}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":187,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":199,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":201,"query_location_length":8,"catalog":"","schema":"","type_name":"sym_enum","children":[],"qualified_name":{"path":["sym_enum"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":216,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":218,"query_location_length":8,"catalog":"","schema":"","type_name":"sym_enum","children":[],"qualified_name":{"path":["sym_enum"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["sym"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT i FROM test WHERE (i IS NULL AND j IS NULL) OR (i=j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":25,"query_location_length":34,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":26,"query_location_length":23,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":28,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":42,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["j"]}]}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["j"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT i::DOUBLE = 1, i::DOUBLE \u003c 1.5, i::DOUBLE IS DISTINCT FROM NULL, i::DOUBLE IS NOT DISTINCT FROM 1\nFROM integers\nORDER BY i NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":13,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":22,"query_location_length":15,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":39,"query_location_length":31,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":72,"query_location_length":32,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -v FROM vals WHERE id\u003e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":4,"schema_name":"","table_name":"vals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":26,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a - 0 FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 0 / rowid FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["/"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -v FROM vals WHERE id\u003e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":4,"schema_name":"","table_name":"vals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":26,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a - 0 FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 0 / rowid FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"select timestamp_str, cast(timestamp_str as timestamp)\nfrom table1\nwhere cast(timestamp_str as timestamp) \u003e cast('2024-05-03T01:00:00+00:00' as timestamp);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["timestamp_str"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":13,"column_names":["timestamp_str"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":6,"schema_name":"","table_name":"table1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":73,"query_location_length":81,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":13,"column_names":["timestamp_str"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":27,"literal":{"kind":"STRING","text":"2024-05-03T01:00:00+00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(payload) FROM nullable_strings WHERE s NOT IN ('a', 'z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":16,"schema_name":"","table_name":"nullable_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":48,"query_location_length":19,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x FROM pushdown_extract_multi WHERE s.a + s.b = 12","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":22,"schema_name":"","table_name":"pushdown_extract_multi","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pushdown_extract_multi"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["s","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["s","b"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM left_pruning WHERE left(s, 4) = '0010';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"left_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":10,"function_name":"left","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["left"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":6,"literal":{"kind":"STRING","text":"0010"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM lists WHERE list_position(l, 3000) IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":56,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":22,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}],"qualified_name":{"path":["list_position"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t WHERE floor(x::DOUBLE) \u003e 495000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":16,"function_name":"floor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["floor"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":6,"literal":{"kind":"INTEGER","text":"495000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM e WHERE year(dt) \u003e= 2020;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"e","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["e"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":29,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["year"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2020"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM edge WHERE epoch(t) \u003e -9223372036854775807;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"edge","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["edge"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":32,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":8,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["epoch"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775807"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM tinyints WHERE +x \u003e 127::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":2,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["+"]}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(a ORDER BY a) FROM t WHERE TRY_CAST(a AS TINYINT) IN (51, 127, 128);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":65,"query_location_length":14,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"51"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"literal":{"kind":"INTEGER","text":"128"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT st::VARIANT IS NOT NULL, st::VARIANT IS NULL FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":19,"query_location_length":11,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["st"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":44,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["st"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t WHERE x = 5 OR NULL::BOOLEAN;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":29,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x FROM dense_or WHERE x = 2 OR -1 = x OR x = 1 OR x = 0 ORDER BY x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"dense_or","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dense_or"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":29,"query_location_length":33,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH a AS MATERIALIZED (SELECT x FROM dense_or WHERE x BETWEEN 0 AND 3)\nSELECT x FROM a WHERE x = 1 UNION ALL SELECT x FROM a WHERE x = 2 ORDER BY x","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"a","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"dense_or","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dense_or"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":55,"query_location_length":15,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":94,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":124,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers i1 JOIN integers i2 ON i1.i=i2.i WHERE i1.i\u003e1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":26,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":31,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["i2","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":62,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers i1 WHERE NOT EXISTS(SELECT i FROM integers WHERE i=i1.i) ORDER BY i1.i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":4,"column_names":["i1","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":32,"query_location_length":47,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":43,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, k FROM (SELECT DISTINCT i, k FROM vals1, vals2) tbl1 WHERE i=k AND i\u003c5 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":17,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["k"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":77,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT * FROM vals1, vals2 UNION SELECT * FROM vals1, vals2) tbl1 WHERE i=3 AND k=5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":14,"query_location_length":61,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":55,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":57,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":87,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM (SELECT * FROM vals1, vals2) tbl1, (SELECT * FROM vals1, vals2) tbl2 WHERE tbl1.i=5000 AND tbl1.i=tbl2.i AND tbl1.i=tbl2.k AND tbl1.i=tbl1.k AND tbl2.i\u003c\u003e5001;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":73,"left":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":21,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":56,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":64,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":66,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":96,"query_location_length":82,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":112,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":6,"column_names":["tbl2","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":6,"column_names":["tbl2","k"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":148,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":6,"column_names":["tbl1","k"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":166,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":6,"column_names":["tbl2","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5001"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (TRUE OR a1.a=a2.b) FROM test a1, test a2 WHERE a1.a=11 AND a2.a\u003e=10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":8,"query_location_length":17,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":16,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":4,"column_names":["a1","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["a2","b"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"a1","sample":null,"query_location":32,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":41,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["a1","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":67,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["a2","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t WHERE (a=1 AND b=5) OR (a=1 AND c\u003e2) OR (a=1 AND b=2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":22,"query_location_length":47,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":23,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":40,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":48,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM prefix_truncated WHERE NOT starts_with(s, 'ppppppppppppp');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"prefix_truncated","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prefix_truncated"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":44,"query_location_length":35,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":31,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":15,"literal":{"kind":"STRING","text":"ppppppppppppp"}}}],"qualified_name":{"path":["starts_with"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, s.b FROM flat WHERE s.a AND i \u003c j ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":4,"schema_name":"","table_name":"flat","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["flat"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":13,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["s","a"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":38,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["j"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT count(*) FROM neg WHERE (-x) \u003e 0),\n (SELECT sum(CASE WHEN (-x) \u003e 0 THEN 1 ELSE 0 END) FROM neg),\n (SELECT count(*) FROM neg WHERE (-x) \u003e= 0),\n (SELECT sum(CASE WHEN (-x) \u003e= 0 THEN 1 ELSE 0 END) FROM neg)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":41,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":39,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":59,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":41,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":69,"query_location_length":36,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":79,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":125,"query_location_length":42,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":157,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":158,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":176,"query_location_length":60,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":184,"query_location_length":42,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":188,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":198,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":199,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":232,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM small_secure_view WHERE nextval('seq') \u003e= 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"small_secure_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["small_secure_view"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":45,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM visible_modulo WHERE s::INT = 55","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"visible_modulo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["visible_modulo"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":11,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"55"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT stats(id)::VARCHAR FROM public_employees LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["stats"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":16,"schema_name":"","table_name":"public_employees","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["public_employees"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT stats(i)::VARCHAR FROM secure_view_over_secure_view LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["stats"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":28,"schema_name":"","table_name":"secure_view_over_secure_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["secure_view_over_secure_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(payload) FROM s WHERE v \u003e= 'b';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":33,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(payload) FROM long_strings WHERE v \u003c repeat('b', 13);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":12,"schema_name":"","table_name":"long_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":44,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["repeat"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(payload) FROM long_strings WHERE v \u003c repeat('c', 12);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":12,"schema_name":"","table_name":"long_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":44,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["repeat"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM substring_pruning WHERE substr(s, 2, 4) = '4950';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"substring_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":24,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":15,"function_name":"substr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["substr"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":6,"literal":{"kind":"STRING","text":"4950"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM substring_pruning WHERE substr(s, 0, 3) \u003e 'p3';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"substring_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":15,"function_name":"substr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["substr"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"STRING","text":"p3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT sum(x) AS s FROM t HAVING sum(x) \u003e 100000000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":29,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":9,"literal":{"kind":"INTEGER","text":"100000000"}}},"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM probe_num p\nJOIN build_num b\n ON p.k = b.k\n AND p.g \u003e= b.g","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":47,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"probe_num","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe_num"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":38,"query_location_length":11,"schema_name":"","table_name":"build_num","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["build_num"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":3,"column_names":["b","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":70,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["b","g"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM phj_probe_narrow_cast p\nJOIN phj_build_narrow_cast b\n ON TRY_CAST(p.k AS INTEGER) = b.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":21,"query_location_length":23,"schema_name":"","table_name":"phj_probe_narrow_cast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["phj_probe_narrow_cast"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":50,"query_location_length":23,"schema_name":"","table_name":"phj_build_narrow_cast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["phj_build_narrow_cast"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":79,"query_location_length":30,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":3,"column_names":["p","k"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM date_table WHERE CAST(col AS TIMESTAMP) = '2022-06-15 00:00:00'::TIMESTAMP;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"date_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["date_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":57,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["col"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":21,"literal":{"kind":"STRING","text":"2022-06-15 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n col1,\n col2,\n col3\n from t1\n join t2\n on t1.col1 = t2.col3\n group by grouping sets (col1, col2, col3), (col1, col2), (col1) order by 1, 2 ,3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["col2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":4,"column_names":["col3"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":58,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["t1","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["t2","col3"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":4,"column_names":["col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":4,"column_names":["col2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":4,"column_names":["col3"]}],"group_sets":[[0,1],[0,1],[0,1,2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t where i in ('1','2','y');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":27,"query_location_length":13,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"y"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM rowid_prune WHERE rowid = 245759;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"rowid_prune","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_prune"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"literal":{"kind":"INTEGER","text":"245759"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM lineitem WHERE l_orderkey % 20000 == 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":23,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":18,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":10,"column_names":["l_orderkey"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT grp, sum(seq) OVER (PARTITION BY grp ORDER BY seq\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)\nFROM (VALUES (1,1),(1,2),(1,3),(2,1),(2,2)) t(grp,seq)\nORDER BY 1,2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["grp"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":12,"query_location_length":96,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["grp"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["seq"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["seq"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":114,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["grp","seq"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM ts_us WHERE ts \u003e '2000-01-01 02:50:00'::TIMESTAMP_NS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"ts_us","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ts_us"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":33,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":21,"literal":{"kind":"STRING","text":"2000-01-01 02:50:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT key, v, note FROM (\n SELECT key, ts, TRY_CAST(val AS INTEGER) AS v, note FROM try_cast_t)\nQUALIFY row_number() OVER (PARTITION BY key ORDER BY ts DESC) = 1\nORDER BY key","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":3,"column_names":["key"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["note"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":25,"query_location_length":72,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":2,"column_names":["ts"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":45,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["val"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":4,"column_names":["note"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":10,"schema_name":"","table_name":"try_cast_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["try_cast_t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":57,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":106,"query_location_length":53,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":3,"column_names":["key"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":2,"column_names":["ts"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} -{"sql":"SELECT id, p\nFROM topn_unique_rowids\nQUALIFY ROW_NUMBER() OVER (ORDER BY s DESC NULLS LAST) \u003c= 1\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["p"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":18,"schema_name":"","table_name":"topn_unique_rowids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["topn_unique_rowids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":45,"query_location_length":51,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":45,"query_location_length":46,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["s"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} -{"sql":"SELECT t2.bar::INTEGER FROM foo","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["t2","bar"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":3,"schema_name":"","table_name":"foo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, (v.b::JSON)::VARCHAR, json_type(v.b::JSON),\n (v.i::JSON)::VARCHAR, json_type(v.i::JSON),\n (v.d::JSON)::VARCHAR, json_type(v.d::JSON)\nFROM '{TEST_DIR}/variant_json_primitives.parquet' ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":215,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["v","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":20,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["v","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_type"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["v","i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":20,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":3,"column_names":["v","i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_type"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":3,"column_names":["v","d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":20,"function_name":"json_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":3,"column_names":["v","d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["json_type"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":161,"query_location_length":44,"schema_name":"","table_name":"{TEST_DIR}/variant_json_primitives.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/variant_json_primitives.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test order by a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM generate_series(0, 10000, 1) tbl(i) ORDER BY i DESC LIMIT (SELECT k FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":72,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c, k, i FROM tiny_fixed ORDER BY k, c, i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":10,"schema_name":"","table_name":"tiny_fixed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tiny_fixed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM test LIMIT SUM(42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["sum"]}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers as int LIMIT (SELECT -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"int","sample":null,"query_location":14,"query_location_length":15,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH cte AS (SELECT 3) SELECT * FROM range(10000000) LIMIT (SELECT * FROM cte)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":59,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":67,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":30,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":8,"literal":{"kind":"INTEGER","text":"10000000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM test LIMIT 20 %","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM test LIMIT 50% OFFSET 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from test limit \"Hello World\" %;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":13,"column_names":["Hello World"]},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j, row_number() OVER (PARTITION BY i ORDER BY j NULLS FIRST) FROM test ORDER BY i NULLS FIRST, j NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":13,"query_location_length":57,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["j"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, b FROM test ORDER BY b, a DESC LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["b"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a-10 AS k FROM test UNION SELECT a-10 AS l FROM test ORDER BY 1-k;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["-"]}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":8,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":41,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT a % 2, b FROM test UNION SELECT a % 2 AS k FROM test ORDER BY -1","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":39,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT ON (false) a, b FROM t ORDER BY a, b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH\n cte1 AS (\n SELECT\n struct_pack(f := json_extract('[]', '$[*]')) AS s0, struct_pack(ff := c) AS s1, t1.a AS p\n FROM t3\n JOIN t1 USING (c)\n ),\n cte2 AS (\n SELECT\n cte1.s1, cte1.s0, struct_pack(fff := cte1.p) AS s2\n FROM cte1\n JOIN t2 AS t22 ON cte1.p = t22.a\n LEFT JOIN t2 ON t22.b = t2.a\n ),\n cte3 AS (\n SELECT cte2.*\n FROM cte2\n ORDER BY s1, s2\n )\nSELECT *\nFROM cte3\nLIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":489,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s0","query_location":46,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"f","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"f","query_location":63,"query_location_length":26,"function_name":"json_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"STRING","text":"[]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":6,"literal":{"kind":"STRING","text":"$[*]"}}}],"qualified_name":{"path":["json_extract"]}}}],"qualified_name":{"path":["struct_pack"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"s1","query_location":98,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"ff","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"ff","query_location":116,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["struct_pack"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"p","query_location":126,"query_location_length":4,"column_names":["t1","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":160,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":149,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":165,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["c"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":226,"query_location_length":7,"column_names":["cte1","s1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":235,"query_location_length":7,"column_names":["cte1","s0"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s2","query_location":244,"query_location_length":26,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"fff","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"fff","query_location":263,"query_location_length":6,"column_names":["cte1","p"]}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":344,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":303,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":290,"query_location_length":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"right":{"type":"BASE_TABLE","alias":"t22","sample":null,"query_location":308,"query_location_length":9,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":321,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":321,"query_location_length":6,"column_names":["cte1","p"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":330,"query_location_length":5,"column_names":["t22","a"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":354,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":360,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":360,"query_location_length":5,"column_names":["t22","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":368,"query_location_length":4,"column_names":["t2","a"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"cte3","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":451,"query_location_length":2,"column_names":["s1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":455,"query_location_length":2,"column_names":["s2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":409,"query_location_length":6,"relation_name":"cte2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":429,"query_location_length":4,"schema_name":"","table_name":"cte2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":471,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":478,"query_location_length":4,"schema_name":"","table_name":"cte3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM repeat('x', 9) WITH ORDINALITY WHERE ordinality \u003e 4 ORDER BY ordinality;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":10,"column_names":["ordinality"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["repeat"]}},"column_name_alias":[],"with_ordinality":"WITH_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":51,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":10,"column_names":["ordinality"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE ordinalityCTE AS (\n SELECT 1 AS ordinality\n UNION\n SELECT oCTE.ordinality + r.ordinality AS ordinality\n FROM\n ordinalityCTE AS oCTE,\n LATERAL range(oCTE.ordinality) WITH ORDINALITY AS r(range,ordinality)\n WHERE oCTE.ordinality \u003c 5\n) SELECT ordinality FROM ordinalityCTE ORDER BY ordinality;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":323,"query_location_length":10,"column_names":["ordinality"]}}]}],"cte_map":{"map":[{"key":"ordinalityCTE","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"ordinalityCTE","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ordinality","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ordinality","query_location":98,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":15,"column_names":["oCTE","ordinality"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":12,"column_names":["r","ordinality"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":131,"query_location_length":113,"left":{"type":"BASE_TABLE","alias":"oCTE","sample":null,"query_location":144,"query_location_length":21,"schema_name":"","table_name":"ordinalityCTE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordinalityCTE"]}},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":175,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":15,"column_names":["oCTE","ordinality"]}}],"qualified_name":{"path":["range"]}},"column_name_alias":["range","ordinality"],"with_ordinality":"WITH_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":255,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":255,"query_location_length":15,"column_names":["oCTE","ordinality"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":284,"query_location_length":10,"column_names":["ordinality"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":300,"query_location_length":13,"schema_name":"","table_name":"ordinalityCTE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordinalityCTE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1073741823::BIGINT * 10737418240::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"INTEGER","text":"1073741823"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"literal":{"kind":"INTEGER","text":"10737418240"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2::BIGINT * (-9223372036854775807)::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT 1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":1351,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":1342,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"query_location_length":1333,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":31,"query_location_length":1324,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":39,"query_location_length":1315,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":47,"query_location_length":1306,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":55,"query_location_length":1297,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":63,"query_location_length":1288,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":71,"query_location_length":1279,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":79,"query_location_length":1270,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":87,"query_location_length":1261,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":95,"query_location_length":1252,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":103,"query_location_length":1243,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":111,"query_location_length":1234,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":119,"query_location_length":1225,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":127,"query_location_length":1216,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":135,"query_location_length":1207,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":143,"query_location_length":1198,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":151,"query_location_length":1189,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":159,"query_location_length":1180,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":167,"query_location_length":1171,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":175,"query_location_length":1162,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":183,"query_location_length":1153,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":191,"query_location_length":1144,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":199,"query_location_length":1135,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":207,"query_location_length":1126,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":215,"query_location_length":1117,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":223,"query_location_length":1108,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":231,"query_location_length":1099,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":239,"query_location_length":1090,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":247,"query_location_length":1081,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":255,"query_location_length":1072,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":263,"query_location_length":1063,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":271,"query_location_length":1054,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":279,"query_location_length":1045,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":287,"query_location_length":1036,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":295,"query_location_length":1027,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":303,"query_location_length":1018,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":311,"query_location_length":1009,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":319,"query_location_length":1000,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":327,"query_location_length":991,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":335,"query_location_length":982,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":343,"query_location_length":973,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":351,"query_location_length":964,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":359,"query_location_length":955,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":367,"query_location_length":946,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":375,"query_location_length":937,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":383,"query_location_length":928,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":391,"query_location_length":919,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":399,"query_location_length":910,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":407,"query_location_length":901,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":415,"query_location_length":892,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":423,"query_location_length":883,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":431,"query_location_length":874,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":439,"query_location_length":865,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":447,"query_location_length":856,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":455,"query_location_length":847,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":463,"query_location_length":838,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":471,"query_location_length":829,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":479,"query_location_length":820,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":487,"query_location_length":811,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":495,"query_location_length":802,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":503,"query_location_length":793,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":511,"query_location_length":784,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":519,"query_location_length":775,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":527,"query_location_length":766,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":535,"query_location_length":757,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":543,"query_location_length":748,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":551,"query_location_length":739,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":559,"query_location_length":730,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":567,"query_location_length":721,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":575,"query_location_length":712,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":583,"query_location_length":703,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":591,"query_location_length":694,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":599,"query_location_length":685,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":607,"query_location_length":676,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":615,"query_location_length":667,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":623,"query_location_length":658,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":631,"query_location_length":649,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":639,"query_location_length":640,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":647,"query_location_length":631,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":655,"query_location_length":622,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":663,"query_location_length":613,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":671,"query_location_length":604,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":679,"query_location_length":595,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":687,"query_location_length":586,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":695,"query_location_length":577,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":703,"query_location_length":568,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":711,"query_location_length":559,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":719,"query_location_length":550,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":727,"query_location_length":541,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":735,"query_location_length":532,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":743,"query_location_length":523,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":751,"query_location_length":514,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":759,"query_location_length":505,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":767,"query_location_length":496,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":775,"query_location_length":487,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":783,"query_location_length":478,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":791,"query_location_length":469,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":799,"query_location_length":460,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":807,"query_location_length":451,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":815,"query_location_length":442,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":823,"query_location_length":433,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":831,"query_location_length":424,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":839,"query_location_length":415,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":847,"query_location_length":406,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":855,"query_location_length":397,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":863,"query_location_length":388,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":871,"query_location_length":379,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":879,"query_location_length":370,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":887,"query_location_length":361,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":895,"query_location_length":352,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":903,"query_location_length":343,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":911,"query_location_length":334,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":919,"query_location_length":325,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":927,"query_location_length":316,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":935,"query_location_length":307,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":943,"query_location_length":298,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":951,"query_location_length":289,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":959,"query_location_length":280,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":967,"query_location_length":271,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":975,"query_location_length":262,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":983,"query_location_length":253,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":991,"query_location_length":244,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":999,"query_location_length":235,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1007,"query_location_length":226,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1015,"query_location_length":217,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1023,"query_location_length":208,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1031,"query_location_length":199,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1039,"query_location_length":190,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1047,"query_location_length":181,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1055,"query_location_length":172,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1063,"query_location_length":163,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1071,"query_location_length":154,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1079,"query_location_length":145,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1087,"query_location_length":136,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1095,"query_location_length":127,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1103,"query_location_length":118,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1111,"query_location_length":109,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1119,"query_location_length":100,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1127,"query_location_length":91,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1135,"query_location_length":82,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1143,"query_location_length":73,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1151,"query_location_length":64,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1159,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1167,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1175,"query_location_length":37,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1183,"query_location_length":28,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1191,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1199,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1207,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2::INTEGER + -2147483647::INTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":20,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483647"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2::SMALLINT - 32767::SMALLINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["-"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"literal":{"kind":"INTEGER","text":"32767"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2::TINYINT * 64::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["-"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4611686018427387900::BIGINT * 2::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4611686018427387900"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (i*10::TINYINT)*10::TINYINT FROM tinyints ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":13,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::TINYINT+120::TINYINT FROM smallints WHERE i=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"INTEGER","text":"120"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1e308+1e308","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(100 AS TINYINT) + cast(100 AS TINYINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), SUM(i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select min({'i': a, 'j': a % 2}), max({'i': a, 'j': a % 2}) from t group by b%2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":17,"query_location_length":1,"column_names":["a"]}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":25,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":25,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":44,"query_location_length":1,"column_names":["a"]}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":52,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT i, rowid - min(rowid) OVER () AS pos FROM t2) WHERE i \u003c\u003e pos","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"pos","query_location":38,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":5,"column_names":["rowid"]}},{"name":"","expression":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":40,"query_location_length":18,"function_name":"min","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["min"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":81,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":3,"column_names":["pos"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT B'1010'\n'0101';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"BIT","text":"10100101"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM `my table`;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"my table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["my table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT `b col` || `b col` FROM `my table`;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["b col"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":7,"column_names":["b col"]}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":10,"schema_name":"","table_name":"my table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["my table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a nulls, b rows, a range FROM t ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"nulls","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"rows","query_location":16,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"range","query_location":24,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'a%' LIKE 'a\\%' ESCAPE '\\';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":21,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"a%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"STRING","text":"a\\%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}}],"qualified_name":{"path":["like_escape"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(COLUMNS('([a-z])\\d+')) AS \"\\a\" FROM numerics","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"\\a","query_location":7,"query_location_length":26,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":11,"query_location_length":21,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":12,"literal":{"kind":"STRING","text":"([a-z])\\d+"}},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":8,"schema_name":"","table_name":"numerics","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numerics"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT @5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["@"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1000__000__000'::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"literal":{"kind":"STRING","text":"1000__000__000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1_2.12'::FLOAT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"1_2.12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '_1_000_000_000_000_000_000_000'::DOUBLE == 1e+21","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":32,"literal":{"kind":"STRING","text":"_1_000_000_000_000_000_000_000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e+21"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0b0_1_0_1'::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"STRING","text":"0b0_1_0_1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1_2e1_0::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"1_2e1_0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '' = $$$$;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":9,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"STRING","text":""}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"STRING","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_external_resources()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resources"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t ORDER BY a OFFSET 1 ROW FETCH NEXT ROW ONLY","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT main.lower() FROM varchars AS t(main)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"lower","schema":"main","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["main","lower"]}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":25,"query_location_length":19,"schema_name":"","table_name":"varchars","column_name_alias":["main"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["varchars"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime(ci.purchasedate.nullif('1899-12-30T00:00:00'), '%Y-%m-%d')\nFROM (VALUES (TIMESTAMP '2026-01-01')) AS ci(\"PurchaseDate\")","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":45,"function_name":"nullif","schema":"purchasedate","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"ci","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":21,"literal":{"kind":"STRING","text":"1899-12-30T00:00:00"}}}],"qualified_name":{"path":["ci","purchasedate","nullif"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":10,"literal":{"kind":"STRING","text":"%Y-%m-%d"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"SUBQUERY","alias":"ci","sample":null,"query_location":80,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["PurchaseDate"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 10 NOTNULL::VARCHAR, 10 ISNULL::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":10,"query_location_length":7,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":31,"query_location_length":6,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from (\n (values (1), (2)) as t1 (a)\n cross join\n (values (3), (4)) as t2 (b)\n) as t(x, y, z)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":5,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":40,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":9,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":52,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y","z"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'a' COLLATE NOCASE = 'A'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":24,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"collation":"NOCASE"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT true = NOT NOT true","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":19,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"right":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":14,"query_location_length":12,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (NULL::INTEGER).ifnull(5);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":7,"query_location_length":25,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1,2]).unpack();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":7,"query_location_length":16,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"coalesce\"(NULL, 5), s.coalesce(NULL, 5);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"coalesce","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["coalesce"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":19,"function_name":"coalesce","schema":"s","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["s","coalesce"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT m(), m(a := 5);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["m"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":9,"function_name":"m","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["m"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM VALUES (1), (2), (3) v(x) TABLESAMPLE 1 ROWS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"query_location":21,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers GROUP BY COLUMNS(*)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(payload) FROM nullable_strings WHERE s NOT IN ('a', 'z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":16,"schema_name":"","table_name":"nullable_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_strings"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":48,"query_location_length":19,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM dec_small t1 JOIN dec_small t2 ON t1.n \u003e= t2.n AND t1.n + 1 \u003e= t2.n AND t1.n * 2 \u003e= t2.n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":75,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"dec_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dec_small"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":39,"query_location_length":12,"schema_name":"","table_name":"dec_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dec_small"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":54,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":55,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["t1","n"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["t2","n"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":72,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["t1","n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":4,"column_names":["t2","n"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":93,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":8,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":4,"column_names":["t1","n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":4,"column_names":["t2","n"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM ints t1 LEFT JOIN ints t2 ON t1.n \u003e= t2.n AND (t1.n::BIGINT \u003e= t2.n OR t2.n \u003c -100);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":75,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":39,"query_location_length":7,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":50,"query_location_length":54,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":50,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["t1","n"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["t2","n"]}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":68,"query_location_length":35,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":68,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["t1","n"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":4,"column_names":["t2","n"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":92,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["t2","n"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-100"}}}]}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM lhs JOIN rhs ON lhs.n \u003e= rhs.n AND lhs.n + 1 \u003e= rhs.n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":49,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"lhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lhs"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":3,"schema_name":"","table_name":"rhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rhs"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":37,"query_location_length":37,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":37,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["lhs","n"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["rhs","n"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":56,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["lhs","n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["rhs","n"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n SELECT id, grp, ts, payload1, payload2, payload3, payload4, payload5\n FROM lm_test\n WHERE grp = 1\n AND ts \u003e= TIMESTAMP '2024-01-01'\n AND ts \u003c TIMESTAMP '2024-07-01'\n ORDER BY ts\n LIMIT 20\n) sub","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"sub","sample":null,"query_location":21,"query_location_length":217,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":2,"column_names":["ts"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":8,"column_names":["payload1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":8,"column_names":["payload2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":8,"column_names":["payload3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":8,"column_names":["payload4"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":8,"column_names":["payload5"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":7,"schema_name":"","table_name":"lm_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lm_test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":123,"query_location_length":84,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":3,"column_names":["grp"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":141,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":147,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":147,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":180,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":185,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-07-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":185,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM left_pruning WHERE left(s, 20) \u003e '005000';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"left_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":40,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"left","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["left"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":8,"literal":{"kind":"STRING","text":"005000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM long_blob_lists WHERE list_contains(l, ('3000' || repeat('x', 20))::BLOB);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":15,"schema_name":"","table_name":"long_blob_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_blob_lists"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":51,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":25,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":6,"literal":{"kind":"STRING","text":"3000"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["list_contains"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT coalesce(list_position(list_transform(l, lambda x: CASE WHEN nextval('lambda_seq') \u003e 0 THEN 1 ELSE 2 END), 3), 99)\nFROM big_lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":7,"query_location_length":114,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":100,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":82,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":63,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":58,"query_location_length":53,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":68,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":21,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":12,"literal":{"kind":"STRING","text":"lambda_seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_position"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":127,"query_location_length":9,"schema_name":"","table_name":"big_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min, s.max FROM (SELECT STATS(i % 100) s FROM integers LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":25,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":14,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i % j FROM integers ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min, s.max FROM (SELECT STATS(h % 1000::UHUGEINT) s FROM unsigned LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":25,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":25,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":18,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["h"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":8,"schema_name":"","table_name":"unsigned","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unsigned"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min, s.max FROM (SELECT STATS(x % 2.0) s FROM doubles LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":25,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":14,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM last_day_db.t WHERE last_day(d) = DATE '2025-02-28';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"last_day_db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["last_day_db","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":11,"function_name":"last_day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["last_day"]},"is_legacy_function_call":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2025-02-28"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (\n SELECT 1 FROM (SELECT dt FROM big OFFSET 0) WHERE year(dt) \u003e 2000\n EXCEPT ALL SELECT 1 FROM big WHERE year(dt) \u003e 2000\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":124,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":2,"column_names":["dt"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":3,"schema_name":"","table_name":"big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":75,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["year"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":3,"schema_name":"","table_name":"big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":128,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["year"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM edge WHERE epoch_us(t) \u003e -9223372036854775806;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"edge","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["edge"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":32,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":11,"function_name":"epoch_us","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["epoch_us"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775806"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM edge_d WHERE year(dt) \u003e -1000000000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"edge_d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["edge_d"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["year"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-1000000000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(a ORDER BY a) FROM t WHERE TRY_CAST(a AS TINYINT) \u003e 50;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":39,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NOT (a OR b), (NOT a) AND (NOT b)\nFROM (VALUES (1, NULL::BOOLEAN, TRUE),\n (2, NULL::BOOLEAN, FALSE),\n (3, TRUE, NULL::BOOLEAN),\n (4, FALSE, NULL::BOOLEAN)) v(id, a, b)\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":12,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":12,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["b"]}]}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":21,"query_location_length":19,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":22,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["a"]}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":34,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["b"]}]}]}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":46,"query_location_length":152,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":147,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":149,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":187,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":189,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM not_null_integers WHERE i IS NOT DISTINCT FROM NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"not_null_integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["not_null_integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":45,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM volatile_t WHERE error('expected')::BOOLEAN OR NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"volatile_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["volatile_t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":38,"query_location_length":34,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":17,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"literal":{"kind":"STRING","text":"expected"}}}],"qualified_name":{"path":["error"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM dense_or_unsigned WHERE u = 18446744073709551614::UBIGINT OR u = 18446744073709551615::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"dense_or_unsigned","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dense_or_unsigned"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":45,"query_location_length":70,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["u"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":20,"literal":{"kind":"INTEGER","text":"18446744073709551614"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["u"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":20,"literal":{"kind":"INTEGER","text":"18446744073709551615"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers i1, integers i2 WHERE i1.i=i2.i ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":27,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["i2","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE i IN ((SELECT * FROM integers)) AND i\u003c3 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":39,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":26,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":43,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":65,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT q01.*\nFROM (\n SELECT LHS.*, observation_period_start_date\n FROM (\n SELECT q01.*\n FROM (\n SELECT\n person_id,\n cohort_start_date,\n COALESCE(cohort_end_date, cohort_start_date) AS cohort_end_date\n FROM cohort\n ) q01\n WHERE (cohort_start_date \u003c= cohort_end_date)\n ) LHS\n INNER JOIN obs\n ON (LHS.person_id = obs.person_id)\n) q01\nWHERE (cohort_end_date \u003e= observation_period_start_date)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":5,"relation_name":"q01","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"q01","sample":null,"query_location":18,"query_location_length":358,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":5,"relation_name":"LHS","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":29,"column_names":["observation_period_start_date"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":321,"query_location_length":53,"left":{"type":"SUBQUERY","alias":"LHS","sample":null,"query_location":73,"query_location_length":241,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":86,"query_location_length":5,"relation_name":"q01","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"q01","sample":null,"query_location":101,"query_location_length":156,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":9,"column_names":["person_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":17,"column_names":["cohort_start_date"]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"cohort_end_date","query_location":170,"query_location_length":44,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":15,"column_names":["cohort_end_date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":17,"column_names":["cohort_start_date"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":245,"query_location_length":6,"schema_name":"","table_name":"cohort","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cohort"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":273,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":17,"column_names":["cohort_start_date"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":294,"query_location_length":15,"column_names":["cohort_end_date"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":332,"query_location_length":3,"schema_name":"","table_name":"obs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["obs"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":344,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":13,"column_names":["LHS","person_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":360,"query_location_length":13,"column_names":["obs","person_id"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":388,"query_location_length":48,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":388,"query_location_length":15,"column_names":["cohort_end_date"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":407,"query_location_length":29,"column_names":["observation_period_start_date"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT * FROM vals1, vals2 WHERE i=5 AND k=5) tbl1 LEFT OUTER JOIN (SELECT * FROM vals1, vals2) tbl2 ON tbl2.i\u003e10000 AND tbl2.k=5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":66,"query_location_length":78,"left":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":14,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":82,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":90,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":92,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":119,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":119,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":6,"column_names":["tbl2","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":136,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":6,"column_names":["tbl2","k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT * FROM vals1, vals2) tbl1, (SELECT * FROM vals1, vals2) tbl2 WHERE tbl1.i=tbl1.k AND tbl1.i=tbl2.k AND tbl1.i=tbl2.i AND tbl1.i\u003e4999 AND tbl1.i\u003c5001;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":73,"left":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":21,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":56,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":64,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":66,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":5,"schema_name":"","table_name":"vals1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":5,"schema_name":"","table_name":"vals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vals2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":96,"query_location_length":81,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":6,"column_names":["tbl1","k"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":6,"column_names":["tbl2","k"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":132,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":6,"column_names":["tbl2","i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":150,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4999"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":166,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5001"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM test a1, test a2, test a3 WHERE a1.b=a2.b AND a2.b=a3.b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":30,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"a1","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":30,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"a3","sample":null,"query_location":39,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":53,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":4,"column_names":["a1","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["a2","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["a2","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["a3","b"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t WHERE (a=1 AND (b\u003e3 AND TRUE)) OR (a=1 AND (TRUE AND c\u003c5))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":22,"query_location_length":52,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":23,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":32,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":69,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM prefix_pruning WHERE NOT starts_with(s, '0040');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"prefix_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prefix_pruning"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":42,"query_location_length":26,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":22,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":6,"literal":{"kind":"STRING","text":"0040"}}}],"qualified_name":{"path":["starts_with"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT u FROM (SELECT u, d, u // 2 AS j FROM casts) WHERE u BETWEEN 100.5 AND 200.5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["u"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["u"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]},{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":28,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":5,"schema_name":"","table_name":"casts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["casts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":60,"query_location_length":23,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["u"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"100.5"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"200.5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, s.b FROM flat WHERE s.a AND i \u003e 0 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":4,"schema_name":"","table_name":"flat","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["flat"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":13,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["s","a"]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":38,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT grp, v.id FROM windowed\nWHERE v.id \u003e 1000\nQUALIFY row_number() OVER (PARTITION BY grp ORDER BY (v.ms::STRUCT(b VARCHAR, a VARCHAR)).b) = 1\nORDER BY grp","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":3,"column_names":["grp"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":4,"column_names":["v","id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"windowed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["windowed"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":4,"column_names":["v","id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":88,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":57,"query_location_length":84,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["grp"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":102,"query_location_length":38,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":30,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":4,"column_names":["v","ms"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"b","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"a","query_location":129,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"literal":{"kind":"STRING","text":"b"}}]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM neg WHERE (-x) \u003e 1),\n (SELECT count(*) FROM neg WHERE (-x) \u003c -1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":41,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":39,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":42,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":3,"schema_name":"","table_name":"neg","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["neg"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":89,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM visible_secrets WHERE NOT not_ilike_escape('ABC', pattern, '$')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":15,"schema_name":"","table_name":"visible_secrets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["visible_secrets"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":37,"query_location_length":41,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":37,"function_name":"not_ilike_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":5,"literal":{"kind":"STRING","text":"ABC"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":7,"column_names":["pattern"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"literal":{"kind":"STRING","text":"$"}}}],"qualified_name":{"path":["not_ilike_escape"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM probe p JOIN narrow_secure n ON n.id = p.id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probe"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":34,"query_location_length":15,"schema_name":"","table_name":"narrow_secure","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["narrow_secure"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":4,"column_names":["n","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["p","id"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM cross_secure w JOIN ik ON w.id::INTEGER = ik.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"w","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"cross_secure","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cross_secure"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":2,"schema_name":"","table_name":"ik","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ik"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["w","id"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["ik","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM visible WHERE s::INT = 55","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"visible","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["visible"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":11,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"55"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM visible_projected WHERE s::INT \u003e 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"visible_projected","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["visible_projected"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":10,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT stats(i)::VARCHAR FROM filtered_secure_view LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":20,"schema_name":"","table_name":"filtered_secure_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filtered_secure_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM impossible_secure_view","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":22,"schema_name":"","table_name":"impossible_secure_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["impossible_secure_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH ws_wh AS NOT MATERIALIZED (SELECT a.o, a.w AS w1, b.w AS w2 FROM ws a, ws b WHERE a.o = b.o AND a.w \u003c\u003e b.w)\nSELECT count(*), sum(x) FROM q WHERE x IN (SELECT o FROM ws_wh) AND x IN (SELECT k FROM r, ws_wh WHERE k = ws_wh.o)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"ws_wh","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_NEVER","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["a","o"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"w1","query_location":44,"query_location_length":3,"column_names":["a","w"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"w2","query_location":55,"query_location_length":3,"column_names":["b","w"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":70,"query_location_length":4,"schema_name":"","table_name":"ws","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ws"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":76,"query_location_length":4,"schema_name":"","table_name":"ws","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ws"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":87,"query_location_length":24,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":3,"column_names":["a","o"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":3,"column_names":["b","o"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":101,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":3,"column_names":["a","w"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":3,"column_names":["b","w"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":142,"query_location_length":1,"schema_name":"","table_name":"q","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["q"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":150,"query_location_length":78,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":155,"query_location_length":21,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":1,"column_names":["o"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":170,"query_location_length":5,"schema_name":"","table_name":"ws_wh","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ws_wh"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":186,"query_location_length":42,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":196,"query_location_length":13,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":201,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":204,"query_location_length":5,"schema_name":"","table_name":"ws_wh","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ws_wh"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":216,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":1,"column_names":["k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":7,"column_names":["ws_wh","o"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(payload) FROM s WHERE v = 'b';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(payload) FROM long_strings WHERE v \u003c= repeat('b', 12);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":12,"schema_name":"","table_name":"long_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":44,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(payload) FROM long_strings WHERE v \u003c= repeat('a', 12);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["payload"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":12,"schema_name":"","table_name":"long_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":44,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH extracted AS (\n\tSELECT {'d': s} AS g FROM dates\n)\nSELECT g.d::DATE\nFROM extracted\nWHERE CASE WHEN (SELECT 1) = 1\n THEN length(g.d) \u003e 0 OR (SELECT 1) \u003c\u003e 1\n ELSE length(g.d) \u003e 0 OR (SELECT 1) \u003c\u003e 1\n END;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"extracted","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":28,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"d","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"d","query_location":34,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["g","d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":9,"schema_name":"","table_name":"extracted","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["extracted"]}},"where_clause":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":93,"query_location_length":136,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":14,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":103,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":134,"query_location_length":34,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":134,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":11,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":3,"column_names":["g","d"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":153,"query_location_length":15,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":153,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}}],"else_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":185,"query_location_length":34,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":185,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":11,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":3,"column_names":["g","d"]}}],"qualified_name":{"path":["length"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":204,"query_location_length":15,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":204,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM events WHERE payload.meta.ts IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"events","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":50,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":15,"column_names":["payload","meta","ts"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM substring_pruning WHERE s[5:2] = '';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"","table_name":"substring_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":46,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM substring_truncated_pruning\nWHERE s[2:] \u003e '495000' || repeat('x', 20);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":27,"schema_name":"","table_name":"substring_truncated_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_truncated_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":35,"left":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":56,"query_location_length":4,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":27,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":8,"literal":{"kind":"STRING","text":"495000"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT g FROM tallpos GROUP BY g HAVING sum(v) \u003c 50);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"tallpos","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tallpos"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":62,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}},"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM (\n SELECT *\n FROM phj_probe_narrow_cast\n WHERE k \u003c 2000000000\n) p\nJOIN phj_build_narrow_cast_sparse b\n ON p.k::INTEGER = b.k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":90,"query_location_length":59,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":21,"query_location_length":66,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":21,"schema_name":"","table_name":"phj_probe_narrow_cast","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["phj_probe_narrow_cast"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":71,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2000000000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":95,"query_location_length":30,"schema_name":"","table_name":"phj_build_narrow_cast_sparse","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["phj_build_narrow_cast_sparse"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":18,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":134,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["p","k"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":3,"column_names":["b","k"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM dst_table WHERE CAST(col AS TIMESTAMP) \u003e '2026-10-25 02:30:00'::TIMESTAMP)\n + (SELECT count(*) FROM dst_table WHERE CAST(col AS TIMESTAMP) \u003c= '2026-10-25 02:30:00'::TIMESTAMP);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":96,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":9,"schema_name":"","table_name":"dst_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dst_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":57,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["col"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":21,"literal":{"kind":"STRING","text":"2026-10-25 02:30:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":111,"query_location_length":97,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"query_location_length":9,"schema_name":"","table_name":"dst_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dst_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":149,"query_location_length":58,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":149,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":3,"column_names":["col"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":196,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":21,"literal":{"kind":"STRING","text":"2026-10-25 02:30:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":198,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'a', count(*) FROM csp_filter_key WHERE a IN (2, 3, 4)\nUNION ALL\nSELECT 'b', count(*) FROM csp_filter_key WHERE b IN (2, 3, 4);","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":14,"schema_name":"","table_name":"csp_filter_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["csp_filter_key"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":52,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":14,"schema_name":"","table_name":"csp_filter_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["csp_filter_key"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":124,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE s GLOB 'mmm*';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":11,"function_name":"~~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":6,"literal":{"kind":"STRING","text":"mmm*"}}}],"qualified_name":{"path":["~~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col1, col2, col4, COUNT(*) \nFROM events JOIN t2 ON events.col1 = t2.col4 \nGROUP BY ROLLUP(col1, col2, col4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["col2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":4,"column_names":["col4"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":6,"schema_name":"","table_name":"events","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["events"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":11,"column_names":["events","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":7,"column_names":["t2","col4"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":4,"column_names":["col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":4,"column_names":["col2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":4,"column_names":["col4"]}],"group_sets":[[],[0],[0,1],[0,1,2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 where rowid IN (6, 9) ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["rowid"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM services\nQUALIFY max(train_number) OVER(PARTITION BY date, train_number) = 100\n AND count(*) OVER(PARTITION BY date, train_number) = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":8,"schema_name":"","table_name":"services","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["services"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":22,"query_location_length":120,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":61,"left":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":22,"query_location_length":55,"function_name":"max","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":12,"column_names":["train_number"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":12,"column_names":["train_number"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":50,"left":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":92,"query_location_length":46,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":4,"column_names":["date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":12,"column_names":["train_number"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}},"named_param_map":[]}]}} +{"sql":"SELECT i, list(DISTINCT x ORDER BY x % 2) OVER (\n\tPARTITION BY p ORDER BY i DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n) FROM frame_ties\nORDER BY i LIMIT 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":129,"function_name":"list","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["p"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":145,"query_location_length":10,"schema_name":"","table_name":"frame_ties","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["frame_ties"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, g, p\nFROM row_number_order\nQUALIFY ROW_NUMBER(ORDER BY id DESC) OVER (\n\tPARTITION BY g\n\tORDER BY p ASC\n\tROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n) \u003c= 1\nORDER BY g, id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":1,"column_names":["g"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["p"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"row_number_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["row_number_order"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":46,"query_location_length":132,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":46,"query_location_length":127,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["g"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["p"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":2,"column_names":["id"]}}],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} +{"sql":"WITH cte AS (SELECT a, b, c::TIMESTAMPTZ AS c FROM casted)\nSELECT * FROM cte QUALIFY row_number() OVER (PARTITION BY a ORDER BY c DESC) = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"c","query_location":27,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["c"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":6,"schema_name":"","table_name":"casted","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["casted"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":66,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":54,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":85,"query_location_length":50,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["a"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["c"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} +{"sql":"SELECT c_pk, c_int FROM t2 QUALIFY (ROW_NUMBER() OVER (ORDER BY c_pk)) \u003c 1000000","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["c_pk"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["c_int"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":35,"query_location_length":45,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":36,"query_location_length":33,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["c_pk"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}},"named_param_map":[]}]}} +{"sql":"SELECT id, ROW_NUMBER() OVER (ORDER BY NULLIF(id % 3, 0) DESC NULLS LAST) AS rn\nFROM t\nQUALIFY rn \u003c= 1\nORDER BY rn;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":2,"column_names":["rn"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":11,"query_location_length":62,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":17,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["nullif"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":95,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":2,"column_names":["rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT s FROM tt_tuple) p WHERE CAST(p.s AS STRUCT(a BIGINT)) = struct_pack(a := 1::BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":21,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"tt_tuple","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tt_tuple"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":59,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["p","s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":16,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":75,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":104,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM dates WHERE yearweek(d) \u003e= -4310;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":33,"query_location_length":20,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":11,"function_name":"yearweek","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["yearweek"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"INTEGER","text":"-4310"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col1, col2 FROM test ORDER BY col1 NULLS LAST, col2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":4,"column_names":["col1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["col2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["col2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM generate_series(0, 10000, 1) tbl(i) ORDER BY i DESC LIMIT (SELECT d FROM doubles) %","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":72,"query_location_length":23,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":7,"schema_name":"","table_name":"doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers ORDER BY * DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, i FROM wide ORDER BY s, i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["s"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"wide","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM test LIMIT row_number() OVER ()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":25,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers as int LIMIT (SELECT 'ab');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":13,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"ab"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"int","sample":null,"query_location":14,"query_location_length":15,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte AS (SELECT 3) SELECT * FROM range(10000000) LIMIT (SELECT * FROM cte) OFFSET (SELECT * FROM cte)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":59,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":67,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":86,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":94,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":101,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":30,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":8,"literal":{"kind":"INTEGER","text":"10000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM test LIMIT 40 PERCENT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"40"}},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM range(10) LIMIT 50% OFFSET 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":9,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, 5=ANY(l) FROM v3 ORDER BY g LIMIT 80%;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["g"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"80"}},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":8,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":2,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j, row_number() OVER (PARTITION BY i ORDER BY j NULLS LAST) FROM test ORDER BY i NULLS FIRST, j NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":13,"query_location_length":56,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["j"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM test ORDER BY b, a DESC LIMIT 1 OFFSET 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["b"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a-10 AS k FROM test UNION SELECT a-10 AS l FROM test ORDER BY a-10;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":8,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":41,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM t ORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (a) a, b FROM t ORDER BY true, a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c2 FROM src ORDER BY vp_rowid LIMIT 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":8,"column_names":["vp_rowid"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["c2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":3,"schema_name":"","table_name":"src","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["src"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT range, my_ordinality FROM view_ordinality ORDER BY range, my_ordinality;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["range"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":13,"column_names":["my_ordinality"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["range"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":13,"column_names":["my_ordinality"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":15,"schema_name":"","table_name":"view_ordinality","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["view_ordinality"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE ordinalityCTE AS (\n SELECT 1 AS ordinality\n UNION ALL\n SELECT oCTE.ordinality + r.ordinality AS ordinality\n FROM\n ordinalityCTE AS oCTE,\n LATERAL range(oCTE.ordinality) WITH ORDINALITY AS r(range,ordinality)\n WHERE oCTE.ordinality \u003c= 4\n ) SELECT ordinality FROM ordinalityCTE order by ordinality;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":10,"column_names":["ordinality"]}}]}],"cte_map":{"map":[{"key":"ordinalityCTE","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"ordinalityCTE","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ordinality","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ordinality","query_location":108,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":15,"column_names":["oCTE","ordinality"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":12,"column_names":["r","ordinality"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":143,"query_location_length":117,"left":{"type":"BASE_TABLE","alias":"oCTE","sample":null,"query_location":158,"query_location_length":21,"schema_name":"","table_name":"ordinalityCTE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordinalityCTE"]}},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":191,"query_location_length":69,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":15,"column_names":["oCTE","ordinality"]}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["range","ordinality"],"with_ordinality":"WITH_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":273,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":15,"column_names":["oCTE","ordinality"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":10,"column_names":["ordinality"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":321,"query_location_length":13,"schema_name":"","table_name":"ordinalityCTE","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordinalityCTE"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-9223372036854775808)::BIGINT * 2::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-9223372036854775807)::BIGINT * 0::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::TINYINT + 1::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 9223372036854775800::BIGINT + 1::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775800"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -2147483640::INTEGER - 1::INTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483640"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -2::TINYINT * 65::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"65"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4611686018427387900::BIGINT * 3::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4611686018427387900"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (i*10::TINYINT)*10::TINYINT FROM tinyints WHERE i=1 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":13,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::TINYINT FROM smallints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1e308*2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e308"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(a AS TINYINT) FROM test2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 0 FROM duckdb_logs_parsed('AsyncTaskSchedule') WHERE pool LIKE 'SYNCHRONOUS_%' AND task_count \u003e 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":19,"literal":{"kind":"STRING","text":"AsyncTaskSchedule"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":71,"query_location_length":44,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":20,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":4,"column_names":["pool"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":15,"literal":{"kind":"STRING","text":"SYNCHRONOUS_%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":101,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":10,"column_names":["task_count"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select min([-a, 1, a]), max([-a, 1, a]) from t group by b%2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":15,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(i), max(i) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT E'escape\\n'\n'string' = 'escape' || chr(10) || 'string';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":54,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"escape\nstring"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"literal":{"kind":"STRING","text":"escape"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"literal":{"kind":"STRING","text":"string"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM `my view`;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"my view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["my view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 -- `not an identifier\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a foo, b type, a name, b value FROM t ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"foo","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"type","query_location":14,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"name","query_location":22,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"value","query_location":30,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (DATE '2020-01-01' + INTERVAL 1 month)::DATE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":8,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"a42aa\", \"b84bb\", \"c126cc\" FROM (SELECT MIN(COLUMNS('([a-z])(\\d+)')) AS \"\\1\\2\\1\\1\" FROM numerics)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["a42aa"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["b84bb"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":8,"column_names":["c126cc"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"\\1\\2\\1\\1","query_location":47,"query_location_length":28,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":51,"query_location_length":23,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":14,"literal":{"kind":"STRING","text":"([a-z])(\\d+)"}},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"query_location_length":8,"schema_name":"","table_name":"numerics","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numerics"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT coalesce(*COLUMNS(*)) FROM one;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":7,"query_location_length":21,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":16,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":25,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":3,"schema_name":"","table_name":"one","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["one"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 3 % @ -2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":4,"function_name":"@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}}],"qualified_name":{"path":["@"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'a' || @ -1 || 'b';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":4,"function_name":"@","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["@"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1_2.1_2E1_0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"NUMERIC","text":"1_2.1_2E1_0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '12._12'::DECIMAL(4,2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"12._12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '12.12_e2'::FLOAT == 12.12e2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":28,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"12.12_e2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"12.12e2"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '20e_10'::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"20e_10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '0x_F_F_F'::INT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"0x_F_F_F"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 6 + 1 // 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select $🦆$du ck$🦆$ = $🦆$du ck$🦆$;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":39,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"literal":{"kind":"STRING","text":"du ck"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":19,"literal":{"kind":"STRING","text":"du ck"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t ORDER BY a FETCH NEXT 1 ROW ONLY","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t ORDER BY a FETCH NEXT ROW ONLY OFFSET 1 ROWS","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v.lowe() FROM varchars","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"lowe","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["v","lowe"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"varchars","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["varchars"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pg_typeof(X'FF');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"pg_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"HEX","text":"FF"}}}],"qualified_name":{"path":["pg_typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL IS NULL::INT::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":12,"query_location_length":7,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(1_000), typeof(1e3), typeof(1.50), typeof(-9223372036854775808), typeof(-170141183460469231731687303715884105728), typeof(X'FF'), typeof(B'0101'), typeof(.5), typeof(170141183460469231731687303715884105728), typeof(123456789012345678901234567890123456789012345678901234567890)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":5,"literal":{"kind":"INTEGER","text":"1_000"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":11,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1e3"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":12,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"1.50"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":28,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":48,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105728"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":5,"literal":{"kind":"HEX","text":"FF"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":7,"literal":{"kind":"BIT","text":"0101"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":10,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":2,"literal":{"kind":"NUMERIC","text":".5"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"query_location_length":47,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105728"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":222,"query_location_length":68,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":60,"literal":{"kind":"INTEGER","text":"123456789012345678901234567890123456789012345678901234567890"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003c= 100 FROM range(100) USING SAMPLE 10%","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":10.0},"is_percentage":true,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -(2147483648)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"INTEGER","text":"-2147483648"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT false = NOT 1 BETWEEN 0 AND 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":29,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"right":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":15,"query_location_length":21,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":21,"query_location_length":15,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (range(2) a JOIN range(3) b ON a.range = b.range) JOIN range(4) c ON c.range = a.range","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":36,"left":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":36,"left":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":22,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"b","sample":null,"query_location":38,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["a","range"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":7,"column_names":["b","range"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"TABLE_FUNCTION","alias":"c","sample":null,"query_location":76,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":7,"column_names":["c","range"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":7,"column_names":["a","range"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try('abc'::INTEGER);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":19,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [(COLUMNS(*).unpack())] FROM integers ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":9,"query_location_length":19,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":17,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM quoted_columns;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":14,"schema_name":"","table_name":"quoted_columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quoted_columns"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH x('a') AS (SELECT 1)\nSELECT a FROM x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"x","value":{"aliases":["a"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":1,"schema_name":"","table_name":"x","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["x"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers ORDER BY * + 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT \"odder col\" AS \"a b\" FROM \"weird name\" AS \"al ias\" ORDER BY \"a b\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":5,"column_names":["a b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a b","query_location":7,"query_location_length":11,"column_names":["odder col"]}],"from_table":{"type":"BASE_TABLE","alias":"al ias","sample":null,"query_location":33,"query_location_length":24,"schema_name":"","table_name":"weird name","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["weird name"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"WITH \"cte name\"(\"c one\") AS (SELECT 1) SELECT \"c one\" FROM \"cte name\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte name","value":{"aliases":["c one"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":7,"column_names":["c one"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":10,"schema_name":"","table_name":"cte name","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte name"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT switch(val, MAP {}, 'other') FROM null_test ORDER BY val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"switch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}}],"qualified_name":{"path":["switch"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"null_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT switch(val, MAP {1: 'one', 2: 'two'}, 'other') FROM null_test ORDER BY val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"switch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":24,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"STRING","text":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"literal":{"kind":"STRING","text":"two"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}}],"qualified_name":{"path":["switch"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":9,"schema_name":"","table_name":"null_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COLUMNS(*) + 1 FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":15,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT switch(val, MAP {}, 'other') FROM null_test ORDER BY val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"switch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}}],"qualified_name":{"path":["switch"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"null_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT switch(val, MAP {1: 'one', 2: 'two'}, 'other') FROM null_test ORDER BY val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"switch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":3,"column_names":["val"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":24,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"literal":{"kind":"STRING","text":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"literal":{"kind":"STRING","text":"two"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"literal":{"kind":"STRING","text":"other"}}}],"qualified_name":{"path":["switch"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":9,"schema_name":"","table_name":"null_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COLUMNS(*) + 1 FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":15,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT * FROM grouped_table ORDER BY COLUMNS(*);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":45,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"grouped_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["grouped_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * + 42 FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * + 42 FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT * FROM tbl ORDER BY COLUMNS('col1|col3')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":27,"query_location_length":20,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":11,"literal":{"kind":"STRING","text":"col1|col3"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"select *COLUMNS('[a|c]') from contains_test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":7,"query_location_length":17,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"[a|c]"}},"qualified_exclude_list":[],"rename_list":[]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":13,"schema_name":"","table_name":"contains_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["contains_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select struct_pack(*COLUMNS('id')) a, struct_pack(*COLUMNS('name')) from data","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":7,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":19,"query_location_length":14,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}},"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["struct_pack"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":50,"query_location_length":16,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":6,"literal":{"kind":"STRING","text":"name"}},"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n\t[\n\t\tUNPACK(\n\t\t\t[\n\t\t\t\tCOLUMNS(['d'])\n\t\t\t]\n\t\t)\n\t]\nfrom (select 21 a, 42 b, 1337 c)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":47,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":12,"query_location_length":40,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]}},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["list_value"]}}]}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":61,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":81,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1337"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM query('SELECT 1' || repeat(' IS NULL', 150))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":37,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":10,"literal":{"kind":"STRING","text":"SELECT 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":23,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"literal":{"kind":"STRING","text":" IS NULL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"INTEGER","text":"150"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["query"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM query('SELECT x IS NULL FROM (SELECT NULL::' || repeat('STRUCT(a ', 50) || 'INTEGER' || repeat(')', 50) || ' AS x)')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":116,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":109,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":38,"literal":{"kind":"STRING","text":"SELECT x IS NULL FROM (SELECT NULL::"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":23,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":11,"literal":{"kind":"STRING","text":"STRUCT(a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"STRING","text":")"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":8,"literal":{"kind":"STRING","text":" AS x)"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["query"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 2^2 + 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"^","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["^"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ~1 * 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["~"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT user FROM (VALUES (42)) user(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["user"]}],"from_table":{"type":"SUBQUERY","alias":"user","sample":null,"query_location":17,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers,","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT _0_db._2_schema._3_table._4_col FROM _0_db._2_schema._3_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":31,"column_names":["_0_db","_2_schema","_3_table","_4_col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":24,"schema_name":"_2_schema","table_name":"_3_table","column_name_alias":[],"catalog_name":"_0_db","at_clause":null,"qualified_name":{"path":["_0_db","_2_schema","_3_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT E'it\\'s a test' = 'it''s a test';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":32,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"literal":{"kind":"STRING","text":"it's a test"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":14,"literal":{"kind":"STRING","text":"it's a test"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT e'\\n' = chr(10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":15,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"\n"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":7,"function_name":"chr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["chr"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 3 IN (1, 2) IN (FALSE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":22,"query_location_length":7,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":12,"query_location_length":6,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'a' LIKE 'a' ESCAPE '' = TRUE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":29,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":18,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}],"qualified_name":{"path":["like_escape"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v.col0 FROM v: VALUES (42) ORDER BY v.col0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":6,"column_names":["v","col0"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["v","col0"]}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":19,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_name, sql, expressions\nFROM duckdb_indexes()\nWHERE table_name = 'create_index_syntax'\nORDER BY index_name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":10,"column_names":["index_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["index_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["sql"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":11,"column_names":["expressions"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_indexes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_indexes"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":21,"literal":{"kind":"STRING","text":"create_index_syntax"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 5 NOT BETWEEN ASYMMETRIC 10 AND 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":33,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":13,"query_location_length":27,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (1 + 2) IS NULL = FALSE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":23,"left":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":15,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select relname, attname, attnum from pg_attribute join pg_class on (pg_attribute.attrelid=pg_class.oid) where relname='integers' and attnum\u003e=0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["relname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["attname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":6,"column_names":["attnum"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":53,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":12,"schema_name":"","table_name":"pg_attribute","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_attribute"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":8,"schema_name":"","table_name":"pg_class","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_class"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":21,"column_names":["pg_attribute","attrelid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":12,"column_names":["pg_class","oid"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":110,"query_location_length":32,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":7,"column_names":["relname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":10,"literal":{"kind":"STRING","text":"integers"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":133,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":6,"column_names":["attnum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM pg_catalog.pg_indexes","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"pg_catalog","table_name":"pg_indexes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_indexes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sequencename, min_value, max_value, start_value, cycle FROM pg_sequences","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["sequencename"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":9,"column_names":["min_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":9,"column_names":["max_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":11,"column_names":["start_value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["cycle"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":12,"schema_name":"","table_name":"pg_sequences","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_sequences"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT oid FROM pg_type WHERE typname = 'date' AND oid IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["oid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":7,"schema_name":"","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_type"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":7,"column_names":["typname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":6,"literal":{"kind":"STRING","text":"date"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":55,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["oid"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT oid FROM pg_type WHERE typname = 'numeric' AND oid IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["oid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":7,"schema_name":"","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_type"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":7,"column_names":["typname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"literal":{"kind":"STRING","text":"numeric"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":58,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["oid"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT relname FROM pg_class c join pg_namespace n on\nn.oid=c.relnamespace where relkind='S' and\nn.nspname='main' and relname='seq'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["relname"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":43,"left":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":20,"query_location_length":10,"schema_name":"","table_name":"pg_class","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_class"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":36,"query_location_length":14,"schema_name":"","table_name":"pg_namespace","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_namespace"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["n","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":14,"column_names":["c","relnamespace"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":81,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["relkind"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"STRING","text":"S"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":9,"column_names":["n","nspname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":6,"literal":{"kind":"STRING","text":"main"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":118,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":7,"column_names":["relname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a.attname,\n\tCASE WHEN (a.attcollation != 0 AND (\n\t\tSELECT t.typcollation\n\t\tFROM pg_catalog.pg_type t\n\t\tWHERE t.oid = a.atttypid\n\t) != a.attcollation) THEN (\n\t\tSELECT c.collname\n\t\tFROM pg_catalog.pg_collation c\n\t\tWHERE c.oid = a.attcollation\n\t) ELSE NULL END AS collation\nFROM pg_catalog.pg_attribute a\nWHERE a.attrelid = (SELECT MIN(oid) FROM pg_class WHERE relname='integral_values')\nAND a.attnum \u003e 0 AND NOT a.attisdropped\nORDER BY a.attnum;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":441,"query_location_length":8,"column_names":["a","attnum"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["a","attname"]},{"class":"CASE","type":"CASE_EXPR","alias":"collation","query_location":19,"query_location_length":245,"case_checks":[{"when_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":125,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":30,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":14,"column_names":["a","attcollation"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":54,"query_location_length":101,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":54,"query_location_length":83,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":14,"column_names":["t","typcollation"]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":87,"query_location_length":20,"schema_name":"pg_catalog","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_type"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":5,"column_names":["t","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":10,"column_names":["a","atttypid"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":14,"column_names":["a","attcollation"]}}]},"then_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":162,"query_location_length":88,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":10,"column_names":["c","collname"]}],"from_table":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":191,"query_location_length":25,"schema_name":"pg_catalog","table_name":"pg_collation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_collation"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":5,"column_names":["c","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":233,"query_location_length":14,"column_names":["a","attcollation"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":283,"query_location_length":25,"schema_name":"pg_catalog","table_name":"pg_attribute","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_attribute"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":315,"query_location_length":116,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":315,"query_location_length":76,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":315,"query_location_length":10,"column_names":["a","attrelid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":328,"query_location_length":63,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":336,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":340,"query_location_length":3,"column_names":["oid"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":350,"query_location_length":8,"schema_name":"","table_name":"pg_class","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_class"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":365,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":365,"query_location_length":7,"column_names":["relname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":373,"query_location_length":17,"literal":{"kind":"STRING","text":"integral_values"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":396,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":396,"query_location_length":8,"column_names":["a","attnum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":407,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":413,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":417,"query_location_length":14,"column_names":["a","attisdropped"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CURRENT_CATALOG","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["CURRENT_CATALOG"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select txid_current();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"txid_current","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["txid_current"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM\n (SELECT product, sales, quarter FROM Produce)\n PIVOT(SUM(sales) FOR quarter IN ('Q1', 'Q2', 'Q3', 'Q4'))\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":70,"query_location_length":50,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":16,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":7,"column_names":["product"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["sales"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":7,"column_names":["quarter"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":7,"schema_name":"","table_name":"Produce","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Produce"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["sales"]}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["quarter"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"STRING","text":"Q1"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"STRING","text":"Q2"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"STRING","text":"Q3"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":4,"literal":{"kind":"STRING","text":"Q4"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\n FROM sales\n PIVOT (sum(sales)\n FOR (quarter, region)\n IN ((1, 'east') AS q1_east, (1, 'east') AS q1_east_2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":35,"query_location_length":98,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":5,"schema_name":"","table_name":"sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":5,"column_names":["sales"]}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["quarter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":6,"column_names":["region"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"q1_east","query_location":84,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":6,"literal":{"kind":"STRING","text":"east"}}}],"qualified_name":{"path":["row"]}},"alias":"q1_east"},{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"q1_east_2","query_location":108,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":6,"literal":{"kind":"STRING","text":"east"}}}],"qualified_name":{"path":["row"]}},"alias":"q1_east_2"}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\n FROM monthly_sales\n PIVOT(SUM(amount) FOR MONTH IN unique_monthsx)\n AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":40,"query_location_length":39,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":6,"column_names":["amount"]}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[],"pivot_enum":"unique_monthsx"}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t PIVOT (count(*) FOR col IN (map()));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":23,"query_location_length":27,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["col"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":5,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["map"]}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\n FROM sales\n PIVOT(\n SUM(amount + year)\n FOR YEAR IN (2020, 2021)\n MONTH IN ('JAN', 'FEB', 'MAR', 'APR')\n ) AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":41,"query_location_length":101,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":5,"schema_name":"","table_name":"sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":18,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":6,"column_names":["amount"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["year"]}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":4,"column_names":["YEAR"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2020"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2021"}},"alias":""}],"pivot_enum":""},{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":5,"literal":{"kind":"STRING","text":"JAN"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":5,"literal":{"kind":"STRING","text":"FEB"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":5,"literal":{"kind":"STRING","text":"MAR"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":5,"literal":{"kind":"STRING","text":"APR"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\n FROM monthly_sales\n PIVOT(SUM(amount) FOR MONTH IN ('JAN', 'FEB', 'MAR'))\n AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":40,"query_location_length":46,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":6,"column_names":["amount"]}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"literal":{"kind":"STRING","text":"JAN"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":5,"literal":{"kind":"STRING","text":"FEB"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":5,"literal":{"kind":"STRING","text":"MAR"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\n FROM monthly_sales\n PIVOT(SUM(amount) FOR MONTH IN (*))\n AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":40,"query_location_length":28,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":6,"column_names":["amount"]}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"STAR","type":"STAR","alias":"","query_location":66,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"UNPIVOT (SELECT * FROM monthly_sales)\n ON jan, feb, mar april\n INTO\n NAME month\n VALUE sales;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":8,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[],"unpivot_names":["sales"],"pivots":[{"pivot_expressions":[],"unpivot_names":["month"],"entries":[{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":3,"column_names":["jan"]},"alias":""},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["feb"]},"alias":""},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"april","query_location":55,"query_location_length":3,"column_names":["mar"]},"alias":"april"}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"unpivot (select 42 as col1, 'woot' as col2)\n on COLUMNS(*)::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":8,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"woot"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[],"unpivot_names":["value"],"pivots":[{"pivot_expressions":[],"unpivot_names":["name"],"entries":[{"values":[],"star_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"STAR","type":"STAR","alias":"","query_location":59,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"UNPIVOT test ON (metric_1, value_x), (metric_2, value_q), (metric_3, value_j) INTO NAME metric VALUE metric_value;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":8,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"aggregates":[],"unpivot_names":["metric_value"],"pivots":[{"pivot_expressions":[],"unpivot_names":["metric"],"entries":[{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":19,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":8,"column_names":["metric_1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":7,"column_names":["value_x"]}}],"qualified_name":{"path":["row"]}},"alias":""},{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":19,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":8,"column_names":["metric_2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":7,"column_names":["value_q"]}}],"qualified_name":{"path":["row"]}},"alias":""},{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":19,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":8,"column_names":["metric_3"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["value_j"]}}],"qualified_name":{"path":["row"]}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CURRENT_SETTING('profiling_mode');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":16,"literal":{"kind":"STRING","text":"profiling_mode"}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN latency \u003e 0 THEN 'true' ELSE 'false' END FROM first_cp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":50,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":17,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":7,"column_names":["latency"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"first_cp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["first_cp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT query.cpu_time FROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["query","cpu_time"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n CASE\n WHEN operator[1].intermediate_size_bytes \u003c 10_000 THEN NULL\n ELSE operator[1].intermediate_size_bytes\n END AS result\nFROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"result","query_location":11,"query_location_length":129,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":44,"left":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":29,"query_location_length":35,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":37,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":24,"literal":{"kind":"STRING","text":"intermediate_size_bytes"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"literal":{"kind":"INTEGER","text":"10_000"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":97,"query_location_length":35,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":105,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":24,"literal":{"kind":"STRING","text":"intermediate_size_bytes"}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":156,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test WHERE id \u003c 1000 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":25,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * EXCLUDE(value, description) FROM duckdb_profiling_settings();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":29,"relation_name":"","exclude_list":["value","description"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_profiling_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_profiling_settings"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT operator IS NOT NULL FROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":16,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["operator"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT io.total_bytes_written FROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":22,"column_names":["io","total_bytes_written"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM pragma_metadata_info(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_metadata_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["pragma_metadata_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CURRENT_SETTING('log_query_path')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":16,"literal":{"kind":"STRING","text":"log_query_path"}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SHOW TABLES FROM db.main","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":null,"show_type":"SHOW_FROM","catalog_name":"db","schema_name":"main","qualified_name":{"path":["db","main",""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM v2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":2,"schema_name":"","table_name":"v2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x FROM generate_series(1, 10) t(x) OFFSET 3 LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT result_types IS NULL FROM duckdb_prepared_statements() WHERE name = 'cached_scan';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["result_types"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_prepared_statements","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_prepared_statements"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":13,"literal":{"kind":"STRING","text":"cached_scan"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM repeat_row(1, 'hello', num_rows=100000)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat_row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":8,"column_names":["num_rows"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}}],"qualified_name":{"path":["repeat_row"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT i, count(*) FROM range(500000) t(i) GROUP BY i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":55,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":46,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":6,"literal":{"kind":"INTEGER","text":"500000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(i) FROM range(2) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":19,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH p AS MATERIALIZED (\n SELECT s, r, i AS j, l, i AS duplicate FROM projection_input\n WHERE i \u003c 2 OR md5(i::VARCHAR) = ''\n)\nSELECT count(*), sum(j) FROM p","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"p","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":42,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["l"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"duplicate","query_location":53,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":16,"schema_name":"","table_name":"projection_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["projection_input"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":100,"query_location_length":29,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":100,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":20,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":15,"function_name":"md5","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["md5"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":2,"literal":{"kind":"STRING","text":""}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":161,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT integers.* EXCLUDE (i, j, k) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":28,"relation_name":"integers","exclude_list":["i","j","k"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * EXCLUDE (integers2.i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":23,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"integers2","column":"i"}],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT integers.* EXCEPT (i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":21,"relation_name":"integers","exclude_list":["i"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT integers.* EXCEPT (integers.i, integers.j) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":42,"relation_name":"integers","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"integers","column":"i"},{"catalog":"","schema":"","table":"integers","column":"j"}],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * EXCLUDE (col1) SIMILAR TO '.*col.*' FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":20,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":16,"relation_name":"","exclude_list":["col1"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":9,"literal":{"kind":"STRING","text":".*col.*"}}}],"qualified_name":{"path":["regexp_full_match"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t1.* LIKE 'col%', t2.* LIKE 'col%' FROM t1, t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":11,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":4,"relation_name":"t1","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"col%"}}}],"qualified_name":{"path":["~~"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":11,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":25,"query_location_length":4,"relation_name":"t2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"literal":{"kind":"STRING","text":"col%"}}}],"qualified_name":{"path":["~~"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT new_col, new_col2 FROM (SELECT * RENAME (i1.i AS new_col, i1.j AS new_col2) FROM integers i1 JOIN integers i2 USING (i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["new_col"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":8,"column_names":["new_col2"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":30,"query_location_length":97,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":44,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"","schema":"","table":"i1","column":"i"},"value":"new_col"},{"key":{"catalog":"","schema":"","table":"i1","column":"j"},"value":"new_col2"}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":100,"query_location_length":26,"left":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":88,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":105,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test_star.* REPLACE ('computed: ' || (id * 2)::VARCHAR AS col1) FROM test_star;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":63,"relation_name":"test_star","exclude_list":[],"replace_list":[{"key":"col1","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"literal":{"kind":"STRING","text":"computed: "}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":6,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]}}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":9,"schema_name":"","table_name":"test_star","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_star"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COLUMNS(* REPLACE (a * 2 AS a)) FROM range(3) t1(a) NATURAL JOIN range(3) t2(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":15,"query_location_length":22,"relation_name":"","exclude_list":[],"replace_list":[{"key":"a","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":5,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["*"]}}}],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":27,"left":{"type":"TABLE_FUNCTION","alias":"t1","sample":null,"query_location":44,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":72,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN a = 42 THEN 100 WHEN a = 43 THEN 200 END FROM exprtest","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":50,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":8,"schema_name":"","table_name":"exprtest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exprtest"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM intest WHERE a NOT IN (NULL, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"intest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intest"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":27,"query_location_length":21,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":36,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid, * FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"STAR","type":"STAR","alias":"","query_location":14,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM a, a a2 WHERE a.rowid=a2.rowid","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":12,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["a","rowid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":8,"column_names":["a2","rowid"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 0 IN (SELECT rowid FROM a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":21,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT + CASE WHEN NOT + 84 NOT BETWEEN - 78 + 98 * 51 AND - ( ( - 28 ) ) * COUNT ( * ) + + - 65 THEN NULL ELSE 16 // + 34 + + - 98 END // + 70 - ( - - CASE - COALESCE ( + 73, + - 66 * - 89 * - 72 ) WHEN COUNT ( * ) // + 4 * CAST ( - - 18 AS INTEGER ) + + + COUNT ( * ) - - 88 THEN NULL WHEN 92 THEN NULL ELSE COUNT ( * ) END ) AS col0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"col0","query_location":144,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":136,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":128,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":9,"query_location_length":126,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":19,"query_location_length":77,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":73,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":32,"query_location_length":64,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["+"]}},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-78"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"98"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"51"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["+"]}},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":28,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":14,"literal":{"kind":"INTEGER","text":"28"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":11,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":6,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"-65"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["+"]}}}]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":10,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":2,"literal":{"kind":"INTEGER","text":"34"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["//"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":6,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"-98"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["+"]}}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":2,"literal":{"kind":"INTEGER","text":"70"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["//"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":177,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":152,"query_location_length":173,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":41,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":159,"query_location_length":39,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":2,"literal":{"kind":"INTEGER","text":"73"}}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":6,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"-66"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-89"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-72"}}}],"qualified_name":{"path":["*"]}}]}}],"qualified_name":{"path":["-"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":270,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":252,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":47,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":11,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":219,"query_location_length":3,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["//"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":225,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":6,"literal":{"kind":"INTEGER","text":"18"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":242,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":254,"query_location_length":15,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":258,"query_location_length":11,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":272,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-88"}}}],"qualified_name":{"path":["-"]}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":41,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":159,"query_location_length":39,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":4,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":2,"literal":{"kind":"INTEGER","text":"73"}}}],"qualified_name":{"path":["+"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":20,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":176,"query_location_length":6,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"-66"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-89"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-72"}}}],"qualified_name":{"path":["*"]}}]}}],"qualified_name":{"path":["-"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":2,"literal":{"kind":"INTEGER","text":"92"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":310,"query_location_length":11,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select t1.i, t1.j as a, t2.j as b from r4 t1 inner join r4 t2 using(i,j) ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t1","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":13,"query_location_length":4,"column_names":["t1","j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":24,"query_location_length":4,"column_names":["t2","j"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":39,"query_location_length":5,"schema_name":"","table_name":"r4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r4"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":56,"query_location_length":5,"schema_name":"","table_name":"r4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r4"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["i","j"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (VALUES (NULL, NULL)) v1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"v1","sample":null,"query_location":14,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM indexed_returning ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":17,"schema_name":"","table_name":"indexed_returning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["indexed_returning"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from all_types_parquet_2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":19,"schema_name":"","table_name":"all_types_parquet_2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types_parquet_2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), min(x) FROM test TABLESAMPLE BERNOULLI (25 PERCENT) REPEATABLE (42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":25.0},"is_percentage":true,"method":"Bernoulli","seed":42,"repeatable":true,"sample_rate":-1.0},"query_location":29,"query_location_length":55,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from duckdb_table_sample('t1') where a \u003e 102400;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_table_sample","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"STRING","text":"t1"}}}],"qualified_name":{"path":["duckdb_table_sample"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":53,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"literal":{"kind":"INTEGER","text":"102400"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from duckdb_table_sample('integral_samples') where a NOT null;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_table_sample","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":18,"literal":{"kind":"STRING","text":"integral_samples"}}}],"qualified_name":{"path":["duckdb_table_sample"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":69,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM test_table USING SAMPLE 500 ROWS (system);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":500},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH base AS (\n SELECT i FROM test_table\n)\nSELECT COUNT(*) FROM base USING SAMPLE 37 ROWS (system);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"base","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":4,"schema_name":"","table_name":"base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":37},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT scope = ['https://b.example.com'] FROM duckdb_secrets() WHERE name = 's1' AND storage = 'connection'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["scope"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":23,"literal":{"kind":"STRING","text":"https://b.example.com"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_secrets","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_secrets"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":38,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"STRING","text":"s1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["storage"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":12,"literal":{"kind":"STRING","text":"connection"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name FROM which_secret('https://example.com/data/file.csv', 'http')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"which_secret","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"https://example.com/data/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"literal":{"kind":"STRING","text":"http"}}}],"qualified_name":{"path":["which_secret"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.t FROM t.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":3,"schema_name":"t","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT test.tblX.col FROM test.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["test","tblX","col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":8,"schema_name":"test","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name FROM pragma_table_info('tbl') ORDER BY name","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_table_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"literal":{"kind":"STRING","text":"tbl"}}}],"qualified_name":{"path":["pragma_table_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM b : a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM operator_update;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":15,"schema_name":"","table_name":"operator_update","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["operator_update"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 42 WHERE 1=0 EXCEPT SELECT 42","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":16,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t1 INTERSECT SELECT * FROM t2 ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":34,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM v3 FULL OUTER JOIN v4 USING (i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":2,"schema_name":"","table_name":"v4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v4"]}},"condition":null,"join_type":"FULL","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 AS one UNION SELECT 1.0::float8 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"one","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"float8","children":[],"qualified_name":{"path":["float8"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT '[' || CAST(f1 AS char(4)) || ']' AS value FROM VARCHAR_TBL\nUNION\nSELECT '[' || f1 || ']' FROM CHAR_TBL\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"value","query_location":7,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"["}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["f1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"]"}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":11,"schema_name":"","table_name":"VARCHAR_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["VARCHAR_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"STRING","text":"["}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["f1"]}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"]"}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":8,"schema_name":"","table_name":"CHAR_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CHAR_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"(SELECT 1,2,3 UNION SELECT 4,5,6) INTERSECT SELECT 4,5,6;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT q1,q2 FROM int8_tbl EXCEPT SELECT q2,q1 FROM int8_tbl\nORDER BY q2,q1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["q2"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":2,"column_names":["q1"]}}]}],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["q1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":2,"column_names":["q2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":8,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":2,"column_names":["q2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":8,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT NULL INTERSECT SELECT NULL","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT t1.x FROM t1 UNION ALL BY NAME SELECT x FROM t1 ORDER BY t1.x;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["t1","x"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["t1","x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"(SELECT x FROM t1 ORDER BY y) UNION ALL BY NAME (SELECT y FROM t2 ORDER BY z) ORDER BY x DESC;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["y"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["z"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM new_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"new_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["new_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM test UNION SELECT b FROM test2 UNION SELECT b + 1 FROM test2 ORDER BY b + 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT a FROM test UNION SELECT * FROM test2 UNION SELECT * FROM test t1 ORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":58,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":65,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT x, y FROM t1 UNION BY NAME SELECT y, z FROM t2 ORDER BY 3, 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT [{'a': 42}, {'b': 84}];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 UNION (SELECT '1' UNION SELECT '1' UNION SELECT '1') UNION SELECT 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"select COUNT(*) from (SELECT DISTINCT * FROM (SELECT DISTINCT i, j, k, l FROM a UNION ALL SELECT * FROM b) t1) t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":21,"query_location_length":89,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":45,"query_location_length":61,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":97,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'select count(case'a union all select 'when a='||range||' then 1' from range(2) union all select 'end) from t' LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":7,"query_location_length":19,"literal":{"kind":"STRING","text":"select count(case"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":27,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":9,"literal":{"kind":"STRING","text":"when a="}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["range"]}}],"qualified_name":{"path":["||"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":9,"literal":{"kind":"STRING","text":" then 1"}}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":78,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":13,"literal":{"kind":"STRING","text":"end) from t"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT i, s FROM t1 EXCEPT SELECT i, s FROM t2 ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT * FROM vunion WHERE i=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"vunion","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vunion"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/csv/glob//../all_quotes.csv'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":40,"schema_name":"","table_name":"{DATA_DIR}/csv/glob//../all_quotes.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/glob//../all_quotes.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers ORDER BY i DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1/2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name, value, input_type FROM duckdb_settings() WHERE name = 'operator_memory_limit'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":10,"column_names":["input_type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_settings"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":23,"literal":{"kind":"STRING","text":"operator_memory_limit"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('extension_directories') = ['first', 'second']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":62,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":23,"literal":{"kind":"STRING","text":"extension_directories"}}}],"qualified_name":{"path":["current_setting"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":7,"literal":{"kind":"STRING","text":"first"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT duckdb_tables.schema_name, duckdb_tables.table_name, column_name FROM duckdb_tables JOIN duckdb_columns USING (table_oid);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":25,"column_names":["duckdb_tables","schema_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":24,"column_names":["duckdb_tables","table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":91,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":13,"schema_name":"","table_name":"duckdb_tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_tables"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":14,"schema_name":"","table_name":"duckdb_columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_columns"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["table_oid"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('debug_order_verification') = 'none'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":52,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":26,"literal":{"kind":"STRING","text":"debug_order_verification"}}}],"qualified_name":{"path":["current_setting"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":6,"literal":{"kind":"STRING","text":"none"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('custom_user_agent')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"literal":{"kind":"STRING","text":"custom_user_agent"}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"DESCRIBE SELECT * FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"DESCRIBE SELECT base_name AS alias_name FROM base_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"alias_name","query_location":16,"query_location_length":9,"column_names":["base_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":10,"schema_name":"","table_name":"base_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SHOW DATABASES;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"\"databases\"","query":null,"show_type":"SHOW_SPECIAL","catalog_name":"","schema_name":"","qualified_name":{"path":["\"databases\""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"describe defg.\"a.b.c\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"defg","table_name":"a.b.c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["defg","a.b.c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"summarize \nSELECT range::DATE AS range from range('2024-01-01'::DATE, '2024-04-10'::DATE, INTERVAL 1 DAY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"range","query_location":23,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["range"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"query_location_length":61,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":12,"literal":{"kind":"STRING","text":"2024-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":12,"literal":{"kind":"STRING","text":"2024-04-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"SUMMARY","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT string_agg(DISTINCT v, '|' ORDER BY length(v), v)\nFROM (VALUES ('aa'),('b'),('b'),(NULL)) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["length"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["v"]}}]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":62,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"STRING","text":"aa"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(i) FROM aggregate_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":16,"schema_name":"","table_name":"aggregate_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggregate_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT first(i ORDER BY i DESC NULLS LAST), last(i ORDER BY i DESC NULLS LAST) FROM aggregate_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":34,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":16,"schema_name":"","table_name":"aggregate_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggregate_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f.v FROM reuse_fact f JOIN reuse_owner o USING(k) WHERE o.dim_id\u003e10 ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["f","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":16,"query_location_length":12,"schema_name":"","table_name":"reuse_fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["reuse_fact"]}},"right":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":34,"query_location_length":13,"schema_name":"","table_name":"reuse_owner","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["reuse_owner"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["k"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":63,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":8,"column_names":["o","dim_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM readable_scan;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"readable_scan","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["readable_scan"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT constant_or_null(42, 1, CAST(i AS INTEGER)) FROM (VALUES ('bad')) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"constant_or_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["constant_or_null"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":56,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT platform FROM pragma_platform();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["platform"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_platform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_platform"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(getvariable('collated_max_state')), finalize(getvariable('collated_max_state'))='z';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":33,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":20,"literal":{"kind":"STRING","text":"collated_max_state"}}}],"qualified_name":{"path":["getvariable"]}}}],"qualified_name":{"path":["finalize"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":47,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":43,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":33,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":20,"literal":{"kind":"STRING","text":"collated_max_state"}}}],"qualified_name":{"path":["getvariable"]}}}],"qualified_name":{"path":["finalize"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT finalize(getvariable('ordered_collated_state'))='A';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":51,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":37,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":24,"literal":{"kind":"STRING","text":"ordered_collated_state"}}}],"qualified_name":{"path":["getvariable"]}}}],"qualified_name":{"path":["finalize"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN v IS NULL THEN NULL ELSE v END COLLATE nocase FROM collated_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":55,"child":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":40,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":19,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["v"]}},"collation":"nocase"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":15,"schema_name":"","table_name":"collated_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collated_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n,n+1 FROM (SELECT count(*) n FROM composition_input WHERE false) q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":18,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"n","query_location":26,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":17,"schema_name":"","table_name":"composition_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["composition_input"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k,count(*) FROM (SELECT NULL k FROM composition_input) q GROUP BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":23,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":17,"schema_name":"","table_name":"composition_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["composition_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s, sum(v) FROM compressed_strings GROUP BY s ORDER BY s NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":18,"schema_name":"","table_name":"compressed_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["compressed_strings"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["s"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT signbit(x) FROM (VALUES ('-0.0'::DOUBLE)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"signbit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["signbit"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":23,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"STRING","text":"-0.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (WITH c AS MATERIALIZED (SELECT i x) SELECT a.x FROM c a, c b WHERE a.x=b.x) FROM range(3) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":76,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":42,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["a","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":58,"query_location_length":13,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":63,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":68,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["b","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":92,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT o.k,o.x,o.x\u003c\u003eALL(SELECT r.y FROM rhs r WHERE r.k=o.k) FROM lhs o;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["o","x"]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":15,"query_location_length":45,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["r","y"]}],"from_table":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":40,"query_location_length":5,"schema_name":"","table_name":"rhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rhs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":3,"column_names":["r","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["o","k"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["o","x"]},"comparison_type":"COMPARE_EQUAL"}]}],"from_table":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":66,"query_location_length":5,"schema_name":"","table_name":"lhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lhs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (SELECT * FROM cte_input) SELECT z,x,z FROM c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":9,"schema_name":"","table_name":"cte_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["z"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE c(x) AS (SELECT 1 UNION ALL SELECT x+1 FROM c WHERE x\u003c5) SELECT x FROM c ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":67,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (SELECT nextval('cte_sequence') v FROM range(5)) SELECT a.v,b.v FROM c a JOIN c b ON a.v=b.v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":31,"query_location_length":23,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":14,"literal":{"kind":"STRING","text":"cte_sequence"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":3,"column_names":["a","v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":3,"column_names":["b","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":96,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":92,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":101,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":3,"column_names":["a","v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":3,"column_names":["b","v"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH d1 AS (DELETE FROM dml_cte_multi RETURNING a),\n s AS (SELECT a + 10 AS b FROM d1),\n d2 AS (DELETE FROM dml_cte_aux WHERE a IN (SELECT b - 9 FROM s) RETURNING a)\nSELECT * FROM d2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":null,"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"dml_cte_multi","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dml_cte_multi"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["a"]}]}}},{"key":"s","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":72,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":2,"schema_name":"","table_name":"d1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"d2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":139,"query_location_length":21,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":158,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["a"]},"comparison_type":"COMPARE_EQUAL"},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"dml_cte_aux","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dml_cte_aux"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["a"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":181,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":188,"query_location_length":2,"schema_name":"","table_name":"d2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l, t FROM nested_any_states WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":17,"schema_name":"","table_name":"nested_any_states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_any_states"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM explain_target;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"explain_target","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["explain_target"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (SELECT i FROM explain_data)\nSELECT a.i,b.i FROM c a JOIN c b ON a.i=b.i WHERE a.i=2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":12,"schema_name":"","table_name":"explain_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["explain_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["a","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["b","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":76,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":72,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":81,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":3,"column_names":["a","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":3,"column_names":["b","i"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["a","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*),sum(i) FROM read_csv('{TEST_DIR}/explain_source.csv', header=true, delim=',');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":31,"literal":{"kind":"STRING","text":"{TEST_DIR}/explain_source.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 AS result UNION ALL SELECT 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"result","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT abs(i) FROM (VALUES (-7), (NULL), (2), (-7)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["abs"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-7"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT first_value([g]) OVER () FROM (SELECT ST_SetCRS('POINT(0 1)'::GEOMETRY, 'GEäDCRS') g FROM range(2)) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":7,"query_location_length":24,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["first_value"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":37,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":45,"query_location_length":45,"function_name":"st_setcrs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(0 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":10,"literal":{"kind":"STRING","text":"GEäDCRS"}}}],"qualified_name":{"path":["st_setcrs"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":98,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM export_dates WHERE\ndate_part('year',ts) IS DISTINCT FROM year(ts)\nOR date_part('epoch',ts) IS DISTINCT FROM epoch(ts);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"export_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["export_dates"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":40,"query_location_length":98,"children":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":40,"query_location_length":46,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["year"]}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":90,"query_location_length":48,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":21,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":9,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["epoch"]}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (VALUES (1,10),(2,20),(2,21),(NULL,30)) l(a,x) SEMI JOIN (VALUES (2,100),(3,200),(NULL,300)) r(b,y) ON a=b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":59,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":71,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":117,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["b"]}},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (VALUES (1,10),(2,20),(2,20),(NULL,30)) l(a,x) LEFT JOIN (VALUES (2,20),(3,30),(NULL,40)) r(b,y) ON a=b OR x=y;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":63,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":71,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":114,"query_location_length":10,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["y"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v, typeof(v) FROM json_ordering ORDER BY v NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":13,"schema_name":"","table_name":"json_ordering","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["json_ordering"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l.i,__mark_join_marker FROM mark_boundary_l l JOIN BY (TYPE MARK) mark_boundary_r r ON l.i IS DISTINCT FROM r.i ORDER BY l.i NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":3,"column_names":["l","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":65,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":35,"query_location_length":17,"schema_name":"","table_name":"mark_boundary_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mark_boundary_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":73,"query_location_length":17,"schema_name":"","table_name":"mark_boundary_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mark_boundary_r"]}},"condition":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":94,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":3,"column_names":["l","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":3,"column_names":["r","i"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::STRUCT(a INTEGER,b INTEGER)),(1,{'a':1,'b':2}),(2,{'a':2,'b':1}),(3,{'a':1,'b':2}),(4,{'a':1,'b':NULL::INTEGER})) p(id,k) JOIN BY(TYPE MARK) (VALUES ({'a':1,'b':2}),({'a':1,'b':2}),({'a':1,'b':NULL::INTEGER})) b(k) ON p.k \u003c\u003e b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":199,"query_location_length":106,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":130,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":178,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":218,"query_location_length":68,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":227,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":232,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":238,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":248,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":254,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":259,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":264,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":274,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":276,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":295,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":295,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":302,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::INTEGER[]),(1,[1,2]),(2,[2,1]),(3,[1,2]),(4,[1,NULL::INTEGER])) p(id,k) JOIN BY(TYPE MARK) (VALUES ([1,2]),([1,2]),([1,NULL::INTEGER])) b(k) ON p.k \u003e= b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":149,"query_location_length":82,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":80,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":168,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":177,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":193,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":200,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":202,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":221,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::TUPLE(INTEGER,INTEGER)),(1,row(1,NULL::INTEGER))) p(id,k) JOIN BY(TYPE MARK) (SELECT row(1,2) k WHERE false) b ON p.k \u003c\u003e b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":135,"query_location_length":66,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":66,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":22,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["TUPLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":20,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":154,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":162,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":191,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 = ANY(SELECT 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":17,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT o.g,o.k,o.x,o.x\u003c\u003eANY(SELECT r.y FROM r WHERE r.g=o.g AND r.k=o.k) m FROM l o;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["o","x"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"m","query_location":19,"query_location_length":53,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["r","y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":52,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":3,"column_names":["r","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["o","g"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["r","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["o","k"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["o","x"]},"comparison_type":"COMPARE_NOTEQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":80,"query_location_length":3,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT __mark_join_marker FROM (VALUES (1,3),(NULL::INTEGER,2)) l(a,c) JOIN BY (TYPE MARK) (VALUES (2,1),(NULL::INTEGER,2)) r(b,d) ON a\u003cb ORDER BY a NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":66,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":31,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","c"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":91,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","d"]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":134,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["b"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_contains([needle], 'BANANA'), list_position([needle], 'BANANA') FROM nested_input WHERE id=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"list_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":6,"column_names":["needle"]}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"STRING","text":"BANANA"}}}],"qualified_name":{"path":["list_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":33,"function_name":"list_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":6,"column_names":["needle"]}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":8,"literal":{"kind":"STRING","text":"BANANA"}}}],"qualified_name":{"path":["list_position"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":12,"schema_name":"","table_name":"nested_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_input"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i,CASE WHEN i=4 THEN NULL ELSE [s COLLATE NOCASE] END v FROM (VALUES (0,'A'),(1,'a'),(2,'B'),(3,NULL),(4,'A')) t(i,s) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"CASE","type":"CASE_EXPR","alias":"v","query_location":9,"query_location_length":51,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":19,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":68,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast_to_type(['A'], array_value('x' COLLATE nocase))[1]='a', (array_value('A' COLLATE nocase)::VARCHAR[])[1]='a';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":59,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":59,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"cast_to_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":31,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"collation":"nocase"}}],"qualified_name":{"path":["array_value"]}}}],"qualified_name":{"path":["cast_to_type"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":51,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":112,"query_location_length":3,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":100,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":31,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":81,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"nocase"}}],"qualified_name":{"path":["array_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT i,rowid,row_number() OVER () n FROM numbered_scan) WHERE i\u003e=299990 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":5,"column_names":["rowid"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"n","query_location":30,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":13,"schema_name":"","table_name":"numbered_scan","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["numbered_scan"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":79,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":6,"literal":{"kind":"INTEGER","text":"299990"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a_ok FROM (VALUES ('a',1),('b',2)) t(k,v) PIVOT (sum(v) AS ok,sum(CASE WHEN v=2 THEN error('pivot export error')::INTEGER ELSE v END) AS effect FOR k IN ('a','b','z'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["a_ok"]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":56,"query_location_length":117,"source":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":17,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"ok","query_location":56,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"effect","query_location":69,"query_location_length":71,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":73,"query_location_length":66,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":119,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":27,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":20,"literal":{"kind":"STRING","text":"pivot export error"}}}],"qualified_name":{"path":["error"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["v"]}}}],"qualified_name":{"path":["sum"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["k"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM (VALUES ('a',1),('a',2),('b',NULL)) t(k,v)\nPIVOT (list(v) FOR k IN ('a','b','z'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":55,"query_location_length":30,"source":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":5,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]}}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["k"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id,row_number() OVER(ORDER BY i NULLS LAST,id),sum(i) OVER(PARTITION BY label),count(*) OVER() FROM scope_rows WHERE id\u003c\u003e3 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":10,"query_location_length":43,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":54,"query_location_length":31,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":5,"column_names":["label"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":86,"query_location_length":15,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":107,"query_location_length":10,"schema_name":"","table_name":"scope_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scope_rows"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":124,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(v) OVER() FROM (SELECT nextval('scope_sequence') v FROM range(2)) q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":13,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":26,"query_location_length":50,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":34,"query_location_length":25,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":16,"literal":{"kind":"STRING","text":"scope_sequence"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":67,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list(x ORDER BY x NULLS LAST) FROM pure_values_input, LATERAL (VALUES (i),(-1)) v(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":54,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":17,"schema_name":"","table_name":"pure_values_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pure_values_input"]}},"right":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":69,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id,sum(v) OVER (ORDER BY k RANGE BETWEEN 0 PRECEDING AND 0 FOLLOWING)\nFROM frame_values ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":66,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]}}],"start":"EXPR_PRECEDING_RANGE","end":"EXPR_FOLLOWING_RANGE","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":12,"schema_name":"","table_name":"frame_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["frame_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x, sum(x) OVER (ORDER BY x DESC NULLS LAST RANGE BETWEEN 1 FOLLOWING AND 2 FOLLOWING) FROM (VALUES (1,1),(2,2),(2,1),(4,NULL),(NULL,1)) t(x,d) ORDER BY x NULLS FIRST, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":82,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}}],"start":"EXPR_FOLLOWING_RANGE","end":"EXPR_FOLLOWING_RANGE","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":98,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","d"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x, sum(x) OVER (ORDER BY x RANGE BETWEEN (SELECT nextval('range_origin_calls')) PRECEDING AND CURRENT ROW)\nFROM (VALUES (1::BIGINT),(2),(3)) t(x) ORDER BY x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":103,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}}],"start":"EXPR_PRECEDING_RANGE","end":"CURRENT_ROW_RANGE","start_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":48,"query_location_length":38,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":29,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":20,"literal":{"kind":"STRING","text":"range_origin_calls"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":119,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE r(k,v) USING KEY(k,last(nextval('seq')) AS v) AS (VALUES(1,1) UNION ALL SELECT k+1,v FROM r WHERE k\u003c4) SELECT k,v FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":34,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["last"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"r","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":34,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]}}}],"qualified_name":{"path":["last"]}}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":134,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE c(x) AS (SELECT 1 UNION ALL SELECT count(*)::INTEGER FROM c WHERE false) SELECT x FROM c LIMIT 4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE c(x) USING KEY(x) AS (SELECT 1 UNION ALL SELECT x+1 FROM c WHERE x\u003c3) SELECT x FROM c ORDER BY x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":80,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::VARCHAR COLLATE nocase WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":28,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"collation":"nocase"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH RECURSIVE c(k,v) USING KEY(k,list(v)) AS (SELECT 1,1 UNION ALL SELECT 2,count(*)::INTEGER FROM recurring.c WHERE false HAVING nextval('seq')\u003c3) SELECT * FROM c ORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]}}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"query_location_length":11,"schema_name":"recurring","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","c"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":131,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]}}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":156,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t WHERE regexp_full_match(v, 'goo.e') ORDER BY v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":29,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":7,"literal":{"kind":"STRING","text":"goo.e"}}}],"qualified_name":{"path":["regexp_full_match"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x,x::INTEGER,grouping(x,x::INTEGER),count(*) FROM (VALUES (1,10),(1,20),(NULL,5),(2,NULL),(2,NULL)) t(x,y) GROUP BY GROUPING SETS ((x),(x::INTEGER),(),(x));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":20,"query_location_length":22,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":57,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":1,"column_names":["x"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"group_sets":[[0],[1],[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT sum(x) EXPORT_STATE s FROM (VALUES(1))t(x))t WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":22,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":true,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":49,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(i) FROM (VALUES (1),(2),(NULL)) v(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":21,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i \u003e 100, i \u003c 100 FROM bounded_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":16,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":14,"schema_name":"","table_name":"bounded_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bounded_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min(v), max(v), min(v, 2), max(v, 2) FROM (VALUES (2::VARIANT), (1::VARIANT), (NULL), (2::VARIANT)) t(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":49,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT i,CASE WHEN i%5=0 THEN NULL ELSE i%3 END v FROM range(10000)t(i) WHERE i%2=0) USING SAMPLE 50% (system,42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":85,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"CASE","type":"CASE_EXPR","alias":"v","query_location":24,"query_location_length":38,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":70,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":50.0},"is_percentage":true,"method":"System","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM sample_source USING SAMPLE 31 (system) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"sample_source","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sample_source"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":31},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM range(1) t(i) LIMIT (SELECT 'bad')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":14,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i+2 FROM (VALUES (1),(2),(4),(NULL)) t(i) WHERE i+1\u003e2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":16,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":55,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('export_sequence');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":17,"literal":{"kind":"STRING","text":"export_sequence"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT second,first.a,first.b.d::BIGINT,second FROM secret.paths ORDER BY second;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":6,"column_names":["second"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["second"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":7,"column_names":["first","a"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":9,"column_names":["first","b","d"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":6,"column_names":["second"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":12,"schema_name":"secret","table_name":"paths","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["secret","paths"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (first.b::STRUCT(c BIGINT,d BIGINT)).d FROM secret.paths_twice ORDER BY second;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":6,"column_names":["second"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":38,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":7,"column_names":["first","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":25,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"c","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"d","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"STRING","text":"d"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":18,"schema_name":"secret","table_name":"paths_twice","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["secret","paths_twice"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1,NULL] x UNION ALL SELECT [2,3] x WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":35,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT b[CASE WHEN id=1 THEN error('slice bound')::BIGINT ELSE 1 END:] FROM slice_input ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":62,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":9,"query_location_length":59,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":19,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":20,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":13,"literal":{"kind":"STRING","text":"slice bound"}}}],"qualified_name":{"path":["error"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":11,"schema_name":"","table_name":"slice_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["slice_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM repeat_row(1::SMALLINT,NULL::VARCHAR,{'a''b':[1,NULL]},num_rows=3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":66,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat_row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a'b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a'b","query_location":59,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":8,"column_names":["num_rows"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}}],"qualified_name":{"path":["repeat_row"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_csv('__TEST_DIR__/generic_source.csv', header := true, delim := '|', auto_detect := true) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":94,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":33,"literal":{"kind":"STRING","text":"__TEST_DIR__/generic_source.csv"}}},{"name":"header","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"header","query_location":68,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"delim","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"delim","query_location":83,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}},{"name":"auto_detect","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"auto_detect","query_location":103,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM read_parquet('__TEST_DIR__/retained_predicates_parquet/*/*.parquet',hive_partitioning := true) WHERE array_to_string([p::VARCHAR, 'x'], '/') = '1/x' ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":94,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_parquet","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":54,"literal":{"kind":"STRING","text":"__TEST_DIR__/retained_predicates_parquet/*/*.parquet"}}},{"name":"hive_partitioning","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hive_partitioning","query_location":103,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_parquet"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":47,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":39,"function_name":"array_to_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["p"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["array_to_string"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":5,"literal":{"kind":"STRING","text":"1/x"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"text value\",i,\"text value\" FROM scan_rows WHERE i\u003e=2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["text value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["text value"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":9,"schema_name":"","table_name":"scan_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scan_rows"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":56,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s, row_number() OVER (ORDER BY NULL || s, s) FROM t ORDER BY s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":10,"query_location_length":41,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":9,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["||"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["s"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.s,count(u.v),sum(u.v) FROM t LEFT JOIN u USING(i) GROUP BY t.s ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["u","v"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["u","v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":1,"schema_name":"","table_name":"u","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u"]}},"condition":null,"join_type":"LEFT","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["t","s"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT quantile_disc(x, [0.0] ORDER BY x DESC) FROM (VALUES (1), (2), (2), (NULL)) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_disc"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":52,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('type_source_calls');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":19,"literal":{"kind":"STRING","text":"type_source_calls"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(abs(i)) FROM (VALUES (-2),(2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["abs"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(CAST(42 AS INTEGER) AS BIGINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":39,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::INTEGER IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":21,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT alias(i % 2) AS p FROM scalar_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":7,"query_location_length":12,"function_name":"alias","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}}}],"qualified_name":{"path":["alias"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":13,"schema_name":"","table_name":"scalar_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scalar_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(NULL::TUPLE(VARCHAR) AS TUPLE(SMALLINT));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":45,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":14,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["TUPLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":15,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}],"qualified_name":{"path":["TUPLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag(u),ST_AsText(union_extract(u,'v')) FROM (SELECT union_value(v := 'POINT(1 2)'::GEOMETRY('OGC:CRS84'))::alias_union u);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["union_tag"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":31,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":20,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}}],"qualified_name":{"path":["union_extract"]}}}],"qualified_name":{"path":["st_astext"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":57,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"u","query_location":118,"query_location_length":13,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":53,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":94,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":21,"catalog":"","schema":"","type_name":"GEOMETRY","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":11,"literal":{"kind":"STRING","text":"OGC:CRS84"}}],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["union_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":11,"catalog":"","schema":"","type_name":"alias_union","children":[],"qualified_name":{"path":["alias_union"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('values_input_sequence');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":23,"literal":{"kind":"STRING","text":"values_input_sequence"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x,y,sum(DISTINCT y) FILTER (WHERE y\u003e10) OVER (ORDER BY x ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM (VALUES (1,10),(2,20),(2,NULL),(3,30),(NULL,40)) t(x,y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["y"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":11,"query_location_length":110,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":127,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM unnest([4, NULL, 4, 7]) WITH ORDINALITY ORDER BY ordinality;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":10,"column_names":["ordinality"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":[],"with_ordinality":"WITH_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT 1 FROM range(2) r, (DESCRIBE SELECT 1 AS a, 2 AS b) d LIMIT 3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":51,"left":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":36,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":48,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(i) FROM overflow_test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":13,"schema_name":"","table_name":"overflow_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["overflow_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN memory_usage_bytes \u003c 8_000_000\n THEN 'ok'\n ELSE error(concat('expected \u003c 8000000 bytes, got ', memory_usage_bytes))\n END\nFROM duckdb_memory()\nWHERE tag = 'IN_MEMORY_TABLE'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":158,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":17,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":18,"column_names":["memory_usage_bytes"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"INTEGER","text":"8_000_000"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":67,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":60,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":32,"literal":{"kind":"STRING","text":"expected \u003c 8000000 bytes, got "}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":18,"column_names":["memory_usage_bytes"]}}],"qualified_name":{"path":["concat"]}}}],"qualified_name":{"path":["error"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":171,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_memory","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_memory"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":193,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":3,"column_names":["tag"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":17,"literal":{"kind":"STRING","text":"IN_MEMORY_TABLE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select min(k), max(k) from t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM duckdb_columns();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM old.v_empty_list","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":16,"schema_name":"old","table_name":"v_empty_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["old","v_empty_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT plus2(4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"plus2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["plus2"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM persistent","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"persistent","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["persistent"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT total_blocks\nFROM pragma_database_size();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["total_blocks"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MEDIAN(count) FROM pragma_storage_info('integers');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"median","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["count"]}}],"qualified_name":{"path":["median"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":10,"literal":{"kind":"STRING","text":"integers"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('alp') WHERE compression='ALP';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"alp"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":5,"literal":{"kind":"STRING","text":"ALP"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM list_doubles WHERE i=5700","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"list_doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_doubles"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5700"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('alp_v1_4_0.t') WHERE segment_type = 'DOUBLE' ORDER BY compression LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":11,"column_names":["compression"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":14,"literal":{"kind":"STRING","text":"alp_v1_4_0.t"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('all_types') WHERE segment_type == '{type}' AND compression != 'ALPRD';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":11,"literal":{"kind":"STRING","text":"all_types"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":8,"literal":{"kind":"STRING","text":"{type}"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":92,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":7,"literal":{"kind":"STRING","text":"ALPRD"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE column_name='a' AND compression='BitPacking';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":12,"literal":{"kind":"STRING","text":"BitPacking"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a from test limit 5 offset 12000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"literal":{"kind":"INTEGER","text":"12000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT temperature::VARCHAR FROM temperatures_float LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["temperature"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":18,"schema_name":"","table_name":"temperatures_float","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["temperatures_float"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM pragma_storage_info('t')\nWHERE segment_type = 'VARCHAR'\n AND compression = 'DICT_FSST'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":52,"query_location_length":56,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":83,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":11,"literal":{"kind":"STRING","text":"DICT_FSST"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from uncompressed_data order by i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":17,"schema_name":"","table_name":"uncompressed_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uncompressed_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.min_string_length, s.max_string_length, s.total_string_length\nFROM (SELECT stats(value) s FROM repeated LIMIT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":19,"column_names":["s","min_string_length"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":19,"column_names":["s","max_string_length"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":21,"column_names":["s","total_string_length"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":76,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":84,"query_location_length":12,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":5,"column_names":["value"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":8,"schema_name":"","table_name":"repeated","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["repeated"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(s), sum(length(s)) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":14,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["length"]}}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT BOOL_OR(compression ILIKE 'fsst%') FROM pragma_storage_info('test')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":13,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":11,"column_names":["compression"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"fsst%"}}}],"qualified_name":{"path":["~~*"]}}}],"qualified_name":{"path":["bool_or"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":47,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM test WHERE a=false","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":32,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(a), MIN(a), MAX(a), COUNT(*) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT message.split(': ')[2]::INTEGER FROM duckdb_logs\nwhere\n\tmessage.starts_with('ColumnDataCheckpointer FinalAnalyze') and\n\tmessage.contains('test_roaring') and\n\tmessage.contains('VALIDITY') and\n\tmessage.contains('ROARING');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":26,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"split","schema":"message","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"STRING","text":": "}}}],"qualified_name":{"path":["message","split"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":11,"schema_name":"","table_name":"duckdb_logs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_logs"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":163,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":58,"function_name":"starts_with","schema":"message","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":37,"literal":{"kind":"STRING","text":"ColumnDataCheckpointer FinalAnalyze"}}}],"qualified_name":{"path":["message","starts_with"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":32,"function_name":"contains","schema":"message","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":14,"literal":{"kind":"STRING","text":"test_roaring"}}}],"qualified_name":{"path":["message","contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":165,"query_location_length":28,"function_name":"contains","schema":"message","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":10,"literal":{"kind":"STRING","text":"VALIDITY"}}}],"qualified_name":{"path":["message","contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":199,"query_location_length":27,"function_name":"contains","schema":"message","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":9,"literal":{"kind":"STRING","text":"ROARING"}}}],"qualified_name":{"path":["message","contains"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('test') WHERE segment_type ILIKE 'BOOL' AND compression != 'Roaring';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":54,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":6,"literal":{"kind":"STRING","text":"BOOL"}}}],"qualified_name":{"path":["~~*"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":88,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":9,"literal":{"kind":"STRING","text":"Roaring"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), bool_and(value IS NOT DISTINCT FROM CASE WHEN id%13=0 THEN NULL ELSE (id//2)%1000 END) FROM db.numbers WHERE id%2048\u003c70 OR id%2048\u003e=2046;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":86,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":26,"query_location_length":76,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":5,"column_names":["value"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":53,"query_location_length":49,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":7,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":12,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":5,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["%"]}}}}}],"qualified_name":{"path":["bool_and"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":10,"schema_name":"db","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","numbers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":126,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":126,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":2,"literal":{"kind":"INTEGER","text":"70"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":140,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":140,"query_location_length":7,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2046"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lower(compression)!='fsst' FROM pragma_storage_info('blob_empty') WHERE segment_type ILIKE 'BLOB' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":11,"column_names":["compression"]}}],"qualified_name":{"path":["lower"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"fsst"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":12,"literal":{"kind":"STRING","text":"blob_empty"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":6,"literal":{"kind":"STRING","text":"BLOB"}}}],"qualified_name":{"path":["~~*"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a[3] from test limit 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM (\n\tSELECT * FROM target\n\tEXCEPT\n\tSELECT * FROM source WHERE id % 3 \u003c\u003e 0\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":73,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":6,"schema_name":"","table_name":"target","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["target"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":61,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":6,"schema_name":"","table_name":"source","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["source"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":81,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM test WHERE i%7=0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":32,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM enc.blobs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"enc","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["enc","blobs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*), sum(i) from '{TEST_DIR}/test_block_size.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":36,"schema_name":"","table_name":"{TEST_DIR}/test_block_size.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/test_block_size.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), SUM(c0) FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), SUM(c0) FROM wide_tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["c0"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"wide_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(a), COUNT(a) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*), sum(c) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT compression FROM pragma_storage_info('db.t') WHERE segment_type = 'BLOB' AND compression != 'Uncompressed';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"db.t"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":6,"literal":{"kind":"STRING","text":"BLOB"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":84,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":14,"literal":{"kind":"STRING","text":"Uncompressed"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT val = ('row1023' || repeat('Y', 5000))::BLOB FROM db.t2 WHERE id = 1023;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":44,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["val"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":30,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":9,"literal":{"kind":"STRING","text":"row1023"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":17,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":5,"schema_name":"db","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","t2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1023"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT total_blocks FROM pragma_database_size()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["total_blocks"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT segment_info FROM pragma_storage_info('bp_tbl', loaded_segments_only=true) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["segment_info"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":56,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":8,"literal":{"kind":"STRING","text":"bp_tbl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":20,"column_names":["loaded_segments_only"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(task_count) FROM duckdb_logs_parsed('AsyncTaskSchedule')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":10,"column_names":["task_count"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_logs_parsed","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":19,"literal":{"kind":"STRING","text":"AsyncTaskSchedule"}}}],"qualified_name":{"path":["duckdb_logs_parsed"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_duckdb('{TEST_DIR}/read_duckdb_index.db') WHERE i=42873","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":46,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_duckdb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/read_duckdb_index.db"}}}],"qualified_name":{"path":["read_duckdb"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":5,"literal":{"kind":"INTEGER","text":"42873"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(val) FROM '{TEST_DIR}/read_duckdb_top_n*.db' WHERE grp::VARCHAR = '2'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":34,"schema_name":"","table_name":"{TEST_DIR}/read_duckdb_top_n*.db","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/read_duckdb_top_n*.db"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":18,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["grp"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k, v FROM big WHERE k IN (10, 200000, 11, 200001, 12, 200002) ORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":3,"schema_name":"","table_name":"big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":36,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200000"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200001"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200002"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid, i, v, added FROM rowid_gap_alter.t WHERE i IN (2047, 4096) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["added"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":17,"schema_name":"rowid_gap_alter","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_alter","t"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":60,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2047"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4096"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min(rowid), max(rowid), count(*) FROM rowid_gap_vacuum_idx.t WHERE i \u003e= 4096;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":22,"schema_name":"rowid_gap_vacuum_idx","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_vacuum_idx","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":74,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4096"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid, i FROM remap_geom.t WHERE i = 2048;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"remap_geom","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remap_geom","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min(rowid), max(rowid), count(*) FROM rowid_gap_old_storage_idx.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":27,"schema_name":"rowid_gap_old_storage_idx","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_old_storage_idx","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT min(rowid), max(rowid), count(*) FROM remap_tasks.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":13,"schema_name":"remap_tasks","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remap_tasks","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid, i FROM remap_collision.t WHERE g = 9 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":17,"schema_name":"remap_collision","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remap_collision","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM rowid_gap_lookup_db.leading WHERE rowid = 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":27,"schema_name":"rowid_gap_lookup_db","table_name":"leading","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_lookup_db","leading"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT rowid, i FROM rowid_gap_lookup_db.middle WHERE rowid IN (42, 122880, 245760, 368640) ORDER BY rowid;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":26,"schema_name":"rowid_gap_lookup_db","table_name":"middle","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_lookup_db","middle"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":63,"query_location_length":28,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["rowid"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"literal":{"kind":"INTEGER","text":"122880"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":6,"literal":{"kind":"INTEGER","text":"245760"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":6,"literal":{"kind":"INTEGER","text":"368640"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LENGTH(a) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tags FROM duckdb_databases() WHERE database_name = 'storage_versions66';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["tags"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":20,"literal":{"kind":"STRING","text":"storage_versions66"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('max_temp_directory_size') a WHERE a == '0 bytes';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":7,"query_location_length":42,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":25,"literal":{"kind":"STRING","text":"max_temp_directory_size"}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":9,"literal":{"kind":"STRING","text":"0 bytes"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM TBL WHERE id=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["TBL"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COALESCE(s.child_stats.s.total_string_length, 20000) FROM (SELECT stats(b) s FROM test LIMIT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":7,"query_location_length":52,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":35,"column_names":["s","child_stats","s","total_string_length"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":65,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":73,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM a WHERE id=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM f","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"f","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["f"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t FROM interval WHERE t \u003e INTERVAL '10' YEAR ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"interval","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["interval"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["t"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":18,"function_name":"to_years","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"STRING","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_years"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM unsigned WHERE c = 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"unsigned","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unsigned"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select v from tbl WHERE i \u003c 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":24,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM (VALUES\n\t(1, '{\"a\": 1, \"b\": \"x\", \"c\": 100}'::VARIANT),\n\t(2, '{\"a\": 2, \"b\": \"y\"}'::VARIANT),\n\t(3, '{\"a\": 3, \"b\": \"z\", \"d\": [1, 2, 3]}'::VARIANT),\n\t(4, NULL::VARIANT),\n\t(5, '{\"a\": 40, \"b\": \"m\"}'::VARIANT),\n\t(6, '{\"a\": 6, \"b\": \"hello\", \"g\": \"extra\"}'::VARIANT),\n\t(7, '{\"a\": 7, \"b\": \"aaa\"}'::VARIANT),\n\t(8, '{\"a\": 5, \"b\": \"q\", \"e\": {\"nested\": true}}'::VARIANT),\n\t(9, '{\"a\": 5, \"b\": \"q\"}'::VARIANT),\n\t(10, '{\"a\": 100, \"b\": \"z\"}'::VARIANT)\n) tbl(id, v) WHERE v \u003e '{\"a\": 5, \"b\": \"q\"}'::VARIANT ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":511,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":15,"query_location_length":435,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":30,"literal":{"kind":"STRING","text":"{\"a\": 1, \"b\": \"x\", \"c\": 100}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"a\": 2, \"b\": \"y\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":36,"literal":{"kind":"STRING","text":"{\"a\": 3, \"b\": \"z\", \"d\": [1, 2, 3]}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":169,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":171,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":207,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":21,"literal":{"kind":"STRING","text":"{\"a\": 40, \"b\": \"m\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":209,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":262,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":38,"literal":{"kind":"STRING","text":"{\"a\": 6, \"b\": \"hello\", \"g\": \"extra\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":264,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":301,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":279,"query_location_length":22,"literal":{"kind":"STRING","text":"{\"a\": 7, \"b\": \"aaa\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":303,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":315,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":361,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":318,"query_location_length":43,"literal":{"kind":"STRING","text":"{\"a\": 5, \"b\": \"q\", \"e\": {\"nested\": true}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":363,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":375,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":398,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":378,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"a\": 5, \"b\": \"q\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":400,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":412,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":438,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":416,"query_location_length":22,"literal":{"kind":"STRING","text":"{\"a\": 100, \"b\": \"z\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":440,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","v"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":468,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":468,"query_location_length":1,"column_names":["v"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":492,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":472,"query_location_length":20,"literal":{"kind":"STRING","text":"{\"a\": 5, \"b\": \"q\"}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":494,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.min IS NULL\nFROM (SELECT stats(variant_comparator(col)) s FROM objs LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":13,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":26,"query_location_length":59,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":34,"query_location_length":30,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":23,"function_name":"variant_comparator","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["variant_comparator"]}}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":4,"schema_name":"","table_name":"objs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["objs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v.x FROM variant_extract_pushdown WHERE v.x = 5 OR v.y = 400 ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["v","x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":24,"schema_name":"","table_name":"variant_extract_pushdown","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["variant_extract_pushdown"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":47,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["v","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["v","y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":3,"literal":{"kind":"INTEGER","text":"400"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select s.fully_shredded.stats.min, s.fully_shredded.stats.max from (select stats(col.a.c) s from tbl limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":26,"column_names":["s","fully_shredded","stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":26,"column_names":["s","fully_shredded","stats","max"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":67,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":75,"query_location_length":14,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["col","a","c"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(v AS STRUCT(zz INTEGER)) FROM t WHERE id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":18,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"zz","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(obj.a.missing) FROM wrong_type;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":13,"column_names":["obj","a","missing"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"wrong_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wrong_type"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM pragma_storage_info('shredded_integer') WHERE column_path = '[0, 2, 2]'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":18,"literal":{"kind":"STRING","text":"shredded_integer"}}}],"qualified_name":{"path":["pragma_storage_info"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":11,"column_names":["column_path"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":11,"literal":{"kind":"STRING","text":"[0, 2, 2]"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, n.payload.obj.a::BIGINT, n.payload.obj.b::VARCHAR\nFROM nested_variant_view WHERE id \u003e= 19 ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":15,"column_names":["n","payload","obj","a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":15,"column_names":["n","payload","obj","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":19,"schema_name":"","table_name":"nested_variant_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_variant_view"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":92,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT wal_size FROM pragma_database_size() WHERE database_name = 'autocheckpoint_db';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["wal_size"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":19,"literal":{"kind":"STRING","text":"autocheckpoint_db"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM tbl where (a) = 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl WHERE a = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select r from original;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"original","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["original"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t WHERE a='w'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"w"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), SUM(a), SUM(b), MIN(a), MAX(a), MIN(b), MAX(b) FROM test WHERE a\u003e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":80,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM timestamp ORDER BY t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["t"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (FALSE) IN (TRUE, (SELECT TIME '13:35:07' FROM t1) BETWEEN t0.c0 AND t0.c0) FROM t0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":18,"query_location_length":64,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":58,"query_location_length":23,"input":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":25,"query_location_length":32,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"13:35:07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":5,"column_names":["t0","c0"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":5,"column_names":["t0","c0"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers i1 WHERE i=ANY(SELECT i FROM integers WHERE i=i1.i) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":32,"query_location_length":42,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i=ALL(SELECT i FROM integers WHERE i=i1.i OR i IS NULL) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":55,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":42,"query_location_length":19,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["i1","i"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":54,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_NOTEQUAL"}]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":68,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT row(NULL::INT, 8) IN (SELECT * FROM (VALUES (2, 6), (3, 7)) rhs(x, y)),\n row(NULL::INT, 8) NOT IN (SELECT * FROM (VALUES (2, 6), (3, 7)) rhs(x, y))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":49,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":36,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":43,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_EQUAL"},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":86,"query_location_length":74,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":111,"query_location_length":49,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":119,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":126,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":17,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_EQUAL"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT row(map([1, 2], [1, NULL::INT]), 0) IN (\n\tSELECT * FROM (VALUES (map([1, 2], [1, 2]), 0)) rhs(a, b)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":46,"query_location_length":62,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":56,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":63,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":19,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":27,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (0, 0) \u003c ANY(SELECT 1, 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":25,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_LESSTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (0, 0) \u003c ALL(SELECT 1, 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":25,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (1, 2) = ANY(SELECT 1, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":25,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (1, 1) \u003c ANY(SELECT 1, 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":25,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_LESSTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (1, NULL::INT) \u003c\u003e ANY (SELECT * FROM (VALUES (1, 2)) t(x, y))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":61,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":37,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_NOTEQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 = ANY(SELECT 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":17,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 IN (SELECT * FROM integers) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":24,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":20,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 2 \u003e SOME(SELECT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":18,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"comparison_type":"COMPARE_GREATERTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers WHERE i \u003c= ALL(SELECT i FROM integers WHERE i IS NOT NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":29,"query_location_length":52,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":69,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHAN"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, i \u003c\u003e ANY(SELECT i FROM integers WHERE i\u003e10) FROM integers ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":43,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":48,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_NOTEQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers WHERE i \u003e ANY(SELECT i FROM integers) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"query_location_length":31,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHAN"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, i \u003e= ANY(SELECT i1.i FROM integers i1, integers i2, integers i3, integers i4, integers i5, integers i6 WHERE i1.i IS NOT NULL) FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":126,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["i1","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":81,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":36,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":49,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i3","sample":null,"query_location":62,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i4","sample":null,"query_location":75,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i5","sample":null,"query_location":88,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i6","sample":null,"query_location":101,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":124,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":4,"column_names":["i1","i"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":142,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'B' COLLATE NOCASE \u003e= ALL (SELECT x COLLATE NOCASE FROM (VALUES ('a'),('c')) s(x));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":82,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":41,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["x"]},"collation":"NOCASE"}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":63,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}},"collation":"NOCASE"},"comparison_type":"COMPARE_LESSTHAN"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l IN (SELECT i1.l FROM (SELECT * FROM lists i1 WHERE i1.l=lists.l) i1 RIGHT JOIN generate_series(1, 2, 1) tbl(s) ON i1.l=ARRAY[tbl.s]) FROM lists ORDER BY l NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":129,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["i1","l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":77,"query_location_length":63,"left":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":30,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":45,"query_location_length":8,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":7,"column_names":["lists","l"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":88,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["s"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":128,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":5,"column_names":["tbl","s"]}]}},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers i1 WHERE EXISTS(SELECT i FROM integers WHERE i=i1.i) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":32,"query_location_length":43,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT COVAR_POP(i2.i, i1.i) FROM integers i2) FROM integers i1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":47,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":21,"function_name":"covar_pop","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["i2","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["covar_pop"]}}],"from_table":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":42,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":60,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM t WHERE NOT EXISTS (SELECT 1 FROM t WHERE NOT EXISTS (SELECT 1 FROM e));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":22,"query_location_length":63,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":59,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":56,"query_location_length":28,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":60,"query_location_length":24,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":1,"schema_name":"","table_name":"e","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["e"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE EXISTS(SELECT * FROM integers) ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"query_location_length":30,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":43,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(i) FROM integers WHERE 1 IN (SELECT * FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":39,"query_location_length":24,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":47,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT depth, id AS selected FROM joined_walk) q,\n (VALUES (1), (2)) v(x) WHERE selected = 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":82,"left":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":21,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["depth"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"selected","query_location":36,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":11,"schema_name":"","table_name":"joined_walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["joined_walk"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":76,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":8,"column_names":["selected"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM owner_walk a JOIN owner_walk b ON a.person = b.person WHERE a.person = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":40,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"owner_walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["owner_walk"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":39,"query_location_length":12,"schema_name":"","table_name":"owner_walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["owner_walk"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":8,"column_names":["a","person"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":8,"column_names":["b","person"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":8,"column_names":["a","person"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH o AS MATERIALIZED (SELECT * FROM person WHERE selected) SELECT count(*),sum(q.x) FROM o JOIN (SELECT * FROM expanded) q ON o.id = q.id AND o.tag = q.tag;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"o","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":8,"column_names":["selected"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["q","x"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":93,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":91,"query_location_length":1,"schema_name":"","table_name":"o","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["o"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":98,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":106,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"query_location_length":8,"schema_name":"","table_name":"expanded","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expanded"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":128,"query_location_length":29,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":4,"column_names":["o","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":4,"column_names":["q","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":5,"column_names":["o","tag"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":5,"column_names":["q","tag"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT *\nFROM\n (SELECT 42 AS c1) AS ref,\n (SELECT a + b + 1\n FROM\n (SELECT 1) t1(a),\n (SELECT (SELECT (SELECT ref.c1 + 1)) + 1) t2(b)\n )\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":141,"left":{"type":"SUBQUERY","alias":"ref","sample":null,"query_location":16,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":44,"query_location_length":106,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":80,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":75,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":98,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":106,"query_location_length":28,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":114,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":6,"column_names":["ref","c1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers, LATERAL (SELECT [i + 1]) t(k), LATERAL (SELECT UNNEST(k)) t2(l) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":78,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":32,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":63,"query_location_length":18,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["l"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers LEFT JOIN LATERAL (SELECT integers.i WHERE integers.i IN (1, 3)) t(b) ON (i=b) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":78,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":10,"column_names":["integers","i"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":80,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":10,"column_names":["integers","i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["b"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT currval('source_calls');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":14,"literal":{"kind":"STRING","text":"source_calls"}}}],"qualified_name":{"path":["currval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM walk_rows WHERE id = 1000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"walk_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk_rows"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1 from\n text_tbl as tt1\n inner join text_tbl as tt2 on (tt1.f1 = 'foo')\n left join text_tbl as tt3 on (tt3.f1 = 'foo')\n left join text_tbl as tt4 on (tt3.f1 = tt4.f1),\n lateral (select tt4.f1 as c0 from text_tbl as tt5 limit 1) as ss1\nwhere tt1.f1 = ss1.c0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":237,"left":{"type":"JOIN","alias":"","sample":null,"query_location":131,"query_location_length":46,"left":{"type":"JOIN","alias":"","sample":null,"query_location":83,"query_location_length":45,"left":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"tt1","sample":null,"query_location":16,"query_location_length":15,"schema_name":"","table_name":"text_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["text_tbl"]}},"right":{"type":"BASE_TABLE","alias":"tt2","sample":null,"query_location":45,"query_location_length":15,"schema_name":"","table_name":"text_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["text_tbl"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["tt1","f1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"tt3","sample":null,"query_location":93,"query_location_length":15,"schema_name":"","table_name":"text_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["text_tbl"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":6,"column_names":["tt3","f1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"tt4","sample":null,"query_location":141,"query_location_length":15,"schema_name":"","table_name":"text_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["text_tbl"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":161,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":6,"column_names":["tt3","f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":6,"column_names":["tt4","f1"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"ss1","sample":null,"query_location":189,"query_location_length":50,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":197,"query_location_length":6,"column_names":["tt4","f1"]}],"from_table":{"type":"BASE_TABLE","alias":"tt5","sample":null,"query_location":215,"query_location_length":15,"schema_name":"","table_name":"text_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["text_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":253,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":6,"column_names":["tt1","f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":262,"query_location_length":6,"column_names":["ss1","c0"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from (select f1/2 as x from int4_tbl) ss1 join int4_tbl i4 on x = f1,\n lateral (select x) ss2(y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":97,"left":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":26,"left":{"type":"SUBQUERY","alias":"ss1","sample":null,"query_location":14,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":22,"query_location_length":4,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["f1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"i4","sample":null,"query_location":56,"query_location_length":11,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":2,"column_names":["f1"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"ss2","sample":null,"query_location":89,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["y"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x.* FROM outer_rows o,\nLATERAL (SELECT y.* FROM range(1) r, LATERAL (SELECT o.*) y) x ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"x","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":11,"query_location_length":81,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":16,"query_location_length":12,"schema_name":"","table_name":"outer_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["outer_rows"]}},"right":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":38,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":46,"query_location_length":3,"relation_name":"y","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":39,"left":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":55,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"y","sample":null,"query_location":75,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":83,"query_location_length":3,"relation_name":"o","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x.* FROM generated_outer o, LATERAL (SELECT o.*) x ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"x","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":11,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":16,"query_location_length":17,"schema_name":"","table_name":"generated_outer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["generated_outer"]}},"right":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":43,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":51,"query_location_length":3,"relation_name":"o","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select (select MIN(val) from unnest(a) t(val)) from (select ARRAY[1, 2, 3, NULL]) t(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":29,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":["val"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":52,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":60,"query_location_length":20,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from (select array[42, 43, 44]) t(a) join lateral (select unnest(t.a)) t2(b) on (a[1]\u003cb) order by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":51,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":22,"query_location_length":17,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":59,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":11,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["t","a"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":90,"query_location_length":6,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":91,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["b"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ARRAY(SELECT i FROM t ORDER BY t.rowid)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":18446744073709551615,"query_location_length":0,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__array_internal_idx_1"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]}}]},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__array_internal_idx_1"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":7,"column_names":["t","rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"__array_internal_idx_1","query_location":38,"query_location_length":7,"column_names":["t","rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, ARRAY(\n\tSELECT i FROM integers WHERE i1.i=i\n) top\nFROM integers i1\nORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"top","query_location":10,"query_location_length":45,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":18446744073709551615,"query_location_length":0,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]}}]},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":65,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM lineitem GROUP BY (SELECT SUM(o_orderke) OVER () FROM orders)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":null,"group_expressions":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":32,"query_location_length":43,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":40,"query_location_length":22,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":9,"column_names":["o_orderke"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":6,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM((SELECT SUM(i))) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":11,"query_location_length":15,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT COUNT(*) FROM (SELECT UNNEST(l1.l, max_depth := 2) u)) FROM lists l1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":62,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"u","query_location":37,"query_location_length":28,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["l1","l"]}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"l1","sample":null,"query_location":75,"query_location_length":8,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT max((SELECT subq_0.c0 AS c1)) OVER () AS c6) FROM (SELECT NULL AS c0) AS subq_0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":52,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c6","query_location":15,"query_location_length":37,"function_name":"max","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":19,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":27,"query_location_length":9,"column_names":["subq_0","c0"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"subq_0","sample":null,"query_location":65,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c0","query_location":73,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1 where (1,2) not in (select 1,2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":15,"query_location_length":25,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":12,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}},"comparison_type":"COMPARE_EQUAL"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers s1 LEFT OUTER JOIN integers s2 ON s1.i=s2.i AND (SELECT CASE WHEN s2.i\u003e2 THEN TRUE ELSE FALSE END) ORDER BY s1.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":4,"column_names":["s1","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":26,"query_location_length":95,"left":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"s2","sample":null,"query_location":42,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":4,"column_names":["s1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["s2","i"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":71,"query_location_length":50,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":79,"query_location_length":41,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":89,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":4,"column_names":["s2","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (SELECT (SELECT SUM(i) FROM integers)+42+i1.i) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":29,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":67,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (SELECT MIN(i) FROM integers GROUP BY GROUPING SETS(i1.i, i) HAVING i1.i=i) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":75,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["i1","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0],[1]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["i"]}},"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":96,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(DISTINCT\n\t(SELECT concat(gen_random_uuid()::VARCHAR, r::VARCHAR))\n ) as total_seats\nFROM (SELECT 1 FROM generate_series(1, 100, 1)) AS t(r)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_seats","query_location":7,"query_location_length":75,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":46,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":17,"function_name":"gen_random_uuid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["gen_random_uuid"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["r"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":103,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":118,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["r"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select i, (select i1.i + i + i from generate_series(1, 100, 1) t(i) ORDER BY i DESC OFFSET 99) from integers i1 order by i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":84,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":36,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":100,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (WITH i2 AS (SELECT 42+i1.i AS j) SELECT j FROM i2) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":51,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"i2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":2,"schema_name":"","table_name":"i2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["i2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":72,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, i=ANY(WITH i2 AS (SELECT i FROM integers WHERE 1=0 AND i1.i=i) SELECT i FROM i2) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":80,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"i2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":14,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":2,"schema_name":"","table_name":"i2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["i2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":101,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (SELECT SUM((SELECT SUM(i))) OVER ()) FROM integers GROUP BY i ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":37,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":18,"query_location_length":28,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":22,"query_location_length":15,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, (SELECT COUNT(i2.*) FROM integers i2 WHERE i2.i\u003ei1.i) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":53,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":11,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":4,"relation_name":"i2","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":53,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":4,"column_names":["i2","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":69,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN 1 IN (SELECT (SELECT MAX(col7))) THEN 2 ELSE NULL END FROM another_T t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":63,"case_checks":[{"when_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":22,"query_location_length":27,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":30,"query_location_length":18,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["col7"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":76,"query_location_length":12,"schema_name":"","table_name":"another_T","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["another_T"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT y FROM test t2 WHERE t1.x = 5) IS NOT NULL FROM test t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":46,"query_location_length":11,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":38,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["t1","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":63,"query_location_length":7,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, a\u003e=ANY(SELECT test2.a+c-b FROM test2 WHERE c\u003e=b AND str=str2) FROM test ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":61,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":7,"column_names":["test2","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":53,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":53,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["str"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["str2"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["a"]},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT 42, 41 AS x) v1(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"v1","sample":null,"query_location":14,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"41"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT 42 AS a, 44 AS a) tbl1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":14,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a*(WITH cte AS (SELECT 42) SELECT * FROM cte) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":9,"query_location_length":43,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i IN (SELECT i1.i FROM (SELECT * FROM integers i1 WHERE i1.i=integers.i) i1 RIGHT JOIN generate_series(1, 2, 1) tbl(i) ON i1.i=tbl.i) FROM integers ORDER BY i NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":128,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["i1","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":83,"query_location_length":56,"left":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":30,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":38,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":45,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":10,"column_names":["integers","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":94,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":5,"column_names":["tbl","i"]}},"join_type":"RIGHT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT 42) AS k, MAX(i) FROM integers GROUP BY k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"k","query_location":7,"query_location_length":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE i \u003e (SELECT i FROM integers WHERE i=1) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":33,"query_location_length":34,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT UNNEST(i)) FROM (VALUES ([1])) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":18,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":31,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT 4=ANY(SELECT UNNEST(i))) FROM (VALUES ([1, 2, 3, NULL])) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":32,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":23,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":45,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT v FROM strings WHERE v=s1.v) FROM strings s1 ORDER BY v","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":36,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":4,"column_names":["s1","v"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":49,"query_location_length":10,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a.i,a.j,b.r,b.j FROM (SELECT i, j FROM test) AS a INNER JOIN (SELECT i+1 AS r,j FROM test) AS b ON a.i=b.r ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["a","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["a","j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["b","r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["b","j"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":57,"query_location_length":56,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":28,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":68,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"r","query_location":77,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":3,"column_names":["a","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":3,"column_names":["b","r"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.name, e.course, e.grade FROM students s, exams e WHERE s.id=e.sid AND (s.major = 'CS' OR s.major = 'Games Eng') AND e.grade \u003c= (SELECT AVG(e2.grade) - 1 FROM exams e2 WHERE s.id=e2.sid OR (e2.curriculum=s.major AND s.year\u003e=e2.year)) ORDER BY name, course;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":4,"column_names":["name"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"query_location_length":6,"column_names":["course"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["s","name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":8,"column_names":["e","course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["e","grade"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":38,"query_location_length":10,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"right":{"type":"BASE_TABLE","alias":"e","sample":null,"query_location":50,"query_location_length":7,"schema_name":"","table_name":"exams","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exams"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":64,"query_location_length":177,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["s","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["e","sid"]}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":80,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":7,"column_names":["s","major"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"STRING","text":"CS"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["s","major"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":11,"literal":{"kind":"STRING","text":"Games Eng"}}}]},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":125,"query_location_length":116,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":7,"column_names":["e","grade"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":136,"query_location_length":105,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":158,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":13,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":8,"column_names":["e2","grade"]}}],"qualified_name":{"path":["avg"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"e2","sample":null,"query_location":167,"query_location_length":8,"schema_name":"","table_name":"exams","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exams"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":182,"query_location_length":58,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":182,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":4,"column_names":["s","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":6,"column_names":["e2","sid"]}},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":198,"query_location_length":41,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":198,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":13,"column_names":["e2","curriculum"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":7,"column_names":["s","major"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":224,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":6,"column_names":["s","year"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":7,"column_names":["e2","year"]}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM create_external_resource('nonmap_handle@local');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":47,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"create_external_resource","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":21,"literal":{"kind":"STRING","text":"nonmap_handle@local"}}}],"qualified_name":{"path":["create_external_resource"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nextval('teardown_calls_kept');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":21,"literal":{"kind":"STRING","text":"teardown_calls_kept"}}}],"qualified_name":{"path":["nextval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM duckdb_constraints();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_constraints","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_constraints"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database_name, internal, split(replace(path, '\\', '/'), '/')[-1], type FROM duckdb_databases() WHERE path IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":8,"column_names":["internal"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":67,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":35,"function_name":"split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":23,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["split"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":83,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":113,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":4,"column_names":["path"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT signature_key_fingerprint FROM duckdb_extensions() WHERE install_mode='STATICALLY_LINKED';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":25,"column_names":["signature_key_fingerprint"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":47,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_extensions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_extensions"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":12,"column_names":["install_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":19,"literal":{"kind":"STRING","text":"STATICALLY_LINKED"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM duckdb_schemas() WHERE schema_name='scheme';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_schemas","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_schemas"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":11,"column_names":["schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":8,"literal":{"kind":"STRING","text":"scheme"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM temp.duckdb_tables","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":18,"schema_name":"temp","table_name":"duckdb_tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["temp","duckdb_tables"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name, type, managed, state, reference FROM duckdb_external_resources(discover := true) ORDER BY managed DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":7,"column_names":["managed"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["managed"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":5,"column_names":["state"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":9,"column_names":["reference"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":50,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"discover","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"discover","query_location":88,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_external_resources"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM create_external_resource('failed@local');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"create_external_resource","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":14,"literal":{"kind":"STRING","text":"failed@local"}}}],"qualified_name":{"path":["create_external_resource"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT create_function FROM duckdb_external_resource_types() WHERE name = 'q@x';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["create_function"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resource_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resource_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":5,"literal":{"kind":"STRING","text":"q@x"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT d FROM range(TIMESTAMPTZ '1992-01-01 00:00:00-08', TIMESTAMPTZ '1992-12-31 12:00:00-08', INTERVAL '1 MONTH' - INTERVAL '1 HOUR') tbl(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":128,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 00:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-12-31 12:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":9,"literal":{"kind":"STRING","text":"1 MONTH"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":8,"literal":{"kind":"STRING","text":"1 HOUR"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT table_type FROM information_schema.tables WHERE table_schema='scheme' AND table_name='vintegers'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":25,"schema_name":"information_schema","table_name":"tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","tables"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":48,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":12,"column_names":["table_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":8,"literal":{"kind":"STRING","text":"scheme"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":11,"literal":{"kind":"STRING","text":"vintegers"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT table_schema, table_name, SUBSTR (view_definition, 1, 32) AS view_definition_substr, check_option, is_updatable, is_insertable_into, is_trigger_updatable, is_trigger_deletable, is_trigger_insertable_into\nFROM information_schema.views\nWHERE table_schema = 'scheme' AND table_name = 'emp_dept_view';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["table_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"view_definition_substr","query_location":33,"query_location_length":31,"function_name":"substr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":15,"column_names":["view_definition"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"32"}}}],"qualified_name":{"path":["substr"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":12,"column_names":["check_option"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":12,"column_names":["is_updatable"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":18,"column_names":["is_insertable_into"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":20,"column_names":["is_trigger_updatable"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":20,"column_names":["is_trigger_deletable"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":26,"column_names":["is_trigger_insertable_into"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":216,"query_location_length":24,"schema_name":"information_schema","table_name":"views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","views"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":247,"query_location_length":56,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":247,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":247,"query_location_length":12,"column_names":["table_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":8,"literal":{"kind":"STRING","text":"scheme"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":275,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":15,"literal":{"kind":"STRING","text":"emp_dept_view"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT 'myfile.csv' AS thisishopefullyanonexistentfile), read_csv(thisishopefullyanonexistentfile)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":104,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"thisishopefullyanonexistentfile","query_location":22,"query_location_length":12,"literal":{"kind":"STRING","text":"myfile.csv"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":72,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":31,"column_names":["thisishopefullyanonexistentfile"]}}],"qualified_name":{"path":["read_csv"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select i.unnest from unnest([1, 2]) i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["i","unnest"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"i","sample":null,"query_location":21,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM range(TIMESTAMP '1992-12-31', TIMESTAMP '1992-01-01', INTERVAL '1 MONTH') t1, range(3) t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":94,"left":{"type":"TABLE_FUNCTION","alias":"t1","sample":null,"query_location":21,"query_location_length":76,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-12-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":9,"literal":{"kind":"STRING","text":"1 MONTH"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":99,"query_location_length":11,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (SELECT NULL a), range(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":30,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from (values (1), (10), (100), (1000), (10000)) t(a), range(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":62,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":70,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM range(timestamp '1992-01-01 00:00:00', timestamp '1992-01-01 00:00:01', interval '1' month);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":91,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 00:00:01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM generate_series('294247-01-10'::TIMESTAMP, 'infinity'::TIMESTAMP, INTERVAL '1 DAY');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":83,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":7,"literal":{"kind":"STRING","text":"1 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM read_text('test/sql/table_function/files/*.txt');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":48,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":37,"literal":{"kind":"STRING","text":"test/sql/table_function/files/*.txt"}}}],"qualified_name":{"path":["read_text"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select filename from read_blob('s3://does-not-exist1144/date=2025-10-11/file.parquet');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["filename"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":65,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_blob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":54,"literal":{"kind":"STRING","text":"s3://does-not-exist1144/date=2025-10-11/file.parquet"}}}],"qualified_name":{"path":["read_blob"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"type\", \"name\", \"tbl_name\", rootpage FROM sqlite_master WHERE name='v1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":10,"column_names":["tbl_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":8,"column_names":["rootpage"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":13,"schema_name":"","table_name":"sqlite_master","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sqlite_master"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"STRING","text":"v1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM generate_series(5, 1, -1) LIMIT 4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["generate_series"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM range(10, 10, 'hello')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM repeat('hello', 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["repeat"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM repeat_row(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat_row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["repeat_row"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cast('2020-01-01T15:00:00+0000'::timestamptz as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":58,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":26,"literal":{"kind":"STRING","text":"2020-01-01T15:00:00+0000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(78, 41, 5, 12, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"78"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"41"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT age('2024-06-15 12:00:00+00'::TIMESTAMPTZ, '1900-06-15 12:00:00+00'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":81,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":24,"literal":{"kind":"STRING","text":"1900-06-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["age"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2024-06-15 12:00:00+00'::TIMESTAMPTZ + INTERVAL 1 MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(7516, 1, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"7516"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT age('2024-03-01 12:00:00+00'::TIMESTAMPTZ, '2022-03-01 12:00:00+00'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":81,"function_name":"age","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-03-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":24,"literal":{"kind":"STRING","text":"2022-03-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["age"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(1600, 12, 29, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1600"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"29"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(64, 1, 7, 12, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(1403, 12, 30, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1403"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT era(TIMESTAMPTZ '294247-01-10 04:00:54.775806+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"era","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["era"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT dayofweek(TIMESTAMPTZ '294247-01-10 04:00:54.775806+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"dayofweek","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["dayofweek"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT monthname(TIMESTAMPTZ '294247-01-10 04:00:54.775806+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"monthname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["monthname"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_part(['year','month','day','era','dayofyear','week','isoyear'], '2024-06-15 12:00:00-04'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":107,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":57,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"literal":{"kind":"STRING","text":"era"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":11,"literal":{"kind":"STRING","text":"dayofyear"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":9,"literal":{"kind":"STRING","text":"isoyear"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":100,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_part"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts, year(ts), month(ts), day(ts), dayofyear(ts) FROM (VALUES\n ('1582-10-01 12:00:00+00'::TIMESTAMPTZ), ('1582-10-04 12:00:00+00'), ('1582-10-05 12:00:00+00'),\n ('1582-10-14 12:00:00+00'), ('1582-10-15 12:00:00+00'), ('1582-12-31 12:00:00+00'),\n ('1500-02-28 12:00:00+00'), ('1700-02-28 12:00:00+00')) t(ts)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":8,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["year"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":9,"function_name":"month","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["month"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":7,"function_name":"day","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["day"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":13,"function_name":"dayofyear","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["dayofyear"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":60,"query_location_length":250,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-10-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-10-04 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-10-05 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-10-14 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-10-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":24,"literal":{"kind":"STRING","text":"1582-12-31 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":24,"literal":{"kind":"STRING","text":"1500-02-28 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":284,"query_location_length":24,"literal":{"kind":"STRING","text":"1700-02-28 12:00:00+00"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["ts"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(TIMESTAMPTZ '9999-01-01 00:00:00+00' AS TIMESTAMP_NS);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":62,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"9999-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2000-01-01 00:00:00+00'::TIMESTAMPTZ - INTERVAL 1 MONTH;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2000-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s::TIMESTAMPTZ FROM (VALUES (1, '2024-01-01 00:00:00 Asia/Tokyo'), (2, '2024-01-01 00:00:00')) t(i, s) ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":27,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":32,"literal":{"kind":"STRING","text":"2024-01-01 00:00:00 Asia/Tokyo"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":21,"literal":{"kind":"STRING","text":"2024-01-01 00:00:00"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '12:15:37.123456-08'::TIMETZ AT TIME ZONE 'America/Phoenix';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":59,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":17,"literal":{"kind":"STRING","text":"America/Phoenix"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"12:15:37.123456-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"qualified_name":{"path":["timezone"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2026-04-23 19:26:40 {utc}'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":27,"literal":{"kind":"STRING","text":"2026-04-23 19:26:40 {utc}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2022-10-30 03:00:00-07'::TIMESTAMPTZ, '2023-10-30 02:00:00-07'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2022-10-30 03:00:00-07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":24,"literal":{"kind":"STRING","text":"2023-10-30 02:00:00-07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2026-11-02'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2026-11-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT part, date_trunc(part, '2024-11-03 01:30:00-05'::TIMESTAMPTZ)\nFROM (VALUES ('year'),('quarter'),('month'),('week'),('day'),('hour'),('minute')) t(part)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":55,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-11-03 01:30:00-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":74,"query_location_length":76,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"quarter"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["part"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_timestamptz(2024, 0, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2024"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT strftime('2024-03-10 03:30:00-04'::TIMESTAMPTZ, '%Y-%m-%d %H:%M:%S %Z')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":71,"function_name":"strftime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-03-10 03:30:00-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":22,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S %Z"}}}],"qualified_name":{"path":["strftime"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2500-07-15 12:00:00+00'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2500-07-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT date_trunc('year', '2045-07-04 12:00:00+00'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":24,"literal":{"kind":"STRING","text":"2045-07-04 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT b FROM test ORDER BY b DESC LIMIT 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["b"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT range(i) l FROM range(10) tbl(i) ORDER BY l DESC LIMIT 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["l"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":7,"query_location_length":8,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["range"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":23,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM db.mixed_ints ORDER BY i NULLS FIRST LIMIT 1 OFFSET 1023","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1023"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"db","table_name":"mixed_ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","mixed_ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM db.offset_boundary ORDER BY i NULLS LAST LIMIT 1 OFFSET 6144","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6144"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":18,"schema_name":"db","table_name":"offset_boundary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","offset_boundary"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i\nFROM db.all_null_offset_BIGINT\nORDER BY i NULLS FIRST\nLIMIT 1 OFFSET 4095;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4095"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":25,"schema_name":"db","table_name":"all_null_offset_BIGINT","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","all_null_offset_BIGINT"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT j, i FROM integers ORDER BY j DESC, i DESC NULLS FIRST LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["j"]}},{"type":"DESCENDING","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k FROM (SELECT CAST(k AS BIGINT) AS k FROM ta UNION ALL SELECT CAST(k AS BIGINT) AS k FROM tb) st ORDER BY k LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["k"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"SUBQUERY","alias":"st","sample":null,"query_location":14,"query_location_length":87,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"k","query_location":22,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["k"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":2,"schema_name":"","table_name":"ta","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ta"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"k","query_location":70,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["k"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":2,"schema_name":"","table_name":"tb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM final\nORDER BY channel NULLS LAST,\n i_brand_id NULLS LAST,\n i_class_id NULLS LAST,\n i_category_id NULLS LAST\nLIMIT 100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":7,"column_names":["channel"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":10,"column_names":["i_brand_id"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":10,"column_names":["i_class_id"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":13,"column_names":["i_category_id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"final","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["final"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t1 WHERE id = 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(i), MAX(i) FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t WHERE s = repeat('b', 100);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":16,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["repeat"]}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM t_replace","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"t_replace","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_replace"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT msg FROM audit","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["msg"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":5,"schema_name":"","table_name":"audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT txid_current() = getvariable('current_txid'), txid_current() = current_transaction_id();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":44,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"txid_current","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["txid_current"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":27,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":14,"literal":{"kind":"STRING","text":"current_txid"}}}],"qualified_name":{"path":["getvariable"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":41,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":14,"function_name":"txid_current","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["txid_current"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":24,"function_name":"current_transaction_id","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["current_transaction_id"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM duckdb_triggers() WHERE table_name = 't1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"literal":{"kind":"STRING","text":"t1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT trigger_name, columns FROM duckdb_triggers() WHERE trigger_name = 'multi_col_trigger';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":19,"literal":{"kind":"STRING","text":"multi_col_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT database_name, trigger_name, temporary FROM duckdb_triggers()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":9,"column_names":["temporary"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n FROM t_rows_log;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"t_rows_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_rows_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM t_upsert_log;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"t_upsert_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_upsert_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM log_alias_shadow;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":16,"schema_name":"","table_name":"log_alias_shadow","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["log_alias_shadow"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM t_vol_log l JOIN t_vol t ON l.id = t.id AND l.new_val = t.val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":49,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"t_vol_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_vol_log"]}},"right":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":38,"query_location_length":7,"schema_name":"","table_name":"t_vol","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_vol"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":49,"query_location_length":33,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":4,"column_names":["t","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":9,"column_names":["l","new_val"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":5,"column_names":["t","val"]}}]},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT trigger_name, table_name, action_timing, event_manipulation FROM duckdb_triggers() WHERE database_name = 'triggerdb';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":13,"column_names":["action_timing"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":18,"column_names":["event_manipulation"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":72,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":11,"literal":{"kind":"STRING","text":"triggerdb"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM fail_target;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"fail_target","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["fail_target"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM duckdb_triggers() WHERE trigger_name = 'tr2';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":5,"literal":{"kind":"STRING","text":"tr2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT old_id, old_v FROM t_del_ev_audit ORDER BY old_id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":6,"column_names":["old_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["old_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["old_v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":14,"schema_name":"","table_name":"t_del_ev_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_del_ev_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(n) FROM del_multi_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":15,"schema_name":"","table_name":"del_multi_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del_multi_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM same_alias_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"same_alias_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["same_alias_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM replace_audit WHERE msg = 'original_a';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"replace_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["replace_audit"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":3,"column_names":["msg"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":12,"literal":{"kind":"STRING","text":"original_a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM of_log;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"of_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["of_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH d AS (DELETE FROM rowid_alias AS x RETURNING x.rowid)\nSELECT typeof(rowid) FROM d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":null,"table":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"rowid_alias","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_alias"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":7,"column_names":["x","rowid"]}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT top_nest FROM failing;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["top_nest"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"failing","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["failing"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select sum(a) from t where a \u003c 10000000","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":27,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"INTEGER","text":"10000000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a, a \u003e '9223372036854775807'::bignum from bignum_comparisons","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":10,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["a"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":21,"literal":{"kind":"STRING","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":18,"schema_name":"","table_name":"bignum_comparisons","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bignum_comparisons"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '-100'::bignum::double","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"-100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('-1.5' AS BIGNUM);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":6,"literal":{"kind":"STRING","text":"-1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select sum(a) from t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a-b,a,b FROM T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["-"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":1,"schema_name":"","table_name":"T","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["T"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 9223372036854775808::BIGNUM + (-1)::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 18446744073709551615::BIGNUM + 1::BIGNUM;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"INTEGER","text":"18446744073709551615"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select bignum + '-1'::bignum from test_all_types(use_large_bignum = true) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["bignum"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_all_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":16,"column_names":["use_large_bignum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["test_all_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('0.5' AS BIGNUM)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (repeat('9', 20000)::BIGNUM + 1::BIGNUM)::VARCHAR = '1' || repeat('0', 20000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":77,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":18,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}}],"qualified_name":{"path":["repeat"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["+"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":25,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":18,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":5,"literal":{"kind":"INTEGER","text":"20000"}}}],"qualified_name":{"path":["repeat"]}}}],"qualified_name":{"path":["||"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 100000.595::double::bignum","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"NUMERIC","text":"100000.595"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from integers where a \u003c 0::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":36,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2147483646'::bignum;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2147483646"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '-0010.'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"-0010."}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '00-0010'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"00-0010"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select ( 2::bit \u0026 2::bit ) = 2::bit as b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"b","query_location":7,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":15,"function_name":"\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["\u0026"]}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT length(v::VARCHAR), substr(v::VARCHAR, 1, 1)\nFROM bit_long_zonemap_values\nWHERE v \u003c repeat('1', 100)::BIT\nORDER BY v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["length"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":24,"function_name":"substr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["substr"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":23,"schema_name":"","table_name":"bit_long_zonemap_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bit_long_zonemap_values"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":87,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["v"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":16,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["repeat"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_cast(1::BIT as SMALLINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_cast('00001111'::BIT as SMALLINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":37,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"00001111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ('0101011'::BITSTRING)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":9,"literal":{"kind":"STRING","text":"0101011"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":9,"catalog":"","schema":"","type_name":"BITSTRING","children":[],"qualified_name":{"path":["BITSTRING"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bit_length(big) FROM huge_bits","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"bit_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["big"]}}],"qualified_name":{"path":["bit_length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":9,"schema_name":"","table_name":"huge_bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["huge_bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT xor('101'::BIT, '001'::BIT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":5,"literal":{"kind":"STRING","text":"101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"STRING","text":"001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["xor"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1001010101111111000111'::BIT \u003e\u003e 10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"1001010101111111000111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["\u003e\u003e"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT get_bit('110'::BIT, 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"get_bit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"literal":{"kind":"STRING","text":"110"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["get_bit"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bit_count('10101'::BIT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"bit_count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"10101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["bit_count"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bitstring('x1'::BIT, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"bitstring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"STRING","text":"x1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["bitstring"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '\\x20\\x00\\xFF'::BLOB::VARCHAR::BLOB","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"STRING","text":"\\x20\\x00\\xFF"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM blobs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('\\\\b12' AS BLOB)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"\\\\b12"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tags.storage_version FROM duckdb_databases() WHERE database_name = 'oldb';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":20,"column_names":["tags","storage_version"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":6,"literal":{"kind":"STRING","text":"oldb"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '5877680-06-23 (BC)'::date","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"5877680-06-23 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '290309-12-22 (BC)'::date - interval (2147483647) day","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"STRING","text":"290309-12-22 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":25,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483647"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '99999999-01-01'::date","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"literal":{"kind":"STRING","text":"99999999-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '294247-01-10'::date + interval (9999999999999) second","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":31,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":13,"literal":{"kind":"INTEGER","text":"9999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0030-01-01'::DATE::VARCHAR == '0030-01-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"0030-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"literal":{"kind":"STRING","text":"0030-01-01"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('2020-01-01 garbage' AS DATE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":29,"literal":{"kind":"STRING","text":"2020-01-01 garbage"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1993-04-30'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1993-04-30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1993-10-31'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1993-10-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1992-04-30'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-04-30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1992-10-31'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-10-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1992-10/10'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-10/10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1992-'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"1992-"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('1111' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"1111"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('2004/02-29' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":12,"literal":{"kind":"STRING","text":"2004/02-29"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('99999999-01-01' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":16,"literal":{"kind":"STRING","text":"99999999-01-01"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i - 5 FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '30000307-01-01 (BC)'::DATE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"literal":{"kind":"STRING","text":"30000307-01-01 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 127::DECIMAL(3,0)::INTEGER, -2147483647::DECIMAL(10,0)::INTEGER, -7::DECIMAL(9,1)::INTEGER, 27::DECIMAL(18,1)::INTEGER, 33::DECIMAL(38,1)::INTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":35,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483647"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":25,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"27"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100::TINYINT::DECIMAL(18,17)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"17"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100::INTEGER::DECIMAL(3,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -10000000::BIGINT::DECIMAL(3,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":8,"literal":{"kind":"INTEGER","text":"10000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100::HUGEINT::DECIMAL(9,7)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 10000000::FLOAT::DECIMAL(3,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"INTEGER","text":"10000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100::DOUBLE::DECIMAL(38,35)::DOUBLE, 100::DOUBLE::DECIMAL(9,6)::DOUBLE, 17014118346046923173168730371588410572::DOUBLE::DECIMAL(38,0)::DOUBLE, (-17014118346046923173168730371588410572)::DOUBLE::DECIMAL(38,0)::DOUBLE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"35"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":140,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":125,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":38,"literal":{"kind":"INTEGER","text":"17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":214,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":199,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":191,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":39,"literal":{"kind":"INTEGER","text":"-17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":193,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":201,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":216,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 17014118346046923173168730371588410572::DOUBLE::DECIMAL(9,0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"INTEGER","text":"17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0.5'::DECIMAL(4,4) + '0.5'::DECIMAL(4,4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0.1'::DECIMAL * '0.1'::DECIMAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [99999999999999999999999999999999999.9, 9.99999999999999999999999999999999999]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":78,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":37,"literal":{"kind":"NUMERIC","text":"99999999999999999999999999999999999.9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":37,"literal":{"kind":"NUMERIC","text":"9.99999999999999999999999999999999999"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(decimal_average(v)) FROM int128_dec;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":18,"function_name":"decimal_average","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["decimal_average"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":10,"schema_name":"","table_name":"int128_dec","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int128_dec"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 10.00::DECIMAL(4,2)::DECIMAL(9,8);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"10.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1.0::DECIMAL(3,1)::DECIMAL(1,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(decimal_division(1000.000::DECIMAL(9,3), 4.00::DECIMAL(6,2)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":60,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"literal":{"kind":"NUMERIC","text":"1000.000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"4.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["decimal_division"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT decimal_division(12.34::DECIMAL(4,2), 3.5::DECIMAL(4,1), 10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"12.34"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["decimal_division"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cast(9.99::float as decimal(1,0));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"9.99"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '-1e3'::DECIMAL, '-0.1e3'::DECIMAL, '-.1e-1'::DECIMAL, '-0.1e-1'::DECIMAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"-1e3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":8,"literal":{"kind":"STRING","text":"-0.1e3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":8,"literal":{"kind":"STRING","text":"-.1e-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":9,"literal":{"kind":"STRING","text":"-0.1e-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1e100'::DECIMAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"1e100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '5e-11'::DECIMAL(18,4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"5e-11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '5.5e-10'::DECIMAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"5.5e-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '10000000000000000000000000000000000000.0'::DECIMAL(38,1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":42,"literal":{"kind":"STRING","text":"10000000000000000000000000000000000000.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(d+1000000000000000.0), typeof(-1000000000000000.0-d) FROM decimals","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":18,"literal":{"kind":"NUMERIC","text":"1000000000000000.0"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":29,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":19,"literal":{"kind":"NUMERIC","text":"-1000000000000000.0"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["-"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":8,"schema_name":"","table_name":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(10000::DECIMAL(5,0) AS DECIMAL(2,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST('100000' AS DECIMAL(5,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"literal":{"kind":"STRING","text":"100000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(10000000000::DECIMAL(11,0) AS DECIMAL(10,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":49,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":11,"literal":{"kind":"INTEGER","text":"10000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST('100000000000000000000' AS DECIMAL(20,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":50,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":23,"literal":{"kind":"STRING","text":"100000000000000000000"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(0::DECIMAL(18, 15) AS FLOAT), signbit(CAST(0::DECIMAL(18, 15) AS FLOAT))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":15,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":42,"function_name":"signbit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":33,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":15,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["signbit"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0.1'::DECIMAL(3, 0)::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '0'::DECIMAL(38,10)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1::DECIMAL('32');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"32"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select decimal 'a';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"a"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CEIL('0.0'::DECIMAL), CEIL('0.1'::DECIMAL), CEIL('-0.1'::DECIMAL), CEIL(NULL::DECIMAL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"literal":{"kind":"STRING","text":"0.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":20,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":21,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":6,"literal":{"kind":"STRING","text":"-0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":19,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ROUND('10.5'::DECIMAL), ROUND('-10.5'::DECIMAL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"10.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["round"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":7,"literal":{"kind":"STRING","text":"-10.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ROUND(99999999999999999999999999999999999999::DECIMAL(38,0), -1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":38,"literal":{"kind":"INTEGER","text":"99999999999999999999999999999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '1.234499999'::DECIMAL(4,3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"1.234499999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [['sad', 'ok'], ['ok', 'happy'], ['happy', 'sad']]::enum_nested_arrays","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":20,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":5,"literal":{"kind":"STRING","text":"sad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"STRING","text":"sad"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":18,"catalog":"","schema":"","type_name":"enum_nested_arrays","children":[],"qualified_name":{"path":["enum_nested_arrays"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'sad'::mood::UINTEGER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"sad"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'happy'::mood;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select {'a': 'happy'::mood, 'b': 1, 'c': 'ok'::mood};","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"c","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"c","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select name, year_release::INT from albums_error where year_release = '2001'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":12,"column_names":["year_release"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":12,"schema_name":"","table_name":"albums_error","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["albums_error"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":12,"column_names":["year_release"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":6,"literal":{"kind":"STRING","text":"2001"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CASE WHEN person_name = 'Tim' THEN person_mood ELSE pet_mood END FROM person_pet_den","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":64,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":11,"column_names":["person_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"literal":{"kind":"STRING","text":"Tim"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":11,"column_names":["person_mood"]}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":8,"column_names":["pet_mood"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"query_location_length":14,"schema_name":"","table_name":"person_pet_den","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person_pet_den"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM test where a = b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select person.name, pets.name from person inner join pets on (person.current_mood = pets.current_mood)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["person","name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":9,"column_names":["pets","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":61,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":4,"schema_name":"","table_name":"pets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pets"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":19,"column_names":["person","current_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":17,"column_names":["pets","current_mood"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from large_enum_tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":14,"schema_name":"","table_name":"large_enum_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_enum_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from t1, t2 where t1.a::VARCHAR \u003e= t2.b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":34,"query_location_length":21,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["t1","a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["t2","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4::INTEGEE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGEE","children":[],"qualified_name":{"path":["INTEGEE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select sum(f), typeof(sum(f)) from floats_doubles where f \u003e 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["sum"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":14,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["f"]}}],"qualified_name":{"path":["sum"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":14,"schema_name":"","table_name":"floats_doubles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["floats_doubles"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":56,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["f"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f FROM floats ORDER BY f DESC NULLS LAST LIMIT 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["f"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"floats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["floats"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f, i, SUM(i) OVER (PARTITION BY f ORDER BY f, i) FROM floats ORDER BY f, i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["f"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":42,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["f"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["f"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":6,"schema_name":"","table_name":"floats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["floats"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'POINT(5e30 3e-20)'::GEOMETRY::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"STRING","text":"POINT(5e30 3e-20)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof(g::BLOB), hex(g::BLOB) from t1 where id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["typeof"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":12,"function_name":"hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["hex"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select id, b::GEOMETRY from t2 order by id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id from t_all_types where g = 'MULTIPOINT Z (1 2 3, 3 4 5, 5 6 7)';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":11,"schema_name":"","table_name":"t_all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_all_types"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":36,"literal":{"kind":"STRING","text":"MULTIPOINT Z (1 2 3, 3 4 5, 5 6 7)"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof('POINT(0 1)'::GEOMETRY($wkt$GEOGCRS[\"WGS \"\"Quoted\"\"\",ID[\"OGC\",\"Q1\"]]$wkt$));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":62,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(0 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":60,"catalog":"","schema":"","type_name":"GEOMETRY","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":50,"literal":{"kind":"STRING","text":"GEOGCRS[\"WGS \"\"Quoted\"\"\",ID[\"OGC\",\"Q1\"]]"}}],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT stats(vertex_extract(ST_GeomFromWKB(wkb), 'x')) FROM poly_wkb LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":40,"function_name":"vertex_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":19,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["wkb"]}}],"qualified_name":{"path":["st_geomfromwkb"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["vertex_extract"]}}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":8,"schema_name":"","table_name":"poly_wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["poly_wkb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(ST_GeomFromWKB(wkb)) FROM ewkb_point_m;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":19,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":3,"column_names":["wkb"]}}],"qualified_name":{"path":["st_geomfromwkb"]}}}],"qualified_name":{"path":["st_astext"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":12,"schema_name":"","table_name":"ewkb_point_m","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ewkb_point_m"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'POINT(0 1)'::GEOMETRY::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(0 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select g, id from t1 where id = 1500;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1500"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM pts_noshred WHERE g \u0026\u0026 'POLYGON((10 10, 10 50, 50 50, 50 10, 10 10))'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"pts_noshred","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pts_noshred"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":61,"function_name":"\u0026\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":46,"literal":{"kind":"STRING","text":"POLYGON((10 10, 10 50, 50 50, 50 10, 10 10))"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["\u0026\u0026"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM p WHERE g \u0026\u0026 'POINT(100 5)'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":29,"function_name":"\u0026\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":14,"literal":{"kind":"STRING","text":"POINT(100 5)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["\u0026\u0026"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(g AS GEOMETRY) FROM (VALUES ('POINT(1 2)'), ('LINESTRING(0 0'), (NULL), ('POINT EMPTY')) t(g);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["g"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":36,"query_location_length":68,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":16,"literal":{"kind":"STRING","text":"LINESTRING(0 0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":13,"literal":{"kind":"STRING","text":"POINT EMPTY"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["g"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ('POINT(1 2)'::GEOMETRY).x, ('POINT(1 2)'::GEOMETRY).y","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":26,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"STRING","text":"x"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":35,"query_location_length":26,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"STRING","text":"y"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, geom.x, geom.y, geom.z, geom.m FROM geometries ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":6,"column_names":["geom","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":6,"column_names":["geom","y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":6,"column_names":["geom","z"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":6,"column_names":["geom","m"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":10,"schema_name":"","table_name":"geometries","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["geometries"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT stats(geom.x) FROM lines_only LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":6,"column_names":["geom","x"]}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":10,"schema_name":"","table_name":"lines_only","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lines_only"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ST_AsText(ST_GeomFromWKB(from_hex(repeat('010700000001000000', 15) || '010700000000000000')))[1:40];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":100,"query_location_length":6,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":93,"function_name":"st_astext","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":82,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":66,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":56,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":32,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":20,"literal":{"kind":"STRING","text":"010700000001000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}}],"qualified_name":{"path":["repeat"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":20,"literal":{"kind":"STRING","text":"010700000000000000"}}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["from_hex"]}}}],"qualified_name":{"path":["st_geomfromwkb"]}}}],"qualified_name":{"path":["st_astext"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 251658240::HUGEINT * 1080863910568919040::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"INTEGER","text":"251658240"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":19,"literal":{"kind":"INTEGER","text":"1080863910568919040"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 19938419936773738093557105904205168640::HUGEINT * 1080863910568919040::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":78,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"INTEGER","text":"19938419936773738093557105904205168640"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":19,"literal":{"kind":"INTEGER","text":"1080863910568919040"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 2::HUGEINT * 85070591730234615865843651857942052865::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":38,"literal":{"kind":"INTEGER","text":"85070591730234615865843651857942052865"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT AVG(x) FROM (\n\tSELECT 100000000000000000000000000000000000000::HUGEINT AS x\n\tUNION ALL\n\tSELECT 100000000000000000000000000000000000000::HUGEINT\n) t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"query_location_length":133,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":68,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":39,"literal":{"kind":"INTEGER","text":"100000000000000000000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":141,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":39,"literal":{"kind":"INTEGER","text":"100000000000000000000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":143,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(h), LAST(h) FROM hugeints;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["h"]}}],"qualified_name":{"path":["first"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["h"]}}],"qualified_name":{"path":["last"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '170141183460469231731687303715884105727'::HUGEINT - 10::HUGEINT + 10::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '170141183460469231731687303715884105727'::HUGEINT * 1::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY(100::HUGEINT % 0::HUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":7,"query_location_length":30,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":25,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["%"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 + 170141183460469231731687303715884105727;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2 - 170141183460469231731687303715884105727;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -170141183460469231731687303715884105728 * 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105728"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -170141183460469231731687303715884105727 // -1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105727"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["//"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 170141183460469231731687303715884105727 % -170141183460469231731687303715884105727;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105727"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select (((((1::HUGEINT \u003c\u003c 50) \u003c\u003c 50) \u003c\u003c 2) \u003c\u003c 3) \u003c\u003c 8), (1::HUGEINT)\u003c\u003c50\u003c\u003c20\u003c\u003c7\u003c\u003c18\u003c\u003c3\u003c\u003c6\u003c\u003c9","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":45,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":38,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":31,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":24,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":16,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["\u003c\u003c"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":36,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["\u003c\u003c"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["\u003c\u003c"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select -11367237885269962203896920952509169001 \u003e\u003e 200;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"-11367237885269962203896920952509169001"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}}],"qualified_name":{"path":["\u003e\u003e"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select xor(51290852742897895128414::HUGEINT, 4923847238975289723895239078235::HUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":79,"function_name":"xor","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":23,"literal":{"kind":"INTEGER","text":"51290852742897895128414"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":31,"literal":{"kind":"INTEGER","text":"4923847238975289723895239078235"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["xor"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '-1267650600228229401496703205376'::HUGEINT, '-17014118346046923173168730371588410572'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":34,"literal":{"kind":"STRING","text":"-1267650600228229401496703205376"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":41,"literal":{"kind":"STRING","text":"-17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 42::HUGEINT::TINYINT, 42::HUGEINT::SMALLINT, 42::HUGEINT::INTEGER, 42::HUGEINT::BIGINT, 42::HUGEINT::FLOAT, 42::HUGEINT::DOUBLE;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":7,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":126,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":128,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -2147483648::HUGEINT::INTEGER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483648"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '170141183460469231731687303715884105700e0'::hugeint","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":43,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105700e0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[],"qualified_name":{"path":["hugeint"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select ceil(1::HUGEINT), ceil('-1329227995784915872903807060280344576'::HUGEINT), ceil(0::HUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["ceil"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":55,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":40,"literal":{"kind":"STRING","text":"-1329227995784915872903807060280344576"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["ceil"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":16,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["ceil"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM hugeints WHERE h \u003c '1267650600228229401496703205376'::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":36,"query_location_length":46,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["h"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":33,"literal":{"kind":"STRING","text":"1267650600228229401496703205376"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select interval '0.004 DECADE';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":14,"literal":{"kind":"STRING","text":"0.004 DECADE"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select interval '0.00000004 MINUTE';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":19,"literal":{"kind":"STRING","text":"0.00000004 MINUTE"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '1 hour -00:30:00';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":18,"literal":{"kind":"STRING","text":"1 hour -00:30:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT interval 2 months, interval 2 month;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT interval 3 microsecond, interval 3 microseconds;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_microseconds"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":23,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_microseconds"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '47.210 5'::interval;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"47.210 5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '1.5' MILLENNIA;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"to_millennia","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_millennia"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '-1.5' MILLENNIA;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"to_millennia","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"-1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_millennia"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1.5 CENTURY'::INTERVAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"1.5 CENTURY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '-1.5 DECADE'::INTERVAL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"-1.5 DECADE"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::VARCHAR, i::VARCHAR::INTERVAL = i FROM (SELECT to_microseconds(3600000000 * 1000000000) AS i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":19,"query_location_length":24,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":57,"query_location_length":40,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":23,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":10,"literal":{"kind":"INTEGER","text":"3600000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":10,"literal":{"kind":"INTEGER","text":"1000000000"}}}],"qualified_name":{"path":["*"]}}}],"qualified_name":{"path":["to_microseconds"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast('3 years 2 doy' as interval)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":15,"literal":{"kind":"STRING","text":"3 years 2 doy"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tTRY_CAST('2147483648 days' AS INTERVAL),\n\tTRY_CAST('-2147483649 days' AS INTERVAL),\n\tTRY_CAST('2147483648 months' AS INTERVAL),\n\tTRY_CAST('9223372036854775808 microseconds' AS INTERVAL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":39,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":17,"literal":{"kind":"STRING","text":"2147483648 days"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":18,"literal":{"kind":"STRING","text":"-2147483649 days"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":19,"literal":{"kind":"STRING","text":"2147483648 months"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":137,"query_location_length":56,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":34,"literal":{"kind":"STRING","text":"9223372036854775808 microseconds"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":184,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '-2Y 4 days 5 Hours 1 MinUteS 3S 20mS 16uS'::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":52,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":43,"literal":{"kind":"STRING","text":"-2Y 4 days 5 Hours 1 MinUteS 3S 20mS 16uS"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '876:54:32.101234'::INTERVAL, '-876:54:32.101234'::INTERVAL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":18,"literal":{"kind":"STRING","text":"876:54:32.101234"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":19,"literal":{"kind":"STRING","text":"-876:54:32.101234"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '90' HOUR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"90"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_hours"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '-years';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":8,"literal":{"kind":"STRING","text":"-years"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '100000000000000000hours';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":25,"literal":{"kind":"STRING","text":"100000000000000000hours"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '9223372036854775810msecs';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":26,"literal":{"kind":"STRING","text":"9223372036854775810msecs"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE '1992-03-01' - INTERVAL '0' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE '1992-03-01' - INTERVAL '6' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DATE '1992-03-01' - INTERVAL '12' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":19,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"STRING","text":"12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TIME '10:00:00' + INTERVAL '1' DAY","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"10:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":16,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '12:15:37.123456-08'::TIMETZ - INTERVAL '2 DAY';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"12:15:37.123456-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"literal":{"kind":"STRING","text":"2 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT INTERVAL '30' DAY \u003e= INTERVAL '1' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":39,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select normalized_interval(interval '-2147483648 months -2147483648 days -9223372036854775807 microseconds');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":101,"function_name":"normalized_interval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":80,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":71,"literal":{"kind":"STRING","text":"-2147483648 months -2147483648 days -9223372036854775807 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["normalized_interval"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select case when i=[1] then [3] else [4] end from a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1] = NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1] \u003e NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1] \u003e [1, 2]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [] \u003c= []","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [] \u003e= []","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l \u003e r FROM list_int_empty","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":14,"schema_name":"","table_name":"list_int_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int_empty"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ['duck'] = NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ['duck'] \u003e NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [{'x': 'duck', 'y': 1}] \u003c= [{'x': 'duck', 'y': 1}]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":50,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":41,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [{'x': 'duck', 'y': 1}] \u003e= [{'x': 'duck', 'y': 1}]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":50,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":41,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l \u003e r FROM list_of_struct","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":14,"schema_name":"","table_name":"list_of_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_of_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select concat([42], [43], [], [44], [], [45]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"45"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ''~concat(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":13,"function_name":"regexp_matches","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":12,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["concat"]}}}],"qualified_name":{"path":["regexp_matches"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM v2 v, v2 w WHERE v.a \u003e= w.a ORDER BY v.a, w.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["v","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["w","a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"v","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"v2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v2"]}},"right":{"type":"BASE_TABLE","alias":"w","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"v2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":31,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["v","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["w","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [1] IS DISTINCT FROM [1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":24,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [] IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ['duck'] IS DISTINCT FROM ['duck']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [{'x': 'duck', 'y': 1}] IS DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":45,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l[3] FROM nested","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tbl.a, tbl.b,\n\ttbl.a \u003c tbl.b, tbl.a \u003c= tbl.b,\n\ttbl.a = tbl.b, tbl.a \u003c\u003e tbl.b,\n\ttbl.a \u003e tbl.b, tbl.a \u003e= tbl.b,\n\ttbl.a IS NOT DISTINCT FROM tbl.b, tbl.a IS DISTINCT FROM tbl.b\nFROM list_int tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["tbl","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["tbl","b"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":22,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":37,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":69,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":86,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":101,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":118,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":5,"column_names":["tbl","b"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":152,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":5,"column_names":["tbl","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":5,"column_names":["tbl","b"]}}],"from_table":{"type":"BASE_TABLE","alias":"tbl","sample":null,"query_location":186,"query_location_length":12,"schema_name":"","table_name":"list_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.child_stats.min, s.child_stats.max FROM (SELECT STATS([3, 4]) s)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["s","child_stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":17,"column_names":["s","child_stats","max"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":57,"query_location_length":13,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT concat_ws('.', list_reverse(string_split('1.2..3', '.')));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"concat_ws","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"."}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":41,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":27,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":8,"literal":{"kind":"STRING","text":"1.2..3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"."}}}],"qualified_name":{"path":["string_split"]}}}],"qualified_name":{"path":["list_reverse"]}}}],"qualified_name":{"path":["concat_ws"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id,x=y,x\u003c\u003ey FROM (VALUES (1,[1,NULL]::INTEGER[2],[0,NULL]::INTEGER[2]),(2,[2,NULL]::INTEGER[2],[2,NULL]::INTEGER[2])) t(id,x,y) ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":10,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["y"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":14,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["y"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":100,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":12,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, b[1] FROM a ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, b[1][3][1] FROM nested ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":18,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST([[[[[1, 2], [3, 4]], [[5]]], [[[]]]]], max_depth := 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":61,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":35,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST([1, 2, 3], rec := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"rec","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"rec","query_location":32,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, UNNEST(i), UNNEST(j) FROM (VALUES (1, [1, 2], [10]), (2, NULL, [11, 12]), (3, [3, NULL, 4], [NULL])) tbl(id, i, j)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["unnest"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":37,"query_location_length":74,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","i","j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT * FROM (SELECT id, UNNEST(b, recursive := true) FROM test);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":23,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":28,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["b"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":58,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT unnest([1, 2]) AS g, unnest([10, 20]) AS s, count(*)\nFROM range(1)\nGROUP BY g\nORDER BY g, s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["g"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":7,"query_location_length":14,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":28,"query_location_length":16,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":65,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 42 having unnest([1,2,3]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":15,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name, UNNEST(address) FROM people;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":15,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["address"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":6,"schema_name":"","table_name":"people","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["people"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM UNNEST([{'a': [1, 2, 3], 'b': [4, 5, 6]}, {'a': [4, 5], 'b': [7, 8, 9, 10]}]) AS tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":87,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":69,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":32,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":28,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":44,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":33,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":62,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":75,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM UNNEST(ARRAY[1,2,3]) t(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":21,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP(['1', '01'], [10, 20])::MAP(INTEGER, INTEGER)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"STRING","text":"01"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP([10, i, i+1, 9], [i, 3.14, 0.12, 8.0]) FROM ints;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"3.14"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"8.0"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (\n\tSELECT a.i, map_values(c.m) AS vals, map_entries(c.m) AS entries\n\tFROM a LEFT JOIN b ON a.i = b.i\n\t LEFT JOIN c ON b.i = c.i\n\t FULL JOIN d ON c.i8 = d.i8\n\tORDER BY ALL\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":184,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["a","i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"vals","query_location":36,"query_location_length":15,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["c","m"]}}],"qualified_name":{"path":["map_values"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"entries","query_location":61,"query_location_length":16,"function_name":"map_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["c","m"]}}],"qualified_name":{"path":["map_entries"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":163,"query_location_length":26,"left":{"type":"JOIN","alias":"","sample":null,"query_location":130,"query_location_length":24,"left":{"type":"JOIN","alias":"","sample":null,"query_location":97,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":107,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":112,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":3,"column_names":["a","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":3,"column_names":["b","i"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":140,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":145,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":3,"column_names":["b","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":3,"column_names":["c","i"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":178,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":4,"column_names":["c","i8"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":4,"column_names":["d","i8"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), max(a) FROM tbl1 GROUP BY list_sum(a::INT[]) % 2 == 0 HAVING list_sum(a::INT[]) % 2 == 0 NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":27,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":22,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":18,"function_name":"list_sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["list_sum"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":106,"query_location_length":8,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":27,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":22,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":18,"function_name":"list_sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["list_sum"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}]},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT unnest(array_value(1, 2, 3)::INT[])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":7,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":20,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1, NULL, 3]::INT[3])::VARCHAR[3]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":12,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT array_value(array_value(1, 2, 3), array_value(4,5,6));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":53,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":20,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":18,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["array_value"]}}}],"qualified_name":{"path":["array_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t1 JOIN t2 ON t1.a = t2.a ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":4,"column_names":["t1","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":4,"column_names":["t2","a"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH c AS MATERIALIZED (SELECT * FROM m) SELECT id, v FROM c, UNNEST(c.fixed) AS s(v) ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":1,"schema_name":"","table_name":"m","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["m"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":54,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"TABLE_FUNCTION","alias":"s","sample":null,"query_location":62,"query_location_length":23,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["c","fixed"]}}],"qualified_name":{"path":["unnest"]}},"column_name_alias":["v"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT a FROM arrays WHERE a[1] \u003e 0 ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":8,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":37,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a::JSON FROM arrays","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl1 LIMIT 1 OFFSET 122879","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"literal":{"kind":"INTEGER","text":"122879"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(x as INT[2][2]) FROM (VALUES ([[1,2],[3,4]]), ([[5,6],[7,8],[9,10]])) AS t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":20,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":33,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT * FROM t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM arr_test WHERE arr \u003e= ARRAY[1,2,3]::INT[3] AND arr = ARRAY[1,2,3]::INT[3]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"arr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arr_test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":58,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":36,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["arr"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":8,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":43,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["arr"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":8,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":74,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4\u003eALL([1, 2, 3, NULL]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":22,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"comparison_type":"COMPARE_LESSTHANOREQUALTO"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ARRAY[1,2], ARRAY[NULL], ARRAY['hello', 'world'], ARRAY[]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":7,"query_location_length":10,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":19,"query_location_length":11,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":32,"query_location_length":23,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}]},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":57,"query_location_length":7,"children":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST(UNNEST(ARRAY[[1, 2], [3, 4]]::VARCHAR[][]))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":42,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":13,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":21,"query_location_length":21,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["unnest"]}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_aggr(list(i)::varchar[], 'string_agg', '|') FROM range(1, 4) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"literal":{"kind":"STRING","text":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["list_aggr"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":61,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select min(i), max(i) from list_int;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"list_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH t(l) AS (VALUES (['bad', '1', '2']), (['bad', '5', '6']))\nSELECT CAST(list_slice(l, 2, 3) AS INTEGER[]) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["l"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"literal":{"kind":"STRING","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":38,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":19,"function_name":"list_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_slice"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":114,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l, l \u003c [1, NULL, 3], l \u003e [1, NULL, 3], l \u003c= [1, NULL, 3] FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":10,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["l"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["l"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":46,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["l"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, b, a \u003c\u003e b FROM l","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":13,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["b"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST_EXTRACT(LIST_VALUE(NULL), -1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["list_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [{ parent: { t:'abc', len:5 } }][1]=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":37,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":39,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"parent","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"parent","query_location":18,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"t","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"t","query_location":22,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}},{"name":"len","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"len","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST_EXTRACT(LIST_VALUE(42::UBIGINT), 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_extract('1', 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_transform(str, lambda x: x) FROM nested_struct_data;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":11,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["x"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":18,"schema_name":"","table_name":"nested_struct_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_struct_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a[1+1-1] FROM (VALUES (LIST_VALUE(42))) tbl(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s from lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT hello[off:NULL+off] FROM lists, hello","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":12,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["hello"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["off"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["off"]}}],"qualified_name":{"path":["+"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":5,"schema_name":"","table_name":"hello","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hello"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s[(2147483647-1):1] FROM lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":10,"literal":{"kind":"INTEGER","text":"2147483647"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1,2,3,4,5])[:-:-2];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1,2,3,4,5,6])[9223372036854775807:-9223372036854775808:-1];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":22,"query_location_length":45,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'abcdefg'[:3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":16,"query_location_length":4,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"abcdefg"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1,2,3,4,5])[1:3:3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ([1,2,3,4,5])[1:NULL:2];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":10,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST(l1) FROM (SELECT LIST(a) l1 FROM (VALUES (1), (2), (3)) AS t1 (a)) t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["l1"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":23,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l1","query_location":31,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":47,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST(e), LIST(g) from list_data","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["list"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":9,"schema_name":"","table_name":"list_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, LIST(STRUCT_PACK(a := e, b := e+1)) ls from list_data WHERE g \u003e 2 GROUP BY g ORDER BY g","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"ls","query_location":10,"query_location_length":35,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":32,"query_location_length":1,"column_names":["e"]}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":41,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":9,"schema_name":"","table_name":"list_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_data"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":70,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LIST_VALUE(1, 2, 3) UNION ALL SELECT LIST_VALUE(NULL::INTEGER) UNION ALL SELECT LIST_VALUE() UNION ALL SELECT NULL","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"select * from (values ([1, NULL, 3]), ([NULL, 2, 3]), ([1, 2, NULL]), (NULL), ([1, 2, 3])) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":76,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_extract(m, 'key') FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"STRING","text":"key"}}}],"qualified_name":{"path":["struct_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from bigint_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"bigint_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigint_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from real_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"real_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["real_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n\tt1.id,\n\tmap_from_entries(entry)\nfrom t1 join t2 using (id);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":5,"column_names":["t1","id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":23,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["entry"]}}],"qualified_name":{"path":["map_from_entries"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":48,"query_location_length":18,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["id"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP_FROM_ENTRIES(ARRAY[(MAP([5,3,4], ['a', 'b', 'c']), 2), (MAP([4,3,5], ['a', 'b', 'c']), 4)]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":24,"query_location_length":77,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":34,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":29,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":34,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":29,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"STRING","text":"c"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["row"]}}]}}],"qualified_name":{"path":["map_from_entries"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP(list_value(1, 2, 3), list_value(6, NULL, 4))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cardinality(m) from (select MAP(list_value(1), list_value(2)) from range(5) tbl(i)) tbl(m);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"cardinality","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["m"]}}],"qualified_name":{"path":["cardinality"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":27,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":33,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":13,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":74,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["m"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select map_concat(map([], []));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"map_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":11,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["map_concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP { i: 'a' || i } FROM range(5) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":8,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["||"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":32,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bool_and(map_contains(m, k) = res_key) = bool_and(map_contains_value(m, v) = res_val)\nFROM test_maps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":85,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":16,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":18,"function_name":"map_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["map_contains"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":7,"column_names":["res_key"]}}}],"qualified_name":{"path":["bool_and"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":44,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":24,"function_name":"map_contains_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["map_contains_value"]}},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":7,"column_names":["res_val"]}}}],"qualified_name":{"path":["bool_and"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":9,"schema_name":"","table_name":"test_maps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_maps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select MAP_ENTRIES(NULL::MAP(INT, BIGINT))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"map_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":16,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["MAP"]}}}}],"qualified_name":{"path":["map_entries"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select MAP_KEYS(MAP(NULL, NULL))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"map_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["map_keys"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAP(\n\t[\n\t\tMAP([5],[4]), MAP([10],[2]), MAP([2,3],[3,2]), MAP([10],[3]), MAP([3,2], [2,3]), MAP([5],[4])\n\t],\n\t[\n\t\t0,1,2,3,4,5\n\t]\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":129,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":100,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":16,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":13,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":17,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"query_location_length":12,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select m[NULL] from (select MAP(LIST_VALUE('Jon Lajoie', 'Backstreet Boys', 'Tenacious D' ),LIST_VALUE(10,9,10)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":20,"query_location_length":98,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":28,"query_location_length":84,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":59,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":12,"literal":{"kind":"STRING","text":"Jon Lajoie"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":17,"literal":{"kind":"STRING","text":"Backstreet Boys"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":13,"literal":{"kind":"STRING","text":"Tenacious D"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select m[10] from (select MAP(LIST_VALUE(10,9,1,11,13),LIST_VALUE(NULL, NULL, NULL,NULL,NULL)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":4,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":18,"query_location_length":82,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":26,"query_location_length":68,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":24,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":38,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select MAP_EXTRACT(MAP(NULL, NULL), NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"map_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":15,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select m[NULL] from (select MAP(LIST_VALUE({a:3}, {a:4}, {a:5}, {a:6},{a:7}),LIST_VALUE(10, 9, 8, 7,11)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":20,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":28,"query_location_length":76,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":44,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":5,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":5,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":5,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":5,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":5,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":26,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT map_extract(MAP(LIST_VALUE([10],[9],[12],[11],[13]),LIST_VALUE(10,9,10,11,13)),[10])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"map_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":66,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":35,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select map_values(MAP(['a'],[5]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":14,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}}],"qualified_name":{"path":["map_values"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select MAP_VALUES(NULL::MAP(\"NULL\", \"NULL\"))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":19,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}],"qualified_name":{"path":["MAP"]}}}}],"qualified_name":{"path":["map_values"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TYPEOF(MAP_VALUES(NULL));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":16,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map_values"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (VALUES (MAP(LIST_VALUE(1,2),LIST_VALUE(3,4))), (NULL), (MAP(LIST_VALUE(1,2),LIST_VALUE(3,4))), (NULL)) as a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":14,"query_location_length":103,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":36,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":36,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["map"]}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'i': [1, 2, 3], 'j': 2};","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":13,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select null::row(a integer);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT STRUCT_EXTRACT(STRUCT_PACK(a := 42, b := 43), 'a') s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":7,"query_location_length":50,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_extract"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT STRUCT_EXTRACT(STRUCT_PACK(xx := e, yy := g), g) FROM struct_data","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"xx","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"xx","query_location":40,"query_location_length":1,"column_names":["e"]}},{"name":"yy","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"yy","query_location":49,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["struct_extract"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":11,"schema_name":"","table_name":"struct_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select struct_keys(['a', 'b']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"struct_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_keys"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select struct_values(42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"struct_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_values"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL IS NULL, NULL IS NOT NULL, 42 IS NULL, 42 IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":12,"query_location_length":7,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":26,"query_location_length":11,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":42,"query_location_length":7,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":54,"query_location_length":11,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4 / 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":5,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["/"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::UBIGINT FROM bigints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS SMALLINT) FROM bigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(18,0)::BIGINT FROM bigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof([100::USMALLINT, 10.5::DECIMAL]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":31,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(NULL AS FLOAT(0));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"FLOAT","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS USMALLINT) FROM hugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DOUBLE FROM hugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS DECIMAL(38,0))::HUGEINT FROM hugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS UBIGINT)::INTEGER FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(s AS INTEGER) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::USMALLINT FROM smallints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS TINYINT)::SMALLINT FROM smallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(18,0)::SMALLINT FROM smallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::USMALLINT FROM tinyints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::INTEGER::TINYINT FROM tinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(38,0)::TINYINT FROM tinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::UTINYINT FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::BIGINT FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(38,0)::UBIGINT FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS INTEGER) FROM uhugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":9,"schema_name":"","table_name":"uhugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uhugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::BOOL FROM uhugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[],"qualified_name":{"path":["BOOL"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"uhugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uhugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::UTINYINT FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::HUGEINT FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(38,29)::UINTEGER FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"29"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS SMALLINT) FROM usmallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":10,"schema_name":"","table_name":"usmallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["usmallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(18,0)::USMALLINT FROM usmallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":10,"schema_name":"","table_name":"usmallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["usmallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::TINYINT FROM utinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"utinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["utinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::DECIMAL(3,0)::UTINYINT FROM utinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":9,"schema_name":"","table_name":"utinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["utinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT LENGTH(a) FROM test ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["length"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select cast (null as main.u[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"main","type_name":"u","children":[],"qualified_name":{"path":["main","u"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(struct_pack())","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_concat(row(), row()), struct_concat(row(), {'x': 1}), struct_concat({'x': 1}, row())","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"struct_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["struct_concat"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":30,"function_name":"struct_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_concat"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":30,"function_name":"struct_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["struct_concat"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ((c).i).a FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":9,"children":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":8,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["c"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"STRING","text":"i"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"STRING","text":"a"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT remap_struct({'i': 1, 'j': 2}, NULL::ROW(v1 INT, v2 INT), {'v1': 'j', 'v2': 'i'}, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":87,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":51,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"v2","query_location":59,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v1","query_location":72,"query_location_length":3,"literal":{"kind":"STRING","text":"j"}}},{"name":"v2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v2","query_location":83,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(mapped) = typeof(NULL::STRUCT(renamed STRUCT(a INTEGER))), mapped\nFROM (SELECT remap_struct(\n {'x': NULL::\"NULL\"},\n NULL::STRUCT(renamed STRUCT(a INTEGER)),\n {'renamed': 'x'},\n NULL\n) AS mapped);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":64,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["mapped"]}}],"qualified_name":{"path":["typeof"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":47,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":33,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"renamed","query_location":52,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}}],"qualified_name":{"path":["typeof"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":6,"column_names":["mapped"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":85,"query_location_length":135,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"mapped","query_location":93,"query_location_length":116,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":121,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":140,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":33,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"renamed","query_location":157,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":166,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":181,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"renamed","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"renamed","query_location":193,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(mapped) = typeof(NULL::MAP(VARCHAR, INTEGER)[]), mapped\nFROM (SELECT remap_struct(\n [NULL::\"NULL\", NULL::\"NULL\"],\n NULL::MAP(VARCHAR, INTEGER)[],\n {'list': 'list'},\n NULL\n) AS mapped);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":54,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["mapped"]}}],"qualified_name":{"path":["typeof"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["typeof"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":6,"column_names":["mapped"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":75,"query_location_length":134,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"mapped","query_location":83,"query_location_length":115,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":120,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":154,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"list","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"list","query_location":179,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT remap_struct(\n\t[ {'first_name': 'Alice', 'age': 43} ],\n\tNULL::STRUCT(age INTEGER, given_name VARCHAR)[],\n\t{ 'list': ROW('bag', { 'age': 'age', 'given_name': 'first_name' }) },\n\tNULL\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":183,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":38,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":34,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"first_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"first_name","query_location":39,"query_location_length":7,"literal":{"kind":"STRING","text":"Alice"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":39,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"age","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"given_name","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":68,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":123,"query_location_length":56,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":5,"literal":{"kind":"STRING","text":"bag"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":143,"query_location_length":5,"literal":{"kind":"STRING","text":"age"}}},{"name":"given_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"given_name","query_location":164,"query_location_length":12,"literal":{"kind":"STRING","text":"first_name"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, CASE WHEN i%2=0 THEN {'i': 'hello', 'j': {'a': 3, 'b': NULL}} ELSE {'i': 'world', 'j': {'a': 7, 'b': 22}} END FROM range(6) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":10,"query_location_length":109,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":20,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":40,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":37,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":51,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":65,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":83,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":97,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":111,"query_location_length":2,"literal":{"kind":"INTEGER","text":"22"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":125,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ({'HELLO': 3, 'hello': 4}) col;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"col","query_location":8,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"HELLO","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"HELLO","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"hello","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hello","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'i': 1, 'j': NULL}::ROW(i BIGINT, j ROW(a BIGINT, b VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":43,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":41,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"j","query_location":44,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":50,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1} \u003c {'x': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1} \u003c\u003e {'x': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":20,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l \u003c= r FROM struct_int","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":10,"schema_name":"","table_name":"struct_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_int"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 'duck'} \u003c= NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 'duck'} \u003e= NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 'duck', 'y': 1} \u003c {'x': 'duck', 'y': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":45,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":37,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 'duck', 'y': 1} = NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":28,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL \u003e {'x': 'duck', 'y': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \u003c= {'x': 2, 'y': {'a': 'goose', 'b': 2.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":81,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":39,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":63,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":69,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":83,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \u003e= {'x': 2, 'y': {'a': 'goose', 'b': 2.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":81,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":39,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":63,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":69,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":83,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l \u003e= r FROM struct_nested","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":13,"schema_name":"","table_name":"struct_nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL = {'x': 1, 'y': ['duck', 'somateria']}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":43,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":28,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL \u003e {'x': 1, 'y': ['duck', 'somateria']}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":43,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":28,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select {'x': a, 'y': a+1, 'z': a+2}\u003e={'x': 1, 'y': 2, 'z': 3} from range(5) tbl(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":54,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":13,"query_location_length":1,"column_names":["a"]}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":22,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]}}},{"name":"z","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"z","query_location":32,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":67,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_contains(ROW(1, 2), 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_contains(ROW(1.0, 2.0, 3.0), 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":18,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_contains(ROW(ROW(1, 2), [1,2]), [1, 2]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":21,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_contains(('a'::ENUM('a','b'), 0::UTINYINT), 0::UTINYINT), struct_contains(('a'::ENUM('a','b'), 1::UTINYINT), 0::UTINYINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":33,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":13,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],"qualified_name":{"path":["ENUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["struct_contains"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":63,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":33,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":13,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}],"qualified_name":{"path":["ENUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["struct_contains"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [(13, 24), {'a': 42, 'b': 84}, (43, 85), {'b': 10, 'a': 123123}] AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":64,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"85"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":63,"query_location_length":6,"literal":{"kind":"INTEGER","text":"123123"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT l IS DISTINCT FROM r FROM struct_str","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"struct_str","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_str"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} IS NOT DISTINCT FROM {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":98,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":81,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":87,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":100,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']} IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":62,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'a': 42, 'b': 84}::STRUCT(b INT, a INT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":22,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":20,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"b","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"a","query_location":43,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lhs.id * 10 + rhs.id\nFROM nested_values lhs\nJOIN nested_values rhs ON lhs.value \u003e= rhs.value\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["lhs","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["rhs","id"]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":48,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":33,"query_location_length":17,"schema_name":"","table_name":"nested_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_values"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":56,"query_location_length":17,"schema_name":"","table_name":"nested_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_values"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":77,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":9,"column_names":["lhs","value"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":9,"column_names":["rhs","value"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a from (SELECT STRUCT_PACK(a := 42, b := 43) as a) as t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":22,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["struct_pack"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_position(ROW(7), 5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_position(ROW(NULL, 7), 7)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["struct_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT struct_position(ROW([NULL], [1], [1, 2, 3]), NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":27,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["row"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_position"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i.a, i.c FROM test_structs where col == 'test'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["i","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["i","c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"test_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_structs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":3,"column_names":["col"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT tbl.a['i'] + tbl.b['j'] FROM (VALUES ({'i': 1, 'j': 2})) tbl(b)) FROM (VALUES ({'i': 1, 'j': 2})) tbl(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":72,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":20,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["tbl","a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}]}},{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":33,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":5,"column_names":["tbl","b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"j"}}]}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":44,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":85,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(struct_pack(a := 1, b := 'a'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":39,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(row(1, 'a')) = typeof(struct_pack(a := 1, b := 'a'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":59,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["row"]}}}],"qualified_name":{"path":["typeof"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["typeof"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [NULL, 6] IS DISTINCT FROM [6, 5];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s::JSON, m::JSON FROM 'data/parquet-testing/empty_field_names.parquet' ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["m"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":48,"schema_name":"","table_name":"data/parquet-testing/empty_field_names.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/empty_field_names.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT unnest([{'a':{ 'aa': 42}, 'b':{'bb': 84}}], recursive := true, keep_parent_names := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":89,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":35,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":33,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":20,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"aa","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"aa","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":37,"query_location_length":10,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"bb","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bb","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":64,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":91,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT column_name, column_type FROM (DESCRIBE SELECT unnest([{'': {'': 12}}], recursive := true, keep_parent_names := true));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":88,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":70,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":92,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":119,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT UNNEST([[{'a': 42, 'b': {'x': 99}}, {'a': NULL, 'b': {'x': NULL}}]], max_depth:=1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":60,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":58,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":31,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":49,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":60,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":66,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT unnest(NULL::STRUCT(a INT, b STRUCT(c INT)), recursive := true, keep_parent_names := true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":90,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":32,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":30,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":29,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":36,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"c","query_location":45,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":65,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":92,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT t.x FROM (SELECT UNNEST(a)) t(x)) FROM (VALUES ({'a': 42, 'b': 88})) t(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":41,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["t","x"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":18,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unnest"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":78,"query_location_length":2,"literal":{"kind":"INTEGER","text":"88"}}}],"qualified_name":{"path":["struct_pack"]}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 'abc'::text;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"text","children":[],"qualified_name":{"path":["text"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(i AS VARCHAR) FROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '15:30:00.123456789'::TIME_NS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"15:30:00.123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[],"qualified_name":{"path":["TIME_NS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tns, tns::TIME t\nFROM times","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["tns"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":15,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["tns"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2023-08-20 16:15:03.123456'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"2023-08-20 16:15:03.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '02:30:00+2000'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"literal":{"kind":"STRING","text":"02:30:00+2000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT make_time(23, 59, 60.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"make_time","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"literal":{"kind":"INTEGER","text":"23"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"59"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"60.5"}}}],"qualified_name":{"path":["make_time"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '14:42:04.35'::TIME::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"literal":{"kind":"STRING","text":"14:42:04.35"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '123:4'::VARIANT::TIME","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"123:4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('11/11/11' as time)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"11/11/11"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT max(x) OVER (), min(x) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) FROM z ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":14,"function_name":"max","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["max"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":23,"query_location_length":65,"function_name":"min","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":1,"schema_name":"","table_name":"z","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["z"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2024-05-10 11:06:33.123446'::TIMESTAMP_MS;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"2024-05-10 11:06:33.123446"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(ts), MAX(ts), MIN(tstz), MAX(tstz), MIN(dt), MAX(dt)\nFROM specials;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":9,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["tstz"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["tstz"]}}],"qualified_name":{"path":["max"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":7,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":7,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":8,"schema_name":"","table_name":"specials","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["specials"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAD(ts), MAD(tstz), MAD(dt)\nFROM specials;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["mad"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":9,"function_name":"mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["tstz"]}}],"qualified_name":{"path":["mad"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":7,"function_name":"mad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["dt"]}}],"qualified_name":{"path":["mad"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"specials","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["specials"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'e'::DATE","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MAX(t) FROM timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t::DATE FROM timestamp WHERE EXTRACT(YEAR from t)=2007 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"YEAR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["t"]}}],"qualified_name":{"path":["date_part"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2007"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TIMESTAMP '2001-04-20 14:42:11.12300000000000000000';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":52,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2001-04-20 14:42:11.12300000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select nano::TIME from timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["nano"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2008-01-01 00:00:11'::TIMESTAMP_US = '2008-01-01 00:00:11'::TIMESTAMP_S","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":72,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"literal":{"kind":"STRING","text":"2008-01-01 00:00:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_US","children":[],"qualified_name":{"path":["TIMESTAMP_US"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":21,"literal":{"kind":"STRING","text":"2008-01-01 00:00:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select timestamptz '2021-11-15 02:30:00';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2021-11-15 02:30:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select timestamp '294247-01-10 04:00:54.775806'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select monthname(timestamp '294247-01-10 04:00:54.775806'), monthname(timestamp '290309-12-22 (BC) 00:00:00')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"monthname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["monthname"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":49,"function_name":"monthname","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"290309-12-22 (BC) 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["monthname"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT epoch_ns(CAST('1677-09-21 00:12:43.145224192' AS TIMESTAMP_NS)),\n epoch_ns(CAST('1677-09-21 00:12:43.145224194' AS TIMESTAMP_NS))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"epoch_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":53,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":31,"literal":{"kind":"STRING","text":"1677-09-21 00:12:43.145224192"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["epoch_ns"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":63,"function_name":"epoch_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":53,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":31,"literal":{"kind":"STRING","text":"1677-09-21 00:12:43.145224194"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":128,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}}],"qualified_name":{"path":["epoch_ns"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TIMESTAMP '2021-05-25 04:55:03.382494 UTC';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2021-05-25 04:55:03.382494 UTC"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('1111-11-' as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"1111-11-"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('294247-01-10 04:00:54.775806' as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":53,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":30,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select timestamptz '2020-12-31 21:25:58.745232-02';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-12-31 21:25:58.745232-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::DECIMAL(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::MAP;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"MAP","children":[],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(DECIMAL(4,2) '1.23'), DECIMAL(4,2) '1.23', typeof(STRUCT(a INTEGER) '{\"a\": 42}');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1.23"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["typeof"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1.23"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"{\"a\": 42}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}}],"qualified_name":{"path":["typeof"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 42::UHUGEINT + 42::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '34028236692093846346'::UHUGEINT * '33746074317682114556'::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":67,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":22,"literal":{"kind":"STRING","text":"34028236692093846346"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":22,"literal":{"kind":"STRING","text":"33746074317682114556"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 + '340282366920938463463374607431768211454'::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":41,"literal":{"kind":"STRING","text":"340282366920938463463374607431768211454"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0'::UHUGEINT, '-0'::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"STRING","text":"-0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (-42)::TINYINT::UHUGEINT, (-42)::SMALLINT::UHUGEINT, (-42)::INTEGER::UHUGEINT, (-42)::BIGINT::UHUGEINT, (-42)::FLOAT::UHUGEINT, (-42)::DOUBLE::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":140,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '9223372036854775808'::UHUGEINT::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"literal":{"kind":"STRING","text":"9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select abs(1::UHUGEINT), abs('1329227995784915872903807060280344576'::UHUGEINT), abs(0::UHUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["abs"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":54,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":39,"literal":{"kind":"STRING","text":"1329227995784915872903807060280344576"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["abs"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":16,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["abs"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM uhugeints WHERE h \u003c= '1267650600228229401496703205376'::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"uhugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uhugeints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":37,"query_location_length":48,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["h"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":33,"literal":{"kind":"STRING","text":"1267650600228229401496703205376"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 251658240::UHUGEINT * 4642275147320176030871715840::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"INTEGER","text":"251658240"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":28,"literal":{"kind":"INTEGER","text":"4642275147320176030871715840"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 19938419936773738093557105904205168640::UHUGEINT * 4642275147320176030871715840::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":89,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"INTEGER","text":"19938419936773738093557105904205168640"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":28,"literal":{"kind":"INTEGER","text":"4642275147320176030871715840"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 4611686018427387904::UHUGEINT * 36893488147419103231::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":62,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4611686018427387904"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":20,"literal":{"kind":"INTEGER","text":"36893488147419103231"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast({'tag': 5::UTINYINT, 'a': 1, 'b': NULL::VARCHAR} AS UNION(a INT, b VARCHAR))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":81,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":48,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"tag","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"tag","query_location":21,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":72,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":79,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a.c FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["a","c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT u.f32 FROM tbl2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["u","f32"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag((1::INTEGER::UNION(lu UNION(f1 VARCHAR, f2 BOOL), ru UNION(t BIGINT, f3 TINYINT))).ru);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":96,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":17,"query_location_length":85,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":70,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":68,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"lu","query_location":39,"query_location_length":26,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"f1","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"f2","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[],"qualified_name":{"path":["BOOL"]}}],"qualified_name":{"path":["UNION"]}},{"class":"TYPE","type":"TYPE","alias":"ru","query_location":70,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"t","query_location":78,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"f3","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}],"qualified_name":{"path":["UNION"]}}],"qualified_name":{"path":["UNION"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":3,"literal":{"kind":"STRING","text":"ru"}}]}}],"qualified_name":{"path":["union_tag"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT u.c FROM tbl1 WHERE u.c IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["u","c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":31,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["u","c"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT tbl1.a.c, tbl1.id, tbl2.id FROM tbl2 JOIN tbl1 ON tbl1.a.c = tbl2.d.f ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["tbl1","a","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":7,"column_names":["tbl1","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":7,"column_names":["tbl2","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":8,"column_names":["tbl1","a","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":8,"column_names":["tbl2","d","f"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT u.a1 FROM tbl1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["u","a1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag(a), a FROM tbl ORDER BY a ASC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["union_tag"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag(u) FROM tbl1 WHERE u = (1::UNION(a INT, b FLOAT, c VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["union_tag"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["u"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":32,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":59,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT try_cast(union_value(a := 'x')::UNION(a VARCHAR, b INT) AS UNION(a INT, b INT, c INT)),\n try_cast(union_value(a := '7')::UNION(a VARCHAR, b INT) AS UNION(a INT, b INT, c INT));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":86,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":25,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":21,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":33,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}}],"qualified_name":{"path":["union_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":26,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":74,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":81,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":88,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":86,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":25,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":21,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":128,"query_location_length":3,"literal":{"kind":"STRING","text":"7"}}}],"qualified_name":{"path":["union_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":134,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":142,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":153,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":26,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":169,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":176,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":183,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["UNION"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (20)::UTINYINT + (200)::USMALLINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100::UTINYINT // 0::UTINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["//"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 100000000::INTEGER + 100::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"INTEGER","text":"100000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}}],"qualified_name":{"path":["+"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '65535'::UINTEGER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"65535"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (100::UINTEGER)::DECIMAL(2,0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '18446744073709551616'::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":22,"literal":{"kind":"STRING","text":"18446744073709551616"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (9223372036854775807)::BIGINT::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (-42)::SMALLINT::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (-42)::FLOAT::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (10)::USMALLINT::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (33000)::UBIGINT::SMALLINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"INTEGER","text":"33000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (200.32)::DECIMAL::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"200.32"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select []::uint32[]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":10,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":6,"catalog":"","schema":"","type_name":"uint32","children":[],"qualified_name":{"path":["uint32"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '00000000-0000-0000-0000-000000000000'::UUID::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"STRING","text":"00000000-0000-0000-0000-000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[],"qualified_name":{"path":["UUID"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v IS NULL, v IS NOT NULL FROM variants;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":9,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":20,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["v"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"variants","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["variants"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2019/03/21'::TIMESTAMP::VARIANT::TIMESTAMP;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2019/03/21"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [\n\t42::UNION(a INTEGER, b BOOLEAN, c VARCHAR)::VARIANT,\n\ttrue::UNION(a INTEGER, b BOOLEAN, c VARCHAR)::VARIANT,\n\t'test'::UNION(a INTEGER, b BOOLEAN, c VARCHAR)::VARIANT,\n]::VARIANT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":178,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":171,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":166,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":126,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":128,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":147,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":158,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":168,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (v.outer).a, variant_keys(v, 'outer'), v::JSON\nFROM (SELECT '{\"outer\":{\"a\":1,\"b\":2,\"a\":3}}'::JSON::VARIANT AS v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":7,"column_names":["v","outer"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"STRING","text":"a"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":24,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"literal":{"kind":"STRING","text":"outer"}}}],"qualified_name":{"path":["variant_keys"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":59,"query_location_length":60,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":104,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":98,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":31,"literal":{"kind":"STRING","text":"{\"outer\":{\"a\":1,\"b\":2,\"a\":3}}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select var::VARIANT from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["var"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM (SELECT list_intersect(['a', 'b']::VARIANT[], [x::VARIANT, 'b']) l FROM (SELECT 'v' || i AS x FROM range(5000) t(i))) WHERE len(l) = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":117,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":29,"query_location_length":56,"function_name":"list_intersect","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_intersect"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":93,"query_location_length":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":101,"query_location_length":8,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["||"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":120,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":145,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["len"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast('hello world'::variant as STRUCT(a varchar, b boolean));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":64,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select try_cast([['1'], ['bad'], ['3']]::variant as INTEGER[][]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":57,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s.shredding_state, s.fully_shredded.type, s.has_null, s.fully_shredded.stats.has_null\nFROM (SELECT stats(TRY_CAST(n AS VARIANT)) s FROM t LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["s","shredding_state"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":21,"column_names":["s","fully_shredded","type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":31,"column_names":["s","fully_shredded","stats","has_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":98,"query_location_length":55,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":106,"query_location_length":29,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["n"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["stats"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":143,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT j::VARIANT::JSON FROM jw;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":2,"schema_name":"","table_name":"jw","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["jw"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 10.5 * 1::VARIANT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.5"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["*"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::VARIANT IS NOT DISTINCT FROM [1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":38,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ['duck']::VARIANT IS NOT DISTINCT FROM ['duck']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":47,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT [{'x': 'duck', 'y': 1}]::VARIANT IS DISTINCT FROM [{'x': 'duck', 'y': 1}]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":73,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":64,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT NULL::VARIANT IS DISTINCT FROM {'x': 'duck'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":44,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}::VARIANT IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":73,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']}::VARIANT IS DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":67,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT variant_typeof(v), CAST(v AS VARCHAR), CAST(variant_keys(v) AS VARCHAR), v = {'l': [42], 'o': {'x': 42}}::VARIANT\nFROM (SELECT {'o': {'x': 42}, 'l': [42]}::VARIANT AS v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"variant_typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_typeof"]}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":15,"function_name":"variant_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["variant_keys"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["v"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":111,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"l","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":90,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}}},{"name":"o","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"o","query_location":101,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":107,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":113,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":126,"query_location_length":50,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":161,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"o","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"o","query_location":140,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":146,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]}}},{"name":"l","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":156,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT n.x::STRUCT(a BIGINT), n.x.a FROM (SELECT * FROM cast_parent);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["n","x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":16,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["n","x","a"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":41,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":49,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":11,"schema_name":"","table_name":"cast_parent","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cast_parent"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, nested.inner_struct.tag, nested.inner_struct.payload.obj.a::INTEGER,\n nested.inner_struct.payload.obj.b::VARCHAR\nFROM (SELECT * FROM nested_variant) ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":23,"column_names":["nested","inner_struct","tag"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":33,"column_names":["nested","inner_struct","payload","obj","a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":120,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":33,"column_names":["nested","inner_struct","payload","obj","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":135,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":143,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"query_location_length":14,"schema_name":"","table_name":"nested_variant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_variant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM cast_parent;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"cast_parent","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cast_parent"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ({'a': NULL::INTEGER, 'b': 1}::VARIANT::JSON)::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":28,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":18,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT CAST(x AS MAP(VARCHAR, INT)) FROM (VALUES ([{'key': 'b', 'value': 2}]::VARIANT), ([NULL]::VARIANT)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":26,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"key","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM checkpoint_test WHERE b = 'original'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":15,"schema_name":"","table_name":"checkpoint_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["checkpoint_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":10,"literal":{"kind":"STRING","text":"original"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('force_update_to_del_and_insert')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":32,"literal":{"kind":"STRING","text":"force_update_to_del_and_insert"}}}],"qualified_name":{"path":["current_setting"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select struct_pack(*COLUMNS('id')) a, struct_pack(*COLUMNS('name')) from data","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":7,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":19,"query_location_length":14,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}},"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":50,"query_location_length":16,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":6,"literal":{"kind":"STRING","text":"name"}},"qualified_exclude_list":[],"rename_list":[]}]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":4,"schema_name":"","table_name":"data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n\t[\n\t\tUNPACK(\n\t\t\t[\n\t\t\t\tCOLUMNS(['d'])\n\t\t\t]\n\t\t)\n\t]\nfrom (select 21 a, 42 b, 1337 c)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":47,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":12,"query_location_length":40,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":61,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":81,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1337"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM query('SELECT 1' || repeat(' IS NULL', 150))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":44,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":37,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":10,"literal":{"kind":"STRING","text":"SELECT 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":23,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"literal":{"kind":"STRING","text":" IS NULL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"INTEGER","text":"150"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["query"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM query('SELECT x IS NULL FROM (SELECT NULL::' || repeat('STRUCT(a ', 50) || 'INTEGER' || repeat(')', 50) || ' AS x)')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":116,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":109,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":38,"literal":{"kind":"STRING","text":"SELECT x IS NULL FROM (SELECT NULL::"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":23,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":11,"literal":{"kind":"STRING","text":"STRUCT(a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":15,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"literal":{"kind":"STRING","text":")"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":8,"literal":{"kind":"STRING","text":" AS x)"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["query"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT * FROM (SELECT x FROM (SELECT 1 AS x) t1) t2) t3 JOIN LATERAL (SELECT x + 1 AS y) t4 ON true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":43,"left":{"type":"SUBQUERY","alias":"t3","sample":null,"query_location":14,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":29,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":44,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"t4","sample":null,"query_location":84,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":94,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2^3**2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"**","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"^","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["^"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["**"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT user FROM (VALUES ('hello world')) t(user)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["user"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":17,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":13,"literal":{"kind":"STRING","text":"hello world"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["user"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"VALUES (42,)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT _1099_vendors._1099_amount, main._1099_vendors.id FROM main._1099_vendors;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":26,"column_names":["_1099_vendors","_1099_amount"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":21,"column_names":["main","_1099_vendors","id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":18,"schema_name":"main","table_name":"_1099_vendors","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","_1099_vendors"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM wide_maps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"wide_maps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_maps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT e'\\x41' = 'A';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":13,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"A"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_agg(col0) WITHIN GROUP (ORDER BY col0) FILTER (WHERE col0 \u003e 1) OVER () FROM t LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":76,"function_name":"array_agg","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":66,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":4,"column_names":["col0"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["col0"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["col0"]}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NOT 1 IN (1) IN (TRUE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":22,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":23,"query_location_length":6,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":16,"query_location_length":3,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 a_b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a_b","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT starts_with(hex(content), '1F8B') FROM read_blob('{TEST_DIR}/copy_file_name_auto.csv.gz');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"starts_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":12,"function_name":"hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["content"]}}],"qualified_name":{"path":["hex"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":6,"literal":{"kind":"STRING","text":"1F8B"}}}],"qualified_name":{"path":["starts_with"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_blob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":39,"literal":{"kind":"STRING","text":"{TEST_DIR}/copy_file_name_auto.csv.gz"}}}],"qualified_name":{"path":["read_blob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from person;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 IS DISTINCT FROM 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select B'1010';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"BIT","text":"1010"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (OID, CONRELID, connamespace) FROM pg_catalog.pg_constraint","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":39,"relation_name":"","exclude_list":["OID","CONRELID","connamespace"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":24,"schema_name":"pg_catalog","table_name":"pg_constraint","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_constraint"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM pg_namespace","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"pg_namespace","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_namespace"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, setting FROM pg_settings WHERE name='default_null_order';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["setting"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":11,"schema_name":"","table_name":"pg_settings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_settings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":20,"literal":{"kind":"STRING","text":"default_null_order"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT oid FROM pg_type WHERE typname = 'float4' AND oid IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["oid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":7,"schema_name":"","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_type"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":38,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":7,"column_names":["typname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"literal":{"kind":"STRING","text":"float4"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":57,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["oid"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pg_catalog.format_pg_type('DECIMAL', 'test');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"format_pg_type","schema":"pg_catalog","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":9,"literal":{"kind":"STRING","text":"DECIMAL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}}],"qualified_name":{"path":["pg_catalog","format_pg_type"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXISTS (\n\tSELECT * FROM pg_catalog.pg_type t, pg_catalog.pg_namespace n\n\tWHERE t.typnamespace = n.oid\n\tAND t.typname = 'integer'\n\tAND n.nspname = 'main'\n\t)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":155,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":26,"query_location_length":52,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":31,"query_location_length":20,"schema_name":"pg_catalog","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_type"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":53,"query_location_length":25,"schema_name":"pg_catalog","table_name":"pg_namespace","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_namespace"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":86,"query_location_length":73,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":14,"column_names":["t","typnamespace"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":5,"column_names":["n","oid"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":9,"column_names":["t","typname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":9,"literal":{"kind":"STRING","text":"integer"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":141,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":9,"column_names":["n","nspname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":6,"literal":{"kind":"STRING","text":"main"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a.attname\nFROM pg_attribute a JOIN (\n\tSELECT unnest(ix.indkey) attnum,\n\t\t\tgenerate_subscripts(ix.indkey, 1) ord\n\tFROM pg_index ix\n\tWHERE ix.indrelid = (SELECT MIN(table_oid) FROM duckdb_tables) AND ix.indisprimary\n\t) k ON a.attnum=k.attnum\nWHERE a.attrelid = (SELECT MIN(table_oid) FROM duckdb_tables)\nORDER BY k.ord","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":318,"query_location_length":5,"column_names":["k","ord"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":9,"column_names":["a","attname"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":209,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":22,"query_location_length":14,"schema_name":"","table_name":"pg_attribute","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_attribute"]}},"right":{"type":"SUBQUERY","alias":"k","sample":null,"query_location":42,"query_location_length":181,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"attnum","query_location":52,"query_location_length":17,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":9,"column_names":["ix","indkey"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"ord","query_location":81,"query_location_length":33,"function_name":"generate_subscripts","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":9,"column_names":["ix","indkey"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_subscripts"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"ix","sample":null,"query_location":125,"query_location_length":11,"schema_name":"","table_name":"pg_index","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_index"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":144,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":56,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":11,"column_names":["ix","indrelid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":158,"query_location_length":42,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":166,"query_location_length":14,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":9,"column_names":["table_oid"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":186,"query_location_length":13,"schema_name":"","table_name":"duckdb_tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_tables"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":15,"column_names":["ix","indisprimary"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":229,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":8,"column_names":["a","attnum"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":8,"column_names":["k","attnum"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":253,"query_location_length":55,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":10,"column_names":["a","attrelid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":266,"query_location_length":42,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":274,"query_location_length":14,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":278,"query_location_length":9,"column_names":["table_oid"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":294,"query_location_length":13,"schema_name":"","table_name":"duckdb_tables","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_tables"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pg_catalog.CURRENT_DATABASE()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"current_database","schema":"pg_catalog","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pg_catalog","current_database"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT temp.current_user()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"current_user","schema":"temp","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["temp","current_user"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM\n (SELECT product, sales, quarter FROM Produce)\n PIVOT(SUM(sales) FOR quarter IN ('Q1', 'Q2', 'Q3'))\n ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":70,"query_location_length":44,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":16,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":7,"column_names":["product"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["sales"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":7,"column_names":["quarter"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":7,"schema_name":"","table_name":"Produce","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Produce"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["sales"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["quarter"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"STRING","text":"Q1"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"STRING","text":"Q2"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"STRING","text":"Q3"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT year, q1, q2, q3, q4\n FROM (SELECT year, quarter, sales FROM sales) AS s\n PIVOT (sum(sales)\n FOR quarter\n IN (1 AS q1, 2 AS q2, 3 AS q3, 4 AS q4));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["year"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":2,"column_names":["q1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":2,"column_names":["q2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["q3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["q4"]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":90,"query_location_length":70,"source":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":35,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["year"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":7,"column_names":["quarter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["sales"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":5,"schema_name":"","table_name":"sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sales"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":5,"column_names":["sales"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["quarter"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"q1","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"alias":"q1"},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"q2","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"alias":"q2"},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"q3","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"alias":"q3"},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"q4","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"alias":"q4"}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\n FROM monthly_sales\n PIVOT(SUM(amount) FOR MONTH IN not_an_enum)\n AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":40,"query_location_length":36,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":6,"column_names":["amount"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[],"pivot_enum":"not_an_enum"}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t PIVOT (count(*) FOR col IN (CAST(map(['a'], [1]) AS VARCHAR)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":23,"query_location_length":54,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["col"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":15,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM (SELECT 1 a, NULL::INTEGER b, [1] c)\nPIVOT (min(a) FOR (b, c) IN ((NULL, [1])));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":58,"query_location_length":34,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":31,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":44,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["c"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\n FROM monthly_sales\n PIVOT(SUM(amount) FOR MONTH IN ('JAN', 'FEB', 'MAR', 'DEC'))\n AS p\n ORDER BY EMPID;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":5,"column_names":["EMPID"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"p","sample":null,"query_location":40,"query_location_length":53,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":6,"column_names":["amount"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"literal":{"kind":"STRING","text":"JAN"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":5,"literal":{"kind":"STRING","text":"FEB"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":5,"literal":{"kind":"STRING","text":"MAR"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"literal":{"kind":"STRING","text":"DEC"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM\n(\n SELECT DaysToManufacture, StandardCost\n FROM Product\n) AS SourceTable\nPIVOT\n(\n AVG(StandardCost)\n FOR DaysToManufacture IN ('zz')\n) AS PivotTable;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"PivotTable","sample":null,"query_location":90,"query_location_length":51,"source":{"type":"SUBQUERY","alias":"SourceTable","sample":null,"query_location":5,"query_location_length":59,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":17,"column_names":["DaysToManufacture"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":12,"column_names":["StandardCost"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":7,"schema_name":"","table_name":"Product","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Product"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":17,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":12,"column_names":["StandardCost"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":17,"column_names":["DaysToManufacture"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":4,"literal":{"kind":"STRING","text":"zz"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM monthly_sales\n UNPIVOT(sales FOR month IN (''))\n ORDER BY empid;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["empid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":40,"query_location_length":23,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"monthly_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["monthly_sales"]}},"aggregates":[],"unpivot_names":["sales"],"pivots":[{"pivot_expressions":[],"unpivot_names":["month"],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"STRING","text":""}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, g, n, n_1 FROM (UNPIVOT w ON a, b INTO NAME n VALUE n) ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["n"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["n_1"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":26,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"aggregates":[],"unpivot_names":["n"],"pivots":[{"pivot_expressions":[],"unpivot_names":["n"],"entries":[{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]},"alias":""},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["b"]},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"unpivot (select 42 as col1, 'woot' as col2)\n on t.col1::VARCHAR, col2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":8,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":28,"query_location_length":6,"literal":{"kind":"STRING","text":"woot"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[],"unpivot_names":["value"],"pivots":[{"pivot_expressions":[],"unpivot_names":["name"],"entries":[{"values":[],"star_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":6,"column_names":["t","col1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"alias":""},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["col2"]},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":1,"schema_name":"","table_name":"v","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tCASE WHEN storage.attach_load_storage_latency \u003e= 0 THEN 'true'\n\tELSE 'false' END\nFROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":8,"query_location_length":80,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":18,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":35,"column_names":["storage","attach_load_storage_latency"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN storage.wal_replay_entry_count \u003e 0 THEN 'true' ELSE 'false' END FROM replay_metrics;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":73,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":17,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":30,"column_names":["storage","wal_replay_entry_count"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":14,"schema_name":"","table_name":"replay_metrics","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["replay_metrics"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT unnest(current_setting('tracked_metrics'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":34,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":17,"literal":{"kind":"STRING","text":"tracked_metrics"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tCASE WHEN query.total_rows_scanned = 8 THEN NULL\n\tELSE metrics_output END\nFROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":8,"query_location_length":73,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":24,"column_names":["query","total_rows_scanned"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":14,"column_names":["metrics_output"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT intermediate_rows,\n\ttiming,\n\ttype\nFROM (\n\tSELECT unnest(operator, max_depth := 2)\n\tFROM metrics_output\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["intermediate_rows"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":6,"column_names":["timing"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":46,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":32,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":8,"column_names":["operator"]}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT metric_name, metric_type, description, unit\nFROM duckdb_available_metrics()\nWHERE metric_name = 'io.total_read_operations';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["metric_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["metric_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":11,"column_names":["description"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["unit"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":56,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_available_metrics","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_available_metrics"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":11,"column_names":["metric_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":26,"literal":{"kind":"STRING","text":"io.total_read_operations"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM range(1000) t(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":19,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i), max(s) FROM '{TEST_DIR}/bytes_scanned_1.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":36,"schema_name":"","table_name":"{TEST_DIR}/bytes_scanned_1.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bytes_scanned_1.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename LIKE '%bytes_scanned_1.csv')\nFROM '{TEST_DIR}/bytes_scanned_csv_one.json';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":95,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":25,"column_names":["query","total_bytes_scanned"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":67,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["size"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":5,"schema_name":"","table_name":"sizes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sizes"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":27,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":22,"literal":{"kind":"STRING","text":"%bytes_scanned_1.csv"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":108,"query_location_length":39,"schema_name":"","table_name":"{TEST_DIR}/bytes_scanned_csv_one.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bytes_scanned_csv_one.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT query.total_bytes_scanned = (SELECT sum(size) FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_many_[1-5]\\.csv')\nFROM '{TEST_DIR}/bytes_scanned_csv_many.json';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":117,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":25,"column_names":["query","total_bytes_scanned"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":89,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["size"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":5,"schema_name":"","table_name":"sizes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sizes"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":44,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":33,"literal":{"kind":"STRING","text":".*bytes_scanned_many_[1-5]\\.csv"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":40,"schema_name":"","table_name":"{TEST_DIR}/bytes_scanned_csv_many.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bytes_scanned_csv_many.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT query.total_bytes_scanned = (SELECT size FROM sizes WHERE filename SIMILAR TO '.*bytes_scanned_1\\.json\\.gz')\nFROM '{TEST_DIR}/bytes_scanned_json_gzip.json';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":108,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":25,"column_names":["query","total_bytes_scanned"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":80,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["size"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":5,"schema_name":"","table_name":"sizes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sizes"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":40,"function_name":"regexp_full_match","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":29,"literal":{"kind":"STRING","text":".*bytes_scanned_1\\.json\\.gz"}}}],"qualified_name":{"path":["regexp_full_match"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":121,"query_location_length":41,"schema_name":"","table_name":"{TEST_DIR}/bytes_scanned_json_gzip.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bytes_scanned_json_gzip.json"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tCASE WHEN io.total_bytes_written \u003e 0 THEN 'true'\n\tELSE 'false' END\nFROM metrics_output;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":8,"query_location_length":66,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":18,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":22,"column_names":["io","total_bytes_written"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":7,"literal":{"kind":"STRING","text":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":14,"schema_name":"","table_name":"metrics_output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["metrics_output"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM pragma_database_list","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"","table_name":"pragma_database_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pragma_database_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100;SELECT 200","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW TABLES FROM db1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":null,"show_type":"SHOW_FROM","catalog_name":"","schema_name":"db1","qualified_name":{"path":["db1",""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM pragma_table_info(t1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_table_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["t1"]}}],"qualified_name":{"path":["pragma_table_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM generate_series(1, 10) t(x) OFFSET 3 LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":14,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT result_types IS NULL FROM duckdb_prepared_statements() WHERE name = 'cached_temp_insert';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["result_types"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_prepared_statements","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_prepared_statements"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":20,"literal":{"kind":"STRING","text":"cached_temp_insert"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT prof.query.sql LIKE '%error(''boom'')%', len(prof.operator) \u003e 0\nFROM read_json('{TEST_DIR}/failed_query_profile.json') prof;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":24,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["prof","query","sql"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":19,"literal":{"kind":"STRING","text":"%error('boom')%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":48,"query_location_length":22,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":18,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":13,"column_names":["prof","operator"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"prof","sample":null,"query_location":76,"query_location_length":54,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":38,"literal":{"kind":"STRING","text":"{TEST_DIR}/failed_query_profile.json"}}}],"qualified_name":{"path":["read_json"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM generate_series(TIMESTAMP '2000-01-01', TIMESTAMP '2001-01-01', INTERVAL 1 MINUTE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2001-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":17,"function_name":"to_minutes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_minutes"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT * FROM range(100000) t(i) USING SAMPLE 10000 ROWS)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":36,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":10000},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE t(k, v) USING KEY (k) AS (SELECT i, 0 FROM range(10000) t(i) UNION (SELECT r.k, r.v + 1 FROM recurring.t r WHERE r.v \u003c 3 AND EXISTS (SELECT 1 FROM t LIMIT 1))) SELECT count(*), sum(v) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"t","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":58,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["r","k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":108,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":128,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":128,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":3,"column_names":["r","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":140,"query_location_length":32,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":162,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":192,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":204,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH p AS MATERIALIZED (\n SELECT s, r, i AS j, l, i AS duplicate FROM projection_input WHERE i % 2 = 1\n)\nSELECT count(*), sum(j), count(s), bool_and(j = duplicate),\n bool_and(l[1] = j AND l[2] IS NULL AND l[3] = j + 1),\n bool_and(r.x = j AND r.y = j::VARCHAR AND (s IS NOT DISTINCT FROM\n CASE WHEN j % 7 = 0 THEN NULL ELSE 'long value carried through a projection ' || j::VARCHAR END))\nFROM p","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"p","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":42,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["l"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"duplicate","query_location":53,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":16,"schema_name":"","table_name":"projection_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["projection_input"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":23,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":152,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":9,"column_names":["duplicate"]}}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":175,"query_location_length":52,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":8,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":185,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":1,"column_names":["j"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":202,"query_location_length":7,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":198,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":214,"query_location_length":12,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":215,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":223,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":221,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":236,"query_location_length":174,"function_name":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":245,"query_location_length":164,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":245,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":245,"query_location_length":3,"column_names":["r","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":1,"column_names":["j"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":257,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"query_location_length":3,"column_names":["r","y"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":264,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":1,"column_names":["j"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":266,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":279,"query_location_length":129,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":1,"column_names":["s"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":313,"query_location_length":95,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":323,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":323,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":323,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":327,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":331,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":338,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":348,"query_location_length":56,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":348,"query_location_length":42,"literal":{"kind":"STRING","text":"long value carried through a projection "}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":395,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":394,"query_location_length":1,"column_names":["j"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":397,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}}]}}],"qualified_name":{"path":["bool_and"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":416,"query_location_length":1,"schema_name":"","table_name":"p","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["p"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT integers.* EXCLUDE (j) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":22,"relation_name":"integers","exclude_list":["j"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (\"table.with.dot\".\"column.with.dot\") FROM (SELECT 1 AS \"column.with.dot\", 2 AS c) AS \"table.with.dot\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":46,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"table.with.dot","column":"column.with.dot"}],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"table.with.dot","sample":null,"query_location":59,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column.with.dot","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCEPT (\"J\") FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":14,"relation_name":"","exclude_list":["J"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCEPT integers.i FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":19,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"integers","column":"i"}],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * ILIKE 'COL%' FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":12,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":6,"literal":{"kind":"STRING","text":"COL%"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t1.* LIKE 'col%' FROM t1, t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":11,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":4,"relation_name":"t1","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"col%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r FROM (SELECT struct.* RENAME (i AS r) FROM (SELECT {'i': 42} AS struct))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":67,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":24,"relation_name":"struct","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"","schema":"","table":"","column":"i"},"value":"r"}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"struct","query_location":60,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT integers.* REPLACE (i+100 AS blabla) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":36,"relation_name":"integers","exclude_list":[],"replace_list":[{"key":"blabla","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a.* REPLACE(a.i + 3 AS i) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":25,"relation_name":"a","exclude_list":[],"replace_list":[{"key":"i","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":3,"column_names":["a","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COLUMNS(* REPLACE (a + 10 AS a, b + 20 AS b)) FROM test_t1 NATURAL JOIN test_t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":15,"query_location_length":36,"relation_name":"","exclude_list":[],"replace_list":[{"key":"a","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"key":"b","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":66,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":7,"schema_name":"","table_name":"test_t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":7,"schema_name":"","table_name":"test_t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_t2"]}},"condition":null,"join_type":"INNER","ref_type":"NATURAL","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM intest WHERE a IN (NULL, NULL, NULL, NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"intest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["intest"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":24,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM strtest WHERE b = 'a'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strtest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strtest"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid BETWEEN -1 AND 1, 0 BETWEEN rowid AND 1, 1 BETWEEN -3 AND rowid FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":13,"query_location_length":16,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":33,"query_location_length":19,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":5,"column_names":["rowid"]},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":56,"query_location_length":20,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["rowid"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a WHERE rowid BETWEEN -100 AND 100 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":28,"query_location_length":20,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["rowid"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-100"}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2 * (42 + 1), 35 - 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"35"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(cast(a AS VARCHAR) as INTEGER) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (1, 2, 3), (1, 2, 3)) v1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"v1","sample":null,"query_location":14,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM varchars ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"varchars","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["varchars"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM indexed_returning WHERE id = 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":17,"schema_name":"","table_name":"indexed_returning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["indexed_returning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(DISTINCT i)\nFROM range(10000) t(i) USING SAMPLE 1 ROWS (reservoir, 42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":true,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":40,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1},"is_percentage":false,"method":"Reservoir","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from range(100000) using sample (10000);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":10000},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"select a, count(*) \u003e 650 from duckdb_table_sample('materialized_range') group by all order by a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":10,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"INTEGER","text":"650"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_table_sample","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":20,"literal":{"kind":"STRING","text":"materialized_range"}}}],"qualified_name":{"path":["duckdb_table_sample"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from duckdb_table_sample('t1') where b is null;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_table_sample","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"STRING","text":"t1"}}}],"qualified_name":{"path":["duckdb_table_sample"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":55,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM test_table USING SAMPLE 250 ROWS (system, 42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":250},"is_percentage":false,"method":"System","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT * FROM test_table WHERE i % 2 = 0) tbl(i) USING SAMPLE 200 ROWS (system);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":200},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"select scope from duckdb_secrets() where name='scope_as_struct'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["scope"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_secrets","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_secrets"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":17,"literal":{"kind":"STRING","text":"scope_as_struct"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name FROM which_secret('https://example.com/data/file.csv', 'http')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"which_secret","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":35,"literal":{"kind":"STRING","text":"https://example.com/data/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"literal":{"kind":"STRING","text":"http"}}}],"qualified_name":{"path":["which_secret"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name FROM duckdb_secrets() ORDER BY name;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_secrets","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_secrets"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT test.tbl.col FROM test.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["test","tbl","col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"test","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (s1.t1.t) FROM s1.t1, s2.t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":19,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"s1","table":"t1","column":"t"}],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":27,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":5,"schema_name":"s1","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":5,"schema_name":"s2","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s2","t1"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT #2 AS x FROM t WHERE (SELECT x) IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"x","query_location":7,"query_location_length":2,"index":2}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":39,"query_location_length":7,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select column_name from (describe SELECT \"hel lo\" : 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hel lo","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from r : range(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":5,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT greatest(1, 2, (SELECT 30));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":22,"query_location_length":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["greatest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM operator_merge_target ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"","table_name":"operator_merge_target","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["operator_merge_target"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l LIMIT 999) INTERSECT ALL (SELECT s FROM r));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":76,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"literal":{"kind":"INTEGER","text":"999"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":30,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM ((SELECT s COLLATE NOCASE FROM l) EXCEPT ALL (SELECT s FROM r));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":63,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":30,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 42 EXCEPT SELECT 42 WHERE 1=0","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM v1 JOIN v2 USING (i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":2,"schema_name":"","table_name":"v2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from a except select * from b except select * from c","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":30,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":53,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT 1.1 AS two UNION ALL SELECT 2 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"two","query_location":7,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT '[' || f1 || ']' AS value FROM VARCHAR_TBL\nUNION\nSELECT '[' || CAST(f1 AS varchar) || ']' FROM CHAR_TBL\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"value","query_location":7,"query_location_length":16,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"["}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["f1"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"]"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":11,"schema_name":"","table_name":"VARCHAR_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["VARCHAR_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"["}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":2,"column_names":["f1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"literal":{"kind":"STRING","text":"]"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":8,"schema_name":"","table_name":"CHAR_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CHAR_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"(SELECT 1,2,3 UNION SELECT 4,5,6 ORDER BY 1,2) INTERSECT SELECT 4,5,6;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT q1 FROM int8_tbl EXCEPT SELECT q2 FROM int8_tbl ORDER BY q2 LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":2,"column_names":["q2"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"setop_type":"EXCEPT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":8,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":2,"column_names":["q2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":8,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT a FROM test WHERE a \u003c 13 UNION ALL SELECT a FROM test WHERE a = 13","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":25,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT x FROM t1 UNION ALL BY NAME SELECT x FROM t1 ORDER BY t1.x;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["t1","x"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT 1 UNION ALL BY NAME SELECT x, y FROM t1 UNION ALL BY NAME SELECT y, z FROM t2;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"(SELECT a FROM test ORDER BY a+1) UNION SELECT b FROM test2 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT a, 10 - a AS b FROM test UNION SELECT b, b + 1 FROM test2 ORDER BY 2;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":13,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT a FROM (SELECT * FROM test) bla UNION SELECT * FROM test2 ORDER BY bla.a;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["bla","a"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"bla","sample":null,"query_location":14,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":52,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":5,"schema_name":"","table_name":"test2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT x, y FROM t1 UNION BY NAME SELECT y, z FROM t2 ORDER BY 4;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT x::INT FROM (SELECT x::VARCHAR x FROM range(10) tbl(x) UNION ALL SELECT 'hello' x) tbl(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":19,"query_location_length":70,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":28,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":45,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":79,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"((SELECT 1.5::DOUBLE AS x UNION SELECT 87::INTEGER) UNION SELECT 2::INTEGER) UNION SELECT 'text'::VARCHAR ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"87"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":6,"literal":{"kind":"STRING","text":"text"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM range(1)\nUNION ALL SELECT COUNT(*) FROM range(1)\nUNION ALL SELECT COUNT(*) FROM range(1)\nUNION ALL SELECT COUNT(*) FROM range(1)\nUNION ALL SELECT COUNT(*) FROM range(1)","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":101,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":141,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":167,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":181,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"select COUNT(*) from (SELECT * FROM a UNION SELECT * FROM b UNION SELECT a.i,a.j,a.k,a.l FROM a,b) t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":21,"query_location_length":77,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":51,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["a","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":3,"column_names":["a","j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["a","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["a","l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":89,"query_location_length":8,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1\nUNION ALL\n(\n\tSELECT * FROM generate_series(10, 12, 1)\n\tUNION ALL\n\t(\n\t\tSELECT * FROM generate_series(100, 103, 1)\n\t)\n\tUNION ALL\n\tSELECT * FROM generate_series(1000, 1002, 1)\n)\nUNION ALL\nSELECT * FROM generate_series(10000, 10002, 1)\nUNION ALL\n(\n\tSELECT * FROM generate_series(100000, 100002, 1)\n\tUNION ALL\n\tSELECT * FROM generate_series(1000000, 1000003, 1)\n);","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":86,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":93,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"literal":{"kind":"INTEGER","text":"103"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":144,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":151,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1002"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":201,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":208,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10002"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":238,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":261,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":268,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":284,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100002"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":322,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":329,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":345,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":354,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000003"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":363,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}]},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT * FROM range(1000000) tbl(i) UNION ALL SELECT * FROM range(1000000) tbl(i)) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":83,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":36,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":75,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":82,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT * FROM vunion INTERSECT SELECT * FROM vunion) tbl ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":14,"query_location_length":53,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"INTERSECT","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":22,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":6,"schema_name":"","table_name":"vunion","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vunion"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":53,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":6,"schema_name":"","table_name":"vunion","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vunion"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM sniff_csv('{DATA_DIR}/csv/glob/f_1.csv')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sniff_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":29,"literal":{"kind":"STRING","text":"{DATA_DIR}/csv/glob/f_1.csv"}}}],"qualified_name":{"path":["sniff_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM glob('{prefix}/allowed/.%2e/private');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":31,"literal":{"kind":"STRING","text":"{prefix}/allowed/.%2e/private"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM duckdb_settings(include_all := true)) =\n (SELECT count(*) FROM duckdb_settings()) +\n (SELECT count(*) FROM duckdb_settings(debug := true)) +\n (SELECT count(*) FROM duckdb_settings(deprecated := true)) +\n (SELECT count(*) FROM duckdb_settings(debug := true, deprecated := true));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":311,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":59,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"include_all","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"include_all","query_location":60,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":239,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":174,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":73,"query_location_length":40,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":95,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":120,"query_location_length":53,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":142,"query_location_length":30,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"debug","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"debug","query_location":167,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":180,"query_location_length":58,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":188,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":202,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"deprecated","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"deprecated","query_location":232,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":245,"query_location_length":73,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":253,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":267,"query_location_length":50,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"debug","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"debug","query_location":292,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"deprecated","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"deprecated","query_location":312,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM nonexistent_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":17,"schema_name":"","table_name":"nonexistent_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nonexistent_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('enable_profiling') IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":43,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":18,"literal":{"kind":"STRING","text":"enable_profiling"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT v FROM all_memory) \u003c\u003e current_setting('max_memory')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":59,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":26,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":10,"schema_name":"","table_name":"all_memory","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_memory"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":29,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":12,"literal":{"kind":"STRING","text":"max_memory"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM t1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('null_order'), (SELECT value FROM duckdb_settings() WHERE name='null_order')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":12,"literal":{"kind":"STRING","text":"null_order"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":38,"query_location_length":61,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":12,"literal":{"kind":"STRING","text":"null_order"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT value FROM duckdb_settings() WHERE name='preserve_identifier_case'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":26,"literal":{"kind":"STRING","text":"preserve_identifier_case"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('progress_bar_time')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"literal":{"kind":"STRING","text":"progress_bar_time"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('lock_configuration')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":20,"literal":{"kind":"STRING","text":"lock_configuration"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM (SHOW databases) t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":5,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"\"databases\"","query":null,"show_type":"SHOW_SPECIAL","catalog_name":"","schema_name":"","qualified_name":{"path":["\"databases\""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, key FROM (DESCRIBE SELECT t.c1, integers.c1 FROM integers JOIN (SELECT 84 c1) t USING (c1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":3,"column_names":["key"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":82,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["t","c1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":11,"column_names":["integers","c1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":78,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":83,"query_location_length":14,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":91,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["c1"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW this_does_not_exist","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"this_does_not_exist","query":null,"show_type":"SHOW","catalog_name":"","schema_name":"","qualified_name":{"path":["this_does_not_exist"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, column_name, min, max\nFROM range(2) t(i),\nLATERAL (\n\tSUMMARIZE SELECT i + j AS x FROM range(2) u(j)\n)\nORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["max"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":79,"left":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":37,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":60,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":82,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"u","sample":null,"query_location":96,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["j"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"SUMMARY","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(['i', 'j', 'k', 'd', 'e']) column_names,\n UNNEST(['INTEGER', 'VARCHAR', 'HUGEINT', 'DOUBLE', 'BLOB']) column_types,\n UNNEST([MIN(i)::VARCHAR, MIN(j)::VARCHAR, MIN(k)::VARCHAR, MIN(d)::VARCHAR, MIN(e)::VARCHAR]) min,\n\t UNNEST([MAX(i)::VARCHAR, MAX(j)::VARCHAR, MAX(k)::VARCHAR, MAX(d)::VARCHAR, MAX(e)::VARCHAR]) max\nFROM (SELECT * FROM types) tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"column_names","query_location":7,"query_location_length":33,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"literal":{"kind":"STRING","text":"j"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"STRING","text":"k"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"e"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"column_types","query_location":62,"query_location_length":59,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":51,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"HUGEINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":6,"literal":{"kind":"STRING","text":"BLOB"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"min","query_location":143,"query_location_length":93,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"query_location_length":85,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":157,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":159,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":174,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":168,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":176,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":191,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":193,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":208,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":210,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":225,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":219,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":223,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":227,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"max","query_location":246,"query_location_length":93,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":253,"query_location_length":85,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":260,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":254,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":258,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":262,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":277,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":271,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":279,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":294,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":288,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":296,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":311,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":305,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":309,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":313,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":328,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":322,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":326,"query_location_length":1,"column_names":["e"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":330,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":349,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":357,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":364,"query_location_length":5,"schema_name":"","table_name":"types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"summarize defg.\"a.b.c\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"defg","table_name":"a.b.c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["defg","a.b.c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"SUMMARY","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(r.k), sum(r.k) FROM (VALUES (1),(2)) l(i)\nLEFT JOIN (SELECT 7 k, 1 i) r USING(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["r","k"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["r","k"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":38,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":33,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":65,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"LEFT","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT avg(i) FROM aggregate_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":16,"schema_name":"","table_name":"aggregate_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggregate_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(i ORDER BY i DESC NULLS FIRST) FROM aggregate_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":16,"schema_name":"","table_name":"aggregate_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["aggregate_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 42 FROM (SELECT sum(i) FROM (VALUES (1),(2)) t(i));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":15,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":35,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM reserved_scan;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"reserved_scan","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["reserved_scan"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT round(i, -1) FROM rounding_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":15,"schema_name":"","table_name":"rounding_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rounding_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pack.v2 FROM (SELECT {'a': 42, 'v2': s.c2, 'b': 21} AS pack FROM ci_structs) sub;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["pack","v2"]}],"from_table":{"type":"SUBQUERY","alias":"sub","sample":null,"query_location":20,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"pack","query_location":28,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"v2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"v2","query_location":44,"query_location_length":4,"column_names":["s","c2"]}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":10,"schema_name":"","table_name":"ci_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ci_structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(state), finalize(state)='z'\nFROM (SELECT cast_to_type(struct_pack(arg := s, by := lower(s)), getvariable('collated_max_state')) state\n FROM collated_state_input WHERE s='Z');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":5,"column_names":["state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":24,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":15,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":145,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"state","query_location":57,"query_location_length":86,"function_name":"cast_to_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":37,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"arg","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"arg","query_location":89,"query_location_length":1,"column_names":["s"]}},{"name":"by","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"by","query_location":98,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":33,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":20,"literal":{"kind":"STRING","text":"collated_max_state"}}}],"qualified_name":{"path":["getvariable"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["cast_to_type"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":161,"query_location_length":20,"schema_name":"","table_name":"collated_state_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collated_state_input"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":188,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":3,"literal":{"kind":"STRING","text":"Z"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v FROM collated_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":15,"schema_name":"","table_name":"collated_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collated_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (CASE WHEN v IS NULL THEN NULL ELSE v END COLLATE nocase)='a' FROM collated_values;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":61,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":8,"query_location_length":55,"child":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":8,"query_location_length":40,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":20,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["v"]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["v"]}},"collation":"nocase"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":15,"schema_name":"","table_name":"collated_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collated_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lower(s),count(*) FROM composition_input GROUP BY GROUPING SETS ((lower(s)),(lower(s)),());","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":17,"schema_name":"","table_name":"composition_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["composition_input"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":8,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}],"group_sets":[[0],[0],[]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i,k FROM (SELECT i,NULL k FROM composition_input) q ORDER BY k,i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":16,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":26,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":17,"schema_name":"","table_name":"composition_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["composition_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, count(*) FROM null_strings GROUP BY s","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":12,"schema_name":"","table_name":"null_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_strings"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["s"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part('year',i)::BIGINT*12+date_part('month',i),date_part('day',i),date_part('hour',i)::HUGEINT*3600000000+date_part('minute',i)::HUGEINT*60000000+date_part('microsecond',i) FROM (VALUES (to_months(-2147483648)+to_days(-2147483648)+to_microseconds(-9223372036854775808)))t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":20,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":18,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":39,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":19,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":10,"literal":{"kind":"INTEGER","text":"3600000000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"query_location_length":39,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"query_location_length":21,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":8,"literal":{"kind":"INTEGER","text":"60000000"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":158,"query_location_length":26,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":190,"query_location_length":92,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":242,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":221,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":199,"query_location_length":22,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483648"}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":222,"query_location_length":20,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483648"}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":37,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}}}],"qualified_name":{"path":["to_microseconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (WITH RECURSIVE c(x) AS (SELECT i UNION ALL SELECT x+1 FROM c WHERE x\u003ci+2) SELECT count(*) FROM c) FROM range(3) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":98,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":78,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["x"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":114,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x=ANY(SELECT y FROM list_r r WHERE r.g=l.g) FROM list_l l;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":43,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"list_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["r","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["l","g"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":56,"query_location_length":8,"schema_name":"","table_name":"list_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_l"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (SELECT * FROM cte_input WHERE x\u003e10) SELECT * FROM c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":9,"schema_name":"","table_name":"cte_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_input"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":54,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":67,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(x) AS (SELECT 1 UNION SELECT x FROM c) SELECT x FROM c ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS NOT MATERIALIZED (SELECT nextval('cte_sequence') v FROM range(10000)) SELECT v FROM c LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_NEVER","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":35,"query_location_length":23,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":14,"literal":{"kind":"STRING","text":"cte_sequence"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":66,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM dml_cte_multi), (SELECT count(*) FROM dml_cte_aux);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":36,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":13,"schema_name":"","table_name":"dml_cte_multi","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dml_cte_multi"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":45,"query_location_length":34,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":11,"schema_name":"","table_name":"dml_cte_aux","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dml_cte_aux"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(l[1]), finalize(t.state), finalize(t.ordered) FROM nested_any_states;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":17,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":17,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":7,"column_names":["t","state"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":19,"function_name":"finalize","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":9,"column_names":["t","ordered"]}}],"qualified_name":{"path":["finalize"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":17,"schema_name":"","table_name":"nested_any_states","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_any_states"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT last_value IS NULL FROM duckdb_sequences() WHERE sequence_name='explain_sequence';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["last_value"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_sequences","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_sequences"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["sequence_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":18,"literal":{"kind":"STRING","text":"explain_sequence"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(i) AS (SELECT 1 UNION ALL SELECT i+1 FROM c WHERE i\u003c3)\nSELECT i FROM c ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["i"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":67,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*),sum(i) FROM read_csv('{TEST_DIR}/explain_source*.csv', header=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":55,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":32,"literal":{"kind":"STRING","text":"{TEST_DIR}/explain_source*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tto_base(42, 16),\n\tto_base(42, 16, 5),\n\tto_base(42, 16, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":15,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}],"qualified_name":{"path":["to_base"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":18,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["to_base"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":21,"function_name":"to_base","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["to_base"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM (VALUES (1), (NULL), (2), (2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id,v IN (SELECT c.v FROM candidates c WHERE p.g IS NOT DISTINCT FROM c.g AND p.h IS NOT DISTINCT FROM c.h) FROM probes p ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":98,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["c","v"]}],"from_table":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":32,"query_location_length":12,"schema_name":"","table_name":"candidates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["candidates"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":61,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":51,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":3,"column_names":["c","g"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":84,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":3,"column_names":["p","h"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":3,"column_names":["c","h"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":119,"query_location_length":8,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part('epoch',ts),date_part(part,ts) FROM export_dates ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"literal":{"kind":"STRING","text":"epoch"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":18,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["ts"]}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":12,"schema_name":"","table_name":"export_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["export_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (1,10),(2,20),(2,21),(NULL,30)) l(a,x) CROSS JOIN (VALUES (2,100),(3,200),(NULL,300)) r(b,y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":53,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":72,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (1,10),(2,20),(2,21),(NULL,30)) l(a,x) ASOF LEFT JOIN (VALUES (2,100),(3,200),(NULL,300)) r(b,y) ON a\u003e=b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":65,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":76,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":122,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":1,"column_names":["b"]}},"join_type":"LEFT","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (1,10),(2,20),(2,20),(NULL,30)) l(a,x) SEMI JOIN (VALUES (2,20),(3,30),(NULL,40)) r(b,y) ON a=b OR x=y;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":61,"query_location_length":63,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":14,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","x"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":71,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","y"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":114,"query_location_length":10,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["y"]}}]},"join_type":"SEMI","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, 'ABC' COLLATE nocase IN (SELECT s WHERE s IS NOT NULL)\nFROM (VALUES ('aBc'), ('aBc'), ('xyz'), (NULL)) t(s)\nORDER BY s NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":30,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":52,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["s"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":10,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":5,"literal":{"kind":"STRING","text":"ABC"}},"collation":"nocase"},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":70,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":5,"literal":{"kind":"STRING","text":"aBc"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":5,"literal":{"kind":"STRING","text":"aBc"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":5,"literal":{"kind":"STRING","text":"xyz"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::TUPLE(INTEGER,INTEGER)),(1,row(1,2)),(2,row(2,1)),(3,row(1,2)),(4,row(1,NULL::INTEGER))) p(id,k) JOIN BY(TYPE MARK) (VALUES (row(1,2)),(row(1,2)),(row(1,NULL::INTEGER))) b(k) ON p.k \u003c= b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":174,"query_location_length":91,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":105,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":22,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["TUPLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":20,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":193,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":224,"query_location_length":20,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":234,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":236,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":255,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":255,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":262,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::STRUCT(a INTEGER,b INTEGER)),(1,{'a':1,'b':2}),(2,{'a':2,'b':1}),(3,{'a':1,'b':2}),(4,{'a':1,'b':NULL::INTEGER})) p(id,k) JOIN BY(TYPE MARK) (VALUES ({'a':1,'b':2}),({'a':1,'b':2}),({'a':1,'b':NULL::INTEGER})) b(k) ON p.k IS NOT DISTINCT FROM b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":199,"query_location_length":124,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":130,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":150,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":178,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":218,"query_location_length":68,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":227,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":232,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":238,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":248,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":254,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":259,"query_location_length":25,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":264,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":274,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":276,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":295,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":295,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":320,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::INTEGER),(1,1),(2,2),(3,1),(4,NULL::INTEGER)) p(id,k) JOIN BY(TYPE MARK) (VALUES (1),(1),(NULL::INTEGER)) b(k) ON p.k \u003c= b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":131,"query_location_length":70,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":111,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":113,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":150,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":171,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":173,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":191,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(__mark_join_marker ORDER BY id) AS markers FROM (VALUES (0,NULL::TUPLE(INTEGER,INTEGER)),(1,row(1,NULL::INTEGER))) p(id,k) JOIN BY(TYPE MARK) (SELECT row(1,2) k WHERE false) b ON p.k IS NOT DISTINCT FROM b.k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"markers","query_location":7,"query_location_length":36,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":18,"column_names":["__mark_join_marker"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":135,"query_location_length":84,"left":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":60,"query_location_length":66,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":22,"catalog":"","schema":"","type_name":"TUPLE","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["TUPLE"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":20,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":154,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":162,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":191,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":3,"column_names":["b","k"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 WHERE (1,2) IN (VALUES (1,2),(1,2),(NULL,2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":24,"query_location_length":29,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT __mark_join_marker FROM (VALUES (1,3),(NULL::INTEGER,2)) l(a,c) JOIN BY (TYPE MARK) (VALUES (2,1),(NULL::INTEGER,2)) r(b,d) ON a=b ORDER BY a NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":66,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":31,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","c"]},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":91,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b","d"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":134,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["b"]}},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN false THEN ['x' COLLATE nocase] ELSE NULL END AS v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"v","query_location":7,"query_location_length":55,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":20,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":29,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}},"collation":"nocase"}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('collation_seq')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":15,"literal":{"kind":"STRING","text":"collation_seq"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i,CASE WHEN i=4 THEN NULL ELSE map(['v'],[s COLLATE NOCASE]) END v FROM (VALUES (0,'A'),(1,'a'),(2,'B'),(3,NULL),(4,'A')) t(i,s) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"CASE","type":"CASE_EXPR","alias":"v","query_location":9,"query_location_length":62,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":19,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":29,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":49,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["s"]},"collation":"NOCASE"}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":79,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id,__mark_join_marker FROM probes p JOIN BY(TYPE MARK) candidates c\nON p.v IS DISTINCT FROM c.v AND p.w IS DISTINCT FROM c.w\nAND p.g IS NOT DISTINCT FROM c.g ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":18,"column_names":["__mark_join_marker"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":43,"query_location_length":121,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":34,"query_location_length":8,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":62,"query_location_length":12,"schema_name":"","table_name":"candidates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["candidates"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":78,"query_location_length":86,"children":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":78,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":3,"column_names":["p","v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["c","v"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":107,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":3,"column_names":["p","w"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":3,"column_names":["c","w"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":136,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":3,"column_names":["c","g"]}}]},"join_type":"MARK","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM offset_rows ORDER BY i OFFSET 200000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"offset_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["offset_rows"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::PARQUET_VARIANT IS NULL, variant_to_parquet_variant(NULL) IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":29,"query_location_length":7,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":15,"catalog":"","schema":"","type_name":"PARQUET_VARIANT","children":[],"qualified_name":{"path":["PARQUET_VARIANT"]}}}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":71,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":32,"function_name":"variant_to_parquet_variant","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["variant_to_parquet_variant"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT grade_up(x) FROM (VALUES (['b','B']::VARCHAR[]))t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"grade_up","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["grade_up"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["list"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('pivot_export_sequence');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":23,"literal":{"kind":"STRING","text":"pivot_export_sequence"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id,row_number() OVER(ORDER BY id DESC) FROM (SELECT id FROM scope_rows ORDER BY id LIMIT 2) q ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":10,"query_location_length":35,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":51,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":10,"schema_name":"","table_name":"scope_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scope_rows"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x,\n\tsum(DISTINCT x) FILTER (WHERE x \u003e 1) OVER (),\n\tfirst_value(x ORDER BY x DESC NULLS LAST) OVER ()\nFROM (VALUES (1),(2),(3)) t(x)\nORDER BY x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":11,"query_location_length":44,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":58,"query_location_length":49,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["x"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":113,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.y.z,s.y.z::VARCHAR FROM column_paths WHERE s.\"a'b\" IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","y","z"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["s","y","z"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":12,"schema_name":"","table_name":"column_paths","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["column_paths"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":60,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":7,"column_names":["s","a'b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) OVER (ORDER BY id RANGE BETWEEN (nextval('range_seq') + 1000) PRECEDING AND CURRENT ROW)\nFROM frame_values ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":97,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_PRECEDING_RANGE","end":"CURRENT_ROW_RANGE","start_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":20,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":11,"literal":{"kind":"STRING","text":"range_seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":12,"schema_name":"","table_name":"frame_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["frame_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(x) OVER (ORDER BY x RANGE BETWEEN -1 PRECEDING AND CURRENT ROW) FROM (VALUES (1),(2)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":67,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]}}],"start":"EXPR_PRECEDING_RANGE","end":"CURRENT_ROW_RANGE","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":80,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, sum(x) OVER (ORDER BY x RANGE BETWEEN 1::INTEGER PRECEDING AND CURRENT ROW)\nFROM (VALUES (1::BIGINT),(2),(3)) t(x) ORDER BY x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":75,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]}}],"start":"EXPR_PRECEDING_RANGE","end":"CURRENT_ROW_RANGE","start_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":91,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(x) USING KEY(x) AS (SELECT (x) COLLATE nocase FROM (VALUES ('A'),('a'),(NULL))v(x) UNION SELECT x FROM c WHERE false) SELECT x FROM c ORDER BY x NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":44,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]},"collation":"nocase"}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":68,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":149,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(x) AS (SELECT 1 UNION ALL SELECT count(*) FROM c WHERE false GROUP BY x) SELECT x FROM c LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["x"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(k,v) USING KEY(k,list(v)) AS (SELECT 1,1 UNION SELECT k+1,len(v)::INTEGER FROM c WHERE k\u003c3) SELECT k,v FROM c ORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[{"key":"c","value":{"aliases":["k","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":104,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["k","v"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(x) AS MATERIALIZED (SELECT 1 UNION ALL SELECT CASE WHEN x=2 THEN error('recursive step')::INTEGER ELSE x+1 END FROM c WHERE x\u003c3) SELECT x FROM c LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":63,"query_location_length":64,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":105,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":23,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":16,"literal":{"kind":"STRING","text":"recursive step"}}}],"qualified_name":{"path":["error"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":141,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":160,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE c(x) AS (SELECT 0::BIGINT UNION SELECT count(*)+CASE WHEN nextval('seq')\u003c3 THEN currval('seq') ELSE error('recursive iteration') END FROM c WHERE false) SELECT x FROM c LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[{"key":"c","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"c","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":64,"query_location_length":84,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":74,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"query_location_length":14,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"query_location_length":28,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":21,"literal":{"kind":"STRING","text":"recursive iteration"}}}],"qualified_name":{"path":["error"]},"is_legacy_function_call":false}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":154,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":183,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x,y FROM (VALUES (3,30), (1,10), (NULL,40), (3,20), (NULL,50)) t(x,y) ORDER BY y LIMIT 60% OFFSET 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["y"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"literal":{"kind":"INTEGER","text":"60"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":16,"query_location_length":53,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":2,"literal":{"kind":"INTEGER","text":"50"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::DECIMAL(9,2) a, [1,NULL] b, {'x': 2} c WHERE false;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":11,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":29,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":41,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s LIKE '%a' FROM (VALUES ('bca'),('abc'),(NULL)) v(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":9,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"%a"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":24,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"literal":{"kind":"STRING","text":"bca"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"literal":{"kind":"STRING","text":"abc"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (VALUES (1),(2)) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_aggregate_state(12::HUGEINT, 'sum', ['INTEGER']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"to_aggregate_state","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"literal":{"kind":"STRING","text":"sum"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["to_aggregate_state"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT i,nextval('seq') v FROM range(10000)t(i)) USING SAMPLE 31 (reservoir,42);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":24,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":46,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":31},"is_percentage":false,"method":"Reservoir","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT i,nextval('seq') v FROM range(10000)t(i)) USING SAMPLE 80% (system,1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":24,"query_location_length":14,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"literal":{"kind":"STRING","text":"seq"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":46,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":80.0},"is_percentage":true,"method":"System","seed":1,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT * FROM range(10000) USING SAMPLE 31 (system,42));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":31},"is_percentage":false,"method":"System","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM (\n SELECT i FROM range(20) t(i) ORDER BY i\n LIMIT (SELECT nextval('nested_limit_calls') * 0 + 7)\n) t ORDER BY i\nLIMIT (SELECT nextval('nested_limit_calls') * 0 + 2)\nOFFSET (SELECT nextval('nested_limit_calls') * 0 + 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":138,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":180,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":146,"query_location_length":33,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":146,"query_location_length":29,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":20,"literal":{"kind":"STRING","text":"nested_limit_calls"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":192,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":234,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":200,"query_location_length":33,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":200,"query_location_length":29,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":20,"literal":{"kind":"STRING","text":"nested_limit_calls"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":104,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":70,"query_location_length":46,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":33,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":29,"function_name":"nextval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":20,"literal":{"kind":"STRING","text":"nested_limit_calls"}}}],"qualified_name":{"path":["nextval"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":34,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s FROM (SELECT s FROM (VALUES ('1'),('bad')) t(s) WHERE s!='bad') q WHERE CAST(s AS INTEGER)\u003e0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":14,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":29,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":63,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":81,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s::INTEGER FROM public_text WHERE s::INTEGER=7 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":11,"schema_name":"","table_name":"public_text","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["public_text"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":12,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.a FROM distinct_union_struct ORDER BY s.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["s","a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["s","a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":21,"schema_name":"","table_name":"distinct_union_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_union_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT last_value FROM duckdb_sequences() WHERE sequence_name='retained_secure_sequence';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["last_value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_sequences","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_sequences"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":48,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":13,"column_names":["sequence_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":26,"literal":{"kind":"STRING","text":"retained_secure_sequence"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(CASE WHEN i=1 THEN 'bad' ELSE '0' END AS BIGINT) x FROM range(2)t(i) UNION ALL SELECT 0 WHERE false LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":7,"query_location_length":53,"child":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":12,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":68,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT l.i,row_number() OVER () FROM filter_lists l LEFT JOIN filter_join_input USING(i) WHERE v IS NULL ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","i"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":11,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":52,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"filter_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filter_lists"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":17,"schema_name":"","table_name":"filter_join_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filter_join_input"]}},"condition":null,"join_type":"LEFT","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":97,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["v"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM unnest([]::INTEGER[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM read_csv('__TEST_DIR__/retained_predicates_CSV/*/*.csv',hive_partitioning := true) WHERE p IS NULL ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":82,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":46,"literal":{"kind":"STRING","text":"__TEST_DIR__/retained_predicates_CSV/*/*.csv"}}},{"name":"hive_partitioning","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hive_partitioning","query_location":91,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":105,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["p"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM range(4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT n FROM scan_rows WHERE i\u003cj;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"scan_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scan_rows"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":30,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["j"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, rank() OVER (ORDER BY NULL || s), count(*) OVER (ORDER BY NULL || s),\n cume_dist() OVER (ORDER BY NULL || s), percent_rank() OVER (ORDER BY NULL || s)\nFROM t ORDER BY s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":10,"query_location_length":32,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":9,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":44,"query_location_length":34,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":9,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_CUME_DIST","alias":"","query_location":87,"query_location_length":37,"function_name":"cume_dist","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":9,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["cume_dist"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_PERCENT_RANK","alias":"","query_location":126,"query_location_length":40,"function_name":"percent_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":9,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["percent_rank"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":172,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t JOIN (SELECT DISTINCT i FROM u) r USING(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":42,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":28,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"u","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["i"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(quantile_cont(x, 0.0 ORDER BY x DESC)), typeof(quantile_disc(x, 0.0 ORDER BY x DESC)), typeof(quantile_cont(x, [0.0] ORDER BY x DESC)), typeof(quantile_disc(x, [0.0] ORDER BY x DESC)) FROM (VALUES (1), (2), (2), (NULL)) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":37,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":45,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":37,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":47,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":39,"function_name":"quantile_cont","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"query_location_length":47,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":157,"query_location_length":39,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":174,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":203,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b AS \"same\",a AS \"same\",b AS \"a\"\"b\" FROM (VALUES (1,'x'),(1,'x'),(NULL,NULL)) t(a,b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"same","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"same","query_location":19,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a\"b","query_location":31,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":48,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM t WHERE abs(i)+abs(j)=4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["abs"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":6,"function_name":"abs","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["abs"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 \u003e 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT coalesce(NULL::INTEGER,4);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":7,"query_location_length":25,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_number() OVER () FROM \"number space\".numbers LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":22,"schema_name":"number space","table_name":"numbers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["number space","numbers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_tag(u),union_extract(u,'v'),u IS NULL FROM (SELECT CASE WHEN false THEN union_value(v := 'A' COLLATE NOCASE) ELSE NULL END u);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["union_tag"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":20,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"v"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":43,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["u"]}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":56,"query_location_length":82,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"u","query_location":64,"query_location_length":71,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":36,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v","expression":{"class":"COLLATE","type":"COLLATE","alias":"v","query_location":102,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"literal":{"kind":"STRING","text":"A"}},"collation":"NOCASE"}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_tag(u), union_tag(union_extract(u, 'outer member')),\n union_extract(union_extract(u, 'outer member'), 'inner member')\nFROM (SELECT union_value(\"outer member\" := union_value(\"inner member\" := i)) u FROM union_export_input);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["union_tag"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":43,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":32,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":14,"literal":{"kind":"STRING","text":"outer member"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["union_tag"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":63,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":32,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":14,"literal":{"kind":"STRING","text":"outer member"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":14,"literal":{"kind":"STRING","text":"inner member"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":142,"query_location_length":98,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"u","query_location":150,"query_location_length":63,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"outer member","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"outer member","query_location":180,"query_location_length":32,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"inner member","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"inner member","query_location":210,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":221,"query_location_length":18,"schema_name":"","table_name":"union_export_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_export_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x,y,rank() OVER (ORDER BY x),dense_rank() OVER (ORDER BY x),cume_dist() OVER (ORDER BY x),percent_rank() OVER (ORDER BY x),ntile(2) OVER (ORDER BY x) FROM (VALUES (1,10),(2,20),(2,NULL),(3,30),(NULL,40)) t(x,y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["y"]},{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":11,"query_location_length":24,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":36,"query_location_length":30,"function_name":"dense_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["dense_rank"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_CUME_DIST","alias":"","query_location":67,"query_location_length":29,"function_name":"cume_dist","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["cume_dist"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_PERCENT_RANK","alias":"","query_location":97,"query_location_length":32,"function_name":"percent_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["percent_rank"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_NTILE","alias":"","query_location":130,"query_location_length":26,"function_name":"ntile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["x"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["ntile"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":162,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":2,"literal":{"kind":"INTEGER","text":"40"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT unnest(x),y FROM (VALUES([1,NULL,2],10),([]::INTEGER[],20),(NULL,30))t(x,y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":52,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 42 AS x FROM range(2) r, (DESCRIBE SELECT 1 AS n) d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":7,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":43,"left":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":20,"query_location_length":10,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":32,"query_location_length":24,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"n","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SELECT 1 FROM (DESCRIBE SELECT 1 AS a, 2 AS b) UNION ALL SELECT 1 WHERE false);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":79,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i) FROM overflow_test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":13,"schema_name":"","table_name":"overflow_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["overflow_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN memory_usage_bytes \u003c 8_000_000\n THEN 'ok'\n ELSE error(concat('expected \u003c 8000000 bytes, got ', memory_usage_bytes))\n END\nFROM duckdb_memory()\nWHERE tag = 'IN_MEMORY_TABLE'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":158,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":17,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":18,"column_names":["memory_usage_bytes"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"INTEGER","text":"8_000_000"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":67,"function_name":"error","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":60,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":32,"literal":{"kind":"STRING","text":"expected \u003c 8000000 bytes, got "}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":18,"column_names":["memory_usage_bytes"]}}],"qualified_name":{"path":["concat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["error"]},"is_legacy_function_call":false}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":171,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_memory","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_memory"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":193,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":3,"column_names":["tag"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":17,"literal":{"kind":"STRING","text":"IN_MEMORY_TABLE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select min(k), max(k) from t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM f WHERE end_snapshot IS NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"f","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["f"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":42,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":12,"column_names":["end_snapshot"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM old.t WHERE x IS NULL OR x \u003e 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"old","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["old","t"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":33,"query_location_length":18,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":35,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["x"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":46,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT db.m_tail([1, 2, 3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"m_tail","schema":"db","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["db","m_tail"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM old.t_generated","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":15,"schema_name":"old","table_name":"t_generated","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["old","t_generated"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k FROM test ORDER BY k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * from my_seq(0,10,2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"my_seq","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["my_seq"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT size = (SELECT total_blocks * block_size + 12288 FROM pragma_database_size())\nFROM read_blob('{TEST_DIR}/checkpoint_abort_truncate.db');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":77,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["size"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":14,"query_location_length":70,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":25,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":12,"column_names":["total_blocks"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":10,"column_names":["block_size"]}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"literal":{"kind":"INTEGER","text":"12288"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":90,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_blob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":41,"literal":{"kind":"STRING","text":"{TEST_DIR}/checkpoint_abort_truncate.db"}}}],"qualified_name":{"path":["read_blob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, s FROM t WHERE i IN (4999, 999999) ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":30,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4999"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":6,"literal":{"kind":"INTEGER","text":"999999"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers_parquet LIMIT 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":16,"schema_name":"","table_name":"integers_parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers_parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM alp LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"alp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["alp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('all_types') WHERE segment_type == '{type}' AND compression != 'ALP';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":11,"literal":{"kind":"STRING","text":"all_types"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":49,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":8,"literal":{"kind":"STRING","text":"{type}"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":92,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":5,"literal":{"kind":"STRING","text":"ALP"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('alp_v1_4_0_default.t') WHERE segment_type = 'DOUBLE' ORDER BY compression LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":11,"column_names":["compression"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":22,"literal":{"kind":"STRING","text":"alp_v1_4_0_default.t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":8,"literal":{"kind":"STRING","text":"DOUBLE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('random_alp_double') WHERE segment_type == 'double' AND compression != 'ALPRD';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":40,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":19,"literal":{"kind":"STRING","text":"random_alp_double"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":71,"query_location_length":51,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":8,"literal":{"kind":"STRING","text":"double"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":100,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":7,"literal":{"kind":"STRING","text":"ALPRD"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select compression from pragma_storage_info('tt') where segment_type != 'VALIDITY';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":25,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"STRING","text":"tt"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":56,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":10,"literal":{"kind":"STRING","text":"VALIDITY"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select avg(a) from test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT column_name, segment_type, compression, block_id\nFROM pragma_storage_info('constants') ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":12,"column_names":["segment_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":11,"column_names":["compression"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":8,"column_names":["block_id"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":70,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":11,"literal":{"kind":"STRING","text":"constants"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 0 FROM pragma_storage_info('zstd_multi.t') WHERE compression = 'ZSTD'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":14,"literal":{"kind":"STRING","text":"zstd_multi.t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":6,"literal":{"kind":"STRING","text":"ZSTD"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 0 FROM pragma_storage_info('alprd_full.t') WHERE compression = 'ALPRD'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":35,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":14,"literal":{"kind":"STRING","text":"alprd_full.t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":7,"literal":{"kind":"STRING","text":"ALPRD"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('test_dict') WHERE segment_type ILIKE 'VARCHAR' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":11,"literal":{"kind":"STRING","text":"test_dict"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":15,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE s = 'string_1';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":10,"literal":{"kind":"STRING","text":"string_1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 1 FROM pragma_storage_info('multi_segment')\nWHERE column_name = 'comment'\n AND segment_type = 'VARCHAR'\n AND compression = 'DICT_FSST'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":15,"literal":{"kind":"STRING","text":"multi_segment"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":68,"query_location_length":86,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":9,"literal":{"kind":"STRING","text":"comment"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":129,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":11,"literal":{"kind":"STRING","text":"DICT_FSST"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE compression='DICT_FSST' LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":11,"literal":{"kind":"STRING","text":"DICT_FSST"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE compression='Dictionary' LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":12,"literal":{"kind":"STRING","text":"Dictionary"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT block_offset FROM pragma_storage_info('tbl') WHERE compression='Dictionary' AND column_name='street'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["block_offset"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":26,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":5,"literal":{"kind":"STRING","text":"tbl"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":49,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":12,"literal":{"kind":"STRING","text":"Dictionary"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":8,"literal":{"kind":"STRING","text":"street"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FILTER (WHERE c0 \u003c\u003e '') FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":30,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["c0"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE column_name='a' AND compression='RLE';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":37,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"literal":{"kind":"STRING","text":"RLE"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), SUM(rle_val), MIN(rle_val), MAX(rle_val), SUM(rle_val_null), COUNT(rle_val_null) FROM tbl2 WHERE id \u003e= 1500 and id \u003c= 2500 AND id_modulo=3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":7,"column_names":["rle_val"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":12,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":7,"column_names":["rle_val"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":12,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":7,"column_names":["rle_val"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":17,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":12,"column_names":["rle_val_null"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":19,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":12,"column_names":["rle_val_null"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":114,"query_location_length":41,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":114,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1500"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":129,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2500"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":9,"column_names":["id_modulo"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 0 FROM pragma_storage_info('test')\nWHERE column_name = 'b' AND segment_type = 'VALIDITY' AND compression = 'Roaring'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":59,"query_location_length":75,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":10,"literal":{"kind":"STRING","text":"VALIDITY"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":9,"literal":{"kind":"STRING","text":"Roaring"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM test WHERE a IS true;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":34,"query_location_length":7,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"BOOLEAN","text":"true"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM test\nWHERE single_run IS DISTINCT FROM (i % 2048 \u003c 16)\n OR repeated_run IS DISTINCT FROM (i % 64 \u003c 16)\n OR single_null IS DISTINCT FROM CASE WHEN i % 2048 \u003c 16 THEN i ELSE NULL END\n OR repeated_null IS DISTINCT FROM CASE WHEN i % 64 \u003c 16 THEN i ELSE NULL END","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":32,"query_location_length":253,"children":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":32,"query_location_length":43,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":10,"column_names":["single_run"]},"right":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":61,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":82,"query_location_length":43,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":12,"column_names":["repeated_run"]},"right":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":132,"query_location_length":73,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":11,"column_names":["single_null"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":161,"query_location_length":44,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":171,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":1,"column_names":["i"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":212,"query_location_length":73,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":13,"column_names":["repeated_null"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":243,"query_location_length":42,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":253,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":253,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":257,"query_location_length":2,"literal":{"kind":"INTEGER","text":"64"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":270,"query_location_length":1,"column_names":["i"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":277,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM blobs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tCASE WHEN lower(compression)='{compression}'\n\t\tTHEN true::test_result\n\tELSE {\n\t\t'expected': '{compression}',\n\t\t'actual': lower(compression)\n\t}::test_result\n\tEND\nFROM pragma_storage_info('test') WHERE segment_type ILIKE 'VARCHAR' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":243,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":8,"query_location_length":160,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":18,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":11,"column_names":["compression"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":15,"literal":{"kind":"STRING","text":"{compression}"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":11,"catalog":"","schema":"","type_name":"test_result","children":[],"qualified_name":{"path":["test_result"]}}}}],"else_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":150,"query_location_length":13,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":66,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"expected","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"expected","query_location":100,"query_location_length":15,"literal":{"kind":"STRING","text":"{compression}"}}},{"name":"actual","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"actual","query_location":129,"query_location_length":18,"function_name":"lower","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":11,"column_names":["compression"]}}],"qualified_name":{"path":["lower"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":152,"query_location_length":11,"catalog":"","schema":"","type_name":"test_result","children":[],"qualified_name":{"path":["test_result"]}}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":174,"query_location_length":27,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":221,"query_location_length":15,"function_name":"~~*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["~~*"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select sum(a::INT) from test_2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":6,"schema_name":"","table_name":"test_2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE column_name='s' AND compression='ZSTD' LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":38,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"literal":{"kind":"STRING","text":"s"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":6,"literal":{"kind":"STRING","text":"ZSTD"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), COUNT(i), COUNT(k) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select stats(i), stats(j) from test limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.total_string_length from (select stats(s) s from test limit 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":21,"column_names":["s","total_string_length"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":34,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":42,"query_location_length":8,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select sum(col1) from '{TEST_DIR}/test_validate_cache.parquet';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["col1"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":40,"schema_name":"","table_name":"{TEST_DIR}/test_validate_cache.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/test_validate_cache.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), SUM(c5) FROM wide_tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["c5"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":8,"schema_name":"","table_name":"wide_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(i), min(i), max(i) FROM stable;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":6,"schema_name":"","table_name":"stable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stable"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(x), MAX(x) FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT wal_size != '0 bytes' FROM pragma_database_size();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["wal_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":9,"literal":{"kind":"STRING","text":"0 bytes"}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_database_size","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["pragma_database_size"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT val = ('row2047' || repeat('Y', 50000))::BLOB FROM db.t WHERE id = 2047;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":45,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["val"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":31,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":9,"literal":{"kind":"STRING","text":"row2047"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":18,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"literal":{"kind":"STRING","text":"Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"literal":{"kind":"INTEGER","text":"50000"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":4,"schema_name":"db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2047"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT compression FROM pragma_storage_info('t') WHERE segment_type='VARCHAR' AND compression != 'Uncompressed';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"STRING","text":"t"}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":55,"query_location_length":56,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":82,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":14,"literal":{"kind":"STRING","text":"Uncompressed"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT segment_info FROM pragma_storage_info('bp_tbl', include_segment_info=false) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["segment_info"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":57,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_storage_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":8,"literal":{"kind":"STRING","text":"bp_tbl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":20,"column_names":["include_segment_info"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}}],"qualified_name":{"path":["pragma_storage_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) = (SELECT c FROM expected) AND sum(i) = (SELECT s FROM expected) FROM integers USING SAMPLE 1 PERCENT (system, 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":7,"query_location_length":73,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"expected","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expected"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":56,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":8,"schema_name":"","table_name":"expected","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["expected"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":{"sample_size":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":1.0},"is_percentage":true,"method":"System","seed":42,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/read_duckdb_test*.db'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":33,"schema_name":"","table_name":"{TEST_DIR}/read_duckdb_test*.db","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/read_duckdb_test*.db"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_duckdb('{TEST_DIR}/read_duckdb_suggested.db', table_name='ffg')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_duckdb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/read_duckdb_suggested.db"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"STRING","text":"ffg"}}}}],"qualified_name":{"path":["read_duckdb"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a = repeat('a', 1000000) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":20,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, v FROM big WHERE k IN (10, 11, 12, 13, 14, 15, 16, 17, 18, 19) ORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":3,"schema_name":"","table_name":"big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":40,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["k"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"14"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"literal":{"kind":"INTEGER","text":"17"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM del;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid, i FROM rowid_gap_bulk_append.t WHERE i IN (1000000, 1004095) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":23,"schema_name":"rowid_gap_bulk_append","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_bulk_append","t"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":56,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1004095"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid, i FROM geom_legacy.t WHERE i = 2548;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"geom_legacy","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["geom_legacy","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2548"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN vacuum_time \u003c 0.4 THEN 'ok'\n\tELSE 'vacuum_time=' || CAST(vacuum_time AS VARCHAR) ||\n\t\t', checkpoint_latency=' || CAST(checkpoint_latency AS VARCHAR) ||\n\t\t', total_time=' || CAST(total_time AS VARCHAR) END\nFROM rowid_gap_live_vacuum.metrics;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":214,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":17,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":11,"column_names":["vacuum_time"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.4"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"STRING","text":"ok"}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":166,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":14,"literal":{"kind":"STRING","text":"vacuum_time="}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":11,"column_names":["vacuum_time"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":23,"literal":{"kind":"STRING","text":", checkpoint_latency="}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":130,"query_location_length":35,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":18,"column_names":["checkpoint_latency"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":157,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":15,"literal":{"kind":"STRING","text":", total_time="}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":190,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":10,"column_names":["total_time"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":209,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":227,"query_location_length":29,"schema_name":"rowid_gap_live_vacuum","table_name":"metrics","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_live_vacuum","metrics"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid, i FROM remap_tasks.t WHERE g = 7 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"remap_tasks","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remap_tasks","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(rowid), max(rowid), count(*) FROM remap_partial.t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":15,"schema_name":"remap_partial","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remap_partial","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid, i FROM geom_no_merge.t WHERE geom = 'POINT (2000 2000)'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":15,"schema_name":"geom_no_merge","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["geom_no_merge","t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["geom"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":19,"literal":{"kind":"STRING","text":"POINT (2000 2000)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid, i FROM rowid_gap_lookup_db.middle WHERE rowid = 245760;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":26,"schema_name":"rowid_gap_lookup_db","table_name":"middle","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_gap_lookup_db","middle"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":6,"literal":{"kind":"INTEGER","text":"245760"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b FROM test WHERE a\u003e11 ORDER BY b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tags FROM duckdb_databases() WHERE database_name = 'regular_file';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["tags"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":14,"literal":{"kind":"STRING","text":"regular_file"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('max_temp_directory_size');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":25,"literal":{"kind":"STRING","text":"max_temp_directory_size"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ends_with(current_setting('temp_directory'), 'runner_temp_directory.db.tmp');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"ends_with","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":33,"function_name":"current_setting","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":16,"literal":{"kind":"STRING","text":"temp_directory"}}}],"qualified_name":{"path":["current_setting"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":30,"literal":{"kind":"STRING","text":"runner_temp_directory.db.tmp"}}}],"qualified_name":{"path":["ends_with"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select current_user","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["current_user"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM test_table","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":10,"schema_name":"","table_name":"test_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT h FROM hugeints WHERE h \u003c 10 ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["h"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["h"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM unsigned WHERE a = 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"unsigned","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unsigned"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select v::varchar,\n variant_extract(v, 'foo')::varchar,\n variant_extract(v, 'Foo')::varchar\nfrom forced_case;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":25,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":5,"literal":{"kind":"STRING","text":"foo"}}}],"qualified_name":{"path":["variant_extract"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":25,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":5,"literal":{"kind":"STRING","text":"Foo"}}}],"qualified_name":{"path":["variant_extract"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":11,"schema_name":"","table_name":"forced_case","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["forced_case"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min IS NOT NULL, s.max IS NOT NULL\nFROM (SELECT stats(variant_comparator(col)) s FROM strs LIMIT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":13,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":32,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":5,"column_names":["s","max"]}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":59,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":57,"query_location_length":30,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":23,"function_name":"variant_comparator","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["col"]}}],"qualified_name":{"path":["variant_comparator"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"query_location_length":4,"schema_name":"","table_name":"strs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v.x FROM variant_extract_pushdown WHERE v.x=5 AND v.y=500","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["v","x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":24,"schema_name":"","table_name":"variant_extract_pushdown","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["variant_extract_pushdown"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":3,"column_names":["v","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["v","y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.fully_shredded.stats.min, s.fully_shredded.stats.max_string_length from (select stats(col.a) s from tbl limit 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":26,"column_names":["s","fully_shredded","stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":40,"column_names":["s","fully_shredded","stats","max_string_length"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":81,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":89,"query_location_length":12,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":5,"column_names":["col","a"]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from messages where msg.action::VARCHAR = 'block';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"messages","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["messages"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":29,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":10,"column_names":["msg","action"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"literal":{"kind":"STRING","text":"block"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_extract(v, 'a') FROM shredded_booleans WHERE id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"variant_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["variant_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":17,"schema_name":"","table_name":"shredded_booleans","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["shredded_booleans"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, v::VARCHAR FROM nested ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col FROM tbl WHERE col.i=3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":26,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":5,"column_names":["col","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a+1 FROM tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM autocheckpoint_db.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":21,"schema_name":"autocheckpoint_db","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["autocheckpoint_db","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b, e FROM tbl WHERE (c,d) = ('baz', 30.5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["e"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["d"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":13,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"literal":{"kind":"STRING","text":"baz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"30.5"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM glob('{TEST_DIR}/attach_no_wal.db.wal');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":39,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"glob","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":33,"literal":{"kind":"STRING","text":"{TEST_DIR}/attach_no_wal.db.wal"}}}],"qualified_name":{"path":["glob"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM other","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"other","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE b='x123'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":6,"literal":{"kind":"STRING","text":"x123"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), SUM(a), SUM(b), MIN(a), MAX(a), MIN(b), MAX(b), COUNT(b) FROM test WHERE a\u003e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":90,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM db_v120.tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"db_v120","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db_v120","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, x = ANY(ARRAY(SELECT y FROM allowed)) FROM s ORDER BY x NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":37,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":28,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":18446744073709551615,"query_location_length":0,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}]},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":7,"schema_name":"","table_name":"allowed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["allowed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i=ANY(SELECT i FROM integers WHERE i=i1.i) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":42,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":55,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i\u003eANY(SELECT i FROM integers WHERE i\u003c\u003ei1.i) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":43,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":42,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHAN"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":56,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, (\n WITH a AS NOT MATERIALIZED (SELECT unnest(v.xs) AS x),\n b AS NOT MATERIALIZED (SELECT unnest(v.ys) AS y),\n c AS (SELECT y FROM b UNION ALL SELECT y FROM b)\n SELECT list(x ORDER BY x) FROM a WHERE x IN (SELECT y FROM (SELECT y FROM c))\n) AS found\nFROM inputs v ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"found","query_location":11,"query_location_length":261,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"a","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_NEVER","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":52,"query_location_length":12,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":4,"column_names":["v","xs"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"b","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_NEVER","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":111,"query_location_length":12,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["v","ys"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":160,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":186,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":200,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":224,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":237,"query_location_length":33,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":245,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":252,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":260,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":267,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"v","sample":null,"query_location":287,"query_location_length":8,"schema_name":"","table_name":"inputs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["inputs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b,\n row(a, b) IN (SELECT * FROM (VALUES (2, 6), (3, 7), (3, NULL::INT), (4, 8)) rhs(x, y)),\n row(a, b) NOT IN (SELECT * FROM (VALUES (2, 6), (3, 7), (3, NULL::INT), (4, 8)) rhs(x, y))\nFROM (VALUES (1, 5), (2, 6), (3, 9), (9, 8), (3, NULL::INT),\n (NULL::INT, 8), (NULL::INT, NULL::INT)) lhs(a, b)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":33,"query_location_length":73,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":48,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":115,"query_location_length":90,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":132,"query_location_length":73,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":140,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":147,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":179,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":181,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"}]}],"from_table":{"type":"SUBQUERY","alias":"lhs","sample":null,"query_location":211,"query_location_length":108,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":247,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":252,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":259,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":261,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":285,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":287,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":301,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":303,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":312,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":308,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":314,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row(array_value(1, 2), 0) IN (\n\t SELECT * FROM (VALUES (array_value(1, NULL::INT), 0)) rhs(a, b)\n ),\n row(map([1, 2], [1, 2]), 0) IN (\n\t SELECT * FROM (VALUES (map([1, 2], [1, NULL::INT]), 0)) rhs(a, b)\n ),\n row({'a': 1, 'b': 2}, 0) IN (\n\t SELECT * FROM (VALUES ({'a': 1, 'b': NULL::INT}, 0)) rhs(a, b)\n ),\n row(union_value(num := 1)::UNION(num INT, str VARCHAR), 0) IN (\n\t SELECT *\n\t FROM (VALUES (union_value(num := NULL::INT)::UNION(num INT, str VARCHAR), 0)) rhs(a, b)\n )","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":82,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":53,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":60,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":25,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":17,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":158,"query_location_length":84,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":175,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":182,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":191,"query_location_length":27,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":195,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":203,"query_location_length":14,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":211,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":213,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":27,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":19,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":143,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":279,"query_location_length":81,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":296,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":303,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":312,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":318,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":330,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":326,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":332,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":338,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":251,"query_location_length":24,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":255,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":261,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":269,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":431,"query_location_length":123,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":448,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":463,"query_location_length":72,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":501,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":472,"query_location_length":29,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"num","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"num","query_location":495,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":491,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":497,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":503,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":513,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"str","query_location":522,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":532,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":369,"query_location_length":58,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":394,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":373,"query_location_length":21,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"num","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"num","query_location":392,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":396,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":406,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"str","query_location":415,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":425,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, row(a, b) IN (\n SELECT x, y FROM (VALUES (1, 1), (2, 2)) rhs(x, y) WHERE x = a\n)\nFROM (VALUES (1, 1), (2, 3)) lhs(a, b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"query_location_length":70,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":46,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"SUBQUERY","alias":"lhs","sample":null,"query_location":99,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (1, 0) \u003e= ANY(SELECT 1, 0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":26,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (2, 0) \u003e= ALL(SELECT * FROM (VALUES (1, 0), (1, 5)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":52,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":28,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":35,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_LESSTHAN"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (1, 0) \u003c ANY(SELECT 1, 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":25,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_LESSTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (3, NULL::INT) \u003c\u003e ANY (\n\tSELECT * FROM (VALUES (2, 1)) rhs(a, b)\n)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":66,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":39,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"rhs","sample":null,"query_location":46,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_NOTEQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 = ANY(SELECT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":17,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4 IN (SELECT * FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":24,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":20,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2 \u003c SOME(SELECT 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":18,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"comparison_type":"COMPARE_LESSTHAN"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers WHERE i \u003c ALL(SELECT MAX(i) FROM integers) ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":29,"query_location_length":36,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHANOREQUALTO"}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, i \u003c= ANY(SELECT i FROM integers WHERE i\u003e10) FROM integers ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":43,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":48,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_LESSTHANOREQUALTO"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT SUM(i) FROM integers), (SELECT 42)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":29,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":38,"query_location_length":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, i = ANY(SELECT i1.i FROM integers i1, integers i2, integers i3, integers i4, integers i5, integers i6 WHERE i1.i IS NOT NULL) FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":125,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["i1","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":81,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":35,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":48,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i3","sample":null,"query_location":61,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i4","sample":null,"query_location":74,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i5","sample":null,"query_location":87,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"i6","sample":null,"query_location":100,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":123,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["i1","i"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":141,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1010'::BIT \u003e= ALL (SELECT x::BIT FROM (VALUES ('0101'),('1001')) s(x));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":71,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18446744073709551615,"query_location_length":0,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":46,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":6,"literal":{"kind":"STRING","text":"0101"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":6,"literal":{"kind":"STRING","text":"1001"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"1010"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"comparison_type":"COMPARE_LESSTHAN"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l, l IN (SELECT i1.l FROM (SELECT * FROM lists i1 WHERE i1.l=lists.l) i1 JOIN generate_series(1, 2, 1) tbl(s) ON i1.l=ARRAY[tbl.s]) FROM lists ORDER BY l NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":123,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["i1","l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":57,"left":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":33,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":48,"query_location_length":8,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["lists","l"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":85,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["s"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":120,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":125,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":5,"column_names":["tbl","s"]}]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["l"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":144,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, EXISTS(SELECT i FROM integers WHERE i IS NULL OR i\u003ei1.i*10) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":59,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":46,"query_location_length":22,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":48,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":59,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":75,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(CASE WHEN EXISTS(SELECT i FROM integers WHERE i=i1.i) THEN 1 ELSE 0 END) FROM integers i1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":76,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":11,"query_location_length":71,"case_checks":[{"when_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"query_location_length":43,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":89,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l.o,\n r.wh,\n r.wh \u003c\u003e s2.wh AS direct_comparison,\n EXISTS (\n SELECT 1\n FROM issue23979_s2 x\n WHERE x.o = l.o\n AND r.wh \u003c\u003e x.wh\n ) AS correlated_exists,\n EXISTS (\n SELECT 1\n FROM issue23979_s2 x\n WHERE x.o = l.o\n AND (r.wh + 0) \u003c\u003e x.wh\n ) AS equivalent_rewrite\nFROM issue23979_l l\nLEFT JOIN issue23979_r r USING (o)\nJOIN issue23979_s2 s2 USING (o)\nORDER BY l.o;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":482,"query_location_length":3,"column_names":["l","o"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","o"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":4,"column_names":["r","wh"]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"direct_comparison","query_location":32,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":4,"column_names":["r","wh"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":5,"column_names":["s2","wh"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"correlated_exists","query_location":75,"query_location_length":126,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":120,"query_location_length":15,"schema_name":"","table_name":"issue23979_s2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23979_s2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":153,"query_location_length":39,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":3,"column_names":["x","o"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["l","o"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":180,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":4,"column_names":["r","wh"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":4,"column_names":["x","wh"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"equivalent_rewrite","query_location":231,"query_location_length":132,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":276,"query_location_length":15,"schema_name":"","table_name":"issue23979_s2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23979_s2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":309,"query_location_length":45,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":309,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":309,"query_location_length":3,"column_names":["x","o"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":315,"query_location_length":3,"column_names":["l","o"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":336,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":342,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":337,"query_location_length":4,"column_names":["r","wh"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":344,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":350,"query_location_length":4,"column_names":["x","wh"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":441,"query_location_length":31,"left":{"type":"JOIN","alias":"","sample":null,"query_location":406,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":391,"query_location_length":14,"schema_name":"","table_name":"issue23979_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23979_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":416,"query_location_length":14,"schema_name":"","table_name":"issue23979_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23979_r"]}},"condition":null,"join_type":"LEFT","ref_type":"REGULAR","using_columns":["o"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"s2","sample":null,"query_location":446,"query_location_length":16,"schema_name":"","table_name":"issue23979_s2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23979_s2"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["o"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXISTS(SELECT * FROM integers WHERE i IS NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":46,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":21,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":45,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 IN (SELECT NULL::INTEGER) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":22,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.cutoff, q.x, q.ts, q.price\nFROM (VALUES (1), (5), (9)) o(cutoff), LATERAL (\n SELECT p.x, r.ts, r.price\n FROM probes p\n ASOF JOIN (SELECT ts, price FROM prices WHERE ts \u003c= o.cutoff) r ON p.x \u003e= r.ts\n) q ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["o","cutoff"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["q","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["q","ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["q","price"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":183,"left":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":41,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["cutoff"]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":83,"query_location_length":134,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["p","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":4,"column_names":["r","ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":7,"column_names":["r","price"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":137,"query_location_length":78,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":124,"query_location_length":8,"schema_name":"","table_name":"probes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["probes"]}},"right":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":147,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":2,"column_names":["ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":5,"column_names":["price"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":170,"query_location_length":6,"schema_name":"","table_name":"prices","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":183,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":2,"column_names":["ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":8,"column_names":["o","cutoff"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":204,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":3,"column_names":["p","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":4,"column_names":["r","ts"]}},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.k, q.x, q.tag FROM (VALUES (1), (2)) o(k), LATERAL (\n SELECT v.x, t.tag\n FROM (VALUES (2)) v(x)\n ASOF JOIN (SELECT o.k AS n, 'd' || o.k AS tag) t ON v.x \u003e= t.n\n) q ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["q","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":5,"column_names":["q","tag"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":158,"left":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":28,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":60,"query_location_length":119,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["v","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["t","tag"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":115,"query_location_length":62,"left":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":93,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":125,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"n","query_location":133,"query_location_length":3,"column_names":["o","k"]},{"class":"FUNCTION","type":"FUNCTION","alias":"tag","query_location":143,"query_location_length":10,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":3,"literal":{"kind":"STRING","text":"d"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":3,"column_names":["o","k"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":167,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":3,"column_names":["v","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":3,"column_names":["t","n"]}},"join_type":"INNER","ref_type":"ASOF","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(depth) FROM joined_walk WHERE id = 3 AND depth \u003e 4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["depth"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":11,"schema_name":"","table_name":"joined_walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["joined_walk"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":62,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":5,"column_names":["depth"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(w.depth) FROM owners input LEFT JOIN LATERAL (\n WITH RECURSIVE walk(depth) AS (\n SELECT 0 + coalesce(input.class, 0) * 0\n UNION ALL SELECT depth + 1 FROM walk WHERE depth \u003c 2\n ) SELECT * FROM walk WHERE depth \u003e 2\n) w ON true JOIN vertices target ON target.id = input.person WHERE person = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":14,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["w","depth"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":268,"query_location_length":48,"left":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":217,"left":{"type":"BASE_TABLE","alias":"input","sample":null,"query_location":37,"query_location_length":12,"schema_name":"","table_name":"owners","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["owners"]}},"right":{"type":"SUBQUERY","alias":"w","sample":null,"query_location":68,"query_location_length":189,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"walk","value":{"aliases":["depth"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"walk","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"query_location_length":28,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":125,"query_location_length":24,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":11,"column_names":["input","class"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":185,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":5,"column_names":["depth"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":194,"query_location_length":4,"schema_name":"","table_name":"walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":205,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":5,"column_names":["depth"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["depth"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":228,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":235,"query_location_length":4,"schema_name":"","table_name":"walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":246,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":246,"query_location_length":5,"column_names":["depth"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":254,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":263,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"target","sample":null,"query_location":273,"query_location_length":15,"schema_name":"","table_name":"vertices","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vertices"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":292,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":9,"column_names":["target","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":12,"column_names":["input","person"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":323,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":323,"query_location_length":6,"column_names":["person"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":332,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(w.depth) FROM owners input, LATERAL (\n WITH RECURSIVE walk(depth) AS (\n SELECT coalesce(input.class,0)*0\n UNION\n SELECT (depth+1)%2 FROM walk\n ) SELECT * FROM walk\n) w JOIN vertices target ON target.id=w.depth+1 WHERE person=1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":12,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":7,"column_names":["w","depth"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":229,"left":{"type":"BASE_TABLE","alias":"input","sample":null,"query_location":35,"query_location_length":12,"schema_name":"","table_name":"owners","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["owners"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":216,"query_location_length":43,"left":{"type":"SUBQUERY","alias":"w","sample":null,"query_location":57,"query_location_length":156,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"walk","value":{"aliases":["depth"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"walk","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":110,"query_location_length":25,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":110,"query_location_length":23,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":11,"column_names":["input","class"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":165,"query_location_length":11,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":5,"column_names":["depth"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":182,"query_location_length":4,"schema_name":"","table_name":"walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["depth"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":200,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":207,"query_location_length":4,"schema_name":"","table_name":"walk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"target","sample":null,"query_location":221,"query_location_length":15,"schema_name":"","table_name":"vertices","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["vertices"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":240,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":9,"column_names":["target","id"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":257,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":7,"column_names":["w","depth"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":266,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":266,"query_location_length":6,"column_names":["person"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (\n SELECT id, EXISTS (SELECT 1 FROM person x WHERE x.id=p.id) AS found FROM person p\n)\nSELECT count(found) FROM c WHERE found;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["id"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"found","query_location":40,"query_location_length":47,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":62,"query_location_length":8,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":4,"column_names":["x","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["p","id"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":102,"query_location_length":8,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":12,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":5,"column_names":["found"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":138,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":5,"column_names":["found"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.k, a.c, a.g\nFROM (VALUES (1), (7)) AS o(k),\nLATERAL (\n SELECT count(*) AS c, g\n FROM (VALUES (1, 10)) AS i(k, g)\n WHERE i.k = o.k\n GROUP BY CUBE (g)\n) AS a\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["a","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["a","g"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":155,"left":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":26,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"right":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":61,"query_location_length":110,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":74,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"SUBQUERY","alias":"i","sample":null,"query_location":100,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","g"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":138,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":3,"column_names":["i","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":3,"column_names":["o","k"]}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["g"]}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.k, a.c\nFROM (VALUES (1), (7)) AS o(k),\nLATERAL (\n SELECT count(*) AS c\n FROM (VALUES (1, 10)) AS i(k, g)\n WHERE i.k = o.k\n GROUP BY GROUPING SETS ((g), (), ())\n HAVING GROUPING(g) = 1\n) AS a\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["a","c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":198,"left":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":21,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"right":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":56,"query_location_length":153,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":69,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"i","sample":null,"query_location":92,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","g"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":3,"column_names":["i","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":3,"column_names":["o","k"]}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0],[],[]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":192,"query_location_length":15,"left":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":192,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":1,"column_names":["g"]}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM (SELECT 1) t1(c1), (SELECT TRUE IN (TRUE, t1.c1::VARCHAR LIKE 'a' ESCAPE NULL));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":84,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":14,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c1"]},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":33,"query_location_length":60,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":49,"query_location_length":43,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":20,"function_name":"like_escape","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["t1","c1"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["like_escape"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers, (SELECT integers) ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["integers"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f FROM (SELECT 1 AS v) t,\n LATERAL (SELECT * FROM (SELECT 2 AS w) u, LATERAL (SELECT m2(t.v, u.w) AS f) __) _;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":110,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":45,"query_location_length":72,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":53,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":61,"left":{"type":"SUBQUERY","alias":"u","sample":null,"query_location":60,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"w","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"__","sample":null,"query_location":87,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"f","query_location":95,"query_location_length":12,"function_name":"m2","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":3,"column_names":["t","v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["u","w"]}}],"qualified_name":{"path":["m2"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT q.f FROM (VALUES (1)) t(v), LATERAL (SELECT (SELECT m1(t.v)) AS f) q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["q","f"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":11,"query_location_length":64,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":16,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":43,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"f","query_location":51,"query_location_length":16,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":7,"function_name":"m1","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["t","v"]}}],"qualified_name":{"path":["m1"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers LEFT JOIN LATERAL (SELECT integers.i) t(b) ON (i=b) ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":10,"column_names":["integers","i"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["b"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(x), max(x) FROM nested_updates WHERE selected;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":14,"schema_name":"","table_name":"nested_updates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_updates"]}},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":8,"column_names":["selected"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT o.k, a.s\nFROM (VALUES (1), (7)) AS o(k),\nLATERAL (SELECT sum(i.v) AS s FROM (VALUES (1, 42)) AS i(k, v) WHERE i.k = o.k ORDER BY 1) AS a\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["o","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["a","s"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":127,"left":{"type":"SUBQUERY","alias":"o","sample":null,"query_location":21,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"right":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":56,"query_location_length":82,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":64,"query_location_length":8,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["i","v"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"i","sample":null,"query_location":83,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":117,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":3,"column_names":["i","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":3,"column_names":["o","k"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM walk_rows WHERE id = 1000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"walk_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["walk_rows"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":37,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT [1,2,3]::INTEGER[] AS xs, 5 AS i) s\nCROSS JOIN (SELECT xs[j] AS a FROM (SELECT elem AS j FROM (SELECT unnest(range(i+1, 4)) AS elem) b) r) e;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":58,"query_location_length":104,"left":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":14,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"xs","query_location":29,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"e","sample":null,"query_location":69,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"a","query_location":79,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":2,"column_names":["xs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["j"]}]}],"from_table":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":93,"query_location_length":64,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":101,"query_location_length":4,"column_names":["elem"]}],"from_table":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":116,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"elem","query_location":124,"query_location_length":21,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":13,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":138,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from\n (values (100), (300), (500)) as r(a),\n lateral (\n select (g/2)::int as c1,\n array_agg(g::int) as c2,\n\t count(*) as c3\n from agg_data_1k\n where g \u003c r.a\n group by g/2) as s\norder by 1, 2, 4, 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":202,"left":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":16,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"INTEGER","text":"300"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":64,"query_location_length":142,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"c1","query_location":82,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":3,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"c2","query_location":106,"query_location_length":17,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"c3","query_location":135,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":159,"query_location_length":11,"schema_name":"","table_name":"agg_data_1k","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["agg_data_1k"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":181,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":3,"column_names":["r","a"]}},"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"query_location_length":3,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":202,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select unique2, x.*\nfrom int4_tbl x left join lateral (select unique1, unique2 from tenk1 where f1 = unique1) ss on true\norder by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["unique2"]},{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":3,"relation_name":"x","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":84,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":25,"query_location_length":10,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"right":{"type":"SUBQUERY","alias":"ss","sample":null,"query_location":54,"query_location_length":55,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":7,"column_names":["unique1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":7,"column_names":["unique2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":5,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":2,"column_names":["f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["unique1"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (values(1)) x(lb),\n lateral (values(lb)) y(lbcopy);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":56,"left":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":14,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["lb"]},"right":{"type":"SUBQUERY","alias":"y","sample":null,"query_location":43,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["lb"]}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["lbcopy"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x.a FROM outer_rows o,\nLATERAL (SELECT o.* FROM (VALUES ({'a': 42})) t(o)) x ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["x","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":11,"query_location_length":72,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":16,"query_location_length":12,"schema_name":"","table_name":"outer_rows","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["outer_rows"]}},"right":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":38,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":46,"query_location_length":3,"relation_name":"o","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":55,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":9,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["o"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x.* FROM (VALUES (42)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":3,"relation_name":"x","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":16,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (select [42, 43, 44]) t(a), (select unnest(t.a)) t2(b) where b=43;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":59,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":21,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":42,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":11,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["t","a"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM generate_series(1,3) AS input(n),\nLATERAL (\n WITH RECURSIVE subquery(x) AS (\n (SELECT n, true AS exists)\n UNION ALL\n SELECT x - 1, y\n FROM subquery AS _(x),\n LATERAL (\n SELECT NOT EXISTS (\n SELECT 1\n FROM subquery AS input(a)\n WHERE a \u003e _.x\n )\n ) AS __(y)\n WHERE x \u003e 0\n )\n TABLE subquery\n)\nORDER BY n, x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":438,"query_location_length":1,"column_names":["n"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":441,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":419,"left":{"type":"TABLE_FUNCTION","alias":"input","sample":null,"query_location":14,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["n"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":56,"query_location_length":372,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"subquery","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"subquery","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["n"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"exists","query_location":113,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":164,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":179,"query_location_length":202,"left":{"type":"BASE_TABLE","alias":"_","sample":null,"query_location":184,"query_location_length":16,"schema_name":"","table_name":"subquery","column_name_alias":["x"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"right":{"type":"SUBQUERY","alias":"__","sample":null,"query_location":218,"query_location_length":154,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":239,"query_location_length":123,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":243,"query_location_length":119,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"input","sample":null,"query_location":298,"query_location_length":20,"schema_name":"","table_name":"subquery","column_name_alias":["a"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":341,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":341,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":345,"query_location_length":3,"column_names":["_","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["y"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":396,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":396,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"subquery","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["subquery"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ARRAY\n (SELECT 1 UNION ALL\n SELECT 2 UNION ALL\n SELECT 3\n ORDER by 1 DESC) AS new_array;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"new_array","query_location":7,"query_location_length":81,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":18446744073709551615,"query_location_length":0,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}]},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM (select 4) v1(vc0) WHERE (3) NOT IN (COALESCE((SELECT 1 WHERE FALSE), v1.vc0));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"SUBQUERY","alias":"v1","sample":null,"query_location":14,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["vc0"]},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":39,"query_location_length":53,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":50,"query_location_length":42,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":51,"query_location_length":40,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":60,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["v1","vc0"]}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (WITH c AS MATERIALIZED (SELECT (SELECT v) AS r FROM (SELECT 1 AS v) s) SELECT (SELECT r FROM c) + (SELECT max(r) FROM c) + i1.i) FROM integers i1 ORDER BY i NULLS FIRST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":129,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"r","query_location":42,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":63,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":132,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":89,"query_location_length":17,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["r"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":109,"query_location_length":22,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["r"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"query_location_length":1,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":145,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x::BIGINT, (SELECT 1 WHERE x::BIGINT \u003e 0) FROM t GROUP BY 1 ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":30,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":34,"query_location_length":13,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x::BIGINT, count(*), (SELECT x::BIGINT) FROM t GROUP BY ROLLUP(1) ORDER BY 1 NULLS LAST, 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":18,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts::DATE AS day,\n (SELECT list(t.target ORDER BY t.target) FROM targets t WHERE t.day = ts::DATE GROUP BY t.day) AS targets\nFROM sales GROUP BY 1 ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"day","query_location":9,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"targets","query_location":31,"query_location_length":94,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":32,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":8,"column_names":["t","target"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":8,"column_names":["t","target"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":77,"query_location_length":9,"schema_name":"","table_name":"targets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["targets"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":5,"column_names":["t","day"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":5,"column_names":["t","day"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":142,"query_location_length":5,"schema_name":"","table_name":"sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sales"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DaysToManufacture, StandardCost, (SELECT cost FROM\n\t(SELECT DaysToManufacture, StandardCost) AS SourceTable\n\tPIVOT\n\t(\n\t AVG(StandardCost)\n\t FOR DaysToManufacture IN (0, 1, 2, 3, 4)\n\t) AS PivotTable\n\tUNPIVOT\n\t(\n\t\tcost FOR days IN (0, 1, 2, 3, 4)\n\t)\n)\nFROM Product","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["DaysToManufacture"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":12,"column_names":["StandardCost"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":40,"query_location_length":218,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":4,"column_names":["cost"]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":221,"query_location_length":32,"source":{"type":"PIVOT","alias":"PivotTable","sample":null,"query_location":128,"query_location_length":61,"source":{"type":"SUBQUERY","alias":"SourceTable","sample":null,"query_location":59,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":17,"column_names":["DaysToManufacture"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":12,"column_names":["StandardCost"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":128,"query_location_length":17,"function_name":"avg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":12,"column_names":["StandardCost"]}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":17,"column_names":["DaysToManufacture"]}],"unpivot_names":[],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"aggregates":[],"unpivot_names":["cost"],"pivots":[{"pivot_expressions":[],"unpivot_names":["days"],"entries":[{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":242,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"alias":""},{"values":[],"star_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":[],"include_nulls":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":264,"query_location_length":7,"schema_name":"","table_name":"Product","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Product"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM integers i1 GROUP BY (SELECT SUM(i1.i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":18,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":9,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT SUM(list_transform([1, 2], lambda i: i + 1)[1])) FROM integers i1 ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":56,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":47,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":58,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":39,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":69,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM (SELECT unnest(l) AS x) a JOIN (SELECT unnest(l) AS x) b ON a.x = b.x)\nFROM (SELECT NULL::INTEGER[] AS l)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":92,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":43,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":29,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":37,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"b","sample":null,"query_location":60,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":68,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["b","x"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":105,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"l","query_location":117,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT max((SELECT subq_0.c0 AS c1)) OVER () AS c6) FROM (SELECT NULL AS c0) AS subq_0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":52,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c6","query_location":15,"query_location_length":37,"function_name":"max","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":19,"query_location_length":24,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":27,"query_location_length":9,"column_names":["subq_0","c0"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"subq_0","sample":null,"query_location":65,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c0","query_location":73,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ROW(1, 2) IN (SELECT i, i + 1 FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":20,"query_location_length":31,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers s1 INNER JOIN integers s2 ON (SELECT s1.i=s2.i) ORDER BY s1.i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":4,"column_names":["s1","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":26,"query_location_length":44,"left":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"s2","sample":null,"query_location":37,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":18,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["s1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["s2","i"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT i FROM integers WHERE i=i1.i UNION SELECT i FROM integers WHERE i=i1.i) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":79,"subquery_type":"SCALAR","subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":false,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":100,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (\n SELECT r.ret FROM (\n SELECT CAST((SELECT count(p)) AS BIGINT) AS ret\n FROM (SELECT caller.v AS p) AS sc0\n ) AS r\n)\nFROM (SELECT 7 AS v) AS caller(v);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":125,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["r","ret"]}],"from_table":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":29,"query_location_length":96,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"ret","query_location":42,"query_location_length":33,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":47,"query_location_length":17,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"SUBQUERY","alias":"sc0","sample":null,"query_location":92,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"p","query_location":100,"query_location_length":8,"column_names":["caller","v"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"caller","sample":null,"query_location":138,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT 7 AS v) caller(v), LATERAL (SELECT (SELECT count(p)) FROM (SELECT caller.v AS p) sc0) l(c);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":103,"left":{"type":"SUBQUERY","alias":"caller","sample":null,"query_location":14,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"right":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":49,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":57,"query_location_length":17,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["p"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"sc0","sample":null,"query_location":80,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"p","query_location":88,"query_location_length":8,"column_names":["caller","v"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) + (SELECT count(*) FROM b WHERE b.x \u003e= w.x) FROM a WHERE a.x \u003e= w.x) FROM w ORDER BY w.x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":3,"column_names":["w","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":85,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":41,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":56,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["b","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["w","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":81,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":3,"column_names":["w","x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('having_effect_seq');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"currval","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":19,"literal":{"kind":"STRING","text":"having_effect_seq"}}}],"qualified_name":{"path":["currval"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT 42+i1.i FROM integers LIMIT 0) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":38,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":59,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT 42 WHERE i1.i IS NULL) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":30,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":32,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":4,"column_names":["i1","i"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":51,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers i1 ORDER BY (WITH i2 AS (SELECT 100-i1.i as j) SELECT j FROM i2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":35,"query_location_length":52,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"i2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":58,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":4,"column_names":["i1","i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"query_location_length":2,"schema_name":"","table_name":"i2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["i2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (WITH i2 AS (SELECT i FROM integers WHERE i=i1.i) SELECT * FROM i2) AS j FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"j","query_location":10,"query_location_length":67,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"i2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["i1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":67,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":2,"schema_name":"","table_name":"i2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["i2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":88,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT COUNT(*) FROM integers i2 WHERE i2.i\u003ei1.i OR i2.i IS NULL) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":66,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":32,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":50,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":50,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["i2","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["i1","i"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":68,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["i2","i"]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":82,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (col1 + 1) AS k, k IN (SELECT ColID + k FROM tbl_ProductSales) FROM another_T GROUP BY k ORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"query_location_length":40,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["ColID"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":16,"schema_name":"","table_name":"tbl_ProductSales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_ProductSales"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["k"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"query_location_length":9,"schema_name":"","table_name":"another_T","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["another_T"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["k"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH outer_t(x) AS (SELECT 1)\nSELECT q.cnt\nFROM outer_t\nCROSS JOIN LATERAL (\n\tSELECT count(*) AS cnt\n\tFROM (SELECT 1 AS r) e\n\tCROSS JOIN (SELECT 1 AS v) d\n\tLEFT JOIN (SELECT 1 AS r, 1 AS v) e2 ON e2.r = outer_t.x AND e2.v = d.v\n) q;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"outer_t","value":{"aliases":["x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["q","cnt"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":175,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":7,"schema_name":"","table_name":"outer_t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["outer_t"]}},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":75,"query_location_length":154,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":85,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":156,"query_location_length":71,"left":{"type":"JOIN","alias":"","sample":null,"query_location":126,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"e","sample":null,"query_location":107,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"r","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":137,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":145,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"e2","sample":null,"query_location":166,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"r","query_location":174,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":182,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":196,"query_location_length":31,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":196,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":4,"column_names":["e2","r"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":9,"column_names":["outer_t","x"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":217,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":4,"column_names":["e2","v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":3,"column_names":["d","v"]}}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_rv(arr) FROM t ORDER BY arr;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":3,"column_names":["arr"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"array_rv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["arr"]}}],"qualified_name":{"path":["array_rv"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1=(SELECT NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":15,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":9,"query_location_length":13,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, (SELECT SUM(b) FROM test tsub WHERE test.a=tsub.a) FROM test","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":50,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"tsub","sample":null,"query_location":30,"query_location_length":9,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":46,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":6,"column_names":["tsub","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (WITH cte1 AS (WITH cte2 AS (SELECT 42) SELECT * FROM cte2) SELECT * FROM cte1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":79,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":4,"schema_name":"","table_name":"cte2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":74,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, (WITH cte AS (SELECT CASE WHEN test.a=11 THEN b ELSE NULL END FROM test tsub LIMIT 1) SELECT * FROM cte) FROM test ORDER BY a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":104,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":31,"query_location_length":40,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["b"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"tsub","sample":null,"query_location":77,"query_location_length":9,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":103,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"query_location_length":3,"schema_name":"","table_name":"cte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM item i1 WHERE (SELECT count(*) AS item_cnt FROM item WHERE (i_manufact = i1.i_manufact AND i_manufact=3) OR (i_manufact = i1.i_manufact AND i_manufact=3)) \u003e 0 ORDER BY 1 LIMIT 100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"item","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["item"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":144,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":140,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"item_cnt","query_location":36,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":4,"schema_name":"","table_name":"item","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["item"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":73,"query_location_length":94,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":74,"query_location_length":43,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":10,"column_names":["i_manufact"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":13,"column_names":["i1","i_manufact"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":10,"column_names":["i_manufact"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":123,"query_location_length":43,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":10,"column_names":["i_manufact"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":13,"column_names":["i1","i_manufact"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":10,"column_names":["i_manufact"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE i=(SELECT i, i + 2 FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":31,"query_location_length":31,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM strings WHERE EXISTS(SELECT v FROM strings WHERE v='bla')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":28,"query_location_length":43,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4=ANY(SELECT UNNEST(i)) FROM (VALUES ([1, 2, 3])) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":23,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":36,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'bla' IN (SELECT * FROM strings WHERE v=s1.v) FROM strings s1 ORDER BY v","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":16,"query_location_length":36,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["s1","v"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":58,"query_location_length":10,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, (SELECT SUM(s1.i) OVER (ORDER BY s1.i) FROM integers s1, integers s2 WHERE i1.i=s1.i LIMIT 1) FROM integers i1 ORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":93,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":18,"query_location_length":30,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["s1","i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["s1","i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":54,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"s2","sample":null,"query_location":67,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":4,"column_names":["s1","i"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":109,"query_location_length":11,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (select i as j from a group by j) sq1 where j = 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"sq1","sample":null,"query_location":14,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"j","query_location":22,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["j"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT 42 a), (SELECT 43 b), (SELECT 44 c), (SELECT 45 d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":63,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":44,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":59,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":67,"query_location_length":2,"literal":{"kind":"INTEGER","text":"45"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM create_external_resource('failing@local');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":41,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"create_external_resource","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":15,"literal":{"kind":"STRING","text":"failing@local"}}}],"qualified_name":{"path":["create_external_resource"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT uri FROM create_external_resource('sp@local');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["uri"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":16,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"create_external_resource","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":10,"literal":{"kind":"STRING","text":"sp@local"}}}],"qualified_name":{"path":["create_external_resource"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM duckdb_columns();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select constraint_text from duckdb_constraints() where constraint_type = 'PRIMARY KEY';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["constraint_text"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_constraints","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_constraints"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":15,"column_names":["constraint_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":13,"literal":{"kind":"STRING","text":"PRIMARY KEY"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name, internal, split(replace(path, '\\', '/'), '/')[-1], type FROM duckdb_databases() WHERE path IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":8,"column_names":["internal"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":67,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":35,"function_name":"split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":23,"function_name":"replace","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"literal":{"kind":"STRING","text":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["replace"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"/"}}}],"qualified_name":{"path":["split"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":83,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_databases","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_databases"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":113,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":4,"column_names":["path"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT signature_key_fingerprint FROM duckdb_extensions() WHERE install_mode='STATICALLY_LINKED';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":25,"column_names":["signature_key_fingerprint"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":47,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_extensions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_extensions"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":12,"column_names":["install_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":19,"literal":{"kind":"STRING","text":"STATICALLY_LINKED"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(i) FROM read_csv('{TEST_DIR}/live_query_metrics_1.csv');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"query_location_length":47,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":37,"literal":{"kind":"STRING","text":"{TEST_DIR}/live_query_metrics_1.csv"}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM duckdb_sequences();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_sequences","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_sequences"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM duckdb_types;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"duckdb_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, type, managed, state, reference FROM duckdb_external_resources(discover := true) ORDER BY reference;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":9,"column_names":["reference"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["managed"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":5,"column_names":["state"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":9,"column_names":["reference"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":50,"query_location_length":43,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"discover","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"discover","query_location":88,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM create_external_resource('scalarcreate@local');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":46,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"create_external_resource","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":20,"literal":{"kind":"STRING","text":"scalarcreate@local"}}}],"qualified_name":{"path":["create_external_resource"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT status_function, destroy_function, resolve_function FROM duckdb_external_resource_types() WHERE name = 'pg@aws:rds';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["status_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":16,"column_names":["destroy_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":16,"column_names":["resolve_function"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resource_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_external_resource_types"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":12,"literal":{"kind":"STRING","text":"pg@aws:rds"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM duckdb_external_resources(discover := true, type := 'a@pr') WHERE handle['id'] = 'x';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":59,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_resources","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"discover","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"discover","query_location":52,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"type","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"type","query_location":66,"query_location_length":6,"literal":{"kind":"STRING","text":"a@pr"}}}],"qualified_name":{"path":["duckdb_external_resources"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":18,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":86,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":6,"column_names":["handle"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d FROM generate_series(TIMESTAMPTZ '1992-01-01 00:00:00-08', TIMESTAMPTZ '1991-06-01 00:00:00-07', -INTERVAL '1 MONTH') tbl(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":119,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 00:00:00-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1991-06-01 00:00:00-07"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":19,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"literal":{"kind":"STRING","text":"1 MONTH"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM generate_series('-infinity'::TIMESTAMPTZ, '290303-12-11 (BC) 00:00:00'::TIMESTAMPTZ, INTERVAL '1 DAY');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":102,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"literal":{"kind":"STRING","text":"-infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":28,"literal":{"kind":"STRING","text":"290303-12-11 (BC) 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":7,"literal":{"kind":"STRING","text":"1 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT numeric_precision, numeric_scale, is_nullable FROM information_schema.columns WHERE table_name='reals' ORDER BY ordinal_position","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":16,"column_names":["ordinal_position"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["numeric_precision"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":13,"column_names":["numeric_scale"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":11,"column_names":["is_nullable"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":26,"schema_name":"information_schema","table_name":"columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","columns"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":7,"literal":{"kind":"STRING","text":"reals"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT(constraint_catalog) = current_database()\nFROM information_schema.check_constraints\nWHERE constraint_schema = 'scheme' AND check_clause LIKE 'CHECK%'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":15,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":18,"column_names":["constraint_catalog"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":18,"function_name":"current_database","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["current_database"]},"is_legacy_function_call":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"query_location_length":36,"schema_name":"information_schema","table_name":"check_constraints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","check_constraints"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":105,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":17,"column_names":["constraint_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":8,"literal":{"kind":"STRING","text":"scheme"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"query_location_length":13,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":12,"column_names":["check_clause"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":8,"literal":{"kind":"STRING","text":"CHECK%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select table_name, column_name\nfrom duckdb_columns()\nwhere database_name = 'system'\nand schema_name = 'information_schema'\nand data_type = 'NULL'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":11,"column_names":["column_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":59,"query_location_length":86,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":8,"literal":{"kind":"STRING","text":"system"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":11,"column_names":["schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":20,"literal":{"kind":"STRING","text":"information_schema"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":9,"column_names":["data_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":6,"literal":{"kind":"STRING","text":"NULL"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select column_name, column_type from (describe select * from unnest([1, 2]) i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"i","sample":null,"query_location":61,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select g.generate_series, g.ordinality from generate_series(1, 3) with ordinality as g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":17,"column_names":["g","generate_series"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":12,"column_names":["g","ordinality"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"g","sample":null,"query_location":44,"query_location_length":42,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITH_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from range(4,19,5)a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":14,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT DATE '2000-01-01', DATE '2000-10-1', INTERVAL '3' MONTHS) t(s, e, increment), range(s, e, increment) t2(j) ORDER BY s, j","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["s"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["j"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":119,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2000-10-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":19,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":3,"literal":{"kind":"STRING","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["s","e","increment"]},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":100,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":9,"column_names":["increment"]}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["j"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) AS probe_unnest FROM range(10000) t(i), LATERAL unnest([i]) r(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"probe_unnest","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":48,"left":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":37,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":56,"query_location_length":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_timestamp(range) as entry\n FROM range(\n epoch(date_trunc('month', current_date))::BIGINT,\n epoch(date_trunc('month', current_date) + interval '1 month' - interval '1 day')::BIGINT,\n epoch(interval '1 day')::BIGINT\n )","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"entry","query_location":7,"query_location_length":19,"function_name":"to_timestamp","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["range"]}}],"qualified_name":{"path":["to_timestamp"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":202,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":98,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":40,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":33,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":12,"column_names":["current_date"]}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["epoch"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":80,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":175,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":154,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":33,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":12,"column_names":["current_date"]}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":156,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":9,"literal":{"kind":"STRING","text":"1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":177,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":7,"literal":{"kind":"STRING","text":"1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["epoch"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":196,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":233,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":210,"query_location_length":23,"function_name":"epoch","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":216,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":7,"literal":{"kind":"STRING","text":"1 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["epoch"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":235,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM generate_series(TIMESTAMP '1992-01-01 00:00:00', TIMESTAMP '2020-01-01 00:00:00', INTERVAL '1 DAY') tbl(d)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":21,"query_location_length":106,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-01-01 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":7,"literal":{"kind":"STRING","text":"1 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["d"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM t, LATERAL range(\n ts + (CASE WHEN i = 5 THEN INTERVAL '7 minutes' ELSE INTERVAL '0 minutes' END),\n ts + INTERVAL '5 minutes',\n INTERVAL '10 minutes');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":164,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":156,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":49,"query_location_length":71,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"then_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":11,"literal":{"kind":"STRING","text":"7 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"else_expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":11,"literal":{"kind":"STRING","text":"0 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":11,"literal":{"kind":"STRING","text":"5 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":158,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":12,"literal":{"kind":"STRING","text":"10 minutes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT parse_path(filename), size, content FROM read_text('test/sql/table_function/files/four.blob');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":8,"column_names":["filename"]}}],"qualified_name":{"path":["parse_path"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["size"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":7,"column_names":["content"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_text","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":41,"literal":{"kind":"STRING","text":"test/sql/table_function/files/four.blob"}}}],"qualified_name":{"path":["read_text"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXISTS(SELECT * FROM sqlite_master OFFSET 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":44,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":21,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":13,"schema_name":"","table_name":"sqlite_master","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sqlite_master"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(1) FROM information_schema.columns WHERE table_name='wide' AND column_name='col1024' AND data_type='BIGINT'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":26,"schema_name":"information_schema","table_name":"columns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","columns"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":54,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":6,"literal":{"kind":"STRING","text":"wide"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":9,"literal":{"kind":"STRING","text":"col1024"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":9,"column_names":["data_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":8,"literal":{"kind":"STRING","text":"BIGINT"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM range(0, 10)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from generate_series(-9223372036854775808, 9223372036854775807, 9223372036854775807);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":79,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM repeat(INTERVAL '30 days', NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":9,"literal":{"kind":"STRING","text":"30 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM pragma_table_info('integers');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":29,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_table_info","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"literal":{"kind":"STRING","text":"integers"}}}],"qualified_name":{"path":["pragma_table_info"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name FROM icu_calendar_names()\nGROUP BY 1\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":20,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"icu_calendar_names","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["icu_calendar_names"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('week', '2024-06-15 12:00:00+00'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(hash(ts::VARCHAR)) FROM generate_series('1950-01-01 12:00:00+00'::TIMESTAMPTZ, '2050-01-01 12:00:00+00'::TIMESTAMPTZ, INTERVAL 5 DAY) t(ts)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":17,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"query_location_length":115,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":24,"literal":{"kind":"STRING","text":"1950-01-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":24,"literal":{"kind":"STRING","text":"2050-01-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["ts"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM generate_series('2024-09-05 12:00:00+00'::TIMESTAMPTZ, '2024-09-15 12:00:00+00'::TIMESTAMPTZ, INTERVAL 2 DAY)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":109,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-09-05 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-09-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(5784, 7, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"5784"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(1444, 12, 30, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":48,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1444"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(1445, 9, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1445"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_diff('year', '2019-01-01 12:00:00+00'::TIMESTAMPTZ, '2024-06-15 12:00:00+00'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"date_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":24,"literal":{"kind":"STRING","text":"2019-01-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(1946, 1, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1946"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT millennium(TIMESTAMPTZ '294247-01-10 04:00:54.775806+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"millennium","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["millennium"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT timezone(TIMESTAMPTZ '294247-01-10 04:00:54.775806+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["timezone"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2024-01-15 12:00:00-05'::TIMESTAMPTZ + INTERVAL 13 MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-01-15 12:00:00-05"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":17,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_trunc('week', '2024-06-15 12:00:00-04'::TIMESTAMPTZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-06-15 12:00:00-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t::TIMESTAMP from tstzs;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"tstzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tstzs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_add('2000-01-01 00:00:00+00'::TIMESTAMPTZ, INTERVAL (-2147483648) MONTH);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":77,"function_name":"date_add","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":24,"literal":{"kind":"STRING","text":"2000-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":28,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":11,"literal":{"kind":"INTEGER","text":"-2147483648"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["date_add"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), sum(hash(ts::VARCHAR)) FROM generate_series('1900-01-01 12:00:00+00'::TIMESTAMPTZ, '2100-01-01 12:00:00+00'::TIMESTAMPTZ, INTERVAL 11 DAY) t(ts)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":17,"function_name":"hash","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["ts"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["hash"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"query_location_length":116,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":24,"literal":{"kind":"STRING","text":"1900-01-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":124,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":24,"literal":{"kind":"STRING","text":"2100-01-01 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":139,"query_location_length":15,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["ts"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2001-02-16 20:38:40'::TIMESTAMP AT TIME ZONE 'America/Denver';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":62,"function_name":"timezone","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":16,"literal":{"kind":"STRING","text":"America/Denver"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":21,"literal":{"kind":"STRING","text":"2001-02-16 20:38:40"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["timezone"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2020-01-01'::DATE::TIMESTAMPTZ AS dttz;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"dttz","query_location":25,"query_location_length":13,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2020-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select value from duckdb_settings() where name = 'TimeZone';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["value"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_settings","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_settings"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":10,"literal":{"kind":"STRING","text":"TimeZone"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2023-03-26 12:00:00+00'::TIMESTAMPTZ, '2023-04-21 12:00:00+00'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2023-03-26 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":24,"literal":{"kind":"STRING","text":"2023-04-21 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '2026-12-01'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2026-12-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT part, date_trunc(part, '2024-03-10 03:30:00-04'::TIMESTAMPTZ)\nFROM (VALUES ('millennium'),('century'),('decade'),('year'),('quarter'),('month'),('week'),\n ('day'),('hour'),('minute'),('second'),('millisecond'),('microsecond')) t(part)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":55,"function_name":"date_trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":24,"literal":{"kind":"STRING","text":"2024-03-10 03:30:00-04"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_trunc"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":74,"query_location_length":171,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":12,"literal":{"kind":"STRING","text":"millennium"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":9,"literal":{"kind":"STRING","text":"century"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":8,"literal":{"kind":"STRING","text":"decade"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":9,"literal":{"kind":"STRING","text":"quarter"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":7,"literal":{"kind":"STRING","text":"month"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":6,"literal":{"kind":"STRING","text":"week"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":5,"literal":{"kind":"STRING","text":"day"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":6,"literal":{"kind":"STRING","text":"hour"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":8,"literal":{"kind":"STRING","text":"minute"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":8,"literal":{"kind":"STRING","text":"second"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":13,"literal":{"kind":"STRING","text":"millisecond"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":13,"literal":{"kind":"STRING","text":"microsecond"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["part"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamptz(2024, 13, 1, 0, 0, 0.0, 'UTC')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"make_timestamptz","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2024"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"13"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"STRING","text":"UTC"}}}],"qualified_name":{"path":["make_timestamptz"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strptime('2024-11-03 01:30:00', '%Y-%m-%d %H:%M:%S')::TIMESTAMPTZ","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":13,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"strptime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":21,"literal":{"kind":"STRING","text":"2024-11-03 01:30:00"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":19,"literal":{"kind":"STRING","text":"%Y-%m-%d %H:%M:%S"}}}],"qualified_name":{"path":["strptime"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2099-01-15 12:00:00+00'::TIMESTAMPTZ, '2099-07-15 12:00:00+00'::TIMESTAMPTZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"literal":{"kind":"STRING","text":"2099-01-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":24,"literal":{"kind":"STRING","text":"2099-07-15 12:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_diff('year', '2000-01-01 00:00:00+00'::TIMESTAMPTZ, '2100-01-01 00:00:00+00'::TIMESTAMPTZ);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":95,"function_name":"date_diff","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":6,"literal":{"kind":"STRING","text":"year"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":24,"literal":{"kind":"STRING","text":"2000-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"literal":{"kind":"STRING","text":"2100-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}}],"qualified_name":{"path":["date_diff"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(CAST('2020-01-02 03:04:05.123456789+00' AS TIMESTAMPTZ_NS) AS DATE)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":72,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":58,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":34,"literal":{"kind":"STRING","text":"2020-01-02 03:04:05.123456789+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT i FROM db.t ORDER BY 1 LIMIT 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":4,"schema_name":"db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers ORDER BY i NULLS FIRST LIMIT 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM db.ints ORDER BY i NULLS LAST LIMIT 1 OFFSET 10242","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10242"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":7,"schema_name":"db","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","ints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v FROM db.null_mixed_value_BIGINT ORDER BY v NULLS FIRST LIMIT 1 OFFSET 2048","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["v"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":26,"schema_name":"db","table_name":"null_mixed_value_BIGINT","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","null_mixed_value_BIGINT"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers ORDER BY i NULLS FIRST LIMIT 5 OFFSET 1000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM (SELECT id FROM t ORDER BY id LIMIT 100000000 OFFSET 200000)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":60,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":9,"literal":{"kind":"INTEGER","text":"100000000"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":6,"literal":{"kind":"INTEGER","text":"200000"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(k AS BIGINT) AS x FROM tnull ORDER BY x NULLS LAST LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["x"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":7,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["k"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":5,"schema_name":"","table_name":"tnull","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tnull"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM (SHOW TABLES FROM dsdgen_nested.a.b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":null,"show_type":"SHOW_FROM","catalog_name":"dsdgen_nested","schema_name":"b","qualified_name":{"path":["dsdgen_nested","a","b",""]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) \u003e 0 FROM dbgen_nested.a.b.nation;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":23,"schema_name":"b","table_name":"nation","column_name_alias":[],"catalog_name":"dbgen_nested","at_clause":null,"qualified_name":{"path":["dbgen_nested","a","b","nation"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c_count, custdist FROM (\n SELECT c_count, count(*) AS custdist FROM (\n SELECT c_custkey, count(o_orderkey) AS c_count\n FROM customer LEFT OUTER JOIN orders ON c_custkey = o_custkey AND o_comment NOT LIKE '%special%requests%'\n GROUP BY c_custkey) c_orders\n GROUP BY c_count)\nORDER BY custdist DESC, c_count DESC LIMIT 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":8,"column_names":["custdist"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":332,"query_location_length":7,"column_names":["c_count"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":351,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["c_count"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":8,"column_names":["custdist"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":30,"query_location_length":277,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":7,"column_names":["c_count"]},{"class":"FUNCTION","type":"FUNCTION","alias":"custdist","query_location":52,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"c_orders","sample":null,"query_location":78,"query_location_length":198,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":9,"column_names":["c_custkey"]},{"class":"FUNCTION","type":"FUNCTION","alias":"c_count","query_location":106,"query_location_length":17,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":10,"column_names":["o_orderkey"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":157,"query_location_length":91,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":148,"query_location_length":8,"schema_name":"","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"query_location_length":6,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":183,"query_location_length":65,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":183,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":9,"column_names":["c_custkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":9,"column_names":["o_custkey"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":223,"query_location_length":25,"function_name":"!~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":9,"column_names":["o_comment"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":20,"literal":{"kind":"STRING","text":"%special%requests%"}}}],"qualified_name":{"path":["!~~"]},"is_legacy_function_call":false}]},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":266,"query_location_length":9,"column_names":["c_custkey"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":299,"query_location_length":7,"column_names":["c_count"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), COUNT(*) + 1 FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nonexistent_column FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["nonexistent_column"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM pk;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"pk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pk"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT val FROM t_drop WHERE id = 42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":6,"schema_name":"","table_name":"t_drop","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_drop"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers WHERE i = 4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM snapshot ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"snapshot","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["snapshot"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT txid_current() = getvariable('current_txid');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":44,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"txid_current","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["txid_current"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":27,"function_name":"getvariable","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":14,"literal":{"kind":"STRING","text":"current_txid"}}}],"qualified_name":{"path":["getvariable"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT trigger_name, table_name, action_timing, event_manipulation FROM duckdb_triggers() WHERE trigger_name = 'my_trigger';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":13,"column_names":["action_timing"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":18,"column_names":["event_manipulation"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":72,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":12,"literal":{"kind":"STRING","text":"my_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT trigger_name, sql FROM duckdb_triggers() WHERE trigger_name = 'cat_qualified_trigger';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["sql"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":23,"literal":{"kind":"STRING","text":"cat_qualified_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM duckdb_triggers() WHERE trigger_name = 'cat_trigger' AND database_name = 'mydb';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":45,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":13,"literal":{"kind":"STRING","text":"cat_trigger"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":6,"literal":{"kind":"STRING","text":"mydb"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM strict_target;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"strict_target","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strict_target"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM t_zero_log;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"t_zero_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_zero_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sql LIKE '%REFERENCING NEW TABLE AS ins%' FROM duckdb_triggers() WHERE trigger_name = 'trg_tosql';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":37,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sql"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":32,"literal":{"kind":"STRING","text":"%REFERENCING NEW TABLE AS ins%"}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":11,"literal":{"kind":"STRING","text":"trg_tosql"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, val FROM old_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"old_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["old_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, old_val, new_val FROM t_ret_log;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["old_val"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["new_val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":9,"schema_name":"","table_name":"t_ret_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_ret_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sql FROM duckdb_triggers() WHERE trigger_name = 'tr2';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sql"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":16,"query_location_length":17,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_triggers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_triggers"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":40,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":5,"literal":{"kind":"STRING","text":"tr2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT val_before FROM pre_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["val_before"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"pre_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pre_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM audit_unique;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"audit_unique","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["audit_unique"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM del_dup_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"del_dup_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del_dup_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT seq_val, name FROM order_audit2 ORDER BY seq_val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":7,"column_names":["seq_val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["seq_val"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":12,"schema_name":"","table_name":"order_audit2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["order_audit2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM chain_audit;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"chain_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["chain_audit"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM log2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"log2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["log2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH d AS (DELETE FROM dupe_d WHERE id = 10 RETURNING *, rowid)\nSELECT id, typeof(rowid) FROM d;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"DELETE_QUERY_NODE","modifiers":[],"cte_map":{"map":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},"table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"dupe_d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dupe_d"]}},"using_clauses":[],"returning_list":[{"class":"STAR","type":"STAR","alias":"","query_location":54,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":5,"column_names":["rowid"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":13,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["rowid"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [42]::my_int_list","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":13,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":11,"catalog":"","schema":"","type_name":"my_int_list","children":[],"qualified_name":{"path":["my_int_list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select name, current_alias from person order by current_alias","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":13,"column_names":["current_alias"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":13,"column_names":["current_alias"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a, a \u003c '9223372036854775807'::bignum from bignum_comparisons","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":10,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["a"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":21,"literal":{"kind":"STRING","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":18,"schema_name":"","table_name":"bignum_comparisons","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bignum_comparisons"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '100000'::bignum::double","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"100000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('2.5' AS BIGNUM);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"literal":{"kind":"STRING","text":"2.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x::BIGNUM, x::BIGNUM = x::UHUGEINT::BIGNUM, (-x)::BIGNUM\nFROM (VALUES (3.4028235e38::FLOAT)) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18,"query_location_length":31,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":12,"literal":{"kind":"NUMERIC","text":"3.4028235e38"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1.5::DOUBLE::BIGNUM, 2::FLOAT::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '4294967296'::BIGNUM = 4294967296::BIGNUM, '-1000000000000000000000'::BIGNUM = -1000000000000000000000::HUGEINT::BIGNUM;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":41,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"4294967296"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":10,"literal":{"kind":"INTEGER","text":"4294967296"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":76,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":25,"literal":{"kind":"STRING","text":"-1000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":40,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":22,"literal":{"kind":"INTEGER","text":"1000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x - x, x - y FROM (VALUES ('123456789012345678901234567890123456789012345678901234567890'::BIGNUM, '123456789012345678901234567890123456789012345678901234567890'::BIGNUM)) v(x, y)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["y"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":25,"query_location_length":153,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":62,"literal":{"kind":"STRING","text":"123456789012345678901234567890123456789012345678901234567890"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":168,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":62,"literal":{"kind":"STRING","text":"123456789012345678901234567890123456789012345678901234567890"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":170,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x","y"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(a)::BIGNUM FROM bignum_nulls;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":12,"schema_name":"","table_name":"bignum_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bignum_nulls"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ((-500)::BIGNUM + 1000::BIGNUM) + ((-250)::BIGNUM);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-500"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-250"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(('1' || repeat('0', 309))::BIGNUM AS DOUBLE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":53,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":23,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":16,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"INTEGER","text":"309"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-1'::BIGNUM::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-170141183460469231731687303715884105729'::BIGNUM::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105729"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('1e+24' AS BIGNUM)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"1e+24"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '12345'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"12345"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 1::double::bignum","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from integers where a = 1::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '256'::bignum = 256::bignum;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"256"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"INTEGER","text":"256"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[],"qualified_name":{"path":["bignum"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"-"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-.5'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"-.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '1000...'::BIGNUM","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"1000..."}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[],"qualified_name":{"path":["BIGNUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v::VARCHAR FROM bit_zonemap_values WHERE v \u003c '10101010'::BIT ORDER BY v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":18,"schema_name":"","table_name":"bit_zonemap_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bit_zonemap_values"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":48,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["v"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":10,"literal":{"kind":"STRING","text":"10101010"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(v COLLATE nocase, 2), arg_max(v, v COLLATE nocase, 2), max(v, 2) FROM (VALUES ('B'), ('a'), ('C')) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":11,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]},"collation":"nocase"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":31,"function_name":"arg_max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":44,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"collation":"nocase"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["arg_max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":9,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":81,"query_location_length":28,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"literal":{"kind":"STRING","text":"B"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":3,"literal":{"kind":"STRING","text":"C"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_cast(bitstring('1', 129) as UHUGEINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":19,"function_name":"bitstring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"129"}}}],"qualified_name":{"path":["bitstring"]},"is_legacy_function_call":false},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_cast('00001111'::BIT as DOUBLE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"literal":{"kind":"STRING","text":"00001111"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col::BIT FROM varchars","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"varchars","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["varchars"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b | '011100011011'::BIT FROM bits","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"|","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":14,"literal":{"kind":"STRING","text":"011100011011"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["|"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '010101'::BIT \u003c\u003c -2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"010101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-2"}}}],"qualified_name":{"path":["\u003c\u003c"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT octet_length(b) FROM bits;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"octet_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["octet_length"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":4,"schema_name":"","table_name":"bits","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bits"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT set_bit('10101'::BIT, 6, 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"set_bit","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":7,"literal":{"kind":"STRING","text":"10101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["set_bit"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bit_position('1101'::BIT, '11101'::BIT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"bit_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":6,"literal":{"kind":"STRING","text":"1101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"11101"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[],"qualified_name":{"path":["BIT"]}}}}],"qualified_name":{"path":["bit_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::BLOB","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::tinyint::BYTEA","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":7,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[],"qualified_name":{"path":["tinyint"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":5,"catalog":"","schema":"","type_name":"BYTEA","children":[],"qualified_name":{"path":["BYTEA"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM blobs ORDER BY b","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '\\\\'::BLOB","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"\\\\"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT generation_expression FROM duckdb_columns() WHERE table_name = 'coll' AND column_name = 'g';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":21,"column_names":["generation_expression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_columns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["duckdb_columns"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":57,"query_location_length":41,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":6,"literal":{"kind":"STRING","text":"coll"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":3,"literal":{"kind":"STRING","text":"g"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '5877642-06-25 (BC)'::date + 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"STRING","text":"5877642-06-25 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '290309-12-22 (BC)'::date - interval '2007483647 days 9223372036854775807 microseconds'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"STRING","text":"290309-12-22 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":59,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":50,"literal":{"kind":"STRING","text":"2007483647 days 9223372036854775807 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '5881580-07-10'::date + 365","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"literal":{"kind":"STRING","text":"5881580-07-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"365"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '294247-01-10'::date + interval (1) month","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"STRING","text":"294247-01-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2370-01-01'::DATE::VARCHAR == '2370-01-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":43,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"2370-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"literal":{"kind":"STRING","text":"2370-01-01"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(CAST('2020-01-01 24:00:00' AS DATE) AS VARCHAR),\n\tCOALESCE(CAST(TRY_CAST('294247-01-11 00:00:00' AS DATE) AS VARCHAR), 'NULL');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":52,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":21,"literal":{"kind":"STRING","text":"2020-01-01 24:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":62,"query_location_length":76,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":58,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":23,"literal":{"kind":"STRING","text":"294247-01-11 00:00:00"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":6,"literal":{"kind":"STRING","text":"NULL"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1993-06-31'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1993-06-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1993-12-32'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1993-12-32"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1992-06-31'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-06-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1992-12-32'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-12-32"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1992-aa-10'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-aa-10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1992-30-30'::DATE::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"1992-30-30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast('1111-111-1' as date)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":12,"literal":{"kind":"STRING","text":"1111-111-1"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast('290308-01-01 (BC)'::date as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":48,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":19,"literal":{"kind":"STRING","text":"290308-01-01 (BC)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[],"qualified_name":{"path":["date"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE '0000-01-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"0000-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (i + 5) - i FROM dates","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":5,"schema_name":"","table_name":"dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -128::DECIMAL(9,0)::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"128"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 127::DECIMAL(3,0)::HUGEINT, -17014118346046923173168730371588410572::DECIMAL(38,0)::HUGEINT, -7::DECIMAL(9,1)::HUGEINT, 27::DECIMAL(18,1)::HUGEINT, 33::DECIMAL(38,1)::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":63,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":38,"literal":{"kind":"INTEGER","text":"17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":25,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":2,"literal":{"kind":"INTEGER","text":"27"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":172,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":157,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":2,"literal":{"kind":"INTEGER","text":"33"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":159,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":174,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::SMALLINT::DECIMAL(3,1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::INTEGER::DECIMAL(9,7)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::HUGEINT::DECIMAL(18,3), 100::HUGEINT::DECIMAL(3,0), (-100)::HUGEINT::DECIMAL(3,0), 0::HUGEINT::DECIMAL(3,3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"literal":{"kind":"INTEGER","text":"-100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":105,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 17014118346046923173168730371588410572::HUGEINT::DECIMAL(9,0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"INTEGER","text":"17014118346046923173168730371588410572"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::FLOAT::DECIMAL(38,37)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"37"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::DOUBLE::DECIMAL(3,3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAX(NULL::DECIMAL),\n MAX('0.1'::DECIMAL(4,1))::VARCHAR,\n MAX('4938245.1'::DECIMAL(9,1))::VARCHAR,\n MAX('45672564564938245.1'::DECIMAL(18,1))::VARCHAR,\n MAX('4567645908450368043562342564564938245.1'::DECIMAL(38,1))::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":24,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"literal":{"kind":"STRING","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":30,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":11,"literal":{"kind":"STRING","text":"4938245.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":165,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":41,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":149,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":21,"literal":{"kind":"STRING","text":"45672564564938245.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":151,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":167,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":244,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":183,"query_location_length":61,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":228,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":41,"literal":{"kind":"STRING","text":"4567645908450368043562342564564938245.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":230,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":238,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":241,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":246,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '0.5'::DECIMAL(1,1) + -1::TINYINT,\n '0.5'::DECIMAL(1,1) + -1::SMALLINT,\n '0.5'::DECIMAL(1,1) + -1::INTEGER,\n '0.5'::DECIMAL(1,1) + -1::BIGINT,\n '0.5'::DECIMAL(1,1) + -1::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":12,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":112,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":154,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":10,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":158,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":160,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":195,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":180,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":5,"literal":{"kind":"STRING","text":"0.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":182,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":197,"query_location_length":11,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":199,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":201,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '0.001'::DECIMAL * 100::TINYINT,\n '0.001'::DECIMAL * 10000::SMALLINT,\n '0.001'::DECIMAL * 1000000::INTEGER,\n '0.001'::DECIMAL * 100000000::BIGINT,\n '0.001'::DECIMAL * 10000000000::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":31,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"0.001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":34,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"literal":{"kind":"STRING","text":"0.001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"query_location_length":35,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":7,"literal":{"kind":"STRING","text":"0.001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":36,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":141,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":7,"literal":{"kind":"STRING","text":"0.001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":143,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":162,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":9,"literal":{"kind":"INTEGER","text":"100000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":164,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":39,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":186,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":7,"literal":{"kind":"STRING","text":"0.001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":188,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":209,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":198,"query_location_length":11,"literal":{"kind":"INTEGER","text":"10000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":211,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_average(v) FROM prices WHERE v \u003e 1000.00;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"decimal_average","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["decimal_average"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":6,"schema_name":"","table_name":"prices","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":44,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"1000.00"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_average(v) FROM overflow_big;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"decimal_average","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["decimal_average"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":12,"schema_name":"","table_name":"overflow_big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["overflow_big"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 10.00::DECIMAL(18,16)::DECIMAL(16,15);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"10.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"15"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_division(DECIMAL '1.00', DECIMAL '3.000');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"3.000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_division(3::decimal(38,2), 16384::decimal(37,2));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"literal":{"kind":"INTEGER","text":"16384"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"37"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_division(1::DECIMAL(19,0), 8::DECIMAL(19,0), 2),\n decimal_division(3::DECIMAL(19,0), 8::DECIMAL(19,0), 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":55,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decimal_division(1.5::DECIMAL(4,1), 4.00::DECIMAL(18,2)), typeof(decimal_division(1.5::DECIMAL(4,1), 4.00::DECIMAL(18,2)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"4.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":64,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":56,"function_name":"decimal_division","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"4.00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["decimal_division"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select cast(-9.9999999999999999999999999999999 as decimal(1,0));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":56,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":34,"literal":{"kind":"NUMERIC","text":"-9.9999999999999999999999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1e18'::DECIMAL(18,0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"literal":{"kind":"STRING","text":"1e18"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '4.9e-11'::DECIMAL(18,4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"4.9e-11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '4.9e-5'::DECIMAL(18,4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"4.9e-5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('0.92e19' AS DECIMAL(17,0)), TRY_CAST('0.92e19' AS DECIMAL(18,0)), TRY_CAST('0.92e19' AS DECIMAL(19,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"0.92e19"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"17"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":9,"literal":{"kind":"STRING","text":"0.92e19"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"0.92e19"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":2,"literal":{"kind":"INTEGER","text":"19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 90000000000000000.0::DECIMAL(18,1) * 1000::DECIMAL(4,0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":55,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"NUMERIC","text":"90000000000000000.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(1::DECIMAL(18,0) + 0.1::DECIMAL(18,18)),\n 1::DECIMAL(18,0) + 0.1::DECIMAL(18,18),\n typeof(0.1::DECIMAL(18,18) - 1::DECIMAL(18,0)),\n 0.1::DECIMAL(18,18) - 1::DECIMAL(18,0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":46,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":119,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":184,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":167,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":169,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":187,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":189,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(1000 AS DECIMAL(3,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(1000000000::DECIMAL(20,0) AS DECIMAL(5,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":47,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":10,"literal":{"kind":"INTEGER","text":"1000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('10000000000' AS DECIMAL(10,0))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"literal":{"kind":"STRING","text":"10000000000"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"VALUES (32942348563242.111222333444555666777888::DECIMAL(38,24)), (NULL::NUMERIC);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":39,"literal":{"kind":"NUMERIC","text":"32942348563242.111222333444555666777888"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"literal":{"kind":"INTEGER","text":"24"}}],"qualified_name":{"path":["DECIMAL"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(42.1), typeof(-10239814.1), typeof(1049185157.12345), typeof(102398294123451814.12345), typeof(-49238409238403918140294812084.12490812490)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"42.1"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":19,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"literal":{"kind":"NUMERIC","text":"-10239814.1"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":24,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":16,"literal":{"kind":"NUMERIC","text":"1049185157.12345"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":32,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":24,"literal":{"kind":"NUMERIC","text":"102398294123451814.12345"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":50,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":42,"literal":{"kind":"NUMERIC","text":"-49238409238403918140294812084.12490812490"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1'::DECIMAL(3, 3)::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select CAST(-33.846 AS DECIMAL(5,0)) d0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"d0","query_location":7,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"-33.846"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::DECIMAL(TRUE);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM decimals ORDER BY d DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["d"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CEIL('999.9'::DECIMAL(4,1)), CEIL('99999999.9'::DECIMAL(9,1)), CEIL('99999999999999999.9'::DECIMAL(18,1)), CEIL('9999999999999999999999999999999999999.9'::DECIMAL(38,1))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"literal":{"kind":"STRING","text":"999.9"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":32,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":12,"literal":{"kind":"STRING","text":"99999999.9"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":42,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":21,"literal":{"kind":"STRING","text":"99999999999999999.9"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":62,"function_name":"ceil","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":160,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":41,"literal":{"kind":"STRING","text":"9999999999999999999999999999999999999.9"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":162,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["DECIMAL"]}}}}],"qualified_name":{"path":["ceil"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ROUND('100.3908147521'::DECIMAL(18,10), 0)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 1)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 2)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 3)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 4)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 5)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 6)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 7)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 8)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 9)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 10)::VARCHAR,\n\t ROUND('100.3908147521'::DECIMAL(18,10), 100000)::VARCHAR,\n\t ROUND(NULL::DECIMAL, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":163,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":165,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":220,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":178,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":200,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":202,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":210,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":222,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":277,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":235,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":257,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":241,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":259,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":279,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":334,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":292,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":314,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":298,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":316,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":324,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":327,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":332,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":336,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":391,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":349,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":371,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":355,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":373,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":381,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":384,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":389,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":393,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":448,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":406,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":428,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":412,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":430,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":438,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":441,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":446,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":450,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":505,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":463,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":485,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":469,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":487,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":495,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":498,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":503,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":507,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":562,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":520,"query_location_length":42,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":542,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":526,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":544,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":552,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":555,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":560,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":564,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":620,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":577,"query_location_length":43,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":599,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":583,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":601,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":609,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":612,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":617,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":622,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":682,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":635,"query_location_length":47,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":657,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":641,"query_location_length":16,"literal":{"kind":"STRING","text":"100.3908147521"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":659,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":667,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":670,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":675,"query_location_length":6,"literal":{"kind":"INTEGER","text":"100000"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":684,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":697,"query_location_length":23,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":707,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":703,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":709,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":718,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ROUND(12::DECIMAL(3,0), i) FROM range(1) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":39,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-1.023450000001'::DECIMAL(5,4)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"literal":{"kind":"STRING","text":"-1.023450000001"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT len(enum_range(NULL::empty_enum))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":28,"function_name":"enum_range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":10,"catalog":"","schema":"","type_name":"empty_enum","children":[],"qualified_name":{"path":["empty_enum"]}}}}],"qualified_name":{"path":["enum_range"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(c AS e3) FROM t ORDER BY c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["c"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["c"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":2,"catalog":"","schema":"","type_name":"e3","children":[],"qualified_name":{"path":["e3"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM m WHERE m=m_2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"m","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["m"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["m"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":3,"column_names":["m_2"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ['bla']::mood[]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"literal":{"kind":"STRING","text":"bla"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT enum_first(NULL::mood), enum_last(NULL::mood);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"enum_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}}],"qualified_name":{"path":["enum_first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":21,"function_name":"enum_last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[],"qualified_name":{"path":["mood"]}}}}],"qualified_name":{"path":["enum_last"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select person.name, pet.name from person inner join pet on (person.current_mood \u003e pet.current_mood) where person.name = 'Pedro'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["person","name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":8,"column_names":["pet","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":3,"schema_name":"","table_name":"pet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pet"]}},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":60,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":19,"column_names":["person","current_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":16,"column_names":["pet","current_mood"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":11,"column_names":["person","name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":7,"literal":{"kind":"STRING","text":"Pedro"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT person_mood::pet_mood FROM person_pet_den","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["person_mood"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"pet_mood","children":[],"qualified_name":{"path":["pet_mood"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":14,"schema_name":"","table_name":"person_pet_den","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person_pet_den"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'happy'::s1.mood;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"literal":{"kind":"STRING","text":"happy"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"s1","type_name":"mood","children":[],"qualified_name":{"path":["s1","mood"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST (current_mood as STRING) from person","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":12,"column_names":["current_mood"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":6,"catalog":"","schema":"","type_name":"STRING","children":[],"qualified_name":{"path":["STRING"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":6,"schema_name":"","table_name":"person","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"Select * from t1, t2 where t1.a = t2.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":4,"column_names":["t1","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["t2","a"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from t1, t2 where t1.timestamp_ns = t2.b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":11,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":34,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":15,"column_names":["t1","timestamp_ns"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":4,"column_names":["t2","b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f FROM floats WHERE f\u003c1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"floats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["floats"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":27,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["f"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextafter('inf'::double, '-inf'::double)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"function_name":"nextafter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"literal":{"kind":"STRING","text":"inf"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"literal":{"kind":"STRING","text":"-inf"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[],"qualified_name":{"path":["double"]}}}}],"qualified_name":{"path":["nextafter"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f FROM floats WHERE f\u003c\u003e1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"floats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["floats"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":27,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["f"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, g::VARCHAR from t1 order by id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["g"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('POINT(1 2) garbage' AS GEOMETRY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":20,"literal":{"kind":"STRING","text":"POINT(1 2) garbage"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '\\x01\\x02'::BLOB::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"\\x01\\x02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT from_hex('0104000000020000000101000000000000000000f03f00000000000000400101000000000000000000f03f0000000000000040')::GEOMETRY","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":10,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":114,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":104,"literal":{"kind":"STRING","text":"0104000000020000000101000000000000000000f03f00000000000000400101000000000000000000f03f0000000000000040"}}}],"qualified_name":{"path":["from_hex"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, typeof(g) FROM wkb ORDER BY rowid LIMIT 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":5,"column_names":["rowid"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":3,"schema_name":"","table_name":"wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wkb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT stats(vertex_extract(ST_GeomFromWKB(wkb), 'z')) FROM pts_z_wkb LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":47,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":40,"function_name":"vertex_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":19,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":3,"column_names":["wkb"]}}],"qualified_name":{"path":["st_geomfromwkb"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"literal":{"kind":"STRING","text":"z"}}}],"qualified_name":{"path":["vertex_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":9,"schema_name":"","table_name":"pts_z_wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pts_z_wkb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from '{TEST_DIR}/points.parquet' where g \u0026\u0026 'POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))' order by id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/points.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/points.parquet"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":49,"function_name":"\u0026\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":44,"literal":{"kind":"STRING","text":"POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))"}}}],"qualified_name":{"path":["\u0026\u0026"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.row_groups_scanned\nFROM '{TEST_DIR}/output.json' prof,\n LATERAL unnest(prof.operator) t0(op0),\n LATERAL unnest(op0.children) t1(op1),\n LATERAL unnest(op1.children) t2(t)\nWHERE t.type = 'TABLE_SCAN';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":20,"column_names":["t","row_groups_scanned"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":162,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"prof","sample":null,"query_location":33,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/output.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/output.json"]}},"right":{"type":"TABLE_FUNCTION","alias":"t0","sample":null,"query_location":69,"query_location_length":37,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":13,"column_names":["prof","operator"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["op0"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"TABLE_FUNCTION","alias":"t1","sample":null,"query_location":113,"query_location_length":36,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":12,"column_names":["op0","children"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["op1"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":156,"query_location_length":34,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":12,"column_names":["op1","children"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["t"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":197,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":6,"column_names":["t","type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":12,"literal":{"kind":"STRING","text":"TABLE_SCAN"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select g, id from t1 where id \u003e 200 and id \u003c 2500 order by id desc limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":27,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":27,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":40,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2500"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g FROM points ORDER BY rowid","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"points","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["points"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM persisted WHERE g \u0026\u0026 'POINT(3 1)'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"persisted","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["persisted"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":27,"function_name":"\u0026\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(3 1)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["\u0026\u0026"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g FROM read_csv('{TEMP_DIR}/malformed_wkt.csv', columns={'g': 'GEOMETRY'}, header=true, ignore_errors=true);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":100,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_csv","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":30,"literal":{"kind":"STRING","text":"{TEMP_DIR}/malformed_wkt.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"g","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"g","query_location":69,"query_location_length":10,"literal":{"kind":"STRING","text":"GEOMETRY"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}}],"qualified_name":{"path":["read_csv"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('POINT M (1 2 4)'::GEOMETRY).x, ('POINT M (1 2 4)'::GEOMETRY).y,\n ('POINT M (1 2 4)'::GEOMETRY).z, ('POINT M (1 2 4)'::GEOMETRY).m","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":31,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":17,"literal":{"kind":"STRING","text":"POINT M (1 2 4)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"STRING","text":"x"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":40,"query_location_length":31,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":17,"literal":{"kind":"STRING","text":"POINT M (1 2 4)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"STRING","text":"y"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":80,"query_location_length":31,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":98,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":17,"literal":{"kind":"STRING","text":"POINT M (1 2 4)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"literal":{"kind":"STRING","text":"z"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":113,"query_location_length":31,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":131,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":17,"literal":{"kind":"STRING","text":"POINT M (1 2 4)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":133,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"literal":{"kind":"STRING","text":"m"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT geom.x, vertex_extract(geom, ord) FROM (SELECT 'POINT(1 2)'::GEOMETRY AS geom, 'x' AS ord);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["geom","x"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":25,"function_name":"vertex_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":4,"column_names":["geom"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["ord"]}}],"qualified_name":{"path":["vertex_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":46,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"geom","query_location":66,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ord","query_location":86,"query_location_length":3,"literal":{"kind":"STRING","text":"x"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ST_GeomFromWKB(ST_AsWKB('POINT(1 2)'::GEOMETRY) || ST_AsWKB('POINT(9 9)'::GEOMETRY));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":84,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":68,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":32,"function_name":"st_aswkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(1 2)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["st_aswkb"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":32,"function_name":"st_aswkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":12,"literal":{"kind":"STRING","text":"POINT(9 9)"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[],"qualified_name":{"path":["GEOMETRY"]}}}}],"qualified_name":{"path":["st_aswkb"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["st_geomfromwkb"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT octet_length(ST_AsWKB(ST_GeomFromWKB(from_hex(repeat('000000000700000001', 16) || '000000000700000000'))));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":106,"function_name":"octet_length","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":92,"function_name":"st_aswkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":82,"function_name":"st_geomfromwkb","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":66,"function_name":"from_hex","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":56,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":32,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":20,"literal":{"kind":"STRING","text":"000000000700000001"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":20,"literal":{"kind":"STRING","text":"000000000700000000"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["from_hex"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["st_geomfromwkb"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["st_aswkb"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["octet_length"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1080863910568919040::HUGEINT * 251658240::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":49,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"1080863910568919040"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"INTEGER","text":"251658240"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 85070591730234615865843651857942052863::HUGEINT * 2::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"INTEGER","text":"85070591730234615865843651857942052863"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4611686018427387904::HUGEINT * 36893488147419103231::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4611686018427387904"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":20,"literal":{"kind":"INTEGER","text":"36893488147419103231"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-85070591730234615865843651857942052863)::HUGEINT * 2::HUGEINT,\n 170141183460469231731687303715884105727::HUGEINT * (-1)::HUGEINT,\n (-1)::HUGEINT * 170141183460469231731687303715884105727::HUGEINT,\n (-170141183460469231731687303715884105727)::HUGEINT * (-1)::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":39,"literal":{"kind":"INTEGER","text":"-85070591730234615865843651857942052863"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"query_location_length":64,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":134,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":152,"query_location_length":64,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":156,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":158,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":207,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":209,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":225,"query_location_length":67,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":267,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":269,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":283,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":280,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":285,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(x) FROM (VALUES (170141183460469231731687303715884105727), (170141183460469231731687303715884105727)) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"query_location_length":93,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('-170141183460469231731687303715884105729' AS HUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":63,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105729"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '100000000000000000000'::HUGEINT + '-1000000000000000000000'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"literal":{"kind":"STRING","text":"100000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":25,"literal":{"kind":"STRING","text":"-1000000000000000000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '170141183460469231731687303715884105727'::HUGEINT - '-170141183460469231731687303715884105728'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105728"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::HUGEINT % 20::HUGEINT, 90::HUGEINT % 20::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":25,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"90"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-170141183460469231731687303715884105728'::HUGEINT + 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105728"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 170141183460469231731687303715884105727 - (-1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 170141183460469231731687303715884105727 * -1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 170141183460469231731687303715884105727 // 170141183460469231731687303715884105727;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":82,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -170141183460469231731687303715884105728 % -170141183460469231731687303715884105728;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":83,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105728"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":40,"literal":{"kind":"INTEGER","text":"-170141183460469231731687303715884105728"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1::HUGEINT \u003c\u003c 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"\u003c\u003c","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["\u003c\u003c"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -27::HUGEINT \u003e\u003e 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"\u003e\u003e","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"27"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["\u003e\u003e"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 51290852742897895128414::HUGEINT \u0026 4923847238975289723895239078235::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":75,"function_name":"\u0026","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"literal":{"kind":"INTEGER","text":"51290852742897895128414"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":31,"literal":{"kind":"INTEGER","text":"4923847238975289723895239078235"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"qualified_name":{"path":["\u0026"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('-170141183460469231731687303715884105728'::HUGEINT::DOUBLE AS HUGEINT) = '-170141183460469231731687303715884105728'::HUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":130,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":76,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105728"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105728"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(3.402823669209385e38::DOUBLE AS UHUGEINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":20,"literal":{"kind":"NUMERIC","text":"3.402823669209385e38"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, fill(x) OVER (ORDER BY i)\nFROM (VALUES\n (0::BIGINT, '-170141183460469231731687303715884105728'::HUGEINT),\n (1, NULL),\n (4611686018427387904, '170141183460469231731687303715884105727'::HUGEINT)\n) t(i, x)\nORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"","query_location":10,"query_location_length":25,"function_name":"fill","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["fill"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":172,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105728"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":19,"literal":{"kind":"INTEGER","text":"4611686018427387904"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":201,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":41,"literal":{"kind":"STRING","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":203,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-170141183460469231731687303715884105729'::HUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":42,"literal":{"kind":"STRING","text":"-170141183460469231731687303715884105729"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 127::HUGEINT::TINYINT, -127::HUGEINT::TINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":22,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 9223372036854775807::HUGEINT::BIGINT, (-9223372036854775808)::HUGEINT::BIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":20,"literal":{"kind":"INTEGER","text":"-9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ('0.' || repeat('0', 288) || '1e5')::hugeint","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":33,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"literal":{"kind":"STRING","text":"0."}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":16,"function_name":"repeat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"literal":{"kind":"INTEGER","text":"288"}}}],"qualified_name":{"path":["repeat"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"literal":{"kind":"STRING","text":"1e5"}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[],"qualified_name":{"path":["hugeint"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT h, SUM(id) FROM hugeints GROUP BY h ORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["h"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":7,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["id"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["h"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM hugeints t1 JOIN hugeints2 t2 ON t1.h \u003c\u003e t2.h","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":26,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":31,"query_location_length":12,"schema_name":"","table_name":"hugeints2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["t1","h"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":4,"column_names":["t2","h"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select interval '0.00004 MILLENNIUM';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":20,"literal":{"kind":"STRING","text":"0.00004 MILLENNIUM"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select interval '0.0000000004 DAY';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":18,"literal":{"kind":"STRING","text":"0.0000000004 DAY"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '9223372036854775807 microseconds 999999999:00:00'::INTERVAL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":50,"literal":{"kind":"STRING","text":"9223372036854775807 microseconds 999999999:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT to_years(2), to_months(2), to_days(2), to_hours(2), to_minutes(2), to_seconds(2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"to_years","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_years"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":12,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":10,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":11,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":13,"function_name":"to_minutes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_minutes"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":13,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT interval '9223372036854775807' minutes;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"to_minutes","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":21,"literal":{"kind":"STRING","text":"9223372036854775807"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_minutes"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '47.210'::interval;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"47.210"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1.5' MONTH;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"literal":{"kind":"STRING","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '-1.5' MONTH;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"-1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1.5 MONTH'::INTERVAL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"STRING","text":"1.5 MONTH"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-1.5 WEEK'::INTERVAL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"literal":{"kind":"STRING","text":"-1.5 WEEK"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1952257854 days 3 months' / 0.9090909090909091;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":26,"literal":{"kind":"STRING","text":"1952257854 days 3 months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":18,"literal":{"kind":"NUMERIC","text":"0.9090909090909091"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(' ' as interval)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"literal":{"kind":"STRING","text":" "}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_cast(NULL as interval)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '2Y 1 month 1M 3S 20mS 16uS'::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":28,"literal":{"kind":"STRING","text":"2Y 1 month 1M 3S 20mS 16uS"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '@2mons 1H';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":11,"literal":{"kind":"STRING","text":"@2mons 1H"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '90' QUARTER;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"to_quarters","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"STRING","text":"90"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_quarters"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1 year 2 days 2 seconds' / 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":25,"literal":{"kind":"STRING","text":"1 year 2 days 2 seconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '-1294967296months -1294967296months';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":37,"literal":{"kind":"STRING","text":"-1294967296months -1294967296months"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1 mil 2 cent 1 decs 3 quarter';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":31,"literal":{"kind":"STRING","text":"1 mil 2 cent 1 decs 3 quarter"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '100 months agb'::INTERVAL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"literal":{"kind":"STRING","text":"100 months agb"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE '1992-03-01' - INTERVAL '4' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":18,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"STRING","text":"4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DATE '1992-03-01' - INTERVAL '10' MONTH","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":19,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"STRING","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT INTERVAL '1000000' SECOND - DATE '1993-03-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"1000000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1993-03-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select INTERVAL '22 HOUR' + '12:15:37.123456-08'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"22 HOUR"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":20,"literal":{"kind":"STRING","text":"12:15:37.123456-08"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH d(y) AS (\n\tSELECT UNNEST(range(\n\t\t'2023-05-11 4:00:00'::TIMESTAMP,\n\t\t'2023-05-11 4:00:00'::TIMESTAMP + TO_DAYS(7),\n\t\tTO_HOURS(6)\n\t))\n)\nSELECT\n\ty,\n\ty - ('2023-05-11 4:00:00'::TIMESTAMP) AS x\nFROM d\nWHERE\n\tx BETWEEN TO_HOURS(-44) AND TO_HOURS(44)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d","value":{"aliases":["y"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":114,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":106,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":20,"literal":{"kind":"STRING","text":"2023-05-11 4:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":106,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":20,"literal":{"kind":"STRING","text":"2023-05-11 4:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":10,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":11,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":1,"column_names":["y"]},{"class":"FUNCTION","type":"FUNCTION","alias":"x","query_location":154,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":177,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":20,"literal":{"kind":"STRING","text":"2023-05-11 4:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":200,"query_location_length":1,"schema_name":"","table_name":"d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":211,"query_location_length":38,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":1,"column_names":["x"]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":219,"query_location_length":13,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-44"}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false},"upper":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":237,"query_location_length":12,"function_name":"to_hours","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}}],"qualified_name":{"path":["to_hours"]},"is_legacy_function_call":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select interval '26 days' \u003c (interval '1 month' - interval '4 days');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":61,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"literal":{"kind":"STRING","text":"26 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":9,"literal":{"kind":"STRING","text":"1 month"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":8,"literal":{"kind":"STRING","text":"4 days"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(d + INTERVAL 1 MONTH) AS plus_1_month, max(d + INTERVAL 30 DAY) AS plus_30_days FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"plus_1_month","query_location":7,"query_location_length":25,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":16,"function_name":"to_months","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_months"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"plus_30_days","query_location":50,"query_location_length":24,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":15,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"literal":{"kind":"INTEGER","text":"30"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT case when 1=0 then [1] else [2] end","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":35,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1] = [1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1] \u003e [1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1] \u003c\u003e [1, 2]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [] \u003c NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [] \u003c\u003e NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l \u003c\u003e r FROM list_int_empty","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":14,"schema_name":"","table_name":"list_int_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int_empty"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ['duck'] = ['duck']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ['duck'] \u003e ['duck']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [{'x': 'duck', 'y': 1}] \u003c NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":30,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [{'x': 'duck', 'y': 1}] \u003c\u003e NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":31,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l \u003c\u003e r FROM list_of_struct","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":14,"schema_name":"","table_name":"list_of_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_of_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b || NULL || b from x1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"||","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["||"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":2,"schema_name":"","table_name":"x1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["x1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '' = concat(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":17,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"literal":{"kind":"STRING","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":12,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["concat"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM v1 v, v1 w WHERE v.a \u003c\u003e w.a OR v.a\u003ew.a ORDER BY v.a, w.a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["v","a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":3,"column_names":["w","a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"v","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"right":{"type":"BASE_TABLE","alias":"w","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":31,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":31,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["v","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["w","a"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":3,"column_names":["v","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["w","a"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1] IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":29,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [] IS NOT DISTINCT FROM []","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ['duck'] IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [{'x': 'duck', 'y': 1}] IS DISTINCT FROM [{'x': 'duck', 'y': 1}]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":64,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":55,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l[1] FROM nested","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lhs.i, rhs.i,\n\tlhs.i \u003c rhs.i, lhs.i \u003c= rhs.i,\n\tlhs.i = rhs.i, lhs.i \u003c\u003e rhs.i,\n\tlhs.i \u003e rhs.i, lhs.i \u003e= rhs.i,\n\tlhs.i IS NOT DISTINCT FROM rhs.i, lhs.i IS DISTINCT FROM rhs.i\nFROM list_int lhs, list_int rhs\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["lhs","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["rhs","i"]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":22,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":37,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":69,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":86,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":101,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":118,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":5,"column_names":["rhs","i"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":152,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":5,"column_names":["lhs","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":5,"column_names":["rhs","i"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":181,"query_location_length":31,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":186,"query_location_length":12,"schema_name":"","table_name":"list_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":200,"query_location_length":12,"schema_name":"","table_name":"list_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_int"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(l)['a'] FROM b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":16,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s.min, s.max, s.has_null FROM (SELECT STATS(l[1]) s FROM lists LIMIT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["s","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["s","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["s","has_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":45,"query_location_length":11,"function_name":"stats","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":52,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}}],"qualified_name":{"path":["stats"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select [-100::BIGINT, 9999999999999999999::UBIGINT];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":44,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":12,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9999999999999999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [2,NULL]=[2,NULL],[2,NULL]\u003c\u003e[2,NULL],NULL::INTEGER[]=[2,NULL],NULL::INTEGER[]\u003c\u003e[2,NULL];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":25,"query_location_length":18,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":24,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":69,"query_location_length":25,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"query_location_length":8,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, b[1][1] FROM nested ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":6,"schema_name":"","table_name":"nested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST([[[[[1, 2], [3, 4]], [[5]]], [[[]]]]], recursive := true)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":64,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":37,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":35,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":25,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":5,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":4,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":66,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST([1, 2, 3], 'hello');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, UNNEST(i), UNNEST(j) FROM (VALUES (3, ['hello', NULL, 'world'], [NULL])) tbl(id, i, j)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":37,"query_location_length":46,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":24,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","i","j"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(str_list) FROM tbl1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":8,"column_names":["str_list"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nullif(unnest([1, 2]), 0) AS tag, count(*)\nFROM range(1)\nGROUP BY nullif(unnest([1, 2]), 0)\nORDER BY tag","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":3,"column_names":["tag"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"tag","query_location":7,"query_location_length":25,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":14,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["nullif"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":55,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":25,"function_name":"nullif","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":14,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["nullif"]},"is_legacy_function_call":false}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN true THEN unnest([1, 2]) ELSE 0 END AS tag, count(*)\nFROM range(1)\nGROUP BY CASE WHEN true THEN unnest([1, 2]) ELSE 0 END\nORDER BY tag","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":3,"column_names":["tag"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"tag","query_location":7,"query_location_length":45,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":14,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":75,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":93,"query_location_length":45,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":14,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM UNNEST(ARRAY[NULL, 'hello', 'world', 'bleorkbaejkoreijgaiorjgare']) AS tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":14,"query_location_length":77,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":21,"query_location_length":59,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":28,"literal":{"kind":"STRING","text":"bleorkbaejkoreijgaiorjgare"}}]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, a, b,\n\tlist_sort(ARRAY(\n\t\tSELECT DISTINCT ax\n\t\t\tFROM UNNEST(a) ta(ax)\n\t\t\tWHERE ax = any(b)\n\t\t\tORDER BY ALL\n\t)) ab_intersect\n\tFROM tbl\n\tORDER BY k;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]},{"class":"FUNCTION","type":"FUNCTION","alias":"ab_intersect","query_location":17,"query_location_length":103,"function_name":"list_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":27,"query_location_length":92,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":18446744073709551615,"query_location_length":0,"case_checks":[{"when_expr":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__array_internal_idx_1"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}]},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["__array_internal_idx_1"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":18446744073709551615,"query_location_length":0,"index":1}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["ax"]},{"class":"STAR","type":"STAR","alias":"__array_internal_idx_1","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"ta","sample":null,"query_location":63,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},"column_name_alias":["ax"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":89,"query_location_length":11,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":2,"column_names":["ax"]},"comparison_type":"COMPARE_EQUAL"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}}],"qualified_name":{"path":["list_sort"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":140,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP([1, 2, 'hi'::VARCHAR], [1.0, 2.1, 4.9])::MAP(VARCHAR, TINYINT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"literal":{"kind":"STRING","text":"hi"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"4.9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP(['key'], [range]) FROM range(5) WHERE range \u003e 2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"literal":{"kind":"STRING","text":"key"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["range"]}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":49,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":5,"column_names":["range"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, attr['key2'] FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["attr"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"literal":{"kind":"STRING","text":"key2"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(a ORDER BY ALL), LAST(a ORDER BY ALL) FROM tbl1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":20,"function_name":"last","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["last"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_extract(array_value(1, 2, 3), 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":20,"function_name":"array_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["array_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c::INT[3] FROM (VALUES ([1,2,3]), ([4,NULL,6]), (NULL), ([7,8,9])) as t(c);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["c"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":22,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l::INT[3] FROM unreferenced_bad_child WHERE i = 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":22,"schema_name":"","table_name":"unreferenced_bad_child","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unreferenced_bad_child"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.x, s.x FROM t LEFT JOIN s ON s.x = t.x ORDER BY t.x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["t","x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["t","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["s","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["s","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["t","x"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test_array JOIN test_array AS t2 ON t2.c1 = test_array.c1 ORDER BY test_array.c1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":13,"column_names":["test_array","c1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"test_array","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_array"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":30,"query_location_length":16,"schema_name":"","table_name":"test_array","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_array"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["t2","c1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":13,"column_names":["test_array","c1"]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl1 OFFSET 1 LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a::VARCHAR FROM arrays ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 ORDER BY c DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["c"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(a) FROM arrays","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":6,"schema_name":"","table_name":"arrays","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arrays"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST('[NULL, [1], [abc]]' as INTEGER[1][3])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":47,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":20,"literal":{"kind":"STRING","text":"[NULL, [1], [abc]]"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT * FROM t6;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":16,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":2,"schema_name":"","table_name":"t6","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t6"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM arr_test WHERE arr \u003e ARRAY[1,2,3]::INT[3] AND arr = ARRAY[1,2,2]::INT[3]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"arr_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["arr_test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":36,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["arr"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":8,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":42,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":3,"column_names":["arr"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":8,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":73,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["array"]}}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT [row(1, [1, 2]::INT[2])];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":24,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL=ANY(l) FROM v1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":11,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":2,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ARRAY[i] FROM range(3) tbl(i) WHERE (ARRAY[i])[1] == 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":7,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":21,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":18,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":53,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":44,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ARRAY_AGG(i) FROM range(0, 3) tbl(i)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":12,"function_name":"array_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["array_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":25,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_aggr(list(i), 'quantile', 0.5, 0.3, 0.5) FROM range(10) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"list_aggr","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"literal":{"kind":"STRING","text":"quantile"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["list_aggr"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":58,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select first(NULL::INT[]) from range(10) tbl(i) WHERE i=-1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":31,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(l) AS (VALUES (['bad', '1', '2']), (NULL), ([]), (['bad', '5', '6']))\nSELECT CAST(list_slice(l, 2, 3) AS INTEGER[]) FROM t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["l"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"literal":{"kind":"STRING","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":5,"literal":{"kind":"STRING","text":"bad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"literal":{"kind":"STRING","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":38,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":19,"function_name":"list_slice","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_slice"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":128,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM r\nWHERE (a IS NOT DISTINCT FROM b) \u003c\u003e (\n CASE WHEN a IS NULL AND b IS NULL THEN true\n WHEN a IS NULL OR b IS NULL THEN false\n WHEN len(a) \u003c\u003e len(b) THEN false\n ELSE len(list_filter(range(1, len(a) + 1), lambda i: a[i] IS DISTINCT FROM b[i])) = 0 END)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["r"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":29,"query_location_length":269,"left":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":30,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":65,"query_location_length":232,"case_checks":[{"when_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":75,"query_location_length":23,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":77,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["a"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":91,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["b"]}]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"when_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":123,"query_location_length":22,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":125,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["a"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":138,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":1,"column_names":["b"]}]}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":171,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":171,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":181,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":185,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"else_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":213,"query_location_length":80,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":76,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":217,"query_location_length":71,"function_name":"list_filter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":229,"query_location_length":20,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":245,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":238,"query_location_length":6,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":247,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":251,"query_location_length":36,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["i"]},"expr":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":261,"query_location_length":26,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":262,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":1,"column_names":["i"]}]},"right":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":284,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":283,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":285,"query_location_length":1,"column_names":["i"]}]}},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_filter"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":292,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x, y, x = y FROM a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":13,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["y"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_EXTRACT(LIST_VALUE(42, 43), 2)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_EXTRACT(LIST_VALUE('Hello', 'World'), 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":45,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"literal":{"kind":"STRING","text":"Hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"literal":{"kind":"STRING","text":"World"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_EXTRACT(LIST_VALUE(42::FLOAT), 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_extract(a, 3) FROM list_array_table;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":16,"schema_name":"","table_name":"list_array_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_array_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH foo AS (\n SELECT str.reduce(lambda a, b: a) AS str FROM struct_data\n)\nSELECT str, str.val, str.val = '', str.val IS NULL, str IS NULL FROM foo;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"foo","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"str","query_location":25,"query_location_length":26,"function_name":"reduce","schema":"str","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":36,"query_location_length":14,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["a"]},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["str","reduce"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"query_location_length":11,"schema_name":"","table_name":"struct_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":3,"column_names":["str"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":7,"column_names":["str","val"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":7,"column_names":["str","val"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"literal":{"kind":"STRING","text":""}}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":121,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":7,"column_names":["str","val"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":134,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":3,"column_names":["str"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"query_location_length":3,"schema_name":"","table_name":"foo","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a[2:] FROM (VALUES (LIST_VALUE(42, 43, 44))) tbl(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":4,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":1,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":18,"query_location_length":33,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"44"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s[1:3] FROM lists","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT n[NULL:NULL+NULL] FROM lists, nulltable","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":9,"schema_name":"","table_name":"nulltable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nulltable"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ARRAY_POP_BACK(s) FROM lists;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"function_name":"array_pop_back","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["array_pop_back"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":5,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\tarr,\n\tlist_concat(arr[1:-:2], arr) \nFROM (SELECT [1,2,3,4,5]) AS _(arr);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":3,"column_names":["arr"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":28,"function_name":"list_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":30,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["arr"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["arr"]}}],"qualified_name":{"path":["list_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":50,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["arr"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ([1,2,3,4,5])[1:5:9223372036854775807];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":25,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775807"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ([1,2,3,4,5])[1:-3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":6,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-3"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a[:-:step] from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":8,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ([1,2,3,4,5])[[NULL]:3:2];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":20,"query_location_length":12,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":11,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l1, UNNEST(l2) FROM (SELECT LIST(a) l1 FROM (VALUES (1), (2), (3)) AS t1 (a)) t1, (SELECT LIST(b) l2 FROM (VALUES (4), (5), (6), (7)) AS t2 (b)) t2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["l1"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":10,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":2,"column_names":["l2"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":22,"query_location_length":132,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":27,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l1","query_location":35,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":51,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":89,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l2","query_location":97,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":113,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNLIST(LIST(42))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"unlist","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":8,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unlist"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST(LIST(42))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":8,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_VALUE('hello')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"literal":{"kind":"STRING","text":"hello"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (VALUES (LIST_VALUE(1, 2)), (LIST_VALUE()), (LIST_VALUE('a'))) lv(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"lv","sample":null,"query_location":14,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":16,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":15,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from string_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"string_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from boolean_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"boolean_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["boolean_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from interval_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"interval_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["interval_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_from_entries(ARRAY[5,4,3]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":30,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":24,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}]}}],"qualified_name":{"path":["map_from_entries"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP_FROM_ENTRIES(NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map_from_entries"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP(list_value([1], [2], [3], [4]), list_value(10, 9, 8, 7))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":60,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select map_concat(map([], []), map([], []))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"map_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":11,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":11,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select map_concat(c1, c2) from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"map_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["c2"]}}],"qualified_name":{"path":["map_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_contains_value(map([1,2,3],[4,5,6]), 10) AS res;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"res","query_location":7,"query_location_length":44,"function_name":"map_contains_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":20,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":7,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["map_contains_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_entries(map_from_entries([('a', 5)]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"map_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":28,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":8,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map_from_entries"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map_entries"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select map_keys(NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"map_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MAP(\n\t[\n\t\t[1],[2],[3]\n\t],\n\t[\n\t\t4,2,0\n\t]\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":41,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m[NULL] from (select MAP(LIST_VALUE(1, 2, 3, 4,5, NULL),LIST_VALUE(10, 9, 8, 7,11,42)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":20,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":28,"query_location_length":65,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":29,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"literal":{"kind":"INTEGER","text":"11"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select map_extract(m,3) from (select MAP(LIST_VALUE(1, 2, 3, 4),LIST_VALUE(10, 9, 8, 7)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"function_name":"map_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["map_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":29,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":37,"query_location_length":51,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":22,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m[2] from (select MAP(lsta,lstb) as m from (SELECT list(a) as lsta, list(b) as lstb FROM ints where a \u003c 4 and b \u003e 1) as lst_tbl) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":17,"query_location_length":118,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":25,"query_location_length":14,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["lsta"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":4,"column_names":["lstb"]}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"lst_tbl","sample":null,"query_location":50,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"lsta","query_location":58,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"lstb","query_location":75,"query_location_length":7,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":107,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":107,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":117,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select MAP_EXTRACT_VALUE(MAP([],[]), NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"map_extract_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":10,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["map_extract_value"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m[[1]] from (select MAP(LIST_VALUE([1], [1], [1], [4]),LIST_VALUE(10, 9, 8, 7)) as m) as T","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":8,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":19,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":27,"query_location_length":59,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select v_map[array_sort(k, 'DESC', 'NULLS LAST')[1]] from t2 limit 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":40,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["v_map"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":48,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":35,"function_name":"array_sort","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"DESC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"literal":{"kind":"STRING","text":"NULLS LAST"}}}],"qualified_name":{"path":["array_sort"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_values(MAP_FROM_ENTRIES(list)) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"map_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":22,"function_name":"map_from_entries","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":4,"column_names":["list"]}}],"qualified_name":{"path":["map_from_entries"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map_values"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n\tvals[1] as val,\n\tkeys[1] as key,\n\tmap(keys, vals)[key] as first_map_entry,\n\t\tfrom tbl\n\twhere\n\t\tnot_filtered and first_map_entry != val;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"val","query_location":12,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":4,"column_names":["vals"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"key","query_location":29,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["keys"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"first_map_entry","query_location":57,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":15,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["keys"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":4,"column_names":["vals"]}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":3,"column_names":["key"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":103,"query_location_length":39,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":12,"column_names":["not_filtered"]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":120,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":15,"column_names":["first_map_entry"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["val"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TYPEOF((NULL::MAP(TEXT, BIGINT))['a']);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":39,"query_location_length":5,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"TEXT","children":[],"qualified_name":{"path":["TEXT"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}],"qualified_name":{"path":["MAP"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select string_agg(struct_pack(i := i, j := i + 2)::VARCHAR, ',') from range(10) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":32,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":36,"query_location_length":1,"column_names":["i"]}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":46,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":71,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select data[1].str as str from tbl where str is not null;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"str","query_location":7,"query_location_length":11,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":11,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["data"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"literal":{"kind":"STRING","text":"str"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":45,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":3,"column_names":["str"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT e, (a).xx as ee FROM (SELECT e, STRUCT_PACK(xx := e, yy := g) FROM struct_data) tbl(e, a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["e"]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"ee","query_location":10,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"literal":{"kind":"STRING","text":"xx"}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":28,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["e"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"xx","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"xx","query_location":57,"query_location_length":1,"column_names":["e"]}},{"name":"yy","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"yy","query_location":66,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":11,"schema_name":"","table_name":"struct_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["e","a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT STRUCT_PACK(a := e, a := g) FROM struct_data","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":24,"query_location_length":1,"column_names":["e"]}},{"name":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":32,"query_location_length":1,"column_names":["g"]}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":11,"schema_name":"","table_name":"struct_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select struct_keys({a: 1, b: 2, c: 3, d: 4, e: 5});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"function_name":"struct_keys","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":30,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},{"name":"e","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"e","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_keys"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_values({a: 1, b: 'y'}) FROM range(3);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"struct_values","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":14,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":3,"literal":{"kind":"STRING","text":"y"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_values"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(CAST(NULL AS INTEGER[][2][][2][][2][][2][][2]));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}],"qualified_name":{"path":["list"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}],"qualified_name":{"path":["list"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}],"qualified_name":{"path":["list"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}],"qualified_name":{"path":["list"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["array"]}}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n x,\n (x + 1) IS DISTINCT FROM NULL,\n (x + 1) IS NOT DISTINCT FROM NULL,\n NULL IS DISTINCT FROM (x + 1),\n NULL IS NOT DISTINCT FROM (x + 1)\nFROM (VALUES (NULL), (1), (2)) t(x)\nORDER BY x","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["x"]},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":18,"query_location_length":29,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":53,"query_location_length":33,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":92,"query_location_length":29,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":127,"query_location_length":33,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":166,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a / (a - a) FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":11,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::UINTEGER FROM bigints WHERE i\u003e=0 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":38,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::HUGEINT::BIGINT FROM bigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS DECIMAL(3,0))::BIGINT FROM bigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":7,"schema_name":"","table_name":"bigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof([100::UTINYINT, 127::UTINYINT]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":30,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"literal":{"kind":"INTEGER","text":"127"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::UTINYINT FROM hugeints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::TINYINT FROM hugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":8,"schema_name":"","table_name":"hugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s::HUGEINT FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::UINTEGER FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::SMALLINT FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::DECIMAL(18,0)::INTEGER FROM integers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::UTINYINT FROM smallints WHERE i\u003e=0 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":40,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::HUGEINT::SMALLINT FROM smallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::DECIMAL(18,14)::SMALLINT FROM smallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"14"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[],"qualified_name":{"path":["SMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":9,"schema_name":"","table_name":"smallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["smallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::UTINYINT::TINYINT FROM tinyints WHERE i\u003e=0 ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":48,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::FLOAT FROM tinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::DECIMAL(18,16)::TINYINT FROM tinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"16"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":8,"schema_name":"","table_name":"tinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS USMALLINT) FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::FLOAT FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS DECIMAL(9,0))::UBIGINT FROM ubigints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"query_location_length":8,"schema_name":"","table_name":"ubigints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ubigints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS UTINYINT) FROM uhugeints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"uhugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uhugeints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(s AS UHUGEINT) FROM strings","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS USMALLINT) FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::BOOL FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[],"qualified_name":{"path":["BOOL"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS DECIMAL(18,9))::UINTEGER FROM uintegers ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"9"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":9,"schema_name":"","table_name":"uintegers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uintegers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::HUGEINT::USMALLINT FROM usmallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[],"qualified_name":{"path":["HUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":10,"schema_name":"","table_name":"usmallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["usmallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::DECIMAL(18,14)::USMALLINT FROM usmallints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"14"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":10,"schema_name":"","table_name":"usmallints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["usmallints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::INTEGER FROM utinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":9,"schema_name":"","table_name":"utinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["utinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::DECIMAL(38,0)::UTINYINT FROM utinyints ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"utinyints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["utinyints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT substring(decode('u\\xD5\\x8D1'::BLOB)::VARCHAR, -1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"substring","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":26,"function_name":"decode","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":12,"literal":{"kind":"STRING","text":"u\\xD5\\x8D1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}}],"qualified_name":{"path":["decode"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["substring"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select cast (null as main.u ARRAY[1]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"main","type_name":"u","children":[],"qualified_name":{"path":["main","u"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"INTEGER","text":"1"}}],"qualified_name":{"path":["array"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, s FROM t ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_extract(row(), 'a')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":26,"function_name":"struct_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select remap_struct(42, NULL::ROW(v1 INT, v2 INT, v3 INT), {'v1': 'j', 'v3': 'i'}, {'v2': NULL::INTEGER})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":98,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":27,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"v2","query_location":45,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"v3","query_location":53,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v1","query_location":66,"query_location_length":3,"literal":{"kind":"STRING","text":"j"}}},{"name":"v3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v3","query_location":77,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v2","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"v2","query_location":94,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["remap_struct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT remap_struct(ROW(1, 2), NULL::ROW(v1 VARCHAR), {'v2': 'i'}, NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":65,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":15,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":11,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"v2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v2","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT remap_struct(struct_pack(id := id, m := MAP {1: 'a', 2: 'b'}),\n NULL::STRUCT(id INTEGER, m2 MAP(INTEGER, VARCHAR)),\n {'id': 'id', 'm2': ROW('m', {'key': 'key', 'value': 'value'})},\n NULL)\nFROM range(3) t(id)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":244,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":48,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"id","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"id","query_location":38,"query_location_length":2,"column_names":["id"]}},{"name":"m","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":47,"query_location_length":20,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"literal":{"kind":"STRING","text":"b"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["map"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":44,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"id","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"m2","query_location":118,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"query_location_length":62,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":169,"query_location_length":4,"literal":{"kind":"STRING","text":"id"}}},{"name":"m2","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"m2","query_location":181,"query_location_length":42,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":3,"literal":{"kind":"STRING","text":"m"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":190,"query_location_length":32,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"key","query_location":198,"query_location_length":5,"literal":{"kind":"STRING","text":"key"}}},{"name":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":214,"query_location_length":7,"literal":{"kind":"STRING","text":"value"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":257,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":263,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["id"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(mapped) = typeof(NULL::MAP(VARCHAR, INTEGER)[]), mapped\nFROM (SELECT remap_struct(\n [NULL::\"NULL\", NULL::\"NULL\"],\n NULL::MAP(VARCHAR, INTEGER)[],\n {'list': 'list'},\n NULL\n) AS mapped);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":54,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":14,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":6,"column_names":["mapped"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":6,"column_names":["mapped"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":75,"query_location_length":134,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"mapped","query_location":83,"query_location_length":115,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":28,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":120,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":6,"catalog":"","schema":"","type_name":"NULL","children":[],"qualified_name":{"path":["NULL"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":141,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":154,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"list","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"list","query_location":179,"query_location_length":6,"literal":{"kind":"STRING","text":"list"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT remap_struct(\n\t[ {'first_name': 'Alice', 'age': 43} ],\n\tNULL::STRUCT(age INTEGER, given_name VARCHAR)[],\n\t{ 'list': ROW('bag', { 'age': 'age', 'given_name': 'first_name' }) },\n\tNULL\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":183,"function_name":"remap_struct","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":38,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":34,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"first_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"first_name","query_location":39,"query_location_length":7,"literal":{"kind":"STRING","text":"Alice"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":55,"query_location_length":2,"literal":{"kind":"INTEGER","text":"43"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":39,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"age","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"given_name","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}],"qualified_name":{"path":["list"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":68,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":123,"query_location_length":56,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":5,"literal":{"kind":"STRING","text":"bag"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":44,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":143,"query_location_length":5,"literal":{"kind":"STRING","text":"age"}}},{"name":"given_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"given_name","query_location":164,"query_location_length":12,"literal":{"kind":"STRING","text":"first_name"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["remap_struct"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CASE WHEN 1=1 THEN {'i': 1} ELSE {'i': 2} END","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":7,"query_location_length":45,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col['HELLO'] FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":10,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":7,"literal":{"kind":"STRING","text":"HELLO"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ({'i': NULL, 'j': NULL}::ROW(i BIGINT, j VARCHAR))['i'];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":57,"query_location_length":5,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":26,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":22,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":14,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":25,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"j","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["STRUCT"]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"literal":{"kind":"STRING","text":"i"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'i': 42, 'j': 84}::STRUCT(i INT) AS result;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"result","query_location":25,"query_location_length":15,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":13,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":22,"query_location_length":2,"literal":{"kind":"INTEGER","text":"84"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1} \u003c= NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1} \u003e= NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":16,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck'} \u003c {'x': 'duck'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":7,"query_location_length":29,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":29,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck'} \u003c\u003e {'x': 'duck'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":30,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":30,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l \u003c= r FROM struct_str","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":10,"schema_name":"","table_name":"struct_str","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_str"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck', 'y': 1} \u003c= {'x': 'duck', 'y': 2}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":46,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":38,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck', 'y': 1} \u003e= {'x': 'duck', 'y': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":46,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":38,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l \u003e= r FROM struct_str_int","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":14,"schema_name":"","table_name":"struct_str_int","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_str_int"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL = {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":45,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":28,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":47,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL \u003e {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":45,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":28,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":34,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":47,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']} \u003c= {'x': 2, 'y': ['goose']}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":64,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":61,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']} \u003e= {'x': 2, 'y': ['goose']}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":64,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":24,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":61,"query_location_length":9,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"literal":{"kind":"STRING","text":"goose"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l \u003e= r FROM list_in_struct","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":14,"schema_name":"","table_name":"list_in_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_in_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_concat(NULL::STRUCT(k INT), 'not a struct');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"struct_concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"k","query_location":36,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["STRUCT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":14,"literal":{"kind":"STRING","text":"not a struct"}}}],"qualified_name":{"path":["struct_concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_contains(ROW(1), NULL);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_contains(row(1, TRUE, 1.0), '1');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":17,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":"1"}}}],"qualified_name":{"path":["struct_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_contains(NULL, row(c1, c2)) FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":34,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":2,"column_names":["c2"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_type FROM (DESCRIBE wrong);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"wrong","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wrong"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL IS NOT DISTINCT FROM {'x': 'duck'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":39,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":39,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck', 'y': 1} IS DISTINCT FROM {'x': 'duck', 'y': 1}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":60,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":52,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} IS DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":60,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l IS DISTINCT FROM r FROM list_in_struct","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":14,"schema_name":"","table_name":"list_in_struct","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_in_struct"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a WHERE id=5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, value \u003c= value FROM nested_values ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":11,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":5,"column_names":["value"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":5,"column_names":["value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":13,"schema_name":"","table_name":"nested_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_values"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a LEFT JOIN b ON a.id\u003c\u003eb.id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"b","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["b"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":31,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":4,"column_names":["a","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":4,"column_names":["b","id"]}},"join_type":"LEFT","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_position(ROW(7, 2, 5), 5)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":32,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_position(ROW(1), NULL)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":29,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":6,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ROW(c0, c1, c2), val, struct_position(ROW(c0, c1, c2), val) FROM mixed_types;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":15,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["c2"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":3,"column_names":["val"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":37,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":15,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["c2"]}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":11,"schema_name":"","table_name":"mixed_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed_types"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_position(ROW(1.0::FLOAT, 2.0::DOUBLE), 1.0::FLOAT), struct_position(ROW(1.0::FLOAT, 2.0::DOUBLE), 2.0::DOUBLE), struct_position(ROW(1::INT, 2::BIGINT), 1::INT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":28,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":58,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":28,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":115,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"query_location_length":47,"function_name":"struct_position","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"query_location_length":22,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":147,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":149,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":155,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":157,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":167,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":169,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_position"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT struct_contains(\n CASE WHEN i = 0 THEN NULL ELSE row(i::INTEGER, (i + 1)::INTEGER) END,\n i::INTEGER\n )\nFROM range(2) t(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":128,"function_name":"struct_contains","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":35,"query_location_length":68,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":33,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":117,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":1,"column_names":["i"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":119,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["struct_contains"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":141,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, x.v.n.x FROM (SELECT id, s AS x FROM t) ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["x","v","n","x"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":36,"query_location_length":1,"column_names":["s"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(struct_pack(a := 1, b := 'a'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":39,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(row(1, 'a')) = typeof(struct_pack(a := 1, b := 'a'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":59,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":19,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":11,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":37,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":29,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":61,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a\u003c\u003eb is null from VALUES ((NULL, 1, NULL), (5, 6, 7)) t(a, b);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":12,"query_location_length":7,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":7,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":25,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":15,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":9,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"7"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s, m, typeof(s), typeof(m) FROM 'data/parquet-testing/empty_field_names.parquet' ORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["m"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["m"]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":48,"schema_name":"","table_name":"data/parquet-testing/empty_field_names.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/empty_field_names.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v::VARCHAR, v::JSON FROM (SELECT '{\"\": 1}'::JSON::VARIANT v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":32,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":55,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"literal":{"kind":"STRING","text":"{\"\": 1}"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT column_name, column_type FROM (DESCRIBE SELECT unnest(row(row(42))));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":11,"column_names":["column_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":37,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SHOW_REF","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"table_name":"","query":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":20,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":12,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":7,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["row"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"show_type":"DESCRIBE","catalog_name":"","schema_name":"","qualified_name":{"path":[]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST([{'a': 42, 'b': 88}, {'a': NULL, 'b': 99}])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":50,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":42,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":21,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":30,"query_location_length":2,"literal":{"kind":"INTEGER","text":"88"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":41,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":52,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(UNNEST([{'a': 42, 'b': 88}, {'a': NULL, 'b': 99}]))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":50,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":42,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":28,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":37,"query_location_length":2,"literal":{"kind":"INTEGER","text":"88"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":20,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":48,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":59,"query_location_length":2,"literal":{"kind":"INTEGER","text":"99"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT UNNEST(a).a) FROM (VALUES ({'a': 42, 'b': 88})) t(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":20,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":15,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":9,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["a"]}}],"qualified_name":{"path":["unnest"]},"is_legacy_function_call":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"literal":{"kind":"STRING","text":"a"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":33,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":48,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":57,"query_location_length":2,"literal":{"kind":"INTEGER","text":"88"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select i from null_list","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"null_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":9,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '11:11:f'::TIME","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"STRING","text":"11:11:f"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT date_part(['julian'], '23:59:59.123456789'::TIME_NS);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":52,"function_name":"date_part","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":10,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":8,"literal":{"kind":"STRING","text":"julian"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":20,"literal":{"kind":"STRING","text":"23:59:59.123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[],"qualified_name":{"path":["TIME_NS"]}}}}],"qualified_name":{"path":["date_part"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '02:30:00+04:30:45'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"STRING","text":"02:30:00+04:30:45"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '02:30:00+4'::TIMETZ;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"literal":{"kind":"STRING","text":"02:30:00+4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '00:00:00'::TIME::TIMETZ AS ttz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"ttz","query_location":23,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST('12:00:00+05:30xyz' AS TIMETZ)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":19,"literal":{"kind":"STRING","text":"12:00:00+05:30xyz"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, TRY_CAST(s AS TIME), TRY_CAST(s AS TIMETZ) FROM times ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["s"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["s"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[],"qualified_name":{"path":["TIMETZ"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":5,"schema_name":"","table_name":"times","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["times"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select time '23:59:59.999999' + interval (1) microsecond","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"23:59:59.999999"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":24,"function_name":"to_microseconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}}],"qualified_name":{"path":["to_microseconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '14:42:04.500'::TIME::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"literal":{"kind":"STRING","text":"14:42:04.500"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast('11:11' as time)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"11:11"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list(i ORDER BY x) FROM z","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":1,"schema_name":"","table_name":"z","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["z"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '2023-12-08 08:51:39.123456'::TIMESTAMP_S::TIME;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"2023-12-08 08:51:39.123456"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM abbreviations;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":13,"schema_name":"","table_name":"abbreviations","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["abbreviations"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT QUANTILE_DISC(ts, 0.32), QUANTILE_DISC(tstz, 0.32), QUANTILE_DISC(dt, 0.32)\nFROM specials;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.32"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":25,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":4,"column_names":["tstz"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.32"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":23,"function_name":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":2,"column_names":["dt"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.32"}}}],"qualified_name":{"path":["quantile_disc"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":8,"schema_name":"","table_name":"specials","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["specials"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'infinity'::TIME;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"literal":{"kind":"STRING","text":"infinity"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT timestamp 'AA2017-07-23 13:10:11';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"AA2017-07-23 13:10:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT YEAR(TIMESTAMP '1992-01-01 01:01:01');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":37,"function_name":"year","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"1992-01-01 01:01:01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}}],"qualified_name":{"path":["year"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tts_SEC=ts_MS,\n\tts_SEC=ts,\n\tts_SEC=ts_NS,\n\tts_MS=ts,\n\tts_MS=ts_NS,\n\tts=ts_NS,\n\tts_MS=ts_SEC,\n\tts=ts_SEC,\n\tts_SEC=ts_NS,\n\tts=ts_MS,\n\tts_NS=ts_MS,\n\tts_NS=ts,\nFROM timestamps","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":8,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":6,"column_names":["ts_SEC"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["ts_MS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":6,"column_names":["ts_SEC"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":2,"column_names":["ts"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":6,"column_names":["ts_SEC"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["ts_NS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["ts_MS"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["ts"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["ts_MS"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":5,"column_names":["ts_NS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":2,"column_names":["ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["ts_NS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["ts_MS"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":6,"column_names":["ts_SEC"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":6,"column_names":["ts_SEC"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":6,"column_names":["ts_SEC"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":5,"column_names":["ts_NS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":128,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":2,"column_names":["ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":5,"column_names":["ts_MS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["ts_NS"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":5,"column_names":["ts_MS"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":5,"column_names":["ts_NS"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":2,"column_names":["ts"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":168,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TIMESTAMPTZ '294247-01-10 04:00:54.775806+00'::TIMESTAMP_S","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":13,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":45,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select sec::TIME from timestamp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["sec"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":9,"schema_name":"","table_name":"timestamp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamp"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '2008-01-01 00:00:11'::TIMESTAMP_US = '2008-01-01 00:00:11'::TIMESTAMP_MS","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":73,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"literal":{"kind":"STRING","text":"2008-01-01 00:00:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_US","children":[],"qualified_name":{"path":["TIMESTAMP_US"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":21,"literal":{"kind":"STRING","text":"2008-01-01 00:00:11"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(t0.c0 AS TIME)\u003e=('12:34:56') FROM values ('2030-01-01'::TIMESTAMP_S), ('1969-12-23 20:44:40'::TIMESTAMP_S) as t0(c0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":33,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":5,"column_names":["t0","c0"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":10,"literal":{"kind":"STRING","text":"12:34:56"}}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":47,"query_location_length":82,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":12,"literal":{"kind":"STRING","text":"2030-01-01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":105,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":21,"literal":{"kind":"STRING","text":"1969-12-23 20:44:40"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c0"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '290309-12-22 (BC) 00:00:00'::timestamp - interval (1) second","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"literal":{"kind":"STRING","text":"290309-12-22 (BC) 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":19,"function_name":"to_seconds","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["to_seconds"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select timestamp '294247-01-10 04:00:54.775806' + interval (1) year","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775806"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":17,"function_name":"to_years","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_years"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(COALESCE(CAST('2020-01-02' AS TIMESTAMP_MS), CAST('2020-01-02 03:04:05+00' AS TIMESTAMPTZ_NS)))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":102,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":14,"query_location_length":94,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"literal":{"kind":"STRING","text":"2020-01-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":48,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"literal":{"kind":"STRING","text":"2020-01-02 03:04:05+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[],"qualified_name":{"path":["TIMESTAMPTZ_NS"]}}}]}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2000-01-31 01:02:03.123456789'::TIMESTAMP_NS + INTERVAL '-1 month 400 day',\n\t'2000-01-31 01:02:03.123456789'::TIMESTAMP_NS - INTERVAL '1 month -400 day';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":31,"literal":{"kind":"STRING","text":"2000-01-31 01:02:03.123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":18,"literal":{"kind":"STRING","text":"-1 month 400 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":31,"literal":{"kind":"STRING","text":"2000-01-31 01:02:03.123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":18,"literal":{"kind":"STRING","text":"1 month -400 day"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT make_timestamp_ns(9223372036854775806) + INTERVAL 1 day;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"make_timestamp_ns","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775806"}}}],"qualified_name":{"path":["make_timestamp_ns"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":14,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TIMESTAMP_NS '2024-01-01 12:00:00' - INTERVAL '-4611686018427387904 microseconds -4611686018427387904 microseconds';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-01 12:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":78,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":69,"literal":{"kind":"STRING","text":"-4611686018427387904 microseconds -4611686018427387904 microseconds"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTERVAL","children":[],"qualified_name":{"path":["INTERVAL"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TIMESTAMP '294247-01-10 04:00:54.4'::TIMESTAMP_S, TIMESTAMP '2024-01-01 10:00:00.6'::TIMESTAMP_S","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":13,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.4"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":90,"query_location_length":13,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2024-01-01 10:00:00.6"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast('1111-' as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":30,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"literal":{"kind":"STRING","text":"1111-"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast('294247-01-10 04:00:54.775807' as timestamp)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":53,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":30,"literal":{"kind":"STRING","text":"294247-01-10 04:00:54.775807"}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[],"qualified_name":{"path":["TIMESTAMP"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tz IN (tzns, TIMESTAMPTZ '2026-10-12 00:00:00+00') FROM t ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":13,"query_location_length":44,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["tz"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":4,"column_names":["tzns"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2026-10-12 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[],"qualified_name":{"path":["TIMESTAMPTZ"]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select timestamptz '2020-12-31 21:25:58.745232+02:15';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2020-12-31 21:25:58.745232+02:15"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[],"qualified_name":{"path":["timestamptz"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::DECIMAL(1, 2, 3)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":16,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::ENUM(1, 2);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":10,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["ENUM"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(TIMESTAMP WITH TIME ZONE '2023-01-01 00:00:00+00');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":57,"function_name":"typeof","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":49,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"2023-01-01 00:00:00+00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":24,"catalog":"","schema":"","type_name":"TIMESTAMP WITH TIME ZONE","children":[],"qualified_name":{"path":["TIMESTAMP WITH TIME ZONE"]}}}}],"qualified_name":{"path":["typeof"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '340282366920938463463374607431768211455'::UHUGEINT + '340282366920938463463374607431768211455'::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"literal":{"kind":"STRING","text":"340282366920938463463374607431768211455"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":41,"literal":{"kind":"STRING","text":"340282366920938463463374607431768211455"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::UHUGEINT // 0::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":28,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 - 1::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1267650600228229401496703205376'::UHUGEINT, '340282366920938463463374607431768211455'::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":33,"literal":{"kind":"STRING","text":"1267650600228229401496703205376"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":41,"literal":{"kind":"STRING","text":"340282366920938463463374607431768211455"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1000::UHUGEINT::TINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1e100::FLOAT::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"literal":{"kind":"NUMERIC","text":"1e100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select round(1::UHUGEINT, 0), round('1329227995784915872903807060280344576'::UHUGEINT, 0), round(0::UHUGEINT, 0)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":59,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":39,"literal":{"kind":"STRING","text":"1329227995784915872903807060280344576"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":21,"function_name":"round","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":98,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["round"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM uhugeints WHERE h \u003e= 42::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":9,"schema_name":"","table_name":"uhugeints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uhugeints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":37,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["h"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1080863910568919040::UHUGEINT * 251658240::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"literal":{"kind":"INTEGER","text":"1080863910568919040"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":9,"literal":{"kind":"INTEGER","text":"251658240"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 170141183460469231731687303715884105727::UHUGEINT * 2::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"literal":{"kind":"INTEGER","text":"170141183460469231731687303715884105727"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 10376293541461622783::UHUGEINT * 10376293541461622783::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":63,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"literal":{"kind":"INTEGER","text":"10376293541461622783"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":20,"literal":{"kind":"INTEGER","text":"10376293541461622783"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE a - b \u003c 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":29,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_cast({'tag': 0::UTINYINT, 'a': 'zz', 'b': NULL::VARCHAR} AS UNION(a INT, b VARCHAR))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":88,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":51,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"tag","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"tag","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":42,"query_location_length":4,"literal":{"kind":"STRING","text":"zz"}}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":57,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":79,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT max(u), min(u) FROM tbl1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["max"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":6,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl1 UNION ALL SELECT * FROM tbl2;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":36,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT union_tag(1::FLOAT::UNION(f1 VARCHAR, f2 DOUBLE, t FLOAT))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":58,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":39,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":37,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"f1","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"f2","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}},{"class":"TYPE","type":"TYPE","alias":"t","query_location":58,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[],"qualified_name":{"path":["FLOAT"]}}],"qualified_name":{"path":["UNION"]}}}}],"qualified_name":{"path":["union_tag"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select l.u, r.u, l.u = r.u, l.u \u003c\u003e r.u\nfrom unions l, unions r\norder by all;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["l","u"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","u"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["l","u"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":3,"column_names":["r","u"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":28,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":3,"column_names":["l","u"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["r","u"]}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":39,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":44,"query_location_length":8,"schema_name":"","table_name":"unions","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unions"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":54,"query_location_length":8,"schema_name":"","table_name":"unions","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unions"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_extract(u, 'a') FROM tbl1 WHERE union_extract(u, 'a') IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":67,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":21,"function_name":"union_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["u"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"literal":{"kind":"STRING","text":"a"}}}],"qualified_name":{"path":["union_extract"]},"is_legacy_function_call":false}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tbl1.a, tbl1.id, tbl2.id FROM tbl2 FULL OUTER JOIN tbl1 ON tbl1.a = tbl2.b ORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["tbl1","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["tbl1","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":7,"column_names":["tbl2","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":6,"column_names":["tbl1","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":6,"column_names":["tbl2","b"]}},"join_type":"FULL","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_list[1] FROM tbl2 JOIN tbl1 ON union_with_list.num = union_list[1].num;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":17,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["union_list"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":52,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":4,"schema_name":"","table_name":"tbl2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":44,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":19,"column_names":["union_with_list","num"]},"right":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":66,"query_location_length":17,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":76,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":10,"column_names":["union_list"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"literal":{"kind":"STRING","text":"num"}}]}},"join_type":"INNER","ref_type":"REGULAR","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_struct.obj.k FROM tbl1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":18,"column_names":["union_struct","obj","k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT enum_range(union_tag(u)) FROM tbl1 LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":24,"function_name":"enum_range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":12,"function_name":"union_tag","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["u"]}}],"qualified_name":{"path":["union_tag"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["enum_range"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":4,"schema_name":"","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CAST(u AS UNION(a INT, b VARCHAR)) FROM mixed;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":34,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["u"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":23,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}],"qualified_name":{"path":["UNION"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":5,"schema_name":"","table_name":"mixed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (200)::UTINYINT * (200)::UTINYINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"INTEGER","text":"200"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100::UTINYINT % 0::UTINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":27,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[],"qualified_name":{"path":["UTINYINT"]}}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT CONCAT('hello number ', 100::UINTEGER)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"concat","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":15,"literal":{"kind":"STRING","text":"hello number "}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}}],"qualified_name":{"path":["concat"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '18446744073709551616'::UBIGINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":22,"literal":{"kind":"STRING","text":"18446744073709551616"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (100::UBIGINT)::DECIMAL(2,0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}],"qualified_name":{"path":["DECIMAL"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '-1'::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"STRING","text":"-1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (9223372036854775808)::UHUGEINT::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":19,"literal":{"kind":"INTEGER","text":"9223372036854775808"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-42)::INTEGER::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (-42)::DOUBLE::UINTEGER","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"literal":{"kind":"INTEGER","text":"-42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[],"qualified_name":{"path":["UINTEGER"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (10)::USMALLINT::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[],"qualified_name":{"path":["USMALLINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (10)::UBIGINT::TINYINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[],"qualified_name":{"path":["TINYINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (200.32)::DECIMAL::UBIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"literal":{"kind":"NUMERIC","text":"200.32"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[],"qualified_name":{"path":["DECIMAL"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[],"qualified_name":{"path":["UBIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '00112233-4455-6677-8899-aabbccddeeff'::UUID::BLOB;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"literal":{"kind":"STRING","text":"00112233-4455-6677-8899-aabbccddeeff"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[],"qualified_name":{"path":["UUID"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 123456789::UHUGEINT::UUID::UHUGEINT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"literal":{"kind":"INTEGER","text":"123456789"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[],"qualified_name":{"path":["UUID"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[],"qualified_name":{"path":["UHUGEINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM variants WHERE v IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"variants","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["variants"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":38,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["v"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'thisisalongblob\\x00withnullbytes'::BLOB::VARIANT::BLOB;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":34,"literal":{"kind":"STRING","text":"thisisalongblob\\x00withnullbytes"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[],"qualified_name":{"path":["BLOB"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select [\n\t42::UNION(a INTEGER, b BOOLEAN, c VARIANT)::VARIANT,\n\t{'a': 21, 'b': false}::VARIANT::UNION(a INTEGER, b BOOLEAN, c VARIANT)::VARIANT,\n\t{'hello': 'world'},\n\t'test'::VARIANT::UNION(a INTEGER, b BOOLEAN, c VARIANT)::VARIANT,\n]::VARIANT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":234,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":227,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":134,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":40,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":70,"query_location_length":2,"literal":{"kind":"INTEGER","text":"21"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":79,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":115,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":126,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":146,"query_location_length":18,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"hello","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hello","query_location":156,"query_location_length":7,"literal":{"kind":"STRING","text":"world"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":222,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":182,"query_location_length":40,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":173,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":6,"literal":{"kind":"STRING","text":"test"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":175,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":184,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":192,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"b","query_location":203,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}},{"class":"TYPE","type":"TYPE","alias":"c","query_location":214,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["UNION"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":224,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":236,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '\"test\"'::JSON::VARIANT::JSON;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"literal":{"kind":"STRING","text":"\"test\""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with base as (\n\tfrom (VALUES\n\t\t(\n\t\t\t'null'\n\t\t),\n\t\t(\n\t\t\t'{\"b\": [1,2,true, \"hello\"], \"a\": null}'\n\t\t),\n\t\t(\n\t\t\t'true'\n\t\t)\n\t) t(a)\n)\nselect {'var': a::JSON}::VARIANT from base;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"base","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":99,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":6,"literal":{"kind":"STRING","text":"null"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":39,"literal":{"kind":"STRING","text":"{\"b\": [1,2,true, \"hello\"], \"a\": null}"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":6,"literal":{"kind":"STRING","text":"true"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":151,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"query_location_length":16,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"var","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"var","query_location":144,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":1,"column_names":["a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":153,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":166,"query_location_length":4,"schema_name":"","table_name":"base","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ['hello world long string', NULL, 'another long string value', NULL]::VARIANT::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":68,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":25,"literal":{"kind":"STRING","text":"hello world long string"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":27,"literal":{"kind":"STRING","text":"another long string value"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from foo.variant_lineitem limit 10;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":20,"schema_name":"foo","table_name":"variant_lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["foo","variant_lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select try_cast(json('[\"1\",\"x\"]')::VARIANT as INTEGER[]);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":49,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":17,"function_name":"json","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":11,"literal":{"kind":"STRING","text":"[\"1\",\"x\"]"}}}],"qualified_name":{"path":["json"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["list"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM tbl WHERE s LIKE 'thisisastring1%'::VARIANT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":31,"function_name":"~~","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":17,"literal":{"kind":"STRING","text":"thisisastring1%"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["~~"]},"is_legacy_function_call":false},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM big WHERE m::VARIANT \u003e 90::BIGINT::VARIANT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":32,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["m"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"90"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(v AS VARIANT) FROM (VALUES (make_type('INTEGER')), (NULL::TYPE), (make_type('VARCHAR'))) t(v)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["v"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":35,"query_location_length":69,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":20,"function_name":"make_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":9,"literal":{"kind":"STRING","text":"INTEGER"}}}],"qualified_name":{"path":["make_type"]},"is_legacy_function_call":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":4,"catalog":"","schema":"","type_name":"TYPE","children":[],"qualified_name":{"path":["TYPE"]}}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":20,"function_name":"make_type","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"literal":{"kind":"STRING","text":"VARCHAR"}}}],"qualified_name":{"path":["make_type"]},"is_legacy_function_call":false}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram(x::UNION(i BIGINT, t VARIANT), [union_value(i := 10)::UNION(i BIGINT, t VARIANT)])\nFROM (VALUES (union_value(i := 5)::UNION(i INTEGER, t TYPE)), (union_value(i := 42)::UNION(i INTEGER, t TYPE))) t(x)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":92,"function_name":"histogram","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["x"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":26,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"t","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["UNION"]}}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"query_location_length":50,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":28,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":20,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":66,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":26,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":79,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}},{"class":"TYPE","type":"TYPE","alias":"t","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}],"qualified_name":{"path":["UNION"]}}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["histogram"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":105,"query_location_length":106,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":133,"query_location_length":26,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"query_location_length":19,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":131,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":24,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":143,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"t","query_location":154,"query_location_length":4,"catalog":"","schema":"","type_name":"TYPE","children":[],"qualified_name":{"path":["TYPE"]}}],"qualified_name":{"path":["UNION"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":183,"query_location_length":26,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":20,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":180,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["union_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":185,"query_location_length":24,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":193,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}},{"class":"TYPE","type":"TYPE","alias":"t","query_location":204,"query_location_length":4,"catalog":"","schema":"","type_name":"TYPE","children":[],"qualified_name":{"path":["TYPE"]}}],"qualified_name":{"path":["UNION"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 10.0 + (2.0)::VARIANT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"10.0"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"2.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1]::VARIANT IS DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":34,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":3,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT []::VARIANT IS DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":33,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":9,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [{'x': 'duck', 'y': 1}]::VARIANT IS NOT DISTINCT FROM NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":58,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"query_location_length":21,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":14,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 'duck'}::VARIANT IS DISTINCT FROM {'x': 'duck'}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":53,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":13,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":53,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}::VARIANT IS NOT DISTINCT FROM {'x': 1, 'y': {'a': 'duck', 'b': 1.5}}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":107,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":27,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"query_location_length":38,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":90,"query_location_length":23,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":96,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":109,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']}::VARIANT IS DISTINCT FROM {'x': 1, 'y': ['duck', 'somateria']}","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":99,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":21,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":36,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":84,"query_location_length":21,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":6,"literal":{"kind":"STRING","text":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":11,"literal":{"kind":"STRING","text":"somateria"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["struct_pack"]},"is_legacy_function_call":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT m::VARIANT FROM t WHERE i = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t2 WHERE v::DECIMAL(4,2) = 9.00","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":22,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],"qualified_name":{"path":["DECIMAL"]}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"9.00"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nested.x.a, nested.x.b, nested.x FROM s ORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["nested","x","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":10,"column_names":["nested","x","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":8,"column_names":["nested","x"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":1,"schema_name":"","table_name":"s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH c AS MATERIALIZED (SELECT * FROM nested_variant)\nSELECT l.nested.inner_struct.payload.obj.a::INTEGER, r.nested.inner_struct.payload.obj.b::VARCHAR\nFROM c l JOIN c r USING (id) WHERE l.id = 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":31,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":14,"schema_name":"","table_name":"nested_variant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_variant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":35,"column_names":["l","nested","inner_struct","payload","obj","a"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":142,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":35,"column_names":["r","nested","inner_struct","payload","obj","b"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":161,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":157,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":166,"query_location_length":3,"schema_name":"","table_name":"c","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["id"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":187,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":4,"column_names":["l","id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('[1,null,3]'::JSON::VARIANT::JSON)::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":12,"literal":{"kind":"STRING","text":"[1,null,3]"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[],"qualified_name":{"path":["JSON"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(x AS MAP(VARCHAR, INT)) FROM (VALUES ([NULL]::VARIANT), (1::VARIANT)) t(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},"try_cast":true,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}},{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}],"qualified_name":{"path":["MAP"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":45,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":6,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["x"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM full_vector_update WHERE i \u003e= 10000","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":18,"schema_name":"","table_name":"full_vector_update","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["full_vector_update"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":46,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ti, si, bi, f, d, v, bl FROM types_test WHERE bi = -1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["ti"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["si"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["bi"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["f"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["bl"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":10,"schema_name":"","table_name":"types_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["types_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":2,"column_names":["bi"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test WHERE a=1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT * FROM test ORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT DISTINCT c FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT j FROM integers LIMIT 5 OFFSET 4995;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"literal":{"kind":"INTEGER","text":"4995"}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t_case;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"t_case","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_case"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select max(b) from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM t ORDER BY i LIMIT $limit_val","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":33,"query_location_length":10,"identifier":"limit_val"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[{"key":"limit_val","value":1}]}]}} -{"sql":"SELECT variant_comparator({'b': 10, 'a': 1}::VARIANT) = variant_comparator({'a': 1, 'b': 10}::VARIANT)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":95,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":46,"function_name":"variant_comparator","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":32,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_comparator"]}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":46,"function_name":"variant_comparator","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":17,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":89,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["struct_pack"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["variant_comparator"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v::VARCHAR FROM (VALUES\n ('2019-12-31'::DATE::VARIANT),\n ('2020-01-01 00:00:01'::TIMESTAMP_MS::VARIANT),\n ('2020-01-01 00:00:00'::TIMESTAMP_S::VARIANT),\n ('2020-01-02'::DATE::VARIANT),\n ('2020-01-01 00:00:00.5'::TIMESTAMP_NS::VARIANT)\n) t(v)\nORDER BY v","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":23,"query_location_length":235,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":12,"literal":{"kind":"STRING","text":"2019-12-31"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":21,"literal":{"kind":"STRING","text":"2020-01-01 00:00:01"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[],"qualified_name":{"path":["TIMESTAMP_MS"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":157,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":21,"literal":{"kind":"STRING","text":"2020-01-01 00:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[],"qualified_name":{"path":["TIMESTAMP_S"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":159,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":192,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":186,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":12,"literal":{"kind":"STRING","text":"2020-01-02"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":188,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[],"qualified_name":{"path":["DATE"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":194,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":246,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":232,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":23,"literal":{"kind":"STRING","text":"2020-01-01 00:00:00.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":234,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[],"qualified_name":{"path":["TIMESTAMP_NS"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":248,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM test_vector_types(NULL::VARIANT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":32,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"test_vector_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}],"qualified_name":{"path":["test_vector_types"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT depname, salary, dense_rank() OVER (PARTITION BY depname ORDER BY salary) FROM empsalary order by depname, salary","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":7,"column_names":["depname"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":6,"column_names":["salary"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["depname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":6,"column_names":["salary"]},{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":24,"query_location_length":56,"function_name":"dense_rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":6,"column_names":["salary"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["dense_rank"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"query_location_length":9,"schema_name":"","table_name":"empsalary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empsalary"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(unique1) over (order by unique1 rows between 5 following and 10 following) su FROM tenk1 order by unique1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["unique1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"su","query_location":7,"query_location_length":78,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":7,"column_names":["unique1"]}}],"start":"EXPR_FOLLOWING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["unique1"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":5,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) OVER (\n ORDER BY id ROWS BETWEEN CURRENT ROW AND off FOLLOWING\n)\nFROM (VALUES (1, -1)) AS src(id, off);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":74,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["id"]}}],"start":"CURRENT_ROW_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":null,"end_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":3,"column_names":["off"]},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"src","sample":null,"query_location":87,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","off"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tMAX(v) OVER (PARTITION BY a),\n\tSUM(v) OVER (PARTITION BY a, a)\nFROM src\nORDER BY b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":8,"query_location_length":28,"function_name":"max","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["max"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":39,"query_location_length":31,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["a"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":3,"schema_name":"","table_name":"src","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["src"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, string_agg(id, ' ') OVER (PARTITION BY ch ORDER BY id ROWS BETWEEN 1 FOLLOWING AND 2 FOLLOWING) \nFROM t1\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":11,"query_location_length":95,"function_name":"string_agg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["ch"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_FOLLOWING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"literal":{"kind":"STRING","text":" "}}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"with source as (\n\tselect \n\t\ti, \n\t\ti * 3 % 5 as permuted,\n\t\tif(permuted \u003e 0, NULL, permuted) as missing\n\tfrom range(5) tbl(i)\n)\nselect\n\ti,\n\tpermuted,\n\tfill(missing order by permuted) over (order by i) as filled\nfrom source\nqualify filled \u003c\u003e permuted","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"source","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"permuted","query_location":34,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["*"]}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["%"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"missing","query_location":59,"query_location_length":32,"function_name":"if","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":62,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":8,"column_names":["permuted"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":8,"column_names":["permuted"]}}],"qualified_name":{"path":["if"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":109,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":8,"column_names":["permuted"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"filled","query_location":150,"query_location_length":49,"function_name":"fill","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":8,"column_names":["permuted"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":7,"column_names":["missing"]}}],"qualified_name":{"path":["fill"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":215,"query_location_length":6,"schema_name":"","table_name":"source","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["source"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":230,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":6,"column_names":["filled"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":8,"column_names":["permuted"]}}},"named_param_map":[]}]}} -{"sql":"SELECT i, fill(CASE WHEN i = 2 THEN NULL ELSE i END) OVER (ORDER BY CASE WHEN i \u003c 4 THEN NULL ELSE i END) AS filled\nFROM range(8) r(i)\nQUALIFY i IS DISTINCT FROM filled\nORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"filled","query_location":10,"query_location_length":95,"function_name":"fill","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":68,"query_location_length":36,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":78,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":1,"column_names":["i"]}}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":15,"query_location_length":36,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":25,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}}}],"qualified_name":{"path":["fill"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":121,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"literal":{"kind":"INTEGER","text":"8"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":143,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":6,"column_names":["filled"]}}},"named_param_map":[]}]}} -{"sql":"SELECT\n id,\n user_id,\n order_id,\n LAST_VALUE (order_id RESPECT NULLS) over (\n PARTITION BY user_id\n ORDER BY id\n ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING\n ) AS last_order_id\nFROM issue2549\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["user_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":8,"column_names":["order_id"]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"last_order_id","query_location":38,"query_location_length":140,"function_name":"last_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["user_id"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"EXPR_PRECEDING_ROWS","start_expr":null,"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":8,"column_names":["order_id"]}}],"qualified_name":{"path":["last_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":201,"query_location_length":9,"schema_name":"","table_name":"issue2549","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue2549"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \n\ti,\n\tlead(i ORDER BY i // 2, i) OVER w AS f,\nFROM range(10) tbl(i)\nWINDOW w AS (\n\t\tORDER BY i // 2\n\t\tROWS BETWEEN 3 PRECEDING AND 3 FOLLOWING \n\t\tEXCLUDE TIES\n\t)\nORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"f","query_location":13,"query_location_length":33,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"TIES","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["lead"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":58,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \n\ti,\n\ti // 2 AS inside,\n\tlead(i, 1, NULL ORDER BY i // 2, i) OVER w AS next,\n\tlag(i, 1, NULL ORDER BY i // 2, i) OVER w AS prev,\nFROM range(10) tbl(i)\nWINDOW w AS (\n\tORDER BY i // 2\n\tROWS BETWEEN 3 PRECEDING AND 3 FOLLOWING\n)\nORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"inside","query_location":13,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"next","query_location":32,"query_location_length":42,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["lead"]}},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev","query_location":85,"query_location_length":41,"function_name":"lag","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["lag"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":141,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r, r/3.0, mad(r/3.0) over (order by r rows between 1 preceding and 1 following)\nFROM mads ORDER BY 1, 2, 3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"query_location_length":5,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}}}],"qualified_name":{"path":["/"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":17,"query_location_length":69,"function_name":"mad","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":5,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"3.0"}}}],"qualified_name":{"path":["/"]}}}],"qualified_name":{"path":["mad"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":4,"schema_name":"","table_name":"mads","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mads"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r, n, mode(n) over (order by r rows between 1 preceding and 3 following)\nFROM (SELECT r, CASE r % 2 WHEN 0 THEN r ELSE NULL END AS n FROM modes) nulls\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["n"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":66,"function_name":"mode","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["mode"]}}],"from_table":{"type":"SUBQUERY","alias":"nulls","sample":null,"query_location":85,"query_location_length":66,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["r"]},{"class":"CASE","type":"CASE_EXPR","alias":"n","query_location":96,"query_location_length":38,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["r"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":145,"query_location_length":5,"schema_name":"","table_name":"modes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["modes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\t x\n\t,y\n\t,z\n\t,median(x) OVER (PARTITION BY y) AS plain_window\n\t,median(x) FILTER (WHERE x = 1) OVER (PARTITION BY y) AS x_filtered_window\n\t,median(x) FILTER (WHERE z = 0) OVER (PARTITION BY y) AS z_filtered_window\nFROM filtering\nORDER BY y, x;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":245,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["z"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"plain_window","query_location":21,"query_location_length":31,"function_name":"median","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["y"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["median"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"x_filtered_window","query_location":71,"query_location_length":52,"function_name":"median","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["y"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["median"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"z_filtered_window","query_location":147,"query_location_length":52,"function_name":"median","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["y"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":1,"column_names":["z"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["median"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":226,"query_location_length":9,"schema_name":"","table_name":"filtering","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filtering"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, v, sum(v) OVER (ORDER BY i DESC RANGE BETWEEN 1 PRECEDING AND -1 FOLLOWING) \nFROM issue10855","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":72,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_RANGE","end":"EXPR_FOLLOWING_RANGE","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"query_location_length":10,"schema_name":"","table_name":"issue10855","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue10855"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT depname, empno,\n\tnth_value(empno, case empno % 3 when 1 then 2 else NULL end) OVER (\n\t\tPARTITION BY depname ORDER BY empno ASC\n\t\tROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING\n\t\t) fv\nFROM empsalary\nORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["depname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":5,"column_names":["empno"]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"fv","query_location":24,"query_location_length":164,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":5,"column_names":["empno"]}}],"start":"CURRENT_ROW_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":41,"query_location_length":42,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":9,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["nth_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":197,"query_location_length":9,"schema_name":"","table_name":"empsalary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empsalary"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n TeamName,\n Player,\n Score,\n NTILE() OVER (PARTITION BY TeamName ORDER BY Score ASC) AS NTILE\nFROM ScoreBoard s\nORDER BY TeamName, Score;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":8,"column_names":["TeamName"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":5,"column_names":["Score"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":8,"column_names":["TeamName"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["Player"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":5,"column_names":["Score"]},{"class":"WINDOW","type":"WINDOW_NTILE","alias":"NTILE","query_location":40,"query_location_length":55,"function_name":"ntile","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":8,"column_names":["TeamName"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":5,"column_names":["Score"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["ntile"]}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":110,"query_location_length":12,"schema_name":"","table_name":"ScoreBoard","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ScoreBoard"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH t(i, v) AS (\n\tSELECT i, CASE WHEN i = 3 THEN NULL ELSE i * 10 END\n\tFROM range(12) r(i)\n)\nSELECT i,\n\tquantile_disc(v, 0.5) OVER w,\n\tquantile_cont(v, 0.5) OVER w,\n\tquantile_disc(v, [0.25, 0.75]) OVER w,\n\tmad(v) OVER w\nFROM t\nWINDOW w AS (ORDER BY i ROWS BETWEEN 10 PRECEDING AND 1 PRECEDING)\nORDER BY i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":29,"query_location_length":41,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":6,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["*"]}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":77,"query_location_length":14,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":105,"query_location_length":28,"function_name":"quantile_disc","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_disc"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":136,"query_location_length":28,"function_name":"quantile_cont","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile_cont"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":167,"query_location_length":37,"function_name":"quantile_disc","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":184,"query_location_length":12,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]}}}],"qualified_name":{"path":["quantile_disc"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":207,"query_location_length":13,"function_name":"mad","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":282,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["mad"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":226,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r, n, median(n) over (order by r rows between unbounded preceding and unbounded following)\nFROM (SELECT r, CASE r % 2 WHEN 0 THEN r ELSE NULL END AS n FROM quantiles) nulls\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["n"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":84,"function_name":"median","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["r"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["n"]}}],"qualified_name":{"path":["median"]}}],"from_table":{"type":"SUBQUERY","alias":"nulls","sample":null,"query_location":103,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["r"]},{"class":"CASE","type":"CASE_EXPR","alias":"n","query_location":114,"query_location_length":38,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":1,"column_names":["r"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"id\", \"requested_date\", \"city\", \"wait_time\", min(\"wait_time\") OVER win_3d \nFROM rides \nWINDOW win_3d AS (\n\tPARTITION BY \"city\" \n\tORDER BY requested_date ASC \n\tRANGE BETWEEN INTERVAL 3 DAYS PRECEDING AND INTERVAL 1 DAYS PRECEDING) \nORDER BY \"requested_date\", \"city\", \"id\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":247,"query_location_length":16,"column_names":["requested_date"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":6,"column_names":["city"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":4,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":16,"column_names":["requested_date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":6,"column_names":["city"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":11,"column_names":["wait_time"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":52,"query_location_length":28,"function_name":"min","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":6,"column_names":["city"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":14,"column_names":["requested_date"]}}],"start":"EXPR_PRECEDING_RANGE","end":"EXPR_PRECEDING_RANGE","start_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":180,"query_location_length":15,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}},"end_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":210,"query_location_length":15,"function_name":"to_days","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"trunc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["trunc"]}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"INTEGER","children":[],"qualified_name":{"path":["INTEGER"]}}}}],"qualified_name":{"path":["to_days"]}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":11,"column_names":["wait_time"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":5,"schema_name":"","table_name":"rides","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rides"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT avg(42) OVER ()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":15,"function_name":"avg","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"literal":{"kind":"INTEGER","text":"42"}}}],"qualified_name":{"path":["avg"]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, LEAD(i, 2) OVER() AS i1\nFROM range(3000) tbl(i)\nWHERE i % 2048 = 0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"i1","query_location":10,"query_location_length":17,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["lead"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":39,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select i, nth_value(i, 2049) over(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) n\nfrom range(2049) tbl(i)\nQUALIFY n IS NOT NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"n","query_location":10,"query_location_length":73,"function_name":"nth_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2049"}}}],"qualified_name":{"path":["nth_value"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":91,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2049"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":120,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["n"]}]}},"named_param_map":[]}]}} -{"sql":"select row_number() over (), first_value(i) over (), first_value(j) over () from integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]}},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":29,"query_location_length":22,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first_value"]}},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":53,"query_location_length":22,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["first_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH alternate AS (\n\tSELECT \n\t\trange r,\n\t\tIF(range \u003c 2100, NULL, range) s\n\tFROM range(3000)\n)\nSELECT \n\tr,\n\ts,\n\tfirst(s IGNORE NULLS) over(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) f\nFROM alternate\nQUALIFY (f IS NOT NULL AND r \u003c 2100)\n OR (f IS NULL AND r \u003e= 2100)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"alternate","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"r","query_location":31,"query_location_length":5,"column_names":["range"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":42,"query_location_length":29,"function_name":"if","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":45,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["range"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":5,"column_names":["range"]}}],"qualified_name":{"path":["if"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":80,"query_location_length":11,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"f","query_location":111,"query_location_length":76,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":true,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["first_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":195,"query_location_length":9,"schema_name":"","table_name":"alternate","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["alternate"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":213,"query_location_length":62,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":214,"query_location_length":26,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":216,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":1,"column_names":["f"]}]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":232,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":1,"column_names":["r"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":236,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":251,"query_location_length":23,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":253,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":1,"column_names":["f"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":265,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":1,"column_names":["r"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2100"}}}]}]}},"named_param_map":[]}]}} -{"sql":"WITH w AS (\n\tSELECT i, FIRST_VALUE(CASE WHEN i = 2048 THEN i END IGNORE NULLS) OVER (\n\t\tROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS x\n\tFROM range(6144) AS r(i)\n)\nSELECT COUNT(*), COUNT(*) FILTER (WHERE x IS DISTINCT FROM CASE WHEN i \u003e= 2048 THEN 2048 END) FROM w;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"w","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"x","query_location":23,"query_location_length":114,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":true,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":35,"query_location_length":29,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}}],"qualified_name":{"path":["first_value"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":149,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6144"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":178,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":188,"query_location_length":76,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":211,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":211,"query_location_length":1,"column_names":["x"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":230,"query_location_length":33,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":240,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":270,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select\n submission_date,\n dbsystem,\n tps,\n count(distinct dbsystem) over w AS competing,\n rank(order by tps desc) over w AS new_rank,\n first_value(tps order by tps desc) over w AS best_performance,\n first_value(dbsystem order by tps desc) over w AS best_system,\n lead(tps order by tps desc) over w AS second_performance,\n lead(dbsystem order by tps desc, dbsystem) over w AS second_system,\nfrom '{DATA_DIR}/csv/tpcc_results.csv'\nwindow w as (\n order by submission_date\n range between unbounded preceding and current row\n)\nORDER BY ALL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":15,"column_names":["submission_date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["dbsystem"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":3,"column_names":["tps"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"competing","query_location":55,"query_location_length":31,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":8,"column_names":["dbsystem"]}}],"qualified_name":{"path":["count"]}},{"class":"WINDOW","type":"WINDOW_RANK","alias":"new_rank","query_location":105,"query_location_length":30,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":3,"column_names":["tps"]}}],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]}},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"best_performance","query_location":153,"query_location_length":41,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":3,"column_names":["tps"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":3,"column_names":["tps"]}}],"qualified_name":{"path":["first_value"]}},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"best_system","query_location":220,"query_location_length":46,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":250,"query_location_length":3,"column_names":["tps"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":8,"column_names":["dbsystem"]}}],"qualified_name":{"path":["first_value"]}},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"second_performance","query_location":287,"query_location_length":34,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":3,"column_names":["tps"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":292,"query_location_length":3,"column_names":["tps"]}}],"qualified_name":{"path":["lead"]}},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"second_system","query_location":349,"query_location_length":49,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":483,"query_location_length":15,"column_names":["submission_date"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":372,"query_location_length":3,"column_names":["tps"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":382,"query_location_length":8,"column_names":["dbsystem"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":354,"query_location_length":8,"column_names":["dbsystem"]}}],"qualified_name":{"path":["lead"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":422,"query_location_length":33,"schema_name":"","table_name":"{DATA_DIR}/csv/tpcc_results.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/tpcc_results.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT last_value(i ORDER BY i DESC) OVER w AS crash\nFROM range(5_000) tbl(i)\nWINDOW w AS (ORDER BY i ASC)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"crash","query_location":7,"query_location_length":36,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["last_value"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":58,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"literal":{"kind":"INTEGER","text":"5_000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(i) OVER (PARTITION BY a ORDER BY i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":39,"function_name":"min","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select j, i, sum(i) over () from a order by 1,2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":14,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) OVER w AS x\nFROM (VALUES (1), (2)) AS t(a)\nWINDOW base AS (ORDER BY a), w AS (base GROUPS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)\nORDER BY a;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"x","query_location":7,"query_location_length":15,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["a"]}}],"start":"CURRENT_ROW_GROUPS","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":33,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT part, min(const) AS lo, max(const) AS hi\nFROM (\n\tSELECT part, sum(val) OVER(PARTITION BY part) AS const\n\tFROM (\n\t\tSELECT part, val\n\t\tFROM (\n\t\t\t(SELECT range as part, random() AS val FROM range(10)) r\n\t\tCROSS JOIN \n\t\t\trange(3000)\n\t\t) p\n\t) t\n) w\nGROUP BY ALL\nHAVING lo \u003c\u003e hi\nORDER BY ALL\n;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"FUNCTION","type":"FUNCTION","alias":"lo","query_location":13,"query_location_length":10,"function_name":"min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":5,"column_names":["const"]}}],"qualified_name":{"path":["min"]}},{"class":"FUNCTION","type":"FUNCTION","alias":"hi","query_location":31,"query_location_length":10,"function_name":"max","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["const"]}}],"qualified_name":{"path":["max"]}}],"from_table":{"type":"SUBQUERY","alias":"w","sample":null,"query_location":53,"query_location_length":195,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":4,"column_names":["part"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"const","query_location":69,"query_location_length":32,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":4,"column_names":["part"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["val"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":117,"query_location_length":127,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":4,"column_names":["part"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"SUBQUERY","alias":"p","sample":null,"query_location":145,"query_location_length":96,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":209,"query_location_length":26,"left":{"type":"SUBQUERY","alias":"r","sample":null,"query_location":150,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"part","query_location":158,"query_location_length":5,"column_names":["range"]},{"class":"FUNCTION","type":"FUNCTION","alias":"val","query_location":173,"query_location_length":8,"function_name":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["random"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":194,"query_location_length":9,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":224,"query_location_length":11,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":4,"literal":{"kind":"INTEGER","text":"3000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":271,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":271,"query_location_length":2,"column_names":["lo"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":277,"query_location_length":2,"column_names":["hi"]}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH uncascaded AS (\n\tSELECT i, i % 29 AS v \n\tFROM range(1000) tbl(i)\n)\nSELECT i\n\t, v\n\t, COUNT(DISTINCT v) OVER (ORDER BY i ROWS BETWEEN 25 PRECEDING AND 25 FOLLOWING) AS w\nFROM uncascaded\nORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"uncascaded","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":32,"query_location_length":6,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"literal":{"kind":"INTEGER","text":"29"}}}],"qualified_name":{"path":["%"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":51,"query_location_length":18,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w","query_location":89,"query_location_length":78,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":2,"literal":{"kind":"INTEGER","text":"25"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":178,"query_location_length":10,"schema_name":"","table_name":"uncascaded","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uncascaded"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(x) FROM (\n SELECT histogram(i) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING EXCLUDE CURRENT ROW) x\n FROM range(3) t(i)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":131,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"x","query_location":34,"query_location_length":91,"function_name":"histogram","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"CURRENT_ROW","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["histogram"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":137,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select \n\tl_extendedprice, \n\tl_partkey, \n\tl_orderkey, \n\tsum(l_extendedprice) over(), \n\tsum(l_extendedprice) over(order by l_partkey), \n\tsum(l_extendedprice) over(order by l_partkey, l_orderkey), \n\tsum(l_extendedprice) over(order by l_partkey, l_orderkey desc), \nfrom lineitem \norder by l_partkey, l_orderkey, l_extendedprice desc","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":285,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":10,"column_names":["l_orderkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":308,"query_location_length":15,"column_names":["l_extendedprice"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":15,"column_names":["l_extendedprice"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":9,"column_names":["l_partkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":10,"column_names":["l_orderkey"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":55,"query_location_length":27,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":86,"query_location_length":45,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":9,"column_names":["l_partkey"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":135,"query_location_length":57,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":10,"column_names":["l_orderkey"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]}},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":196,"query_location_length":62,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":242,"query_location_length":10,"column_names":["l_orderkey"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":266,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nth_value(c, 14) OVER win \nFROM t3\n WINDOW win AS (\n ORDER BY c, b, a\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING EXCLUDE NO OTHERS \n )","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"","query_location":7,"query_location_length":25,"function_name":"nth_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["a"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"literal":{"kind":"INTEGER","text":"14"}}}],"qualified_name":{"path":["nth_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(b) OVER (\n ORDER BY a NULLS LAST ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n ) FROM t1 ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":84,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(c) FILTER (WHERE (c%2)!=0) OVER win,\n rank() OVER win,\n dense_rank() OVER win\nFROM t3\n WINDOW win AS ( ORDER BY c NULLS FIRST, b NULLS FIRST, a NULLS FIRST\n ROWS BETWEEN 6 PRECEDING AND UNBOUNDED FOLLOWING EXCLUDE GROUP )\n ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, 3 NULLS FIRST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":286,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":301,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":316,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":39,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":28,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["sum"]}},{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":61,"query_location_length":15,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]}},{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":91,"query_location_length":21,"function_name":"dense_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["dense_rank"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select j, s, string_agg(s, sep) over (partition by j order by s) from a order by j, s;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["j"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":51,"function_name":"string_agg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["j"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["s"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["sep"]}}],"qualified_name":{"path":["string_agg"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nth_value(peer, 5) OVER (\n ORDER BY peer ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING EXCLUDE TIES\n ), peer\nFROM value_edges ORDER BY peer, i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":4,"column_names":["peer"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"","query_location":7,"query_location_length":129,"function_name":"nth_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":4,"column_names":["peer"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"TIES","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["peer"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["nth_value"]}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":4,"column_names":["peer"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":148,"query_location_length":11,"schema_name":"","table_name":"value_edges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["value_edges"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(x) FROM (\n SELECT last_value(v ORDER BY i) OVER (\n ORDER BY peer ROWS BETWEEN CURRENT ROW AND CURRENT ROW EXCLUDE GROUP\n ) AS x\n FROM value_edges\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":155,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"x","query_location":34,"query_location_length":114,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["peer"]}}],"start":"CURRENT_ROW_ROWS","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"GROUP","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["last_value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":11,"schema_name":"","table_name":"value_edges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["value_edges"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ntile(3) OVER (ORDER BY ten, four) nn FROM tenk1 ORDER BY ten, four, nn","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":4,"column_names":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["nn"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_NTILE","alias":"nn","query_location":7,"query_location_length":34,"function_name":"ntile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["four"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["ntile"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":5,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT sum(c) FROM (SELECT count(DISTINCT i % 1000) OVER (ORDER BY i ROWS BETWEEN 100 PRECEDING AND CURRENT ROW) c FROM range(1000000) t(i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["sum"]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":19,"query_location_length":121,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":27,"query_location_length":85,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["%"]}}}],"qualified_name":{"path":["count"]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":120,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]}},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM n2 WHERE u IS NULL;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"n2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["n2"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":32,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["u"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from tbl order by all","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k FROM t8 WHERE n IN (1, 5) ORDER BY n","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":2,"schema_name":"","table_name":"t8","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t8"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":28,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["n"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from index_tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":9,"schema_name":"","table_name":"index_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["index_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT uniq FROM tbl","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["uniq"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":3,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM t WHERE i \u003e $threshold ORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":22,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["i"]},"right":{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":26,"query_location_length":10,"identifier":"threshold"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[{"key":"threshold","value":1}]}]}} +{"sql":"SELECT v FROM (VALUES ('nan'::DOUBLE), (1.5::DOUBLE), (-1.5::DOUBLE), ('-inf'::DOUBLE), ('inf'::DOUBLE), (0.0::DOUBLE)) t(v)\nORDER BY v::VARIANT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":135,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":105,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"literal":{"kind":"STRING","text":"nan"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":12,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"1.5"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":6,"literal":{"kind":"STRING","text":"-inf"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"literal":{"kind":"STRING","text":"inf"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.0"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[],"qualified_name":{"path":["DOUBLE"]}}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v FROM (VALUES (true), (false), (true), (false)) t(v)\nORDER BY v::BOOLEAN::VARIANT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["v"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[],"qualified_name":{"path":["BOOLEAN"]}}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[],"qualified_name":{"path":["VARIANT"]}}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"literal":{"kind":"BOOLEAN","text":"true"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"literal":{"kind":"BOOLEAN","text":"false"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT variant_to_parquet_variant(\nvariant_bytes_to_variant(X'1100000301001903010015030100110301000d03010009030100050301000100')\n) IS NOT NULL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":131,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":123,"function_name":"variant_to_parquet_variant","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":93,"function_name":"variant_bytes_to_variant","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":67,"literal":{"kind":"HEX","text":"1100000301001903010015030100110301000d03010009030100050301000100"}}}],"qualified_name":{"path":["variant_bytes_to_variant"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["variant_to_parquet_variant"]},"is_legacy_function_call":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_number() OVER (PARTITION BY depname ORDER BY salary) rn FROM empsalary ORDER BY depname, rn","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":7,"column_names":["depname"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["rn"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":7,"query_location_length":56,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["salary"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"query_location_length":9,"schema_name":"","table_name":"empsalary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empsalary"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(unique1) over (order by unique1 rows between 2 preceding and 1 preceding) su FROM tenk1 order by unique1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":7,"column_names":["unique1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"su","query_location":7,"query_location_length":77,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":7,"column_names":["unique1"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":7,"column_names":["unique1"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":5,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) OVER (\n ORDER BY id ROWS BETWEEN off PRECEDING AND CURRENT ROW\n)\nFROM (VALUES (1, -1)) AS src(id, off);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":74,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["off"]},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"src","sample":null,"query_location":87,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","off"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT dense_rank() OVER () FROM (SELECT * FROM range(0) UNION ALL SELECT * FROM range(5));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":7,"query_location_length":20,"function_name":"dense_rank","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["dense_rank"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":33,"query_location_length":57,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":41,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":74,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":81,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, count(*) OVER (PARTITION BY ch ORDER BY id ROWS BETWEEN 3 FOLLOWING AND 1 FOLLOWING)\nFROM t1\nORDER BY 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":11,"query_location_length":84,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["ch"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_FOLLOWING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":101,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT empno, 2*sum(salary) OVER (PARTITION BY depname ORDER BY empno) FROM empsalary ORDER BY depname, empno","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":7,"column_names":["depname"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["empno"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["empno"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"query_location_length":56,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":16,"query_location_length":54,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":5,"column_names":["empno"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":6,"column_names":["salary"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":9,"schema_name":"","table_name":"empsalary","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empsalary"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, fill(v) OVER (ORDER BY k) FROM (VALUES (0, TIME '01:00:00'), (1, NULL), (2, TIME '03:00:00'), (3, NULL)) t(k, v) ORDER BY k","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["k"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"","query_location":10,"query_location_length":25,"function_name":"fill","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["k"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["v"]}}],"qualified_name":{"path":["fill"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":41,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"01:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"STRING","text":"03:00:00"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[],"qualified_name":{"path":["TIME"]}}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k","v"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n\ti,\n\tpermuted,\n\tfill(missing order by permuted asc nulls last) over (order by i) as filled\nfrom (values\n\t(0, 1, NULL),\n\t(1, NULL, 0)\n) source(i, missing, permuted)\norder by i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":8,"column_names":["permuted"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"filled","query_location":23,"query_location_length":64,"function_name":"fill","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ASCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":8,"column_names":["permuted"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":7,"column_names":["missing"]}}],"qualified_name":{"path":["fill"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"source","sample":null,"query_location":103,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i","missing","permuted"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n id,\n user_id,\n order_id,\n FIRST_VALUE (order_id IGNORE NULLS) over (\n PARTITION BY user_id\n ORDER BY id\n ROWS BETWEEN 1 PRECEDING AND UNBOUNDED FOLLOWING\n ) AS last_order_id\nFROM issue2549\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["user_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":8,"column_names":["order_id"]},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"last_order_id","query_location":38,"query_location_length":140,"function_name":"first_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["user_id"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":true,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":8,"column_names":["order_id"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":201,"query_location_length":9,"schema_name":"","table_name":"issue2549","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue2549"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH gen AS (\n SELECT *,\n ((id * 1327) % 9973) / 10000.0 AS rnd\n FROM generate_series(1, 10000) tbl(id)\n),\nlvl AS (\n SELECT id,\n rnd,\n CASE\n WHEN rnd \u003c= 0.1 THEN 'shallow'\n WHEN rnd \u003e= 0.9 THEN 'high'\n END AS water_level\n FROM gen\n)\nSELECT *,\n LAST_VALUE(water_level IGNORE NULLS) OVER (\n ORDER BY id\n ) AS grade\nFROM lvl\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":406,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[{"key":"gen","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":25,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"rnd","query_location":36,"query_location_length":30,"function_name":"/","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":18,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":9,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1327"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"literal":{"kind":"INTEGER","text":"9973"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":7,"literal":{"kind":"NUMERIC","text":"10000.0"}}}],"qualified_name":{"path":["/"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":83,"query_location_length":33,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"generate_series","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":5,"literal":{"kind":"INTEGER","text":"10000"}}}],"qualified_name":{"path":["generate_series"]},"is_legacy_function_call":false},"column_name_alias":["id"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"lvl","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":3,"column_names":["rnd"]},{"class":"CASE","type":"CASE_EXPR","alias":"water_level","query_location":165,"query_location_length":99,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":187,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":3,"column_names":["rnd"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":194,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.1"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":9,"literal":{"kind":"STRING","text":"shallow"}}},{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":230,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":3,"column_names":["rnd"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.9"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":6,"literal":{"kind":"STRING","text":"high"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":289,"query_location_length":3,"schema_name":"","table_name":"gen","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["gen"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":302,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"grade","query_location":309,"query_location_length":69,"function_name":"last_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":370,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":true,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":320,"query_location_length":11,"column_names":["water_level"]}}],"qualified_name":{"path":["last_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":393,"query_location_length":3,"schema_name":"","table_name":"lvl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lvl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, v, t, lag(v, 2, NULL) over (partition by id order by t asc)\nfrom win\norder by id, t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":2,"column_names":["id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["t"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["t"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"","query_location":17,"query_location_length":53,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["id"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["t"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"literal":{"kind":"NULL_LITERAL","text":""}}}],"qualified_name":{"path":["lag"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":3,"schema_name":"","table_name":"win","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["win"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(LIST_EXTRACT(l, 1)) FROM list_window GROUP BY g ORDER BY g;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"function_name":"first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"list_extract","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["list_extract"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["first"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":11,"schema_name":"","table_name":"list_window","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_window"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["g"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r % 2, r, r//3, mode(r//3) over (partition by r % 2 order by r) FROM modes ORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":4,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":23,"query_location_length":47,"function_name":"mode","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["r"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":4,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"query_location_length":5,"schema_name":"","table_name":"modes","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["modes"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(id, x) AS (VALUES (1, 10), (2, 20), (3, 10), (4, 20), (5, 10))\nSELECT id, MODE(x ORDER BY id) OVER (ORDER BY id ROWS BETWEEN 3 PRECEDING AND CURRENT ROW)\nFROM t\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["id","x"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":81,"query_location_length":79,"function_name":"mode","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":2,"column_names":["id"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":2,"column_names":["id"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["mode"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":166,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\ti // 10 AS p,\n\ti,\n\tLIST(DISTINCT i // 2 ORDER BY i DESC) FILTER (i \u003e 1) OVER(\n\t\tPARTITION BY i // 10\n\t\tORDER BY i\n\t\tROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING \n\t) AS c\nFROM range(20) tbl(i)\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":9,"query_location_length":7,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":28,"query_location_length":141,"function_name":"list","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":7,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":74,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["list"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":180,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT four, ten//4 as two, \tsum(ten//4) over (partition by four order by ten//4 range between unbounded preceding and current row) st, last_value(ten//4) over (partition by four order by ten//4 range between unbounded preceding and current row) lt FROM tenk1d order by four, ten//4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":270,"query_location_length":4,"column_names":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":276,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":276,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["four"]},{"class":"FUNCTION","type":"FUNCTION","alias":"two","query_location":13,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"st","query_location":29,"query_location_length":102,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["four"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"lt","query_location":136,"query_location_length":109,"function_name":"last_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":4,"column_names":["four"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":188,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":147,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["ten"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["last_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":254,"query_location_length":6,"schema_name":"","table_name":"tenk1d","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1d"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n TeamName,\n Player,\n Score,\n NTILE(2) OVER (PARTITION BY TeamName ORDER BY Score ASC) AS NTILE\nFROM ScoreBoard s\nORDER BY TeamName, Score;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":8,"column_names":["TeamName"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":5,"column_names":["Score"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":8,"column_names":["TeamName"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["Player"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":5,"column_names":["Score"]},{"class":"WINDOW","type":"WINDOW_NTILE","alias":"NTILE","query_location":40,"query_location_length":56,"function_name":"ntile","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":8,"column_names":["TeamName"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":5,"column_names":["Score"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["ntile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":111,"query_location_length":12,"schema_name":"","table_name":"ScoreBoard","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ScoreBoard"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*), count(*) FILTER (\n WHERE items IS DISTINCT FROM expected\n OR joined IS DISTINCT FROM array_to_string(expected, '|')\n OR rn \u003c\u003e j + 1 OR n \u003c\u003e len(expected)\n)\nFROM (\n SELECT *, list_transform(range(greatest(j - 1, 0), least(j + 1, 520) + 1),\n lambda k: lpad((p * 521 + k)::VARCHAR, 20, '0')) AS expected\n FROM retained\n) t","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":170,"function_name":"count_star","schema":"","filter":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":45,"query_location_length":140,"children":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":45,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":5,"column_names":["items"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":8,"column_names":["expected"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":87,"query_location_length":54,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":6,"column_names":["joined"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"query_location_length":30,"function_name":"array_to_string","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":8,"column_names":["expected"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":3,"literal":{"kind":"STRING","text":"|"}}}],"qualified_name":{"path":["array_to_string"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":152,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":2,"column_names":["rn"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":160,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":167,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["n"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":172,"query_location_length":13,"function_name":"len","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":8,"column_names":["expected"]}}],"qualified_name":{"path":["len"]},"is_legacy_function_call":false}}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":193,"query_location_length":190,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":206,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"expected","query_location":209,"query_location_length":142,"function_name":"list_transform","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":224,"query_location_length":48,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":230,"query_location_length":18,"function_name":"greatest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":241,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":243,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["greatest"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":268,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":250,"query_location_length":17,"function_name":"least","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":258,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":256,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":263,"query_location_length":3,"literal":{"kind":"INTEGER","text":"520"}}}],"qualified_name":{"path":["least"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":303,"query_location_length":47,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["k"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":313,"query_location_length":37,"function_name":"lpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":331,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":327,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":319,"query_location_length":7,"function_name":"*","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":319,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":323,"query_location_length":3,"literal":{"kind":"INTEGER","text":"521"}}}],"qualified_name":{"path":["*"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":329,"query_location_length":1,"column_names":["k"]}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":333,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":342,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":346,"query_location_length":3,"literal":{"kind":"STRING","text":"0"}}}],"qualified_name":{"path":["lpad"]},"is_legacy_function_call":false},"syntax_type":"LAMBDA_KEYWORD"}}],"qualified_name":{"path":["list_transform"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":373,"query_location_length":8,"schema_name":"","table_name":"retained","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["retained"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r, quantile(r::VARCHAR, 0.5) over (order by r rows between 1 preceding and 3 following) FROM quantiles ORDER BY 1, 2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["r"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":84,"function_name":"quantile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["r"]},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[],"qualified_name":{"path":["VARCHAR"]}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}}],"qualified_name":{"path":["quantile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"query_location_length":9,"schema_name":"","table_name":"quantiles","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["quantiles"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(r, i, p, f) AS (VALUES\n\t(0, 0, 1, 2),\n\t(1, 1, 1, 2),\n\t(2, 2, 1, 2),\n\t(3, 0, 1, 2),\n\t(4, 1, 1, 2),\n\t(5, 2, 1, 2)\n)\nSELECT r, QUANTILE_CONT(i, [0.25, 0.5, 0.75]) OVER (ORDER BY r ROWS BETWEEN p PRECEDING and f FOLLOWING)\nFROM t\nORDER BY 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":242,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["r","i","p","f"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"literal":{"kind":"INTEGER","text":"4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["r"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":131,"query_location_length":94,"function_name":"quantile_cont","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["p"]},"end_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":1,"column_names":["f"]},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":17,"function_name":"list_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.25"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":3,"literal":{"kind":"NUMERIC","text":"0.5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":4,"literal":{"kind":"NUMERIC","text":"0.75"}}}],"qualified_name":{"path":["list_value"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["quantile_cont"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":231,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tid,\n\tk,\n\tpercent_rank(ORDER BY k) OVER (ORDER BY k, id) AS arg_percent_rank,\nFROM (VALUES (1, 1), (2, 1)) tbl(id, k)\nORDER BY id","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["k"]},{"class":"WINDOW","type":"WINDOW_PERCENT_RANK","alias":"arg_percent_rank","query_location":17,"query_location_length":46,"function_name":"percent_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["k"]}}],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["percent_rank"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":90,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","k"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, LEAD(i, -1) OVER() AS i1\nFROM range(10) tbl(i);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"i1","query_location":10,"query_location_length":18,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"literal":{"kind":"INTEGER","text":"-1"}}}],"qualified_name":{"path":["lead"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":40,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t AS (\n\tSELECT range AS i FROM range(3) \n\tUNION ALL \n\tSELECT range AS i FROM range(3)\n)\nSELECT i, lead(i, 1) OVER () AS next_i\nFROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":20,"query_location_length":5,"column_names":["range"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":36,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"i","query_location":66,"query_location_length":5,"column_names":["range"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":82,"query_location_length":8,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"next_i","query_location":103,"query_location_length":18,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["lead"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"query_location_length":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select row_number() over (), i, j from integers where i\u003e1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":20,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":54,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j,\n\tfirst_value(i) OVER (GROUPS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),\n\tfirst_value(j) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)\nFROM integers;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":14,"query_location_length":72,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_GROUPS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":89,"query_location_length":78,"function_name":"first_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["j"]}}],"qualified_name":{"path":["first_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH RECURSIVE rte AS (\n\tSELECT 1 l, 1::BIGINT r\n\tUNION ALL\n\tSELECT l+1, row_number() OVER()\n\tFROM rte\n\tWHERE l \u003c 3\n)\nSELECT * FROM rte;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"rte","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"rte","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"l","query_location":32,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CAST","type":"OPERATOR_CAST","alias":"r","query_location":38,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"try_cast":false,"type_expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[],"qualified_name":{"path":["BIGINT"]}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":74,"query_location_length":19,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"query_location_length":3,"schema_name":"","table_name":"rte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rte"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":111,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":126,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"query_location_length":3,"schema_name":"","table_name":"rte","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rte"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH w AS (\n\tSELECT i, NTH_VALUE(CASE WHEN i = 2048 THEN i END, 1 IGNORE NULLS) OVER (\n\t\tROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS x\n\tFROM range(6144) AS r(i)\n)\nSELECT COUNT(*), COUNT(*) FILTER (WHERE x IS DISTINCT FROM CASE WHEN i \u003e= 2048 THEN 2048 END) FROM w;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"w","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"x","query_location":23,"query_location_length":115,"function_name":"nth_value","schema":"","catalog":"","partitions":[],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_ROWS","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":true,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":33,"query_location_length":29,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["nth_value"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":150,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":4,"literal":{"kind":"INTEGER","text":"6144"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":76,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":212,"query_location_length":52,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":1,"column_names":["x"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":231,"query_location_length":33,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":241,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":241,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":4,"literal":{"kind":"INTEGER","text":"2048"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"literal":{"kind":"NULL_LITERAL","text":""}}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[],"qualified_name":{"path":["count_star"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":271,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH src(id, v) AS (\n\tVALUES\n\t(1, 10),\n\t(2, 20)\n)\nSELECT\n\tid,\n\tNTH_VALUE(v, 0 ORDER BY v DESC) OVER (\n\t ORDER BY id\n\t ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n\t EXCLUDE CURRENT ROW\n\t) AS actual\nFROM src\nORDER BY id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[{"key":"src","value":{"aliases":["id","v"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"actual","query_location":63,"query_location_length":139,"function_name":"nth_value","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":2,"column_names":["id"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"CURRENT_ROW","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["v"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}}],"qualified_name":{"path":["nth_value"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":218,"query_location_length":3,"schema_name":"","table_name":"src","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["src"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cume_dist(ORDER BY i DESC) OVER w AS crash\nFROM range(5_000) tbl(i)\nWINDOW w AS (ORDER BY i ASC)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_CUME_DIST","alias":"crash","query_location":7,"query_location_length":33,"function_name":"cume_dist","schema":"","catalog":"","partitions":[],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["cume_dist"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":55,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":5,"literal":{"kind":"INTEGER","text":"5_000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(i) OVER (PARTITION BY i, a ORDER BY i) FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":42,"function_name":"min","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["a"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["min"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select j, i, sum(i) over (partition by j order by i) from a order by 1,2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":13,"query_location_length":39,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["j"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"query_location_length":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(1) OVER w, (SELECT 1) WINDOW w AS (ORDER BY 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":13,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":22,"query_location_length":10,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\ti // 10 AS p,\n\ti,\n\tSTRING_AGG(i, ',' ORDER BY i DESC) OVER(PARTITION BY p) AS c\nFROM range(20) tbl(i)\nORDER BY ALL","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":9,"query_location_length":7,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"literal":{"kind":"INTEGER","text":"10"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":28,"query_location_length":55,"function_name":"string_agg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["p"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"literal":{"kind":"STRING","text":","}}}],"qualified_name":{"path":["string_agg"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":94,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":2,"literal":{"kind":"INTEGER","text":"20"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i\n\t, s\n\t, i // 2 AS o\n\t, COUNT(DISTINCT s) OVER(\n\t\tORDER BY i // 2\n\t\tROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING \n\t\tEXCLUDE TIES\n\t) AS c\nFROM figure1\nORDER BY i","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]},{"class":"FUNCTION","type":"FUNCTION","alias":"o","query_location":17,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":32,"query_location_length":103,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"query_location_length":6,"function_name":"//","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["//"]},"is_legacy_function_call":false}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"TIES","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["s"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"query_location_length":7,"schema_name":"","table_name":"figure1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["figure1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(x) FROM (\n SELECT entropy(i) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING EXCLUDE TIES) x\n FROM range(500) t(i)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":124,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"x","query_location":34,"query_location_length":82,"function_name":"entropy","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"TIES","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["entropy"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":128,"query_location_length":15,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":3,"literal":{"kind":"INTEGER","text":"500"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select \n\tl_extendedprice, \n\tl_partkey, \n\tl_orderkey, \n\tsum(l_extendedprice) over(partition by l_partkey order by l_orderkey),\nfrom lineitem \norder by l_partkey, l_orderkey, l_extendedprice desc","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":10,"column_names":["l_orderkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":15,"column_names":["l_extendedprice"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":15,"column_names":["l_extendedprice"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":9,"column_names":["l_partkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":10,"column_names":["l_orderkey"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":55,"query_location_length":69,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":9,"column_names":["l_partkey"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":10,"column_names":["l_orderkey"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":15,"column_names":["l_extendedprice"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":131,"query_location_length":8,"schema_name":"","table_name":"lineitem","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_number() OVER win \nFROM t3\n WINDOW win AS (\n ORDER BY c, b, a\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING EXCLUDE CURRENT ROW \n )","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":21,"function_name":"row_number","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["a"]}}],"start":"UNBOUNDED_PRECEDING","end":"UNBOUNDED_FOLLOWING","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"CURRENT_ROW","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["row_number"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(b) OVER (\n ORDER BY a DESC NULLS LAST ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n ) FROM t1 ORDER BY 1 NULLS LAST;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":89,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(c) FILTER (WHERE (c%2)!=0) OVER win,\n rank() OVER win,\n dense_rank() OVER win\nFROM t3\n WINDOW win AS ( ORDER BY c NULLS LAST, b NULLS LAST, a NULLS LAST\n ROWS BETWEEN 6 PRECEDING AND UNBOUNDED FOLLOWING EXCLUDE GROUP )\n ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, 3 NULLS FIRST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":283,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":298,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":313,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":39,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":28,"query_location_length":8,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":3,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"literal":{"kind":"INTEGER","text":"0"}}},"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":61,"query_location_length":15,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":91,"query_location_length":21,"function_name":"dense_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"literal":{"kind":"INTEGER","text":"6"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"GROUP","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["dense_rank"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"query_location_length":2,"schema_name":"","table_name":"t3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i_category, i_brand, s_store_name, s_company_name, d_year, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name, d_year) avg_monthly_sales, rank() OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name ORDER BY d_year, d_moy) rn FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND (d_year = 1999 OR (d_year = 1999-1 AND d_moy =12) OR (d_year = 1999+1 AND d_moy =1)) GROUP BY i_category, i_brand, s_store_name, s_company_name, d_year, d_moy;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["i_category"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["i_brand"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":12,"column_names":["s_store_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":14,"column_names":["s_company_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":6,"column_names":["d_year"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":5,"column_names":["d_moy"]},{"class":"FUNCTION","type":"FUNCTION","alias":"sum_sales","query_location":73,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":14,"column_names":["ss_sales_price"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"avg_monthly_sales","query_location":104,"query_location_length":102,"function_name":"avg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":10,"column_names":["i_category"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":7,"column_names":["i_brand"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":12,"column_names":["s_store_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"query_location_length":14,"column_names":["s_company_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":6,"column_names":["d_year"]}],"orders":[],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":108,"query_location_length":19,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":14,"column_names":["ss_sales_price"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["avg"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_RANK","alias":"rn","query_location":226,"query_location_length":99,"function_name":"rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":10,"column_names":["i_category"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":264,"query_location_length":7,"column_names":["i_brand"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":273,"query_location_length":12,"column_names":["s_store_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":287,"query_location_length":14,"column_names":["s_company_name"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":311,"query_location_length":6,"column_names":["d_year"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":319,"query_location_length":5,"column_names":["d_moy"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[],"qualified_name":{"path":["rank"]},"is_legacy_function_call":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":329,"query_location_length":39,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":334,"query_location_length":4,"schema_name":"","table_name":"item","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["item"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":340,"query_location_length":11,"schema_name":"","table_name":"store_sales","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["store_sales"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":353,"query_location_length":8,"schema_name":"","table_name":"date_dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["date_dim"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":363,"query_location_length":5,"schema_name":"","table_name":"store","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["store"]}},"condition":null,"join_type":"INNER","ref_type":"CROSS","using_columns":[],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":375,"query_location_length":172,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":375,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":375,"query_location_length":10,"column_names":["ss_item_sk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":388,"query_location_length":9,"column_names":["i_item_sk"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":402,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":402,"query_location_length":15,"column_names":["ss_sold_date_sk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":420,"query_location_length":9,"column_names":["d_date_sk"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":434,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":434,"query_location_length":11,"column_names":["ss_store_sk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":448,"query_location_length":10,"column_names":["s_store_sk"]}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":464,"query_location_length":82,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":464,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":464,"query_location_length":6,"column_names":["d_year"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":473,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1999"}}},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":482,"query_location_length":29,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":482,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":482,"query_location_length":6,"column_names":["d_year"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":495,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":491,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1999"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":496,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":502,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":502,"query_location_length":5,"column_names":["d_moy"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":509,"query_location_length":2,"literal":{"kind":"INTEGER","text":"12"}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":517,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":517,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":517,"query_location_length":6,"column_names":["d_year"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":530,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":526,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1999"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":531,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":537,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":537,"query_location_length":5,"column_names":["d_moy"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":544,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}}}]}]}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":557,"query_location_length":10,"column_names":["i_category"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":569,"query_location_length":7,"column_names":["i_brand"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":578,"query_location_length":12,"column_names":["s_store_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":592,"query_location_length":14,"column_names":["s_company_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":608,"query_location_length":6,"column_names":["d_year"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":616,"query_location_length":5,"column_names":["d_moy"]}],"group_sets":[[0,1,2,3,4,5]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i,\n lead(v, i % 3, -i ORDER BY peer DESC, i) OVER (\n ORDER BY i ROWS BETWEEN 2 PRECEDING AND 3 FOLLOWING\n ),\n lag(v, i % 2, i + 100 ORDER BY peer, i DESC) OVER (\n ORDER BY i ROWS BETWEEN 3 PRECEDING AND 2 FOLLOWING\n )\nFROM value_edges;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"","query_location":17,"query_location_length":119,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":4,"column_names":["peer"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":2,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["-"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["lead"]},"is_legacy_function_call":false},{"class":"WINDOW","type":"WINDOW_LAG","alias":"","query_location":145,"query_location_length":123,"function_name":"lag","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":4,"column_names":["peer"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":152,"query_location_length":5,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"literal":{"kind":"INTEGER","text":"2"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}}}],"qualified_name":{"path":["+"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["lag"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":274,"query_location_length":11,"schema_name":"","table_name":"value_edges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["value_edges"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(x) FROM (\n SELECT lead(i ORDER BY i) OVER (ORDER BY i ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) AS x\n FROM range(3) r(i)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["x"]}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":120,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LEAD","alias":"x","query_location":34,"query_location_length":77,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"literal":{"kind":"INTEGER","text":"1"}},"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["i"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["i"]}}],"qualified_name":{"path":["lead"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"r","sample":null,"query_location":126,"query_location_length":13,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"literal":{"kind":"INTEGER","text":"3"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ntile(5) OVER (ORDER BY ten, four) nn FROM tenk1 ORDER BY ten, four, nn","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":4,"column_names":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":2,"column_names":["nn"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_NTILE","alias":"nn","query_location":7,"query_location_length":34,"function_name":"ntile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":4,"column_names":["four"]}}],"start":"UNBOUNDED_PRECEDING","end":"CURRENT_ROW_RANGE","start_expr":null,"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"literal":{"kind":"INTEGER","text":"5"}}}],"qualified_name":{"path":["ntile"]},"is_legacy_function_call":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":5,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(c) FROM (SELECT count(DISTINCT i % 1000) OVER (ORDER BY i ROWS BETWEEN 100 PRECEDING AND CURRENT ROW) c FROM range(1000000) t(i))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":6,"function_name":"sum","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}],"qualified_name":{"path":["sum"]},"is_legacy_function_call":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":19,"query_location_length":121,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":27,"query_location_length":85,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["i"]}}],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"literal":{"kind":"INTEGER","text":"100"}},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":null,"exclude_clause":"NO_OTHER","distinct":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":8,"function_name":"%","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"literal":{"kind":"INTEGER","text":"1000"}}}],"qualified_name":{"path":["%"]},"is_legacy_function_call":false}}],"qualified_name":{"path":["count"]},"is_legacy_function_call":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":120,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"range","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":7,"literal":{"kind":"INTEGER","text":"1000000"}}}],"qualified_name":{"path":["range"]},"is_legacy_function_call":false},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} diff --git a/parser/transform_expr.go b/parser/transform_expr.go index c657bc62..ec8c8c44 100644 --- a/parser/transform_expr.go +++ b/parser/transform_expr.go @@ -1152,9 +1152,15 @@ func decimalValueString(digits string, scale int) string { // x AT TIME ZONE tz -> timezone(tz, x) func (tc *transformContext) transformAtTimeZone(n tnode) ast.Expr { expr := tc.transformUnary(n.child(0)) - for _, tail := range n.child(1).repeat() { + tails := n.child(1).repeat() + for i, tail := range tails { rhs := tc.transformUnary(tail.child(1)) - expr = fnCall(ast.Span{Start: n.span().Start, End: tail.span().End}, "timezone", rhs, expr) + // only the outermost call of the fold carries a location + sp := invalidSpan + if i == len(tails)-1 { + sp = ast.Span{Start: n.span().Start, End: tail.span().End} + } + expr = fnCall(sp, "timezone", rhs, expr) } return expr }